nuxeo-development-framework 3.8.2 → 3.8.4

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.
Files changed (131) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +31221 -30524
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/notifications/components/base-list-notfications.component.js +156 -0
  4. package/esm2015/lib/components/notifications/components/base-notifications.component.js +31 -0
  5. package/esm2015/lib/components/notifications/components/index.js +7 -0
  6. package/esm2015/lib/components/notifications/components/notification-item/get-icon.pipe.js +44 -0
  7. package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +41 -129
  8. package/esm2015/lib/components/notifications/components/notification-source-select/notification-source-select.component.js +38 -0
  9. package/esm2015/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.js +26 -0
  10. package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +77 -165
  11. package/esm2015/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.js +63 -0
  12. package/esm2015/lib/components/notifications/components/notifications-list/notifications-list.component.js +53 -175
  13. package/esm2015/lib/components/notifications/components/notifications-list/options.js +24 -0
  14. package/esm2015/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.js +43 -0
  15. package/esm2015/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.js +28 -0
  16. package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.js +30 -0
  17. package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.component.js +163 -0
  18. package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.js +28 -0
  19. package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.js +158 -0
  20. package/esm2015/lib/components/notifications/constants/date.js +8 -0
  21. package/esm2015/lib/components/notifications/constants/index.js +5 -0
  22. package/esm2015/lib/components/notifications/constants/pagination.js +5 -0
  23. package/esm2015/lib/components/notifications/constants/panel.js +5 -0
  24. package/esm2015/lib/components/notifications/constants/status.js +10 -0
  25. package/esm2015/lib/components/notifications/containers/index.js +3 -0
  26. package/esm2015/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.js +98 -0
  27. package/esm2015/lib/components/notifications/containers/notifications-list-container/options.js +18 -0
  28. package/esm2015/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.js +67 -0
  29. package/esm2015/lib/components/notifications/directives/button.directive.js +28 -0
  30. package/esm2015/lib/components/notifications/directives/index.js +3 -0
  31. package/esm2015/lib/components/notifications/directives/notification.directive.js +28 -0
  32. package/esm2015/lib/components/notifications/index.js +2 -0
  33. package/esm2015/lib/components/notifications/models/common.js +2 -0
  34. package/esm2015/lib/components/notifications/models/index.js +11 -0
  35. package/esm2015/lib/components/notifications/models/notification-definition.model.js +2 -0
  36. package/esm2015/lib/components/notifications/models/notification-options.js +2 -0
  37. package/esm2015/lib/components/notifications/models/notification-setting.presenter.js +2 -0
  38. package/esm2015/lib/components/notifications/models/notification-subscription.model.js +2 -0
  39. package/esm2015/lib/components/notifications/models/notification.model.js +2 -0
  40. package/esm2015/lib/components/notifications/models/notifications-list-options.js +3 -0
  41. package/esm2015/lib/components/notifications/models/paging-response.model.js +2 -0
  42. package/esm2015/lib/components/notifications/models/params.model.js +2 -0
  43. package/esm2015/lib/components/notifications/models/vocabularies.js +2 -0
  44. package/esm2015/lib/components/notifications/notifications.module.js +80 -46
  45. package/esm2015/lib/components/notifications/public-api.js +9 -0
  46. package/esm2015/lib/components/notifications/services/index.js +2 -0
  47. package/esm2015/lib/components/notifications/services/listener.service.js +19 -0
  48. package/esm2015/lib/components/notifications/services/notifications.service.js +156 -0
  49. package/esm2015/lib/components/notifications/services/params.service.js +31 -0
  50. package/esm2015/lib/components/notifications/services/response.service.js +65 -0
  51. package/esm2015/lib/components/notifications/utilities/index.js +2 -0
  52. package/esm2015/lib/components/notifications/utilities/response.adapter.js +12 -0
  53. package/esm2015/lib/components/{notifications → toasts}/components/notification-toast/notification-toast.component.js +7 -11
  54. package/esm2015/lib/components/toasts/index.js +2 -0
  55. package/esm2015/lib/components/toasts/public-api.js +3 -0
  56. package/esm2015/lib/components/toasts/toasts.module.js +19 -0
  57. package/esm2015/lib/core/models/api-response.model.js +2 -0
  58. package/esm2015/lib/core/models/automation-response.model.js +2 -0
  59. package/esm2015/lib/core/models/base-response.models.js +2 -0
  60. package/esm2015/lib/core/models/index.js +5 -0
  61. package/esm2015/lib/core/services/nuxeo/nuxeo.service.js +3 -3
  62. package/esm2015/lib/core/services/translation/translation.service.js +3 -3
  63. package/esm2015/public-api.js +136 -142
  64. package/fesm2015/nuxeo-development-framework.js +23227 -22604
  65. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  66. package/lib/components/notifications/components/base-list-notfications.component.d.ts +42 -0
  67. package/lib/components/notifications/components/base-notifications.component.d.ts +17 -0
  68. package/lib/components/notifications/components/index.d.ts +6 -0
  69. package/lib/components/notifications/components/notification-item/get-icon.pipe.d.ts +8 -0
  70. package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +21 -22
  71. package/lib/components/notifications/components/notification-source-select/notification-source-select.component.d.ts +15 -0
  72. package/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.d.ts +8 -0
  73. package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +31 -30
  74. package/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.d.ts +22 -0
  75. package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts +15 -54
  76. package/lib/components/notifications/components/notifications-list/options.d.ts +2 -0
  77. package/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.d.ts +15 -0
  78. package/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.d.ts +8 -0
  79. package/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.d.ts +3 -0
  80. package/lib/components/notifications/components/notifications-settings/notifications-settings.component.d.ts +40 -0
  81. package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.d.ts +9 -0
  82. package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.d.ts +43 -0
  83. package/lib/components/notifications/constants/date.d.ts +7 -0
  84. package/lib/components/notifications/constants/index.d.ts +4 -0
  85. package/lib/components/notifications/constants/pagination.d.ts +4 -0
  86. package/lib/components/notifications/constants/panel.d.ts +4 -0
  87. package/lib/components/notifications/constants/status.d.ts +9 -0
  88. package/lib/components/notifications/containers/index.d.ts +2 -0
  89. package/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.d.ts +27 -0
  90. package/lib/components/notifications/containers/notifications-list-container/options.d.ts +2 -0
  91. package/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.d.ts +22 -0
  92. package/lib/components/notifications/directives/button.directive.d.ts +9 -0
  93. package/lib/components/notifications/directives/index.d.ts +2 -0
  94. package/lib/components/notifications/directives/notification.directive.d.ts +9 -0
  95. package/lib/components/notifications/index.d.ts +1 -0
  96. package/lib/components/notifications/models/common.d.ts +64 -0
  97. package/lib/components/notifications/models/index.d.ts +10 -0
  98. package/lib/components/notifications/models/notification-definition.model.d.ts +17 -0
  99. package/lib/components/notifications/models/notification-options.d.ts +7 -0
  100. package/lib/components/notifications/models/notification-setting.presenter.d.ts +24 -0
  101. package/lib/components/notifications/models/notification-subscription.model.d.ts +13 -0
  102. package/lib/components/notifications/models/notification.model.d.ts +16 -0
  103. package/lib/components/notifications/models/notifications-list-options.d.ts +34 -0
  104. package/lib/components/notifications/models/paging-response.model.d.ts +12 -0
  105. package/lib/components/notifications/models/params.model.d.ts +6 -0
  106. package/lib/components/notifications/models/vocabularies.d.ts +12 -0
  107. package/lib/components/notifications/notifications.module.d.ts +32 -16
  108. package/lib/components/notifications/public-api.d.ts +8 -0
  109. package/lib/components/notifications/services/index.d.ts +1 -0
  110. package/lib/components/notifications/services/listener.service.d.ts +8 -0
  111. package/lib/components/notifications/services/notifications.service.d.ts +56 -0
  112. package/lib/components/notifications/services/params.service.d.ts +19 -0
  113. package/lib/components/notifications/services/response.service.d.ts +19 -0
  114. package/lib/components/notifications/utilities/index.d.ts +1 -0
  115. package/lib/components/notifications/utilities/response.adapter.d.ts +3 -0
  116. package/lib/components/{notifications → toasts}/components/notification-toast/notification-toast.component.d.ts +1 -3
  117. package/lib/components/toasts/index.d.ts +1 -0
  118. package/lib/components/toasts/public-api.d.ts +2 -0
  119. package/lib/components/toasts/toasts.module.d.ts +8 -0
  120. package/lib/core/models/api-response.model.d.ts +24 -0
  121. package/lib/core/models/automation-response.model.d.ts +24 -0
  122. package/lib/core/models/base-response.models.d.ts +12 -0
  123. package/lib/core/models/index.d.ts +4 -0
  124. package/lib/core/services/nuxeo/nuxeo.service.d.ts +1 -1
  125. package/lib/core/services/translation/translation.service.d.ts +3 -3
  126. package/package.json +1 -1
  127. package/public-api.d.ts +130 -136
  128. package/esm2015/lib/components/notifications/components/notification-options/notification-options.component.js +0 -22
  129. package/esm2015/lib/components/notifications/notifications.service.js +0 -358
  130. package/lib/components/notifications/components/notification-options/notification-options.component.d.ts +0 -10
  131. package/lib/components/notifications/notifications.service.d.ts +0 -87
@@ -0,0 +1,64 @@
1
+ import { SchemaModel } from '../../../core/models';
2
+ import { FILTER_DATES_TYPE } from '../constants';
3
+ export declare type TranslatedKey = string;
4
+ export declare type FilterDateType = (typeof FILTER_DATES_TYPE)[keyof typeof FILTER_DATES_TYPE];
5
+ export interface BaseNotificationEntry {
6
+ 'entity-type': string;
7
+ repository: string;
8
+ uid: string;
9
+ path: string;
10
+ type: string;
11
+ state: string;
12
+ parentRef: string;
13
+ isCheckedOut: boolean;
14
+ isRecord: boolean;
15
+ retainUntil: any;
16
+ hasLegalHold: boolean;
17
+ isUnderRetentionOrLegalHold: boolean;
18
+ isVersion: boolean;
19
+ isProxy: boolean;
20
+ changeToken: string;
21
+ isTrashed: boolean;
22
+ title: string;
23
+ lastModified: string;
24
+ facets: any[];
25
+ schemas: SchemaModel[];
26
+ }
27
+ export interface BaseNotificationProperties {
28
+ 'notf_nt:category': string;
29
+ 'notf_nt:isClickable': boolean;
30
+ 'notf_nt:sourceTypee': string;
31
+ 'notf_nt:key': string;
32
+ 'dc:description': any;
33
+ 'dc:language': any;
34
+ 'dc:coverage': any;
35
+ 'dc:valid': any;
36
+ 'dc:creator': string;
37
+ 'dc:modified': string;
38
+ 'dc:lastContributor': string;
39
+ 'dc:rights': any;
40
+ 'dc:expired': any;
41
+ 'dc:format': any;
42
+ 'dc:created': string;
43
+ 'dc:title': string;
44
+ 'dc:issued': any;
45
+ 'dc:nature': any;
46
+ 'dc:subjects': any[];
47
+ 'dc:contributors': string[];
48
+ 'dc:source': any;
49
+ 'dc:publisher': any;
50
+ 'uid:uid': any;
51
+ 'uid:major_version': number;
52
+ 'uid:minor_version': number;
53
+ 'common:icon-expanded': any;
54
+ 'common:icon': any;
55
+ }
56
+ export interface NotificationBaseOptions {
57
+ schemas: any[];
58
+ enrichers: Record<string, any>;
59
+ fetchProperties: Record<string, any>;
60
+ translateProperties: Record<string, any>;
61
+ headers: Headers;
62
+ timeout: number;
63
+ httpTimeout: number;
64
+ }
@@ -0,0 +1,10 @@
1
+ export * from './common';
2
+ export * from './notification-definition.model';
3
+ export * from './notification-options';
4
+ export * from './notification-setting.presenter';
5
+ export * from './notification-subscription.model';
6
+ export * from './notification.model';
7
+ export * from './notifications-list-options';
8
+ export * from './paging-response.model';
9
+ export * from './params.model';
10
+ export * from './vocabularies';
@@ -0,0 +1,17 @@
1
+ import { BaseNotificationEntry, BaseNotificationProperties } from './common';
2
+ export interface NotificationDefinitionModel extends BaseNotificationEntry {
3
+ properties: DefinitionProperties;
4
+ }
5
+ export interface DefinitionProperties extends BaseNotificationProperties {
6
+ 'notif_def:arDescription': any;
7
+ 'notif_def:arTemplate': string;
8
+ 'notif_def:autoSubscription': boolean;
9
+ 'notif_def:enDescription': any;
10
+ 'notif_def:applicationKey': string;
11
+ 'notif_def:enTemplate': string;
12
+ 'notif_def:channel': string;
13
+ 'notif_def:arTitle': string;
14
+ 'notif_def:sentByDefault': boolean;
15
+ 'notif_def:enTitle': string;
16
+ 'notif_def:isActive': boolean;
17
+ }
@@ -0,0 +1,7 @@
1
+ import { MatBadgePosition, MatBadgeSize } from "@angular/material/badge";
2
+ import { ThemePalette } from "@angular/material/core";
3
+ export declare type BadgeOptions = {
4
+ size: MatBadgeSize;
5
+ color: ThemePalette;
6
+ position: MatBadgePosition;
7
+ };
@@ -0,0 +1,24 @@
1
+ import { SUBSCRIPTION_STATE } from "../constants";
2
+ export interface NotificationDefinitionPresenter {
3
+ uid: string;
4
+ sourceType: string;
5
+ autoSubscription: boolean;
6
+ isActive: boolean;
7
+ sendByDefault: boolean;
8
+ applicationKey: string;
9
+ channel: string;
10
+ title: string;
11
+ arTitle: string;
12
+ enTitle: string;
13
+ notificationKey: string;
14
+ arDescription: string;
15
+ enDescription: string;
16
+ }
17
+ export interface NotificationSubscriptionPresenter {
18
+ uid: string;
19
+ applicationKey: string;
20
+ channel: string;
21
+ title: string;
22
+ notificationKey: string;
23
+ state: (typeof SUBSCRIPTION_STATE)[keyof typeof SUBSCRIPTION_STATE];
24
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseNotificationEntry, BaseNotificationProperties, NotificationBaseOptions } from './common';
2
+ export interface NotificationSubscriptionModel extends BaseNotificationEntry {
3
+ _baseOptions: NotificationBaseOptions;
4
+ _dirtyProperties: any;
5
+ properties: SubscriptionProperties;
6
+ }
7
+ export interface SubscriptionProperties extends BaseNotificationProperties {
8
+ 'notfsub:notificationKey': string;
9
+ 'notfsub:user': string;
10
+ 'notfsub:companyName': string;
11
+ 'notfsub:applicationKey': string;
12
+ 'notfsub:channel': string;
13
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseNotificationEntry, BaseNotificationProperties } from './common';
2
+ export interface NotificationModel extends BaseNotificationEntry {
3
+ _baseOptions: NotificationOptions;
4
+ properties: NotificationProperties;
5
+ _dirtyProperties: Record<string, any>;
6
+ }
7
+ export interface NotificationProperties extends BaseNotificationProperties {
8
+ 'notif_cnt:company': string;
9
+ 'notif_cnt:sourceDocument': string;
10
+ 'notif_cnt:status': string;
11
+ 'notif_cnt:user': string;
12
+ 'notif_cnt:enMessage': string;
13
+ 'notif_cnt:arMessage': string;
14
+ 'notif_cnt:data': any;
15
+ 'notif_cnt:errorMessage': any;
16
+ }
@@ -0,0 +1,34 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { PAGINATION_MODE, PANEL_MODE } from '../constants';
3
+ export declare const NOTIFICATIONS_LIST_OPTIONS: InjectionToken<NotificationsListOptions>;
4
+ export declare type NotificationPanelMode = (typeof PANEL_MODE)[keyof typeof PANEL_MODE];
5
+ export declare type NotificationPaginationMode = (typeof PAGINATION_MODE)[keyof typeof PAGINATION_MODE];
6
+ export declare type NotificationsListOptions = {
7
+ title?: string;
8
+ panelMode?: NotificationPanelMode;
9
+ filters?: {
10
+ active?: boolean;
11
+ date?: boolean;
12
+ type?: boolean;
13
+ state?: boolean;
14
+ };
15
+ actions?: {
16
+ active?: boolean;
17
+ updateState?: boolean;
18
+ openSetting?: boolean;
19
+ openNotification?: boolean;
20
+ };
21
+ icons?: {
22
+ active?: boolean;
23
+ default: string;
24
+ property: string;
25
+ types?: Record<string, string>;
26
+ };
27
+ pageSize?: number;
28
+ paginationMode?: NotificationPaginationMode;
29
+ scroll?: {
30
+ distance?: number;
31
+ throttle?: number;
32
+ scrollWindow?: boolean;
33
+ };
34
+ };
@@ -0,0 +1,12 @@
1
+ import { NotificationModel } from "./notification.model";
2
+ export interface NotificationPagingResponseModel<T = NotificationModel> {
3
+ totalItems: number;
4
+ page: number;
5
+ size: number;
6
+ data: Array<T>;
7
+ pageCount?: number;
8
+ hasPreviousPage?: boolean;
9
+ hasNextPage?: boolean;
10
+ nextPageNumber?: number;
11
+ previousPageNumber?: number;
12
+ }
@@ -0,0 +1,6 @@
1
+ export interface PaginationModel {
2
+ pageSize: number;
3
+ currentPageIndex: number;
4
+ }
5
+ export interface PayloadParamsModel extends Partial<PaginationModel>, Record<PropertyKey, any> {
6
+ }
@@ -0,0 +1,12 @@
1
+ export interface VocabularyType {
2
+ 'entity-type': string;
3
+ directoryName: string;
4
+ id: string;
5
+ properties: VocabularyProperties;
6
+ }
7
+ export interface VocabularyProperties {
8
+ ordering: number;
9
+ obsolete: number;
10
+ id: string;
11
+ label: string;
12
+ }
@@ -2,24 +2,40 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./components/notifications-list/notifications-list.component";
3
3
  import * as i2 from "./components/notifications-button/notifications-button.component";
4
4
  import * as i3 from "./components/notification-item/notification-item.component";
5
- import * as i4 from "./components/notification-options/notification-options.component";
6
- import * as i5 from "./components/notification-toast/notification-toast.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/router";
9
- import * as i8 from "ngx-infinite-scroll";
10
- import * as i9 from "@angular/material/list";
11
- import * as i10 from "../../pipes/pipes.module";
12
- import * as i11 from "@angular/material/menu";
13
- import * as i12 from "@angular/material/icon";
14
- import * as i13 from "@ngx-translate/core";
15
- import * as i14 from "@angular/material/progress-spinner";
16
- import * as i15 from "@angular/material/tooltip";
17
- import * as i16 from "@angular/material/badge";
18
- import * as i17 from "@angular/material/toolbar";
19
- import * as i18 from "@angular/material/slide-toggle";
5
+ import * as i4 from "./containers/notifications-settings-container/notifications-settings-container.component";
6
+ import * as i5 from "./containers/notifications-list-container/notifications-list-container.component";
7
+ import * as i6 from "./components/notification-source-select/notification-source-select.component";
8
+ import * as i7 from "./components/notification-status-toggle/notification-status-toggle.component";
9
+ import * as i8 from "./components/notifications-date-select/notifications-date-select.component";
10
+ import * as i9 from "./directives/button.directive";
11
+ import * as i10 from "./directives/notification.directive";
12
+ import * as i11 from "./components/notifications-list-actions/notifications-list-actions.component";
13
+ import * as i12 from "./components/notifications-settings/notifications-settings.component";
14
+ import * as i13 from "./components/notifications-settings/check-if-subscribed.pipe";
15
+ import * as i14 from "./components/notification-item/get-icon.pipe";
16
+ import * as i15 from "./components/notifications-sidebar/notifications-sidebar.component";
17
+ import * as i16 from "./components/notifications-sidebar/notifications-sidebar-content";
18
+ import * as i17 from "@angular/common";
19
+ import * as i18 from "@angular/router";
20
+ import * as i19 from "ngx-infinite-scroll";
21
+ import * as i20 from "@angular/material/list";
22
+ import * as i21 from "../../pipes/pipes.module";
23
+ import * as i22 from "@angular/material/menu";
24
+ import * as i23 from "@angular/material/icon";
25
+ import * as i24 from "@ngx-translate/core";
26
+ import * as i25 from "@angular/material/progress-spinner";
27
+ import * as i26 from "@angular/material/tooltip";
28
+ import * as i27 from "@angular/material/badge";
29
+ import * as i28 from "@angular/material/toolbar";
30
+ import * as i29 from "@angular/material/slide-toggle";
31
+ import * as i30 from "../pagination/pagination.module";
32
+ import * as i31 from "@angular/material/button";
33
+ import * as i32 from "@angular/material/tabs";
34
+ import * as i33 from "../confirmation-dialog/confirmation-dialog.module";
35
+ import * as i34 from "@angular/material/dialog";
20
36
  /** @ignore */
21
37
  export declare class NotificationsModule {
22
38
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationsModule, [typeof i1.NotificationsListComponent, typeof i2.NotificationsButtonComponent, typeof i3.NotificationItemComponent, typeof i4.NotificationOptionsComponent, typeof i5.NotificationToastComponent], [typeof i6.CommonModule, typeof i7.RouterModule, typeof i8.InfiniteScrollModule, typeof i9.MatListModule, typeof i10.PipesModule, typeof i11.MatMenuModule, typeof i12.MatIconModule, typeof i13.TranslateModule, typeof i14.MatProgressSpinnerModule, typeof i15.MatTooltipModule, typeof i8.InfiniteScrollModule, typeof i16.MatBadgeModule, typeof i13.TranslateModule, typeof i17.MatToolbarModule, typeof i18.MatSlideToggleModule], [typeof i1.NotificationsListComponent, typeof i2.NotificationsButtonComponent, typeof i3.NotificationItemComponent, typeof i4.NotificationOptionsComponent]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationsModule, [typeof i1.NotificationsListComponent, typeof i2.NotificationsButtonComponent, typeof i3.NotificationItemComponent, typeof i4.NotificationsSettingsContainerComponent, typeof i5.NotificationsListContainerComponent, typeof i6.NotificationSourceSelectComponent, typeof i7.NotificationStatusToggleComponent, typeof i8.NotificationsDateSelectComponent, typeof i9.NotificationIconDirective, typeof i10.NotificationItemDirective, typeof i11.NotificationsListActionsComponent, typeof i12.NotificationsSettingsComponent, typeof i13.CheckIfSubscribedPipe, typeof i14.GetIconPipe, typeof i15.NotificationsSidebarComponent, typeof i16.NotificationSidebarContentDirective], [typeof i17.CommonModule, typeof i18.RouterModule, typeof i19.InfiniteScrollModule, typeof i20.MatListModule, typeof i21.PipesModule, typeof i22.MatMenuModule, typeof i23.MatIconModule, typeof i24.TranslateModule, typeof i25.MatProgressSpinnerModule, typeof i26.MatTooltipModule, typeof i19.InfiniteScrollModule, typeof i27.MatBadgeModule, typeof i24.TranslateModule, typeof i28.MatToolbarModule, typeof i29.MatSlideToggleModule, typeof i30.PaginationModule, typeof i31.MatButtonModule, typeof i32.MatTabsModule, typeof i33.ConfirmationDialogModule, typeof i34.MatDialogModule], [typeof i1.NotificationsListComponent, typeof i2.NotificationsButtonComponent, typeof i3.NotificationItemComponent, typeof i4.NotificationsSettingsContainerComponent, typeof i5.NotificationsListContainerComponent, typeof i6.NotificationSourceSelectComponent, typeof i7.NotificationStatusToggleComponent, typeof i8.NotificationsDateSelectComponent, typeof i9.NotificationIconDirective, typeof i10.NotificationItemDirective]>;
24
40
  static ɵinj: i0.ɵɵInjectorDeclaration<NotificationsModule>;
25
41
  }
@@ -0,0 +1,8 @@
1
+ export * from './components';
2
+ export * from './constants';
3
+ export * from './containers';
4
+ export * from './models';
5
+ export * from './notifications.module';
6
+ export * from './services';
7
+ export * from './directives/notification.directive';
8
+ export * from './directives/button.directive';
@@ -0,0 +1 @@
1
+ export * from './notifications.service';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ListenerService {
3
+ private readonly _updatesSub;
4
+ readonly onUpdate$: import("rxjs").Observable<string>;
5
+ triggerUpdate(actionName: string): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListenerService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<ListenerService>;
8
+ }
@@ -0,0 +1,56 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable, Subject } from 'rxjs';
3
+ import { AutomationResponseModel } from '../../../core/models';
4
+ import { CallApiService } from '../../../core/services/callApi/call-api.service';
5
+ import { NuxeoService } from '../../../core/services/nuxeo/nuxeo.service';
6
+ import { NotificationDefinitionModel, NotificationModel, NotificationSubscriptionModel, PayloadParamsModel, VocabularyType } from '../models';
7
+ import * as i0 from "@angular/core";
8
+ export declare class NotificationsService {
9
+ private _callApi;
10
+ private _nuxeoService;
11
+ private _http;
12
+ private _environment;
13
+ listenerObserver: Subject<unknown>;
14
+ static readonly sourceType = "/api/v1/directory/VOC_Notf_SourceTypes";
15
+ static readonly channels = "/api/v1/directory/VOC_Notf_NotificationChannels";
16
+ static readonly providers: {
17
+ notifications: string;
18
+ notificationsMango: string;
19
+ subscription: string;
20
+ definition: string;
21
+ };
22
+ static readonly operations: {
23
+ markAllAsRead: string;
24
+ markAsRead: string;
25
+ markAsUnread: string;
26
+ markAsDeleted: string;
27
+ unsubscribe: string;
28
+ subscribe: string;
29
+ reset: string;
30
+ markAllAsUnread: string;
31
+ };
32
+ private get _tenantId();
33
+ private get _appKey();
34
+ constructor(_callApi: CallApiService, _nuxeoService: NuxeoService, _http: HttpClient, _environment: Record<string, any>);
35
+ getUnReadCount(): Observable<number>;
36
+ getNotificationsMongo(payload?: PayloadParamsModel): Observable<import("../models").NotificationPagingResponseModel<NotificationModel>>;
37
+ getNotifications(payload?: PayloadParamsModel): Observable<import("../models").NotificationPagingResponseModel<NotificationModel>>;
38
+ markAllAsRead(): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
39
+ markAllNewAsUnread(): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
40
+ markAsRead(id: string): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
41
+ markAsUnread(id: string): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
42
+ markAsDeleted(id: string): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
43
+ unsubscribe(id: string): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
44
+ subscribe(id: string): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
45
+ resetSubscriptions(): Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
46
+ getSourceTypes(): Observable<VocabularyType[]>;
47
+ getChannels(): Observable<VocabularyType[]>;
48
+ getDefinitions(payload?: PayloadParamsModel): Observable<NotificationDefinitionModel[]>;
49
+ getSubscriptions(payload?: PayloadParamsModel): Observable<NotificationSubscriptionModel[]>;
50
+ private _getNotifications;
51
+ private _getVocabulary;
52
+ private _operation;
53
+ private _globalOperation;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
55
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
56
+ }
@@ -0,0 +1,19 @@
1
+ import { PayloadParamsModel } from '../models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ParamsService<T = PayloadParamsModel | Record<string, any>> {
4
+ private readonly _paramsSub;
5
+ readonly params$: import("rxjs").Observable<{
6
+ override?: boolean;
7
+ params: T;
8
+ }>;
9
+ private _activatedParams;
10
+ get activatedQuery(): T;
11
+ private _defaultParams;
12
+ setDefaultParams(params: Partial<PayloadParamsModel | T>): void;
13
+ applyParams(payload?: {
14
+ override?: boolean;
15
+ params: Partial<PayloadParamsModel | T>;
16
+ }, includeDefaults?: boolean): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ParamsService<any>, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<ParamsService<any>>;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { NotificationModel, NotificationPagingResponseModel } from '../models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ResponseService<T = NotificationModel> {
4
+ totalItems: number;
5
+ itemsLength: number;
6
+ selectedPage: number;
7
+ private readonly _responseSub;
8
+ response$: import("rxjs").Observable<NotificationPagingResponseModel<T>>;
9
+ getResponse(): NotificationPagingResponseModel<T>;
10
+ setResponse(res: NotificationPagingResponseModel<T>, isOverride?: boolean): void;
11
+ increasePage(size?: number): void;
12
+ decreasePage(size?: number): void;
13
+ setPage(size?: number): void;
14
+ removeFromResponse(uid: string): void;
15
+ patchResponse(uid: string, payload: Record<string, any>): void;
16
+ resetPagination(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResponseService<any>, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResponseService<any>>;
19
+ }
@@ -0,0 +1 @@
1
+ export * from './response.adapter';
@@ -0,0 +1,3 @@
1
+ import { ApiResponseModel } from '../../../core/models';
2
+ import { NotificationModel, NotificationPagingResponseModel } from '../models';
3
+ export declare const mapNotificationsToPagingResponse: (response: ApiResponseModel<NotificationModel>) => NotificationPagingResponseModel<NotificationModel>;
@@ -1,17 +1,15 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { Router } from '@angular/router';
3
2
  import { Toast, ToastPackage, ToastrService } from 'ngx-toastr';
4
3
  import { UserPreferencesService } from '../../../../core/services/user/user-preferences.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class NotificationToastComponent extends Toast implements OnInit {
7
6
  protected toastrService: ToastrService;
8
7
  toastPackage: ToastPackage;
9
- private router;
10
8
  userPreferenceService?: UserPreferencesService;
11
9
  id: any;
12
10
  lang: any;
13
11
  private onDestroy$;
14
- constructor(toastrService: ToastrService, toastPackage: ToastPackage, router: Router, userPreferenceService?: UserPreferencesService);
12
+ constructor(toastrService: ToastrService, toastPackage: ToastPackage, userPreferenceService?: UserPreferencesService);
15
13
  ngOnInit(): void;
16
14
  navigateToDetais(): void;
17
15
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationToastComponent, never>;
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from './components/notification-toast/notification-toast.component';
2
+ export * from './toasts.module';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/notification-toast/notification-toast.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class ToastsModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastsModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ToastsModule, [typeof i1.NotificationToastComponent], [typeof i2.CommonModule], [typeof i1.NotificationToastComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ToastsModule>;
8
+ }
@@ -0,0 +1,24 @@
1
+ import { EntryModel, QuickFilter } from './base-response.models';
2
+ export interface ApiResponseModel<TEntry extends Record<string, any> = EntryModel> {
3
+ 'entity-type': string;
4
+ isPaginable: boolean;
5
+ resultsCount: number;
6
+ pageSize: number;
7
+ maxPageSize: number;
8
+ resultsCountLimit: number;
9
+ currentPageSize: number;
10
+ currentPageIndex: number;
11
+ currentPageOffset: number;
12
+ numberOfPages: number;
13
+ isPreviousPageAvailable: boolean;
14
+ isNextPageAvailable: boolean;
15
+ isLastPageAvailable: boolean;
16
+ isSortable: boolean;
17
+ hasError: boolean;
18
+ errorMessage: any;
19
+ totalSize?: number;
20
+ pageIndex: number;
21
+ pageCount: number;
22
+ quickFilters?: QuickFilter[];
23
+ entries: TEntry[];
24
+ }
@@ -0,0 +1,24 @@
1
+ import { SchemaModel } from "./base-response.models";
2
+ export interface AutomationResponseModel<TProperties extends Record<string, any> = Record<PropertyKey, any>> {
3
+ 'entity-type': string;
4
+ repository: string;
5
+ uid: string;
6
+ path: string;
7
+ type: string;
8
+ state: string;
9
+ parentRef: string;
10
+ isCheckedOut: boolean;
11
+ isRecord: boolean;
12
+ retainUntil: any;
13
+ hasLegalHold: boolean;
14
+ isUnderRetentionOrLegalHold: boolean;
15
+ isVersion: boolean;
16
+ isProxy: boolean;
17
+ changeToken: string;
18
+ isTrashed: boolean;
19
+ title: string;
20
+ lastModified: string;
21
+ properties?: TProperties;
22
+ facets: string[];
23
+ schemas: SchemaModel[];
24
+ }
@@ -0,0 +1,12 @@
1
+ export interface QuickFilter {
2
+ name: string;
3
+ active: boolean;
4
+ }
5
+ export interface EntryModel {
6
+ 'entity-type': string;
7
+ state: string;
8
+ }
9
+ export interface SchemaModel {
10
+ name: string;
11
+ prefix: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ export * from './api-response.model';
2
+ export * from './automation-response.model';
3
+ export * from './base-response.models';
4
+ export * from './component.model';
@@ -1,8 +1,8 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { KeycloakService } from 'keycloak-angular';
3
+ import { CookieService } from 'ngx-cookie-service';
3
4
  import { Observable } from 'rxjs';
4
5
  import { RolesService } from '../roles/roles.service';
5
- import { CookieService } from 'ngx-cookie-service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class NuxeoService {
8
8
  private http;
@@ -1,11 +1,11 @@
1
1
  import { InjectionToken, RendererFactory2 } from '@angular/core';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
- import { TranslateLoaderService } from './translate-loader.service';
5
- import { UserPreferencesService } from '../user/user-preferences.service';
4
+ import { AppConfigService } from '../../../configuration/app-config.service';
6
5
  import { LocalStoragService } from '../localStorag/local-storag.service';
7
6
  import { NuxeoService } from '../nuxeo/nuxeo.service';
8
- import { AppConfigService } from '../../../configuration/app-config.service';
7
+ import { UserPreferencesService } from '../user/user-preferences.service';
8
+ import { TranslateLoaderService } from './translate-loader.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare const TRANSLATION_PROVIDER: InjectionToken<unknown>;
11
11
  export interface TranslationProvider {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "3.8.2",
3
+ "version": "3.8.4",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",