@alfresco/aca-content 4.1.0 → 4.2.0-5542991658

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 (43) hide show
  1. package/assets/app.extensions.json +3 -3
  2. package/esm2020/lib/aca-content.module.mjs +2 -2
  3. package/esm2020/lib/aca-content.routes.mjs +27 -27
  4. package/esm2020/lib/extensions/core.extensions.module.mjs +2 -3
  5. package/esm2020/lib/services/node-template.service.mjs +1 -1
  6. package/esm2020/ms-office/aos-extension.module.mjs +7 -9
  7. package/esm2020/preview/alfresco-aca-content-preview.mjs +5 -0
  8. package/esm2020/preview/lib/components/preview.component.mjs +406 -0
  9. package/esm2020/preview/lib/preview.module.mjs +84 -0
  10. package/esm2020/preview/public-api.mjs +29 -0
  11. package/esm2020/viewer/alfresco-aca-content-viewer.mjs +5 -0
  12. package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +402 -0
  13. package/esm2020/viewer/lib/viewer.module.mjs +81 -0
  14. package/esm2020/viewer/public-api.mjs +29 -0
  15. package/fesm2015/alfresco-aca-content-ms-office.mjs +4 -5
  16. package/fesm2015/alfresco-aca-content-ms-office.mjs.map +1 -1
  17. package/fesm2015/alfresco-aca-content-preview.mjs +495 -0
  18. package/fesm2015/alfresco-aca-content-preview.mjs.map +1 -0
  19. package/fesm2015/alfresco-aca-content-viewer.mjs +491 -0
  20. package/fesm2015/alfresco-aca-content-viewer.mjs.map +1 -0
  21. package/fesm2015/alfresco-aca-content.mjs +28 -86
  22. package/fesm2015/alfresco-aca-content.mjs.map +1 -1
  23. package/fesm2020/alfresco-aca-content-ms-office.mjs +4 -5
  24. package/fesm2020/alfresco-aca-content-ms-office.mjs.map +1 -1
  25. package/fesm2020/alfresco-aca-content-preview.mjs +511 -0
  26. package/fesm2020/alfresco-aca-content-preview.mjs.map +1 -0
  27. package/fesm2020/alfresco-aca-content-viewer.mjs +504 -0
  28. package/fesm2020/alfresco-aca-content-viewer.mjs.map +1 -0
  29. package/fesm2020/alfresco-aca-content.mjs +28 -86
  30. package/fesm2020/alfresco-aca-content.mjs.map +1 -1
  31. package/lib/services/node-template.service.d.ts +1 -1
  32. package/ms-office/aos-extension.module.d.ts +1 -2
  33. package/package.json +21 -5
  34. package/preview/index.d.ts +5 -0
  35. package/preview/lib/components/preview.component.d.ts +115 -0
  36. package/preview/lib/preview.module.d.ts +13 -0
  37. package/preview/public-api.d.ts +25 -0
  38. package/viewer/index.d.ts +5 -0
  39. package/viewer/lib/components/viewer/viewer.component.d.ts +111 -0
  40. package/viewer/lib/viewer.module.d.ts +13 -0
  41. package/viewer/public-api.d.ts +25 -0
  42. package/esm2020/lib/services/content-service-extension.service.mjs +0 -63
  43. package/lib/services/content-service-extension.service.d.ts +0 -11
@@ -0,0 +1,491 @@
1
+ import { __awaiter } from 'tslib';
2
+ import { isInfoDrawerOpened, getAppSelection, SetCurrentNodeVersionAction, ViewerActionTypes, ReloadDocumentListAction, SetSelectedNodesAction, ViewNodeAction } from '@alfresco/aca-shared/store';
3
+ import { VersionsApi } from '@alfresco/js-api';
4
+ import * as i0 from '@angular/core';
5
+ import { Component, ViewEncapsulation, HostListener, NgModule } from '@angular/core';
6
+ import * as i1 from '@angular/router';
7
+ import { PRIMARY_OUTLET, RouterModule } from '@angular/router';
8
+ import * as i5 from '@alfresco/adf-core';
9
+ import { ObjectUtils, CoreModule } from '@alfresco/adf-core';
10
+ import { Subject, from } from 'rxjs';
11
+ import { takeUntil, debounceTime } from 'rxjs/operators';
12
+ import * as i4 from '@ngrx/effects';
13
+ import { ofType } from '@ngrx/effects';
14
+ import * as i2 from '@ngrx/store';
15
+ import * as i3 from '@alfresco/aca-shared';
16
+ import { SharedDirectivesModule, InfoDrawerComponent, SharedToolbarModule } from '@alfresco/aca-shared';
17
+ import * as i6 from '@alfresco/adf-content-services';
18
+ import { ContentModule, ContentDirectiveModule } from '@alfresco/adf-content-services';
19
+ import * as i7 from '@angular/common';
20
+ import { CommonModule } from '@angular/common';
21
+ import * as i3$1 from '@alfresco/adf-extensions';
22
+ import { ExtensionsModule } from '@alfresco/adf-extensions';
23
+
24
+ class AcaViewerComponent {
25
+ constructor(router, route, store, extensions, contentApi, actions$, preferences, apiService, nodesApiService, uploadService, appHookService) {
26
+ this.router = router;
27
+ this.route = route;
28
+ this.store = store;
29
+ this.extensions = extensions;
30
+ this.contentApi = contentApi;
31
+ this.actions$ = actions$;
32
+ this.preferences = preferences;
33
+ this.apiService = apiService;
34
+ this.nodesApiService = nodesApiService;
35
+ this.uploadService = uploadService;
36
+ this.appHookService = appHookService;
37
+ this.onDestroy$ = new Subject();
38
+ this.folderId = null;
39
+ this.nodeId = null;
40
+ this.versionId = null;
41
+ this.showRightSide = false;
42
+ this.openWith = [];
43
+ this.toolbarActions = [];
44
+ this.navigateSource = null;
45
+ this.navigateMultiple = true;
46
+ this.routesSkipNavigation = ['shared', 'recent-files', 'favorites'];
47
+ this.navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];
48
+ this.recentFileFilters = [
49
+ 'TYPE:"content"',
50
+ '-PNAME:"0/wiki"',
51
+ '-TYPE:"app:filelink"',
52
+ '-TYPE:"fm:post"',
53
+ '-TYPE:"cm:thumbnail"',
54
+ '-TYPE:"cm:failedThumbnail"',
55
+ '-TYPE:"cm:rating"',
56
+ '-TYPE:"dl:dataList"',
57
+ '-TYPE:"dl:todoList"',
58
+ '-TYPE:"dl:issue"',
59
+ '-TYPE:"dl:contact"',
60
+ '-TYPE:"dl:eventAgenda"',
61
+ '-TYPE:"dl:event"',
62
+ '-TYPE:"dl:task"',
63
+ '-TYPE:"dl:simpletask"',
64
+ '-TYPE:"dl:meetingAgenda"',
65
+ '-TYPE:"dl:location"',
66
+ '-TYPE:"fm:topic"',
67
+ '-TYPE:"fm:post"',
68
+ '-TYPE:"ia:calendarEvent"',
69
+ '-TYPE:"lnk:link"'
70
+ ];
71
+ this.containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];
72
+ }
73
+ get versionsApi() {
74
+ var _a;
75
+ this._versionsApi = (_a = this._versionsApi) !== null && _a !== void 0 ? _a : new VersionsApi(this.apiService.getInstance());
76
+ return this._versionsApi;
77
+ }
78
+ ngOnInit() {
79
+ this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened);
80
+ from(this.infoDrawerOpened$)
81
+ .pipe(takeUntil(this.onDestroy$))
82
+ .subscribe((val) => {
83
+ this.showRightSide = val;
84
+ });
85
+ this.store
86
+ .select(getAppSelection)
87
+ .pipe(takeUntil(this.onDestroy$))
88
+ .subscribe((selection) => {
89
+ this.selection = selection;
90
+ });
91
+ this.extensions
92
+ .getViewerToolbarActions()
93
+ .pipe(takeUntil(this.onDestroy$))
94
+ .subscribe((actions) => {
95
+ this.toolbarActions = actions;
96
+ });
97
+ this.extensions
98
+ .getOpenWithActions()
99
+ .pipe(takeUntil(this.onDestroy$))
100
+ .subscribe((actions) => {
101
+ this.openWith = actions;
102
+ });
103
+ this.route.params.subscribe((params) => {
104
+ this.folderId = params.folderId;
105
+ const { nodeId } = params;
106
+ this.versionId = params.versionId;
107
+ if (this.versionId) {
108
+ this.versionsApi.getVersion(nodeId, this.versionId).then((version) => {
109
+ if (version) {
110
+ this.store.dispatch(new SetCurrentNodeVersionAction(version));
111
+ }
112
+ });
113
+ }
114
+ if (nodeId) {
115
+ this.displayNode(nodeId);
116
+ }
117
+ });
118
+ this.route.queryParams.subscribe((params) => {
119
+ this.navigationPath = params.path || params.location;
120
+ });
121
+ if (this.route.snapshot.data && this.route.snapshot.data.navigateSource) {
122
+ const source = this.route.snapshot.data.navigateSource.toLowerCase();
123
+ if (this.navigationSources.includes(source)) {
124
+ this.navigateSource = this.route.snapshot.data.navigateSource;
125
+ }
126
+ }
127
+ this.actions$.pipe(ofType(ViewerActionTypes.ClosePreview), takeUntil(this.onDestroy$)).subscribe(() => {
128
+ this.store.dispatch(new SetCurrentNodeVersionAction(null));
129
+ this.navigateToFileLocation();
130
+ });
131
+ this.actions$
132
+ .pipe(ofType(ViewerActionTypes.RefreshPreview), takeUntil(this.onDestroy$))
133
+ .subscribe((action) => {
134
+ var _a, _b;
135
+ this.displayNode((_b = (_a = action === null || action === void 0 ? void 0 : action.payload) === null || _a === void 0 ? void 0 : _a.entry) === null || _b === void 0 ? void 0 : _b.id);
136
+ });
137
+ this.appHookService.nodesDeleted.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.navigateToFileLocation());
138
+ this.uploadService.fileUploadDeleted.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.navigateToFileLocation());
139
+ this.uploadService.fileUploadComplete.pipe(debounceTime(300), takeUntil(this.onDestroy$)).subscribe((file) => {
140
+ this.nodesApiService.nodeUpdated.next(file.data.entry);
141
+ this.displayNode(file.data.entry.id);
142
+ });
143
+ this.previewLocation = this.router.url.substring(0, this.router.url.indexOf('/', 1)).replace(/\//g, '');
144
+ }
145
+ onViewerVisibilityChanged() {
146
+ this.store.dispatch(new ReloadDocumentListAction());
147
+ this.navigateToFileLocation();
148
+ }
149
+ ngOnDestroy() {
150
+ this.store.dispatch(new SetCurrentNodeVersionAction(null));
151
+ this.onDestroy$.next(true);
152
+ this.onDestroy$.complete();
153
+ }
154
+ trackByActionId(_, obj) {
155
+ return obj.id;
156
+ }
157
+ displayNode(nodeId) {
158
+ var _a, _b, _c, _d;
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ if (nodeId) {
161
+ try {
162
+ this.node = yield this.contentApi.getNodeInfo(nodeId).toPromise();
163
+ this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));
164
+ this.navigateMultiple = this.extensions.canShowViewerNavigation({ entry: this.node });
165
+ if (!this.navigateMultiple) {
166
+ this.nodeId = this.node.id;
167
+ this.fileName = this.node.name + ((_b = (_a = this.node) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b['cm:versionLabel']);
168
+ return;
169
+ }
170
+ if (this.node && this.node.isFile) {
171
+ const nearest = yield this.getNearestNodes(this.node.id, this.node.parentId);
172
+ this.nodeId = this.node.id;
173
+ this.previousNodeId = nearest.left;
174
+ this.nextNodeId = nearest.right;
175
+ this.fileName = this.node.name + ((_d = (_c = this.node) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d['cm:versionLabel']);
176
+ return;
177
+ }
178
+ }
179
+ catch (error) {
180
+ const statusCode = JSON.parse(error.message).error.statusCode;
181
+ if (statusCode !== 401) {
182
+ this.router.navigate([this.previewLocation, { outlets: { viewer: null } }]).then(() => {
183
+ this.router.navigate([this.previewLocation, nodeId]);
184
+ });
185
+ }
186
+ }
187
+ }
188
+ });
189
+ }
190
+ onNavigateBefore(event) {
191
+ if (event.type !== 'click' && this.shouldNavigate(event.target)) {
192
+ return;
193
+ }
194
+ const location = this.getFileLocation();
195
+ this.store.dispatch(new ViewNodeAction(this.previousNodeId, { location }));
196
+ }
197
+ onNavigateNext(event) {
198
+ if (event.type !== 'click' && this.shouldNavigate(event.target)) {
199
+ return;
200
+ }
201
+ const location = this.getFileLocation();
202
+ this.store.dispatch(new ViewNodeAction(this.nextNodeId, { location }));
203
+ }
204
+ /**
205
+ * Retrieves nearest node information for the given node and folder.
206
+ *
207
+ * @param nodeId Unique identifier of the document node
208
+ * @param folderId Unique identifier of the containing folder node.
209
+ */
210
+ getNearestNodes(nodeId, folderId) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const empty = {
213
+ left: null,
214
+ right: null
215
+ };
216
+ if (nodeId && folderId) {
217
+ try {
218
+ const ids = yield this.getFileIds(this.navigateSource, folderId);
219
+ const idx = ids.indexOf(nodeId);
220
+ if (idx >= 0) {
221
+ return {
222
+ left: ids[idx - 1] || null,
223
+ right: ids[idx + 1] || null
224
+ };
225
+ }
226
+ else {
227
+ return empty;
228
+ }
229
+ }
230
+ catch (_a) {
231
+ return empty;
232
+ }
233
+ }
234
+ else {
235
+ return empty;
236
+ }
237
+ });
238
+ }
239
+ /**
240
+ * Retrieves a list of node identifiers for the folder and data source.
241
+ *
242
+ * @param source Data source name. Allowed values are: personal-files, libraries, favorites, shared, recent-files.
243
+ * @param folderId Containing folder node identifier for 'personal-files' and 'libraries' sources.
244
+ */
245
+ getFileIds(source, folderId) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ if ((source === 'personal-files' || source === 'libraries') && folderId) {
248
+ const sortKey = this.preferences.get('personal-files.sorting.key') || 'modifiedAt';
249
+ const sortDirection = this.preferences.get('personal-files.sorting.direction') || 'desc';
250
+ const nodes = yield this.contentApi
251
+ .getNodeChildren(folderId, {
252
+ // orderBy: `${sortKey} ${sortDirection}`,
253
+ fields: ['id', this.getRootField(sortKey)],
254
+ where: '(isFile=true)'
255
+ })
256
+ .toPromise();
257
+ const entries = nodes.list.entries.map((obj) => obj.entry);
258
+ this.sort(entries, sortKey, sortDirection);
259
+ return entries.map((obj) => obj.id);
260
+ }
261
+ if (source === 'favorites') {
262
+ const nodes = yield this.contentApi
263
+ .getFavorites('-me-', {
264
+ where: '(EXISTS(target/file))',
265
+ fields: ['target']
266
+ })
267
+ .toPromise();
268
+ const sortKey = this.preferences.get('favorites.sorting.key') || 'modifiedAt';
269
+ const sortDirection = this.preferences.get('favorites.sorting.direction') || 'desc';
270
+ const files = nodes.list.entries.map((obj) => obj.entry.target.file);
271
+ this.sort(files, sortKey, sortDirection);
272
+ return files.map((f) => f.id);
273
+ }
274
+ if (source === 'shared') {
275
+ const sortingKey = this.preferences.get('shared.sorting.key') || 'modifiedAt';
276
+ const sortingDirection = this.preferences.get('shared.sorting.direction') || 'desc';
277
+ const nodes = yield this.contentApi
278
+ .findSharedLinks({
279
+ fields: ['nodeId', this.getRootField(sortingKey)]
280
+ })
281
+ .toPromise();
282
+ const entries = nodes.list.entries.map((obj) => obj.entry);
283
+ this.sort(entries, sortingKey, sortingDirection);
284
+ return entries.map((obj) => obj.nodeId);
285
+ }
286
+ if (source === 'recent-files') {
287
+ const person = yield this.contentApi.getPerson('-me-').toPromise();
288
+ const username = person.entry.id;
289
+ const sortingKey = this.preferences.get('recent-files.sorting.key') || 'modifiedAt';
290
+ const sortingDirection = this.preferences.get('recent-files.sorting.direction') || 'desc';
291
+ const query = {
292
+ query: {
293
+ query: '*',
294
+ language: 'afts'
295
+ },
296
+ filterQueries: [
297
+ { query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },
298
+ { query: `cm:modifier:${username} OR cm:creator:${username}` },
299
+ {
300
+ query: this.recentFileFilters.join(' AND ')
301
+ }
302
+ ],
303
+ fields: ['id', this.getRootField(sortingKey)],
304
+ include: ['path', 'properties', 'allowableOperations'],
305
+ sort: [
306
+ {
307
+ type: 'FIELD',
308
+ field: 'cm:modified',
309
+ ascending: false
310
+ }
311
+ ]
312
+ };
313
+ const nodes = yield this.contentApi.search(query).toPromise();
314
+ const entries = nodes.list.entries.map((obj) => obj.entry);
315
+ this.sort(entries, sortingKey, sortingDirection);
316
+ return entries.map((obj) => obj.id);
317
+ }
318
+ return [];
319
+ });
320
+ }
321
+ /**
322
+ * Get the root field name from the property path.
323
+ * Example: 'property1.some.child.property' => 'property1'
324
+ *
325
+ * @param path Property path
326
+ */
327
+ getRootField(path) {
328
+ if (path) {
329
+ return path.split('.')[0];
330
+ }
331
+ return path;
332
+ }
333
+ handleKeyboardEvent(event) {
334
+ const key = event.keyCode;
335
+ const rightArrow = 39;
336
+ const leftArrow = 37;
337
+ if (key === rightArrow || key === leftArrow) {
338
+ event.preventDefault();
339
+ event.stopImmediatePropagation();
340
+ }
341
+ }
342
+ sort(items, key, direction) {
343
+ const options = {};
344
+ if (key.includes('sizeInBytes') || key === 'name') {
345
+ options.numeric = true;
346
+ }
347
+ items.sort((a, b) => {
348
+ let left = ObjectUtils.getValue(a, key);
349
+ if (left) {
350
+ left = left instanceof Date ? left.valueOf().toString() : left.toString();
351
+ }
352
+ else {
353
+ left = '';
354
+ }
355
+ let right = ObjectUtils.getValue(b, key);
356
+ if (right) {
357
+ right = right instanceof Date ? right.valueOf().toString() : right.toString();
358
+ }
359
+ else {
360
+ right = '';
361
+ }
362
+ return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);
363
+ });
364
+ }
365
+ navigateToFileLocation() {
366
+ const location = this.getFileLocation();
367
+ this.router.navigateByUrl(location);
368
+ }
369
+ getFileLocation() {
370
+ return this.navigationPath || this.router.parseUrl(this.router.url).root.children[PRIMARY_OUTLET].toString();
371
+ }
372
+ shouldNavigate(element) {
373
+ let currentElement = element.parentElement;
374
+ while (currentElement && !this.isChild(currentElement.classList)) {
375
+ currentElement = currentElement.parentElement;
376
+ }
377
+ return !!currentElement;
378
+ }
379
+ isChild(list) {
380
+ return Array.from(list).some((className) => this.containersSkipNavigation.includes(className));
381
+ }
382
+ }
383
+ AcaViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.Store }, { token: i3.AppExtensionService }, { token: i3.ContentApiService }, { token: i4.Actions }, { token: i5.UserPreferencesService }, { token: i5.AlfrescoApiService }, { token: i6.NodesApiService }, { token: i6.UploadService }, { token: i3.AppHookService }], target: i0.ɵɵFactoryTarget.Component });
384
+ AcaViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: AcaViewerComponent, selector: "aca-viewer", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-viewer" }, ngImport: i0, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"'viewer.maxRetries' | adfAppConfig\"\n [nodeId]=\"nodeId\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\"></aca-info-drawer>\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\"></app-toolbar-menu-item>\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <ng-container *ngFor=\"let action of toolbarActions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"action\"></aca-toolbar-action>\n </ng-container>\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-toolbar .mat-toolbar>button:last-child{display:none}.app-viewer .adf-alfresco-viewer.right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "component", type: i5.ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: i5.ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "component", type: i6.AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "sidebarRightTemplate", "sidebarLeftTemplate"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange"] }, { kind: "component", type: i3.InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: i3.ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "component", type: i3.ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AppConfigPipe, name: "adfAppConfig" }], encapsulation: i0.ViewEncapsulation.None });
385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerComponent, decorators: [{
386
+ type: Component,
387
+ args: [{ selector: 'aca-viewer', encapsulation: ViewEncapsulation.None, host: { class: 'app-viewer' }, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"'viewer.maxRetries' | adfAppConfig\"\n [nodeId]=\"nodeId\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\"></aca-info-drawer>\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\"></app-toolbar-menu-item>\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <ng-container *ngFor=\"let action of toolbarActions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"action\"></aca-toolbar-action>\n </ng-container>\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-toolbar .mat-toolbar>button:last-child{display:none}.app-viewer .adf-alfresco-viewer.right_side--hide .adf-viewer__sidebar__right{width:0}\n"] }]
388
+ }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.Store }, { type: i3.AppExtensionService }, { type: i3.ContentApiService }, { type: i4.Actions }, { type: i5.UserPreferencesService }, { type: i5.AlfrescoApiService }, { type: i6.NodesApiService }, { type: i6.UploadService }, { type: i3.AppHookService }]; }, propDecorators: { handleKeyboardEvent: [{
389
+ type: HostListener,
390
+ args: ['document:keydown', ['$event']]
391
+ }] } });
392
+
393
+ /*!
394
+ * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
395
+ *
396
+ * Alfresco Example Content Application
397
+ *
398
+ * This file is part of the Alfresco Example Content Application.
399
+ * If the software was purchased under a paid Alfresco license, the terms of
400
+ * the paid license agreement will prevail. Otherwise, the software is
401
+ * provided under the following open source license terms:
402
+ *
403
+ * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
404
+ * it under the terms of the GNU Lesser General Public License as published by
405
+ * the Free Software Foundation, either version 3 of the License, or
406
+ * (at your option) any later version.
407
+ *
408
+ * The Alfresco Example Content Application is distributed in the hope that it will be useful,
409
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
410
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
411
+ * GNU Lesser General Public License for more details.
412
+ *
413
+ * You should have received a copy of the GNU Lesser General Public License
414
+ * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
415
+ */
416
+ const routes = [
417
+ {
418
+ path: '',
419
+ data: {
420
+ title: 'APP.PREVIEW.TITLE',
421
+ navigateMultiple: true
422
+ },
423
+ component: AcaViewerComponent
424
+ }
425
+ ];
426
+ class AcaViewerModule {
427
+ }
428
+ AcaViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
429
+ AcaViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, declarations: [AcaViewerComponent], imports: [CommonModule, i5.CoreModule, i1.RouterModule, i3$1.ExtensionsModule, ContentModule,
430
+ ContentDirectiveModule,
431
+ SharedDirectivesModule,
432
+ InfoDrawerComponent,
433
+ SharedToolbarModule], exports: [AcaViewerComponent] });
434
+ AcaViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, imports: [CommonModule,
435
+ CoreModule.forChild(),
436
+ RouterModule.forChild(routes),
437
+ ExtensionsModule.forChild(),
438
+ ContentModule,
439
+ ContentDirectiveModule,
440
+ SharedDirectivesModule,
441
+ InfoDrawerComponent,
442
+ SharedToolbarModule] });
443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, decorators: [{
444
+ type: NgModule,
445
+ args: [{
446
+ imports: [
447
+ CommonModule,
448
+ CoreModule.forChild(),
449
+ RouterModule.forChild(routes),
450
+ ExtensionsModule.forChild(),
451
+ ContentModule,
452
+ ContentDirectiveModule,
453
+ SharedDirectivesModule,
454
+ InfoDrawerComponent,
455
+ SharedToolbarModule
456
+ ],
457
+ declarations: [AcaViewerComponent],
458
+ exports: [AcaViewerComponent]
459
+ }]
460
+ }] });
461
+
462
+ /*!
463
+ * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
464
+ *
465
+ * Alfresco Example Content Application
466
+ *
467
+ * This file is part of the Alfresco Example Content Application.
468
+ * If the software was purchased under a paid Alfresco license, the terms of
469
+ * the paid license agreement will prevail. Otherwise, the software is
470
+ * provided under the following open source license terms:
471
+ *
472
+ * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
473
+ * it under the terms of the GNU Lesser General Public License as published by
474
+ * the Free Software Foundation, either version 3 of the License, or
475
+ * (at your option) any later version.
476
+ *
477
+ * The Alfresco Example Content Application is distributed in the hope that it will be useful,
478
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
479
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
480
+ * GNU Lesser General Public License for more details.
481
+ *
482
+ * You should have received a copy of the GNU Lesser General Public License
483
+ * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
484
+ */
485
+
486
+ /**
487
+ * Generated bundle index. Do not edit.
488
+ */
489
+
490
+ export { AcaViewerComponent, AcaViewerModule };
491
+ //# sourceMappingURL=alfresco-aca-content-viewer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alfresco-aca-content-viewer.mjs","sources":["../../../../projects/aca-content/viewer/src/lib/components/viewer/viewer.component.ts","../../../../projects/aca-content/viewer/src/lib/components/viewer/viewer.component.html","../../../../projects/aca-content/viewer/src/lib/viewer.module.ts","../../../../projects/aca-content/viewer/src/public-api.ts","../../../../projects/aca-content/viewer/src/alfresco-aca-content-viewer.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { AppExtensionService, AppHookService, ContentApiService } from '@alfresco/aca-shared';\nimport {\n AppStore,\n ClosePreviewAction,\n getAppSelection,\n isInfoDrawerOpened,\n RefreshPreviewAction,\n ReloadDocumentListAction,\n SetCurrentNodeVersionAction,\n SetSelectedNodesAction,\n ViewerActionTypes,\n ViewNodeAction\n} from '@alfresco/aca-shared/store';\nimport { ContentActionRef, SelectionState } from '@alfresco/adf-extensions';\nimport { MinimalNodeEntryEntity, SearchRequest, VersionEntry, VersionsApi } from '@alfresco/js-api';\nimport { Component, HostListener, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute, PRIMARY_OUTLET, Router } from '@angular/router';\nimport { AlfrescoApiService, ObjectUtils, UserPreferencesService } from '@alfresco/adf-core';\nimport { Store } from '@ngrx/store';\nimport { from, Observable, Subject } from 'rxjs';\nimport { debounceTime, takeUntil } from 'rxjs/operators';\nimport { Actions, ofType } from '@ngrx/effects';\nimport { NodesApiService, UploadService } from '@alfresco/adf-content-services';\n\n@Component({\n selector: 'aca-viewer',\n templateUrl: './viewer.component.html',\n styleUrls: ['./viewer.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-viewer' }\n})\nexport class AcaViewerComponent implements OnInit, OnDestroy {\n private _versionsApi: VersionsApi;\n get versionsApi(): VersionsApi {\n this._versionsApi = this._versionsApi ?? new VersionsApi(this.apiService.getInstance());\n return this._versionsApi;\n }\n\n onDestroy$ = new Subject<boolean>();\n\n fileName: string;\n folderId: string = null;\n nodeId: string = null;\n versionId: string = null;\n node: MinimalNodeEntryEntity;\n selection: SelectionState;\n infoDrawerOpened$: Observable<boolean>;\n\n showRightSide = false;\n openWith: ContentActionRef[] = [];\n toolbarActions: ContentActionRef[] = [];\n\n navigateSource: string = null;\n previousNodeId: string;\n nextNodeId: string;\n navigateMultiple = true;\n routesSkipNavigation = ['shared', 'recent-files', 'favorites'];\n navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];\n recentFileFilters = [\n 'TYPE:\"content\"',\n '-PNAME:\"0/wiki\"',\n '-TYPE:\"app:filelink\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"cm:thumbnail\"',\n '-TYPE:\"cm:failedThumbnail\"',\n '-TYPE:\"cm:rating\"',\n '-TYPE:\"dl:dataList\"',\n '-TYPE:\"dl:todoList\"',\n '-TYPE:\"dl:issue\"',\n '-TYPE:\"dl:contact\"',\n '-TYPE:\"dl:eventAgenda\"',\n '-TYPE:\"dl:event\"',\n '-TYPE:\"dl:task\"',\n '-TYPE:\"dl:simpletask\"',\n '-TYPE:\"dl:meetingAgenda\"',\n '-TYPE:\"dl:location\"',\n '-TYPE:\"fm:topic\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"ia:calendarEvent\"',\n '-TYPE:\"lnk:link\"'\n ];\n\n private navigationPath: string;\n private previewLocation: string;\n private containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];\n\n constructor(\n private router: Router,\n private route: ActivatedRoute,\n private store: Store<AppStore>,\n private extensions: AppExtensionService,\n private contentApi: ContentApiService,\n private actions$: Actions,\n private preferences: UserPreferencesService,\n private apiService: AlfrescoApiService,\n private nodesApiService: NodesApiService,\n private uploadService: UploadService,\n private appHookService: AppHookService\n ) {}\n\n ngOnInit() {\n this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened);\n\n from(this.infoDrawerOpened$)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((val) => {\n this.showRightSide = val;\n });\n\n this.store\n .select(getAppSelection)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((selection) => {\n this.selection = selection;\n });\n\n this.extensions\n .getViewerToolbarActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.toolbarActions = actions;\n });\n\n this.extensions\n .getOpenWithActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.openWith = actions;\n });\n\n this.route.params.subscribe((params) => {\n this.folderId = params.folderId;\n const { nodeId } = params;\n this.versionId = params.versionId;\n if (this.versionId) {\n this.versionsApi.getVersion(nodeId, this.versionId).then((version: VersionEntry) => {\n if (version) {\n this.store.dispatch(new SetCurrentNodeVersionAction(version));\n }\n });\n }\n if (nodeId) {\n this.displayNode(nodeId);\n }\n });\n\n this.route.queryParams.subscribe((params) => {\n this.navigationPath = params.path || params.location;\n });\n\n if (this.route.snapshot.data && this.route.snapshot.data.navigateSource) {\n const source = this.route.snapshot.data.navigateSource.toLowerCase();\n if (this.navigationSources.includes(source)) {\n this.navigateSource = this.route.snapshot.data.navigateSource;\n }\n }\n\n this.actions$.pipe(ofType<ClosePreviewAction>(ViewerActionTypes.ClosePreview), takeUntil(this.onDestroy$)).subscribe(() => {\n this.store.dispatch(new SetCurrentNodeVersionAction(null));\n this.navigateToFileLocation();\n });\n\n this.actions$\n .pipe(ofType<RefreshPreviewAction>(ViewerActionTypes.RefreshPreview), takeUntil(this.onDestroy$))\n .subscribe((action: RefreshPreviewAction) => {\n this.displayNode(action?.payload?.entry?.id);\n });\n\n this.appHookService.nodesDeleted.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.navigateToFileLocation());\n\n this.uploadService.fileUploadDeleted.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.navigateToFileLocation());\n\n this.uploadService.fileUploadComplete.pipe(debounceTime(300), takeUntil(this.onDestroy$)).subscribe((file) => {\n this.nodesApiService.nodeUpdated.next(file.data.entry);\n this.displayNode(file.data.entry.id);\n });\n\n this.previewLocation = this.router.url.substring(0, this.router.url.indexOf('/', 1)).replace(/\\//g, '');\n }\n\n onViewerVisibilityChanged() {\n this.store.dispatch(new ReloadDocumentListAction());\n this.navigateToFileLocation();\n }\n\n ngOnDestroy() {\n this.store.dispatch(new SetCurrentNodeVersionAction(null));\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n }\n\n trackByActionId(_: number, obj: ContentActionRef): string {\n return obj.id;\n }\n\n async displayNode(nodeId: string) {\n if (nodeId) {\n try {\n this.node = await this.contentApi.getNodeInfo(nodeId).toPromise();\n this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));\n this.navigateMultiple = this.extensions.canShowViewerNavigation({ entry: this.node });\n if (!this.navigateMultiple) {\n this.nodeId = this.node.id;\n this.fileName = this.node.name + this.node?.properties?.['cm:versionLabel'];\n return;\n }\n\n if (this.node && this.node.isFile) {\n const nearest = await this.getNearestNodes(this.node.id, this.node.parentId);\n this.nodeId = this.node.id;\n this.previousNodeId = nearest.left;\n this.nextNodeId = nearest.right;\n this.fileName = this.node.name + this.node?.properties?.['cm:versionLabel'];\n return;\n }\n } catch (error) {\n const statusCode = JSON.parse(error.message).error.statusCode;\n\n if (statusCode !== 401) {\n this.router.navigate([this.previewLocation, { outlets: { viewer: null } }]).then(() => {\n this.router.navigate([this.previewLocation, nodeId]);\n });\n }\n }\n }\n }\n\n onNavigateBefore(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n const location = this.getFileLocation();\n this.store.dispatch(new ViewNodeAction(this.previousNodeId, { location }));\n }\n\n onNavigateNext(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n const location = this.getFileLocation();\n this.store.dispatch(new ViewNodeAction(this.nextNodeId, { location }));\n }\n\n /**\n * Retrieves nearest node information for the given node and folder.\n *\n * @param nodeId Unique identifier of the document node\n * @param folderId Unique identifier of the containing folder node.\n */\n async getNearestNodes(nodeId: string, folderId: string): Promise<{ left: string; right: string }> {\n const empty = {\n left: null,\n right: null\n };\n\n if (nodeId && folderId) {\n try {\n const ids = await this.getFileIds(this.navigateSource, folderId);\n const idx = ids.indexOf(nodeId);\n\n if (idx >= 0) {\n return {\n left: ids[idx - 1] || null,\n right: ids[idx + 1] || null\n };\n } else {\n return empty;\n }\n } catch {\n return empty;\n }\n } else {\n return empty;\n }\n }\n\n /**\n * Retrieves a list of node identifiers for the folder and data source.\n *\n * @param source Data source name. Allowed values are: personal-files, libraries, favorites, shared, recent-files.\n * @param folderId Containing folder node identifier for 'personal-files' and 'libraries' sources.\n */\n async getFileIds(source: string, folderId?: string): Promise<string[]> {\n if ((source === 'personal-files' || source === 'libraries') && folderId) {\n const sortKey = this.preferences.get('personal-files.sorting.key') || 'modifiedAt';\n const sortDirection = this.preferences.get('personal-files.sorting.direction') || 'desc';\n const nodes = await this.contentApi\n .getNodeChildren(folderId, {\n // orderBy: `${sortKey} ${sortDirection}`,\n fields: ['id', this.getRootField(sortKey)],\n where: '(isFile=true)'\n })\n .toPromise();\n\n const entries = nodes.list.entries.map((obj) => obj.entry);\n this.sort(entries, sortKey, sortDirection);\n\n return entries.map((obj) => obj.id);\n }\n\n if (source === 'favorites') {\n const nodes = await this.contentApi\n .getFavorites('-me-', {\n where: '(EXISTS(target/file))',\n fields: ['target']\n })\n .toPromise();\n\n const sortKey = this.preferences.get('favorites.sorting.key') || 'modifiedAt';\n const sortDirection = this.preferences.get('favorites.sorting.direction') || 'desc';\n const files = nodes.list.entries.map((obj) => obj.entry.target.file);\n this.sort(files, sortKey, sortDirection);\n\n return files.map((f) => f.id);\n }\n\n if (source === 'shared') {\n const sortingKey = this.preferences.get('shared.sorting.key') || 'modifiedAt';\n const sortingDirection = this.preferences.get('shared.sorting.direction') || 'desc';\n\n const nodes = await this.contentApi\n .findSharedLinks({\n fields: ['nodeId', this.getRootField(sortingKey)]\n })\n .toPromise();\n\n const entries = nodes.list.entries.map((obj) => obj.entry);\n this.sort(entries, sortingKey, sortingDirection);\n\n return entries.map((obj) => obj.nodeId);\n }\n\n if (source === 'recent-files') {\n const person = await this.contentApi.getPerson('-me-').toPromise();\n const username = person.entry.id;\n const sortingKey = this.preferences.get('recent-files.sorting.key') || 'modifiedAt';\n const sortingDirection = this.preferences.get('recent-files.sorting.direction') || 'desc';\n\n const query: SearchRequest = {\n query: {\n query: '*',\n language: 'afts'\n },\n filterQueries: [\n { query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },\n { query: `cm:modifier:${username} OR cm:creator:${username}` },\n {\n query: this.recentFileFilters.join(' AND ')\n }\n ],\n fields: ['id', this.getRootField(sortingKey)],\n include: ['path', 'properties', 'allowableOperations'],\n sort: [\n {\n type: 'FIELD',\n field: 'cm:modified',\n ascending: false\n }\n ]\n };\n const nodes = await this.contentApi.search(query).toPromise();\n\n const entries = nodes.list.entries.map((obj) => obj.entry);\n this.sort(entries, sortingKey, sortingDirection);\n\n return entries.map((obj) => obj.id);\n }\n\n return [];\n }\n\n /**\n * Get the root field name from the property path.\n * Example: 'property1.some.child.property' => 'property1'\n *\n * @param path Property path\n */\n getRootField(path: string) {\n if (path) {\n return path.split('.')[0];\n }\n return path;\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyboardEvent(event: KeyboardEvent) {\n const key = event.keyCode;\n const rightArrow = 39;\n const leftArrow = 37;\n\n if (key === rightArrow || key === leftArrow) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n\n private sort(items: any[], key: string, direction: string) {\n const options: Intl.CollatorOptions = {};\n\n if (key.includes('sizeInBytes') || key === 'name') {\n options.numeric = true;\n }\n\n items.sort((a: any, b: any) => {\n let left = ObjectUtils.getValue(a, key);\n if (left) {\n left = left instanceof Date ? left.valueOf().toString() : left.toString();\n } else {\n left = '';\n }\n\n let right = ObjectUtils.getValue(b, key);\n if (right) {\n right = right instanceof Date ? right.valueOf().toString() : right.toString();\n } else {\n right = '';\n }\n\n return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);\n });\n }\n\n private navigateToFileLocation() {\n const location = this.getFileLocation();\n this.router.navigateByUrl(location);\n }\n\n private getFileLocation(): string {\n return this.navigationPath || this.router.parseUrl(this.router.url).root.children[PRIMARY_OUTLET].toString();\n }\n\n private shouldNavigate(element: HTMLElement): boolean {\n let currentElement = element.parentElement;\n\n while (currentElement && !this.isChild(currentElement.classList)) {\n currentElement = currentElement.parentElement;\n }\n\n return !!currentElement;\n }\n\n private isChild(list: DOMTokenList): boolean {\n return Array.from(list).some((className: string) => this.containersSkipNavigation.includes(className));\n }\n}\n","<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"'viewer.maxRetries' | adfAppConfig\"\n [nodeId]=\"nodeId\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\"></aca-info-drawer>\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\"></app-toolbar-menu-item>\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <ng-container *ngFor=\"let action of toolbarActions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"action\"></aca-toolbar-action>\n </ng-container>\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CoreModule } from '@alfresco/adf-core';\nimport { ContentDirectiveModule, ContentModule } from '@alfresco/adf-content-services';\nimport { SharedDirectivesModule, InfoDrawerComponent, SharedToolbarModule } from '@alfresco/aca-shared';\nimport { ExtensionsModule } from '@alfresco/adf-extensions';\nimport { AcaViewerComponent } from './components/viewer/viewer.component';\nimport { RouterModule, Routes } from '@angular/router';\n\nconst routes: Routes = [\n {\n path: '',\n data: {\n title: 'APP.PREVIEW.TITLE',\n navigateMultiple: true\n },\n component: AcaViewerComponent\n }\n];\n\n@NgModule({\n imports: [\n CommonModule,\n CoreModule.forChild(),\n RouterModule.forChild(routes),\n ExtensionsModule.forChild(),\n ContentModule,\n ContentDirectiveModule,\n SharedDirectivesModule,\n InfoDrawerComponent,\n SharedToolbarModule\n ],\n declarations: [AcaViewerComponent],\n exports: [AcaViewerComponent]\n})\nexport class AcaViewerModule {}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\n/*\n * Public API Surface of aca-viewer\n */\n\nexport * from './lib/components/viewer/viewer.component';\nexport * from './lib/viewer.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MAuDa,kBAAkB,CAAA;IAuD7B,WACU,CAAA,MAAc,EACd,KAAqB,EACrB,KAAsB,EACtB,UAA+B,EAC/B,UAA6B,EAC7B,QAAiB,EACjB,WAAmC,EACnC,UAA8B,EAC9B,eAAgC,EAChC,aAA4B,EAC5B,cAA8B,EAAA;AAV9B,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AACd,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;AACrB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAiB;AACtB,QAAA,IAAU,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