@alfresco/adf-content-services 8.1.0-13904151259 → 8.1.0-13917759001
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/assets/adf-content-services/i18n/en.json +8 -0
- package/esm2022/lib/directives/library-favorite.directive.mjs +9 -4
- package/esm2022/lib/directives/node-favorite.directive.mjs +35 -12
- package/fesm2022/adf-content-services.mjs +38 -14
- package/fesm2022/adf-content-services.mjs.map +1 -1
- package/lib/directives/library-favorite.directive.d.ts +4 -2
- package/lib/directives/node-favorite.directive.d.ts +4 -2
- package/package.json +3 -3
|
@@ -18,9 +18,11 @@ import { OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
|
18
18
|
import { FavoritesApi } from '@alfresco/js-api';
|
|
19
19
|
import { AlfrescoApiService } from '../services/alfresco-api.service';
|
|
20
20
|
import { LibraryEntity } from '../interfaces/library-entity.interface';
|
|
21
|
+
import { NotificationService } from '@alfresco/adf-core';
|
|
21
22
|
import * as i0 from "@angular/core";
|
|
22
23
|
export declare class LibraryFavoriteDirective implements OnChanges {
|
|
23
|
-
private alfrescoApiService;
|
|
24
|
+
private readonly alfrescoApiService;
|
|
25
|
+
private readonly notificationService;
|
|
24
26
|
library: LibraryEntity;
|
|
25
27
|
toggle: EventEmitter<any>;
|
|
26
28
|
error: EventEmitter<any>;
|
|
@@ -28,7 +30,7 @@ export declare class LibraryFavoriteDirective implements OnChanges {
|
|
|
28
30
|
private _favoritesApi;
|
|
29
31
|
get favoritesApi(): FavoritesApi;
|
|
30
32
|
onClick(): void;
|
|
31
|
-
constructor(alfrescoApiService: AlfrescoApiService);
|
|
33
|
+
constructor(alfrescoApiService: AlfrescoApiService, notificationService: NotificationService);
|
|
32
34
|
ngOnChanges(changes: SimpleChanges): void;
|
|
33
35
|
isFavorite(): boolean;
|
|
34
36
|
private markFavoriteLibrary;
|
|
@@ -17,9 +17,11 @@
|
|
|
17
17
|
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
18
18
|
import { NodeEntry, FavoritesApi } from '@alfresco/js-api';
|
|
19
19
|
import { AlfrescoApiService } from '../services/alfresco-api.service';
|
|
20
|
+
import { NotificationService } from '@alfresco/adf-core';
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
export declare class NodeFavoriteDirective implements OnChanges {
|
|
22
|
-
private alfrescoApiService;
|
|
23
|
+
private readonly alfrescoApiService;
|
|
24
|
+
private readonly notificationService;
|
|
23
25
|
favorites: any[];
|
|
24
26
|
private _favoritesApi;
|
|
25
27
|
get favoritesApi(): FavoritesApi;
|
|
@@ -30,7 +32,7 @@ export declare class NodeFavoriteDirective implements OnChanges {
|
|
|
30
32
|
/** Emitted when the favorite setting fails. */
|
|
31
33
|
error: EventEmitter<any>;
|
|
32
34
|
onClick(): void;
|
|
33
|
-
constructor(alfrescoApiService: AlfrescoApiService);
|
|
35
|
+
constructor(alfrescoApiService: AlfrescoApiService, notificationService: NotificationService);
|
|
34
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
35
37
|
toggleFavorite(): void;
|
|
36
38
|
markFavoritesNodes(selection: NodeEntry[]): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-content-services",
|
|
3
3
|
"description": "Alfresco ADF content services",
|
|
4
|
-
"version": "8.1.0-
|
|
4
|
+
"version": "8.1.0-13917759001",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"@angular/platform-browser": ">=14.1.3",
|
|
22
22
|
"@angular/platform-browser-dynamic": ">=14.1.3",
|
|
23
23
|
"@angular/router": ">=14.1.3",
|
|
24
|
-
"@alfresco/js-api": ">=9.1.0-
|
|
24
|
+
"@alfresco/js-api": ">=9.1.0-13917759001",
|
|
25
25
|
"@ngx-translate/core": ">=14.0.0",
|
|
26
|
-
"@alfresco/adf-core": ">=8.1.0-
|
|
26
|
+
"@alfresco/adf-core": ">=8.1.0-13917759001"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"content-services",
|