@alfresco/aca-shared 7.4.0-22995603499 → 7.4.0-22998710186

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.
@@ -11,7 +11,8 @@ import { OverlayModule } from '@angular/cdk/overlay';
11
11
  import * as i3 from '@angular/router';
12
12
  import { ActivationEnd, NavigationStart, NavigationEnd, Router } from '@angular/router';
13
13
  import { SetCurrentUrlAction, ResetSelectionAction, SetRepositoryInfoAction, SetUserProfileAction, getRuleContext, infoDrawerPreview, SetInfoDrawerStateAction, ToggleInfoDrawerAction, isInfoDrawerOpened, getAppSelection, getCurrentFolder, SetSelectedNodesAction, ViewNodeAction, CustomContextMenu, ContextMenu, isQuickShareEnabled } from '@alfresco/aca-shared/store';
14
- import { NodesApi, TrashcanApi, SharedlinksApi, DiscoveryApi, FavoritesApi, ContentApi, SitesApi, SearchApi, PeopleApi, VersionsApi, RepositoryInfo } from '@alfresco/js-api';
14
+ import { __decorate, __metadata } from 'tslib';
15
+ import { LazyApi, NodesApi, TrashcanApi, SharedlinksApi, DiscoveryApi, FavoritesApi, ContentApi, SitesApi, SearchApi, PeopleApi, VersionsApi, RepositoryInfo } from '@alfresco/js-api';
15
16
  import * as i3$1 from '@alfresco/adf-extensions';
16
17
  import { sortByOrder, reduceEmptyMenus, mergeObjects, mergeArrays, ContentActionType, reduceSeparators, DynamicExtensionComponent, DynamicTabComponent } from '@alfresco/adf-extensions';
17
18
  import * as i2$1 from '@ngrx/store';
@@ -225,82 +226,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
225
226
  }]
226
227
  }] });
227
228
 
228
- /*!
229
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
230
- *
231
- * Alfresco Example Content Application
232
- *
233
- * This file is part of the Alfresco Example Content Application.
234
- * If the software was purchased under a paid Alfresco license, the terms of
235
- * the paid license agreement will prevail. Otherwise, the software is
236
- * provided under the following open source license terms:
237
- *
238
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
239
- * it under the terms of the GNU Lesser General Public License as published by
240
- * the Free Software Foundation, either version 3 of the License, or
241
- * (at your option) any later version.
242
- *
243
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
244
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
245
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
246
- * GNU Lesser General Public License for more details.
247
- *
248
- * You should have received a copy of the GNU Lesser General Public License
249
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
250
- */
251
229
  class ContentApiService {
252
230
  api;
253
231
  preferences;
254
- _nodesApi;
255
- get nodesApi() {
256
- this._nodesApi = this._nodesApi ?? new NodesApi(this.api.getInstance());
257
- return this._nodesApi;
258
- }
259
- _trashcanApi;
260
- get trashcanApi() {
261
- this._trashcanApi = this._trashcanApi ?? new TrashcanApi(this.api.getInstance());
262
- return this._trashcanApi;
263
- }
264
- _sharedLinksApi;
265
- get sharedLinksApi() {
266
- this._sharedLinksApi = this._sharedLinksApi ?? new SharedlinksApi(this.api.getInstance());
267
- return this._sharedLinksApi;
268
- }
269
- _discoveryApi;
270
- get discoveryApi() {
271
- this._discoveryApi = this._discoveryApi ?? new DiscoveryApi(this.api.getInstance());
272
- return this._discoveryApi;
273
- }
274
- _favoritesApi;
275
- get favoritesApi() {
276
- this._favoritesApi = this._favoritesApi ?? new FavoritesApi(this.api.getInstance());
277
- return this._favoritesApi;
278
- }
279
- _contentApi;
280
- get contentApi() {
281
- this._contentApi = this._contentApi ?? new ContentApi(this.api.getInstance());
282
- return this._contentApi;
283
- }
284
- _sitesApi;
285
- get sitesApi() {
286
- this._sitesApi = this._sitesApi ?? new SitesApi(this.api.getInstance());
287
- return this._sitesApi;
288
- }
289
- _searchApi;
290
- get searchApi() {
291
- this._searchApi = this._searchApi ?? new SearchApi(this.api.getInstance());
292
- return this._searchApi;
293
- }
294
- _peopleApi;
295
- get peopleApi() {
296
- this._peopleApi = this._peopleApi ?? new PeopleApi(this.api.getInstance());
297
- return this._peopleApi;
298
- }
299
- _versionsApi;
300
- get versionsApi() {
301
- this._versionsApi = this._versionsApi ?? new VersionsApi(this.api.getInstance());
302
- return this._versionsApi;
303
- }
232
+ nodesApi;
233
+ trashcanApi;
234
+ sharedLinksApi;
235
+ discoveryApi;
236
+ favoritesApi;
237
+ contentApi;
238
+ sitesApi;
239
+ searchApi;
240
+ peopleApi;
241
+ versionsApi;
304
242
  constructor(api, preferences) {
305
243
  this.api = api;
306
244
  this.preferences = preferences;
@@ -489,12 +427,52 @@ class ContentApiService {
489
427
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ContentApiService, deps: [{ token: i4.AlfrescoApiService }, { token: i1.UserPreferencesService }], target: i0.ɵɵFactoryTarget.Injectable });
490
428
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ContentApiService, providedIn: 'root' });
491
429
  }
430
+ __decorate([
431
+ LazyApi((self) => new NodesApi(self.api.getInstance())),
432
+ __metadata("design:type", NodesApi)
433
+ ], ContentApiService.prototype, "nodesApi", void 0);
434
+ __decorate([
435
+ LazyApi((self) => new TrashcanApi(self.api.getInstance())),
436
+ __metadata("design:type", TrashcanApi)
437
+ ], ContentApiService.prototype, "trashcanApi", void 0);
438
+ __decorate([
439
+ LazyApi((self) => new SharedlinksApi(self.api.getInstance())),
440
+ __metadata("design:type", SharedlinksApi)
441
+ ], ContentApiService.prototype, "sharedLinksApi", void 0);
442
+ __decorate([
443
+ LazyApi((self) => new DiscoveryApi(self.api.getInstance())),
444
+ __metadata("design:type", DiscoveryApi)
445
+ ], ContentApiService.prototype, "discoveryApi", void 0);
446
+ __decorate([
447
+ LazyApi((self) => new FavoritesApi(self.api.getInstance())),
448
+ __metadata("design:type", FavoritesApi)
449
+ ], ContentApiService.prototype, "favoritesApi", void 0);
450
+ __decorate([
451
+ LazyApi((self) => new ContentApi(self.api.getInstance())),
452
+ __metadata("design:type", ContentApi)
453
+ ], ContentApiService.prototype, "contentApi", void 0);
454
+ __decorate([
455
+ LazyApi((self) => new SitesApi(self.api.getInstance())),
456
+ __metadata("design:type", SitesApi)
457
+ ], ContentApiService.prototype, "sitesApi", void 0);
458
+ __decorate([
459
+ LazyApi((self) => new SearchApi(self.api.getInstance())),
460
+ __metadata("design:type", SearchApi)
461
+ ], ContentApiService.prototype, "searchApi", void 0);
462
+ __decorate([
463
+ LazyApi((self) => new PeopleApi(self.api.getInstance())),
464
+ __metadata("design:type", PeopleApi)
465
+ ], ContentApiService.prototype, "peopleApi", void 0);
466
+ __decorate([
467
+ LazyApi((self) => new VersionsApi(self.api.getInstance())),
468
+ __metadata("design:type", VersionsApi)
469
+ ], ContentApiService.prototype, "versionsApi", void 0);
492
470
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ContentApiService, decorators: [{
493
471
  type: Injectable,
494
472
  args: [{
495
473
  providedIn: 'root'
496
474
  }]
497
- }], ctorParameters: () => [{ type: i4.AlfrescoApiService }, { type: i1.UserPreferencesService }] });
475
+ }], ctorParameters: () => [{ type: i4.AlfrescoApiService }, { type: i1.UserPreferencesService }], propDecorators: { nodesApi: [], trashcanApi: [], sharedLinksApi: [], discoveryApi: [], favoritesApi: [], contentApi: [], sitesApi: [], searchApi: [], peopleApi: [], versionsApi: [] } });
498
476
 
499
477
  /*!
500
478
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -1145,35 +1123,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
1145
1123
  args: [{ providedIn: 'root' }]
1146
1124
  }] });
1147
1125
 
1148
- /*!
1149
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1150
- *
1151
- * Alfresco Example Content Application
1152
- *
1153
- * This file is part of the Alfresco Example Content Application.
1154
- * If the software was purchased under a paid Alfresco license, the terms of
1155
- * the paid license agreement will prevail. Otherwise, the software is
1156
- * provided under the following open source license terms:
1157
- *
1158
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
1159
- * it under the terms of the GNU Lesser General Public License as published by
1160
- * the Free Software Foundation, either version 3 of the License, or
1161
- * (at your option) any later version.
1162
- *
1163
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
1164
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
1165
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1166
- * GNU Lesser General Public License for more details.
1167
- *
1168
- * You should have received a copy of the GNU Lesser General Public License
1169
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
1170
- */
1171
1126
  class UserProfileService {
1172
1127
  api = inject(AlfrescoApiService);
1173
1128
  groupService = inject(GroupService);
1174
- get peopleApi() {
1175
- return new PeopleApi(this.api.getInstance());
1176
- }
1129
+ peopleApi;
1177
1130
  userProfile = new BehaviorSubject(null);
1178
1131
  userProfile$ = this.userProfile.asObservable();
1179
1132
  /**
@@ -1210,10 +1163,14 @@ class UserProfileService {
1210
1163
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserProfileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1211
1164
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserProfileService, providedIn: 'root' });
1212
1165
  }
1166
+ __decorate([
1167
+ LazyApi((self) => new PeopleApi(self.api.getInstance())),
1168
+ __metadata("design:type", PeopleApi)
1169
+ ], UserProfileService.prototype, "peopleApi", void 0);
1213
1170
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserProfileService, decorators: [{
1214
1171
  type: Injectable,
1215
1172
  args: [{ providedIn: 'root' }]
1216
- }] });
1173
+ }], propDecorators: { peopleApi: [] } });
1217
1174
 
1218
1175
  /*!
1219
1176
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.