barsa-tiles 2.0.56 → 2.0.58
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/esm2022/lib/barsa-shellbar/barsa-shellbar.component.mjs +12 -5
- package/esm2022/lib/shellbar/shellbar.component.mjs +18 -6
- package/esm2022/lib/simple-tile/simple-tile.component.mjs +6 -3
- package/esm2022/lib/tiles.service.mjs +16 -1
- package/fesm2022/barsa-tiles.mjs +48 -11
- package/fesm2022/barsa-tiles.mjs.map +1 -1
- package/lib/barsa-shellbar/barsa-shellbar.component.d.ts +4 -3
- package/lib/shellbar/shellbar.component.d.ts +5 -1
- package/lib/simple-tile/simple-tile.component.d.ts +1 -0
- package/lib/tiles.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
3
|
import { ComboboxComponent, DialogService, PopoverComponent, ProductSwitchItem, ShellbarMenuItem, ShellbarUser } from '@fundamental-ngx/core';
|
|
4
4
|
import { BaseComponent, MetaobjectDataModel, FilePictureInfoModel, MoForReportModel, NotificationService, NotificationItem, NotificationAction, AbbrevationDeviceSize, PortalService } from 'barsa-novin-ray-core';
|
|
@@ -23,7 +23,6 @@ export declare class BarsaShellbarComponent extends BaseComponent implements OnI
|
|
|
23
23
|
appVersion: string;
|
|
24
24
|
cssCustomUrl: SafeResourceUrl | null;
|
|
25
25
|
cssUrl: SafeResourceUrl | null;
|
|
26
|
-
allowAnonymous: boolean;
|
|
27
26
|
multiLanguages: boolean;
|
|
28
27
|
userLoggedIn: boolean;
|
|
29
28
|
settings: MetaobjectDataModel;
|
|
@@ -54,6 +53,7 @@ export declare class BarsaShellbarComponent extends BaseComponent implements OnI
|
|
|
54
53
|
hideShellbarActions: boolean;
|
|
55
54
|
showExtraButton: boolean;
|
|
56
55
|
isTablet: boolean;
|
|
56
|
+
userProfileImageUrl: string | null;
|
|
57
57
|
isDesktop: boolean;
|
|
58
58
|
isServiceDesk: boolean;
|
|
59
59
|
isOpenQuickAccess: any;
|
|
@@ -87,6 +87,7 @@ export declare class BarsaShellbarComponent extends BaseComponent implements OnI
|
|
|
87
87
|
onBellNotification: () => void;
|
|
88
88
|
_viewedNotifications: NotificationItem[];
|
|
89
89
|
constructor(_notificationService: NotificationService, _dialogService: DialogService, _router: Router, _portalService: PortalService, _document: Document, appVersion: string);
|
|
90
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
90
91
|
onRouteFormStateChange(): void;
|
|
91
92
|
onCultureChange(culture: any): void;
|
|
92
93
|
onShowNotification(e: {
|
|
@@ -110,6 +111,6 @@ export declare class BarsaShellbarComponent extends BaseComponent implements OnI
|
|
|
110
111
|
private _closeSideMenu;
|
|
111
112
|
private _changeCulture;
|
|
112
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarsaShellbarComponent, never>;
|
|
113
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarsaShellbarComponent, "bt-barsa-shellbar", never, { "cssCustomUrl": { "alias": "cssCustomUrl"; "required": false; }; "cssUrl": { "alias": "cssUrl"; "required": false; }; "
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarsaShellbarComponent, "bt-barsa-shellbar", never, { "cssCustomUrl": { "alias": "cssCustomUrl"; "required": false; }; "cssUrl": { "alias": "cssUrl"; "required": false; }; "multiLanguages": { "alias": "multiLanguages"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "productMenuControl": { "alias": "productMenuControl"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "cultures": { "alias": "cultures"; "required": false; }; "shellbarData": { "alias": "shellbarData"; "required": false; }; "notificationCount": { "alias": "notificationCount"; "required": false; }; "notifcationLoaded": { "alias": "notifcationLoaded"; "required": false; }; "notificationLoading": { "alias": "notificationLoading"; "required": false; }; "notifications": { "alias": "notifications"; "required": false; }; "productMenuItems1": { "alias": "productMenuItems1"; "required": false; }; "bodyClick": { "alias": "bodyClick"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "userMenu": { "alias": "userMenu"; "required": false; }; "productSwitcher": { "alias": "productSwitcher"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "hideShellbarActions": { "alias": "hideShellbarActions"; "required": false; }; "showExtraButton": { "alias": "showExtraButton"; "required": false; }; "isTablet": { "alias": "isTablet"; "required": false; }; "userProfileImageUrl": { "alias": "userProfileImageUrl"; "required": false; }; "isDesktop": { "alias": "isDesktop"; "required": false; }; "isServiceDesk": { "alias": "isServiceDesk"; "required": false; }; "isOpenQuickAccess": { "alias": "isOpenQuickAccess"; "required": false; }; "sideMenuTemplate": { "alias": "sideMenuTemplate"; "required": false; }; }, { "isOpenQuickAccessChanged": "isOpenQuickAccessChanged"; "openNotificationPanel": "openNotificationPanel"; "openQuickAccessPanel": "openQuickAccessPanel"; "cultureChanged": "cultureChanged"; "notificationLoadMore": "notificationLoadMore"; "removeNotification": "removeNotification"; "notifiationActionClick": "notifiationActionClick"; "notificationViewed": "notificationViewed"; }, never, ["button"], false, never>;
|
|
114
115
|
}
|
|
115
116
|
export {};
|
|
@@ -14,6 +14,7 @@ interface ShellbarSetting extends MetaobjectDataModel {
|
|
|
14
14
|
UserMenuItems: MoForReportModel;
|
|
15
15
|
ActionItems: MoForReportModel;
|
|
16
16
|
SidebarReport: MetaobjectDataModel;
|
|
17
|
+
ProfileImageReport: MetaobjectDataModel;
|
|
17
18
|
}
|
|
18
19
|
export declare class ShellbarComponent extends BaseComponent implements OnInit {
|
|
19
20
|
private _bbbTranslatePipe;
|
|
@@ -37,7 +38,6 @@ export declare class ShellbarComponent extends BaseComponent implements OnInit {
|
|
|
37
38
|
userLoggedIn$: Observable<boolean>;
|
|
38
39
|
cssUrl$: Observable<SafeResourceUrl | null>;
|
|
39
40
|
cssCustomUrl$: Observable<SafeResourceUrl | null>;
|
|
40
|
-
allowAnonymous: boolean;
|
|
41
41
|
cultures: Record<string, any>;
|
|
42
42
|
notificationsCount$: Observable<{
|
|
43
43
|
unread: number;
|
|
@@ -56,6 +56,8 @@ export declare class ShellbarComponent extends BaseComponent implements OnInit {
|
|
|
56
56
|
loginRouterLink$: Observable<string>;
|
|
57
57
|
isServiceDesk: boolean;
|
|
58
58
|
isOpenQuickAccess: boolean;
|
|
59
|
+
userProfileImageUrl$: Observable<string | null>;
|
|
60
|
+
get repIdProfileImage(): string;
|
|
59
61
|
get subtitle(): string;
|
|
60
62
|
get logo(): {
|
|
61
63
|
FileId: string;
|
|
@@ -69,6 +71,8 @@ export declare class ShellbarComponent extends BaseComponent implements OnInit {
|
|
|
69
71
|
get productSwitcher(): ProductSwitchItem[];
|
|
70
72
|
get multiLanguages(): boolean;
|
|
71
73
|
get productMenuItems(): ShellbarMenuItem[];
|
|
74
|
+
get IsUserLoggedIn(): boolean;
|
|
75
|
+
get IsUserAnonymous(): boolean;
|
|
72
76
|
constructor(_bbbTranslatePipe: BbbTranslatePipe, _portalService: PortalService, _breadCrumbService: BreadcrumbService, _tilesService: TilesService, _cdr: ChangeDetectorRef, _domSanitizer: DomSanitizer, _notificationService: NotificationService, appVersion: string);
|
|
73
77
|
ngOnInit(): void;
|
|
74
78
|
onCultureChange(culture: any): void;
|
|
@@ -4,6 +4,7 @@ import { FilePictureInfoModel } from 'barsa-novin-ray-core';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SimpleTileComponent extends BaseBtTileComponent<BaseTileSetting> implements OnInit {
|
|
6
6
|
icon: string;
|
|
7
|
+
iconCalc: string;
|
|
7
8
|
iconColor: string;
|
|
8
9
|
pictureIcon: FilePictureInfoModel;
|
|
9
10
|
ngOnInit(): void;
|
package/lib/tiles.service.d.ts
CHANGED
|
@@ -15,10 +15,12 @@ export declare class TilesService implements OnDestroy {
|
|
|
15
15
|
shellbar$: Observable<MetaobjectDataModel>;
|
|
16
16
|
appTileGroups$: Observable<MoForReportModel | null>;
|
|
17
17
|
edit$: Observable<boolean>;
|
|
18
|
+
userProfileImageUrl$: Observable<string | null>;
|
|
18
19
|
private _OnDestroy$;
|
|
19
20
|
private _homeAppTileGroupsSource;
|
|
20
21
|
private pinTilesSource;
|
|
21
22
|
private _appTileGroupsSource;
|
|
23
|
+
private _userProfileImageUrl$;
|
|
22
24
|
private _edithomeSource;
|
|
23
25
|
private _componentSettings$;
|
|
24
26
|
constructor(_portalService: PortalService, _rtlService: RtlService, _bbbTranslatePipe: BbbTranslatePipe);
|
|
@@ -27,6 +29,7 @@ export declare class TilesService implements OnDestroy {
|
|
|
27
29
|
ngOnDestroy(): void;
|
|
28
30
|
protected _onApplication_GlobalRefreshTile(sender: any, appTilesTitle: string[]): void;
|
|
29
31
|
protected _updateAppTileFromNotification(allApps: MoForReportModel, appTiles: MetaobjectDataModel[]): void;
|
|
32
|
+
loadUserProfileImage(repIdProfileImage: string): void;
|
|
30
33
|
loadAppTileGroups(appTileGroup: MetaobjectDataModel): void;
|
|
31
34
|
saveTilesStackContent(tilesStackContent: boolean): Promise<void>;
|
|
32
35
|
loadUserPortalSettings(): Observable<any>;
|