barsa-tiles 2.1.13 → 2.2.1

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.
@@ -1,9 +1,8 @@
1
1
  import { EventEmitter, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { Observable, Subject } from 'rxjs';
2
+ import { Observable } from 'rxjs';
3
3
  import { ComboboxComponent, DialogService, PopoverComponent, ProductSwitchItem, ShellbarMenuItem, ShellbarUser } from '@fundamental-ngx/core';
4
- import { BaseComponent, MetaobjectDataModel, FilePictureInfoModel, MoForReportModel, NotificationService, NotificationItem, NotificationAction, AbbrevationDeviceSize, PortalService } from 'barsa-novin-ray-core';
4
+ import { BaseComponent, MetaobjectDataModel, FilePictureInfoModel, MoForReportModel, NotificationItem, NotificationAction, AbbrevationDeviceSize } from 'barsa-novin-ray-core';
5
5
  import { SafeResourceUrl } from '@angular/platform-browser';
6
- import { Router } from '@angular/router';
7
6
  import * as i0 from "@angular/core";
8
7
  interface ShellbarSetting extends MetaobjectDataModel {
9
8
  subtitle: string;
@@ -15,10 +14,7 @@ interface ShellbarSetting extends MetaobjectDataModel {
15
14
  ActionItems: MoForReportModel;
16
15
  }
17
16
  export declare class BarsaShellbarComponent extends BaseComponent implements OnInit {
18
- private _notificationService;
19
17
  private _dialogService;
20
- private _router;
21
- private _portalService;
22
18
  private _document;
23
19
  appVersion: string;
24
20
  cssCustomUrl: SafeResourceUrl | null;
@@ -35,9 +31,6 @@ export declare class BarsaShellbarComponent extends BaseComponent implements OnI
35
31
  unread: number;
36
32
  all: number;
37
33
  };
38
- notifcationLoaded: boolean;
39
- notificationLoading: boolean;
40
- notifications: NotificationItem[];
41
34
  productMenuItems1: ShellbarMenuItem[];
42
35
  bodyClick: string;
43
36
  logo: {
@@ -59,20 +52,15 @@ export declare class BarsaShellbarComponent extends BaseComponent implements OnI
59
52
  isServiceDesk: boolean;
60
53
  isOpenQuickAccess: any;
61
54
  sideMenuTemplate: TemplateRef<any> | null;
55
+ notificationReport: MetaobjectDataModel;
62
56
  isOpenQuickAccessChanged: EventEmitter<boolean>;
63
57
  openNotificationPanel: EventEmitter<void>;
64
58
  openQuickAccessPanel: EventEmitter<void>;
65
59
  cultureChanged: EventEmitter<string>;
66
- notificationLoadMore: EventEmitter<void>;
67
- removeNotification: EventEmitter<{
68
- items: MetaobjectDataModel[];
69
- silent: boolean;
70
- }>;
71
60
  notifiationActionClick: EventEmitter<{
72
61
  item: NotificationItem;
73
62
  btn: NotificationAction;
74
63
  }>;
75
- notificationViewed: EventEmitter<NotificationItem>;
76
64
  comboboxComponent: ComboboxComponent;
77
65
  popoverComponent: PopoverComponent;
78
66
  _notificationsDialog: TemplateRef<any>;
@@ -84,34 +72,22 @@ export declare class BarsaShellbarComponent extends BaseComponent implements OnI
84
72
  searchTerm: string;
85
73
  actions$: Observable<ShellbarMenuItem[]>;
86
74
  showVersion: boolean;
87
- _viewedNotifications$: Subject<NotificationItem>;
88
75
  onBellNotification: () => void;
89
76
  _viewedNotifications: NotificationItem[];
90
- constructor(_notificationService: NotificationService, _dialogService: DialogService, _router: Router, _portalService: PortalService, _document: Document, appVersion: string);
77
+ constructor(_dialogService: DialogService, _document: Document, appVersion: string);
91
78
  ngOnChanges(changes: SimpleChanges): void;
92
79
  onRouteFormStateChange(): void;
93
80
  onCultureChange(culture: any): void;
94
- onShowNotification(e: {
95
- tag: string;
96
- mo: MetaobjectDataModel;
97
- nama: string;
98
- }): void;
99
- onNotificationItemViewed(viewedMo: NotificationItem): void;
100
- onRemoveNotifications(e: {
101
- items: MetaobjectDataModel[];
102
- silent: boolean;
103
- }): void;
104
- onOpenQuickAccess: () => void;
105
- onOpenNotification: () => void;
106
81
  onNotificationAction(e: {
107
82
  item: NotificationItem;
108
83
  btn: NotificationAction;
109
84
  }): void;
85
+ onOpenQuickAccess: () => void;
86
+ onOpenNotification: () => void;
110
87
  onLanguage: (e: any) => void;
111
- onNotificationLoadMore(): void;
112
88
  private _closeSideMenu;
113
89
  private _changeCulture;
114
90
  static ɵfac: i0.ɵɵFactoryDeclaration<BarsaShellbarComponent, never>;
115
- static ɵcmp: i0.ɵɵComponentDeclaration<BarsaShellbarComponent, "bt-barsa-shellbar", never, { "cssCustomUrl": { "alias": "cssCustomUrl"; "required": false; }; "cssUrl": { "alias": "cssUrl"; "required": false; }; "cssVariableUrl": { "alias": "cssVariableUrl"; "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>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<BarsaShellbarComponent, "bt-barsa-shellbar", never, { "cssCustomUrl": { "alias": "cssCustomUrl"; "required": false; }; "cssUrl": { "alias": "cssUrl"; "required": false; }; "cssVariableUrl": { "alias": "cssVariableUrl"; "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; }; "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; }; "notificationReport": { "alias": "notificationReport"; "required": false; }; }, { "isOpenQuickAccessChanged": "isOpenQuickAccessChanged"; "openNotificationPanel": "openNotificationPanel"; "openQuickAccessPanel": "openQuickAccessPanel"; "cultureChanged": "cultureChanged"; "notifiationActionClick": "notifiationActionClick"; }, never, ["button"], false, never>;
116
92
  }
117
93
  export {};
@@ -1,8 +1,8 @@
1
- import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { BaseComponent, GroupByItem, GroupByPipe, IntersectionStatus, MetaobjectDataModel, WorkflowExecuteChoiceStatus, NotificationItem, NotificationAction, AbbrevationDeviceSize } from 'barsa-novin-ray-core';
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges, WritableSignal } from '@angular/core';
2
+ import { IconTabBarItem } from '@fundamental-ngx/platform';
3
+ import { BaseComponent, MetaobjectDataModel, WorkflowExecuteChoiceStatus, NotificationItem, NotificationAction, AbbrevationDeviceSize, ContainerReportSetting } from 'barsa-novin-ray-core';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class NotificationGroupComponent extends BaseComponent implements OnInit, OnChanges {
5
- private _groupByPipe;
6
6
  private _cdr;
7
7
  notifications: NotificationItem[] | null;
8
8
  loading: boolean;
@@ -11,6 +11,7 @@ export declare class NotificationGroupComponent extends BaseComponent implements
11
11
  unread: number;
12
12
  all: number;
13
13
  };
14
+ notificationReport: MetaobjectDataModel;
14
15
  _deviceSize: string;
15
16
  viewed: EventEmitter<NotificationItem>;
16
17
  remove: EventEmitter<{
@@ -28,27 +29,18 @@ export declare class NotificationGroupComponent extends BaseComponent implements
28
29
  }>;
29
30
  loadMore: EventEmitter<void>;
30
31
  expanded: Record<string, boolean>;
31
- tabList: {
32
- title: string;
33
- groupByItems: GroupByItem[];
34
- }[];
32
+ tabList: any[];
35
33
  viewedNotifications: NotificationItem[];
36
- constructor(_groupByPipe: GroupByPipe, _cdr: ChangeDetectorRef);
34
+ reportSetting: WritableSignal<ContainerReportSetting>;
35
+ private _groupByServcie;
36
+ private _selectedTab;
37
+ constructor(_cdr: ChangeDetectorRef);
37
38
  ngOnInit(): void;
39
+ onSelectedTabChange(selectedTab: IconTabBarItem): void;
38
40
  ngOnChanges(changes: SimpleChanges): void;
39
- applyGroupByItems(notifications: NotificationItem[] | null): void;
40
- _trackByTitle(_index: number, _: {
41
- title: string;
42
- groupByItems: GroupByItem[];
43
- }): number | string;
44
- _trackByKey(_index: number, item: {
45
- id: string;
46
- key: string;
47
- value: any;
48
- }): number | string;
49
- _trackMoById(_index: number, mo: MetaobjectDataModel): number | string;
50
- onVisibilityChange(e: IntersectionStatus, mo: NotificationItem, isLast: boolean): void;
51
41
  onWorkflowExecuteChoiceStatusChanged(e: WorkflowExecuteChoiceStatus, mo: NotificationItem): void;
42
+ _setGroupBy(): void;
43
+ _trackByTitle(_index: number, _: string): number | string;
52
44
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationGroupComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationGroupComponent, "bt-notification-group", never, { "notifications": { "alias": "notifications"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "notificationCount": { "alias": "notificationCount"; "required": false; }; }, { "viewed": "viewed"; "remove": "remove"; "actionClick": "actionClick"; "showEvent": "showEvent"; "loadMore": "loadMore"; }, never, never, false, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationGroupComponent, "bt-notification-group", never, { "notifications": { "alias": "notifications"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "notificationCount": { "alias": "notificationCount"; "required": false; }; "notificationReport": { "alias": "notificationReport"; "required": false; }; }, { "viewed": "viewed"; "remove": "remove"; "actionClick": "actionClick"; "showEvent": "showEvent"; "loadMore": "loadMore"; }, never, never, false, never>;
54
46
  }
@@ -60,6 +60,7 @@ export declare class ShellbarComponent extends BaseComponent implements OnInit {
60
60
  isOpenQuickAccess: boolean;
61
61
  userProfileImageUrl$: Observable<string | null>;
62
62
  get repIdProfileImage(): string;
63
+ get notificationReport(): MetaobjectDataModel;
63
64
  get subtitle(): string;
64
65
  get logo(): {
65
66
  FileId: string;
@@ -85,15 +86,15 @@ export declare class ShellbarComponent extends BaseComponent implements OnInit {
85
86
  nama: string;
86
87
  }): void;
87
88
  onNotificationItemViewed(viewedMo: NotificationItem): void;
89
+ onNotificationAction(e: {
90
+ item: NotificationItem;
91
+ btn: NotificationAction;
92
+ }): void;
88
93
  onRemoveNotifications(e: {
89
94
  items: MetaobjectDataModel[];
90
95
  silent: boolean;
91
96
  }): void;
92
97
  onOpenNotification: () => void;
93
- onNotificationAction(e: {
94
- item: NotificationItem;
95
- btn: NotificationAction;
96
- }): void;
97
98
  onCultureChanged: (culture: string) => void;
98
99
  onNotificationLoadMore(): void;
99
100
  onNotificationWorkflowChoiceSuccess(result: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barsa-tiles",
3
- "version": "2.1.13",
3
+ "version": "2.2.1",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^18.0.3",
6
6
  "@angular/common": "^18.0.3"