@alfresco/aca-content 4.3.0 → 4.4.0-6803224597

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 (51) hide show
  1. package/esm2020/folder-rules/rule-details/actions/rule-action.ui-component.mjs +2 -8
  2. package/esm2020/lib/components/common/location-link/location-link.component.mjs +6 -4
  3. package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +2 -2
  4. package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +2 -2
  5. package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +4 -7
  6. package/esm2020/lib/components/context-menu/context-menu.service.mjs +1 -4
  7. package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +2 -2
  8. package/esm2020/lib/components/favorites/favorites.component.mjs +3 -3
  9. package/esm2020/lib/components/files/files.component.mjs +17 -15
  10. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +3 -3
  11. package/esm2020/lib/components/libraries/libraries.component.mjs +2 -2
  12. package/esm2020/lib/components/recent-files/recent-files.component.mjs +5 -5
  13. package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +4 -4
  14. package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +3 -3
  15. package/esm2020/lib/components/search/search-results/search-results.component.mjs +2 -2
  16. package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +2 -2
  17. package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +3 -3
  18. package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +2 -2
  19. package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +2 -2
  20. package/esm2020/lib/components/sidenav/user-menu/user-menu.component.mjs +2 -2
  21. package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +3 -3
  22. package/esm2020/lib/services/content-management.service.mjs +13 -13
  23. package/esm2020/lib/services/node-actions.service.mjs +8 -8
  24. package/esm2020/lib/services/node-template.service.mjs +2 -2
  25. package/esm2020/lib/store/effects/library.effects.mjs +4 -4
  26. package/esm2020/lib/store/effects/node.effects.mjs +14 -14
  27. package/esm2020/lib/store/effects/upload.effects.mjs +3 -7
  28. package/esm2020/lib/store/effects/viewer.effects.mjs +3 -3
  29. package/esm2020/lib/store/reducers/app.reducer.mjs +2 -2
  30. package/esm2020/preview/lib/components/preview.component.mjs +8 -20
  31. package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +9 -21
  32. package/fesm2015/alfresco-aca-content-folder-rules.mjs +1 -7
  33. package/fesm2015/alfresco-aca-content-folder-rules.mjs.map +1 -1
  34. package/fesm2015/alfresco-aca-content-preview.mjs +9 -19
  35. package/fesm2015/alfresco-aca-content-preview.mjs.map +1 -1
  36. package/fesm2015/alfresco-aca-content-viewer.mjs +12 -22
  37. package/fesm2015/alfresco-aca-content-viewer.mjs.map +1 -1
  38. package/fesm2015/alfresco-aca-content.mjs +128 -99
  39. package/fesm2015/alfresco-aca-content.mjs.map +1 -1
  40. package/fesm2020/alfresco-aca-content-folder-rules.mjs +1 -7
  41. package/fesm2020/alfresco-aca-content-folder-rules.mjs.map +1 -1
  42. package/fesm2020/alfresco-aca-content-preview.mjs +7 -19
  43. package/fesm2020/alfresco-aca-content-preview.mjs.map +1 -1
  44. package/fesm2020/alfresco-aca-content-viewer.mjs +8 -20
  45. package/fesm2020/alfresco-aca-content-viewer.mjs.map +1 -1
  46. package/fesm2020/alfresco-aca-content.mjs +91 -97
  47. package/fesm2020/alfresco-aca-content.mjs.map +1 -1
  48. package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +0 -1
  49. package/lib/components/files/files.component.d.ts +1 -1
  50. package/lib/components/recent-files/recent-files.component.d.ts +0 -1
  51. package/package.json +1 -1
@@ -316,8 +316,8 @@ class NodeActionsService {
316
316
  return observable;
317
317
  }
318
318
  isEntryEntitiesArray(contentEntities) {
319
- if (contentEntities && contentEntities.length) {
320
- const nonEntryNode = contentEntities.find((node) => !node || !node.entry || !(node.entry.nodeId || node.entry.id));
319
+ if (contentEntities === null || contentEntities === void 0 ? void 0 : contentEntities.length) {
320
+ const nonEntryNode = contentEntities.find((node) => { var _a, _b; return !(((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.nodeId) || ((_b = node === null || node === void 0 ? void 0 : node.entry) === null || _b === void 0 ? void 0 : _b.id)); });
321
321
  return !nonEntryNode;
322
322
  }
323
323
  return false;
@@ -327,11 +327,12 @@ class NodeActionsService {
327
327
  return !notAllowedNode;
328
328
  }
329
329
  getEntryParentId(nodeEntry) {
330
+ var _a, _b;
330
331
  let entryParentId = '';
331
332
  if (nodeEntry.parentId) {
332
333
  entryParentId = nodeEntry.parentId;
333
334
  }
334
- else if (nodeEntry.path && nodeEntry.path.elements && nodeEntry.path.elements.length) {
335
+ else if ((_b = (_a = nodeEntry.path) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.length) {
335
336
  entryParentId = nodeEntry.path.elements[nodeEntry.path.elements.length - 1].id;
336
337
  }
337
338
  return entryParentId;
@@ -410,7 +411,8 @@ class NodeActionsService {
410
411
  }
411
412
  // todo: review this approach once 5.2.3 is out
412
413
  customizeBreadcrumb(node) {
413
- if (node && node.path && node.path.elements) {
414
+ var _a;
415
+ if ((_a = node === null || node === void 0 ? void 0 : node.path) === null || _a === void 0 ? void 0 : _a.elements) {
414
416
  const elements = node.path.elements;
415
417
  if (elements.length > 1) {
416
418
  if (elements[1].name === 'User Homes') {
@@ -467,7 +469,8 @@ class NodeActionsService {
467
469
  }
468
470
  }
469
471
  isSiteContainer(node) {
470
- if (node && node.aspectNames && node.aspectNames.length > 0) {
472
+ var _a;
473
+ if (((_a = node === null || node === void 0 ? void 0 : node.aspectNames) === null || _a === void 0 ? void 0 : _a.length) > 0) {
471
474
  return node.aspectNames.indexOf('st:siteContainer') >= 0;
472
475
  }
473
476
  return false;
@@ -730,6 +733,7 @@ class NodeActionsService {
730
733
  return resultingArray;
731
734
  }
732
735
  processResponse(data) {
736
+ var _a;
733
737
  const moveStatus = {
734
738
  succeeded: [],
735
739
  failed: [],
@@ -745,7 +749,7 @@ class NodeActionsService {
745
749
  const folderMoveResponseData = this.flatten(next);
746
750
  const foundError = folderMoveResponseData.find((node) => node instanceof Error);
747
751
  // data might contain also items of form: { itemMoved, initialParentId }
748
- const foundEntry = folderMoveResponseData.find((node) => (node.itemMoved && node.itemMoved.entry) || (node && node.entry));
752
+ const foundEntry = folderMoveResponseData.find((node) => { var _a; return ((_a = node.itemMoved) === null || _a === void 0 ? void 0 : _a.entry) || (node === null || node === void 0 ? void 0 : node.entry); });
749
753
  if (!foundError) {
750
754
  // consider success if NONE of the items from the folder move response is an error
751
755
  acc.succeeded.push(next);
@@ -766,7 +770,7 @@ class NodeActionsService {
766
770
  }, moveStatus);
767
771
  }
768
772
  else {
769
- if ((data.itemMoved && data.itemMoved.entry) || (data && data.entry)) {
773
+ if (((_a = data.itemMoved) === null || _a === void 0 ? void 0 : _a.entry) || (data === null || data === void 0 ? void 0 : data.entry)) {
770
774
  moveStatus.succeeded.push(data);
771
775
  }
772
776
  else {
@@ -814,8 +818,9 @@ class FilesComponent extends PageComponent {
814
818
  this.route.params.subscribe(({ folderId }) => {
815
819
  const nodeId = folderId || data.defaultNodeId;
816
820
  this.contentApi.getNode(nodeId).subscribe((node) => {
821
+ var _a;
817
822
  this.isValidPath = true;
818
- if (node.entry && node.entry.isFolder) {
823
+ if ((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.isFolder) {
819
824
  this.updateCurrentNode(node.entry);
820
825
  }
821
826
  else {
@@ -888,7 +893,7 @@ class FilesComponent extends PageComponent {
888
893
  this.store.dispatch(new UploadFileVersionAction(ev));
889
894
  }
890
895
  navigateTo(node) {
891
- if (node && node.entry) {
896
+ if (node === null || node === void 0 ? void 0 : node.entry) {
892
897
  this.selectedNode = node;
893
898
  const { isFolder } = node.entry;
894
899
  if (isFolder) {
@@ -911,9 +916,10 @@ class FilesComponent extends PageComponent {
911
916
  this.navigateTo((_a = event.detail) === null || _a === void 0 ? void 0 : _a.node);
912
917
  }
913
918
  onBreadcrumbNavigate(route) {
919
+ var _a;
914
920
  this.documentList.resetNewFolderPagination();
915
921
  // todo: review this approach once 5.2.3 is out
916
- if (this.nodePath && this.nodePath.length > 2) {
922
+ if (this.nodePath && ((_a = this.nodePath) === null || _a === void 0 ? void 0 : _a.length) > 2) {
917
923
  if (this.nodePath[1].name === 'Sites' && this.nodePath[2].id === route.id) {
918
924
  return this.navigate(this.nodePath[3].id);
919
925
  }
@@ -921,29 +927,30 @@ class FilesComponent extends PageComponent {
921
927
  this.navigate(route.id);
922
928
  }
923
929
  onFileUploadedEvent(event) {
930
+ var _a;
924
931
  const node = event.file.data;
925
932
  // check root and child nodes
926
- if (node && node.entry && node.entry.parentId === this.getParentNodeId()) {
933
+ if (((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.parentId) === this.getParentNodeId()) {
927
934
  this.reload(this.selectedNode);
928
935
  return;
929
936
  }
930
937
  // check the child nodes to show dropped folder
931
938
  if (event && event.file.options.parentId === this.getParentNodeId()) {
932
- this.displayFolderParent(event.file.options.path, 0);
939
+ this.displayFolderParent(0, event.file.options.path);
933
940
  return;
934
941
  }
935
- if (event && event.file.options.parentId) {
942
+ if (event === null || event === void 0 ? void 0 : event.file.options.parentId) {
936
943
  if (this.nodePath) {
937
944
  const correspondingNodePath = this.nodePath.find((pathItem) => pathItem.id === event.file.options.parentId);
938
945
  // check if the current folder has the 'trigger-upload-folder' as one of its parents
939
946
  if (correspondingNodePath) {
940
947
  const correspondingIndex = this.nodePath.length - this.nodePath.indexOf(correspondingNodePath);
941
- this.displayFolderParent(event.file.options.path, correspondingIndex);
948
+ this.displayFolderParent(correspondingIndex, event.file.options.path);
942
949
  }
943
950
  }
944
951
  }
945
952
  }
946
- displayFolderParent(filePath = '', index) {
953
+ displayFolderParent(index, filePath = '') {
947
954
  const parentName = filePath.split('/')[index];
948
955
  const currentFoldersDisplayed = this.documentList.data.getRows() || [];
949
956
  const alreadyDisplayedParentFolder = currentFoldersDisplayed.find((row) => row.node.entry.isFolder && row.node.entry.name === parentName);
@@ -953,18 +960,21 @@ class FilesComponent extends PageComponent {
953
960
  this.reload(this.selectedNode);
954
961
  }
955
962
  onContentCopied(nodes) {
956
- const newNode = nodes.find((node) => node && node.entry && node.entry.parentId === this.getParentNodeId());
963
+ const newNode = nodes.find((node) => { var _a; return ((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.parentId) === this.getParentNodeId(); });
957
964
  if (newNode) {
958
965
  this.reload(this.selectedNode);
959
966
  }
960
967
  }
961
968
  // todo: review this approach once 5.2.3 is out
962
969
  updateCurrentNode(node) {
970
+ var _a;
963
971
  return __awaiter(this, void 0, void 0, function* () {
964
972
  this.nodePath = null;
965
- if (node && node.path && node.path.elements) {
973
+ if ((_a = node === null || node === void 0 ? void 0 : node.path) === null || _a === void 0 ? void 0 : _a.elements) {
966
974
  const elements = node.path.elements;
967
- this.nodePath = elements.map((pathElement) => Object.assign({}, pathElement));
975
+ this.nodePath = elements.map((pathElement) => {
976
+ return Object.assign({}, pathElement);
977
+ });
968
978
  if (elements.length > 1) {
969
979
  if (elements[1].name === 'User Homes') {
970
980
  if (!this.isAdmin) {
@@ -1008,13 +1018,15 @@ class FilesComponent extends PageComponent {
1008
1018
  });
1009
1019
  }
1010
1020
  isSiteContainer(node) {
1011
- if (node && node.aspectNames && node.aspectNames.length > 0) {
1021
+ var _a;
1022
+ if (((_a = node === null || node === void 0 ? void 0 : node.aspectNames) === null || _a === void 0 ? void 0 : _a.length) > 0) {
1012
1023
  return node.aspectNames.indexOf('st:siteContainer') >= 0;
1013
1024
  }
1014
1025
  return false;
1015
1026
  }
1016
1027
  isRootNode(nodeId) {
1017
- if (this.node && this.node.path && this.node.path.elements && this.node.path.elements.length > 0) {
1028
+ var _a, _b, _c;
1029
+ if (((_c = (_b = (_a = this.node) === null || _a === void 0 ? void 0 : _a.path) === null || _b === void 0 ? void 0 : _b.elements) === null || _c === void 0 ? void 0 : _c.length) > 0) {
1018
1030
  return this.node.path.elements[0].id === nodeId;
1019
1031
  }
1020
1032
  return false;
@@ -1035,8 +1047,9 @@ class FilesComponent extends PageComponent {
1035
1047
  navigateToFilter(activeFilters) {
1036
1048
  const objectFromMap = {};
1037
1049
  activeFilters.forEach((filter) => {
1050
+ var _a, _b;
1038
1051
  let paramValue;
1039
- if (filter.value && filter.value.from && filter.value.to) {
1052
+ if (((_a = filter === null || filter === void 0 ? void 0 : filter.value) === null || _a === void 0 ? void 0 : _a.from) && ((_b = filter === null || filter === void 0 ? void 0 : filter.value) === null || _b === void 0 ? void 0 : _b.to)) {
1040
1053
  paramValue = `${filter.value.from}||${filter.value.to}`;
1041
1054
  }
1042
1055
  else {
@@ -1109,7 +1122,8 @@ class LibrariesComponent extends PageComponent {
1109
1122
  this.columns = this.extensions.documentListPresets.libraries || [];
1110
1123
  }
1111
1124
  navigateTo(node) {
1112
- if (node && node.entry && node.entry.guid) {
1125
+ var _a;
1126
+ if ((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.guid) {
1113
1127
  this.store.dispatch(new NavigateLibraryAction(node.entry.guid));
1114
1128
  }
1115
1129
  }
@@ -1190,7 +1204,8 @@ class FavoriteLibrariesComponent extends PageComponent {
1190
1204
  this.columns = this.extensions.documentListPresets.favoriteLibraries || [];
1191
1205
  }
1192
1206
  navigateTo(node) {
1193
- if (node && node.entry && node.entry.guid) {
1207
+ var _a;
1208
+ if ((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.guid) {
1194
1209
  this.store.dispatch(new NavigateLibraryAction(node.entry.guid, 'favorite/libraries'));
1195
1210
  }
1196
1211
  }
@@ -1794,7 +1809,7 @@ class ContentManagementService {
1794
1809
  }
1795
1810
  }
1796
1811
  manageVersions(node, focusedElementOnCloseSelector) {
1797
- if (node && node.entry) {
1812
+ if (node === null || node === void 0 ? void 0 : node.entry) {
1798
1813
  // shared and favorite
1799
1814
  const id = node.entry.nodeId || node.entry.guid;
1800
1815
  if (id) {
@@ -1808,7 +1823,7 @@ class ContentManagementService {
1808
1823
  }
1809
1824
  }
1810
1825
  manageAspects(node, focusedElementOnCloseSelector) {
1811
- if (node && node.entry) {
1826
+ if (node === null || node === void 0 ? void 0 : node.entry) {
1812
1827
  // shared and favorite
1813
1828
  const id = node.entry.nodeId || node.entry.guid;
1814
1829
  if (id) {
@@ -1840,7 +1855,7 @@ class ContentManagementService {
1840
1855
  });
1841
1856
  }
1842
1857
  shareNode(node, focusedElementOnCloseSelector) {
1843
- if (node && node.entry) {
1858
+ if (node === null || node === void 0 ? void 0 : node.entry) {
1844
1859
  // shared and favorite
1845
1860
  const id = node.entry.nodeId || node.entry.guid;
1846
1861
  if (id) {
@@ -1929,7 +1944,8 @@ class ContentManagementService {
1929
1944
  }
1930
1945
  this.focusAfterClose(this.createMenuButtonSelector);
1931
1946
  }), map((node) => {
1932
- if (node && node.entry && node.entry.guid) {
1947
+ var _a;
1948
+ if ((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.guid) {
1933
1949
  return node.entry.guid;
1934
1950
  }
1935
1951
  return null;
@@ -2145,13 +2161,14 @@ class ContentManagementService {
2145
2161
  this.appHookService.nodesDeleted.next(null);
2146
2162
  this.store.dispatch(new ReloadDocumentListAction());
2147
2163
  }, (error) => {
2164
+ var _a;
2148
2165
  let i18nMessageString = 'APP.MESSAGES.ERRORS.GENERIC';
2149
2166
  let errorJson = null;
2150
2167
  try {
2151
2168
  errorJson = JSON.parse(error.message);
2152
2169
  }
2153
- catch (_a) { }
2154
- if (errorJson && errorJson.error && errorJson.error.statusCode === 403) {
2170
+ catch (_b) { }
2171
+ if (((_a = errorJson === null || errorJson === void 0 ? void 0 : errorJson.error) === null || _a === void 0 ? void 0 : _a.statusCode) === 403) {
2155
2172
  i18nMessageString = 'APP.MESSAGES.ERRORS.PERMISSION';
2156
2173
  }
2157
2174
  this.store.dispatch(new SnackbarErrorAction(i18nMessageString));
@@ -2198,15 +2215,16 @@ class ContentManagementService {
2198
2215
  }
2199
2216
  }
2200
2217
  undoMoveNodes(moveResponse, selectionParentId) {
2201
- const movedNodes = moveResponse && moveResponse['succeeded'] ? moveResponse['succeeded'] : [];
2202
- const partiallyMovedNodes = moveResponse && moveResponse['partiallySucceeded'] ? moveResponse['partiallySucceeded'] : [];
2218
+ var _a, _b;
2219
+ const movedNodes = (_a = moveResponse === null || moveResponse === void 0 ? void 0 : moveResponse['succeeded']) !== null && _a !== void 0 ? _a : [];
2220
+ const partiallyMovedNodes = (_b = moveResponse === null || moveResponse === void 0 ? void 0 : moveResponse['partiallySucceeded']) !== null && _b !== void 0 ? _b : [];
2203
2221
  const restoreDeletedNodesBatch = this.nodeActionsService.moveDeletedEntries.map((folderEntry) => this.contentApi.restoreNode(folderEntry.nodeId || folderEntry.id).pipe(map((node) => node.entry)));
2204
2222
  zip(...restoreDeletedNodesBatch, of(null))
2205
2223
  .pipe(mergeMap(() => {
2206
2224
  const nodesToBeMovedBack = [...partiallyMovedNodes, ...movedNodes];
2207
2225
  const revertMoveBatch = this.nodeActionsService
2208
2226
  .flatten(nodesToBeMovedBack)
2209
- .filter((node) => node.entry || (node.itemMoved && node.itemMoved.entry))
2227
+ .filter((node) => { var _a; return node.entry || ((_a = node.itemMoved) === null || _a === void 0 ? void 0 : _a.entry); })
2210
2228
  .map((node) => {
2211
2229
  if (node.itemMoved) {
2212
2230
  return this.nodeActionsService.moveNodeAction(node.itemMoved.entry, node.initialParentId);
@@ -2220,13 +2238,14 @@ class ContentManagementService {
2220
2238
  .subscribe(() => {
2221
2239
  this.store.dispatch(new ReloadDocumentListAction());
2222
2240
  }, (error) => {
2241
+ var _a;
2223
2242
  let message = 'APP.MESSAGES.ERRORS.GENERIC';
2224
2243
  let errorJson = null;
2225
2244
  try {
2226
2245
  errorJson = JSON.parse(error.message);
2227
2246
  }
2228
- catch (_a) { }
2229
- if (errorJson && errorJson.error && errorJson.error.statusCode === 403) {
2247
+ catch (_b) { }
2248
+ if (((_a = errorJson === null || errorJson === void 0 ? void 0 : errorJson.error) === null || _a === void 0 ? void 0 : _a.statusCode) === 403) {
2230
2249
  message = 'APP.MESSAGES.ERRORS.PERMISSION';
2231
2250
  }
2232
2251
  this.store.dispatch(new SnackbarErrorAction(message));
@@ -2511,9 +2530,10 @@ class ContentManagementService {
2511
2530
  return null;
2512
2531
  }
2513
2532
  showMoveMessage(nodes, info, moveResponse) {
2514
- const succeeded = moveResponse && moveResponse['succeeded'] ? moveResponse['succeeded'].length : 0;
2515
- const partiallySucceeded = moveResponse && moveResponse['partiallySucceeded'] ? moveResponse['partiallySucceeded'].length : 0;
2516
- const failures = moveResponse && moveResponse['failed'] ? moveResponse['failed'].length : 0;
2533
+ var _a, _b, _c;
2534
+ const succeeded = (_a = moveResponse === null || moveResponse === void 0 ? void 0 : moveResponse['succeeded'].length) !== null && _a !== void 0 ? _a : 0;
2535
+ const partiallySucceeded = (_b = moveResponse === null || moveResponse === void 0 ? void 0 : moveResponse['partiallySucceeded'].length) !== null && _b !== void 0 ? _b : 0;
2536
+ const failures = (_c = moveResponse === null || moveResponse === void 0 ? void 0 : moveResponse['failed'].length) !== null && _c !== void 0 ? _c : 0;
2517
2537
  let successMessage = '';
2518
2538
  let partialSuccessMessage = '';
2519
2539
  let failedMessage = '';
@@ -2691,14 +2711,15 @@ class NodeEffects {
2691
2711
  .pipe(take(1))
2692
2712
  .subscribe((selection) => {
2693
2713
  var _a;
2694
- if (selection && selection.file) {
2714
+ if (selection === null || selection === void 0 ? void 0 : selection.file) {
2695
2715
  this.contentService.shareNode(selection.file, (_a = action.configuration) === null || _a === void 0 ? void 0 : _a.focusedElementOnCloseSelector);
2696
2716
  }
2697
2717
  });
2698
2718
  }
2699
2719
  })), { dispatch: false });
2700
2720
  this.unshareNodes$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.Unshare), map((action) => {
2701
- if (action && action.payload && action.payload.length > 0) {
2721
+ var _a;
2722
+ if (((_a = action === null || action === void 0 ? void 0 : action.payload) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2702
2723
  this.contentService.unshareNodes(action.payload);
2703
2724
  }
2704
2725
  else {
@@ -2713,7 +2734,8 @@ class NodeEffects {
2713
2734
  }
2714
2735
  })), { dispatch: false });
2715
2736
  this.purgeDeletedNodes$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.PurgeDeleted), map((action) => {
2716
- if (action && action.payload && action.payload.length > 0) {
2737
+ var _a;
2738
+ if (((_a = action === null || action === void 0 ? void 0 : action.payload) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2717
2739
  this.contentService.purgeDeletedNodes(action.payload);
2718
2740
  }
2719
2741
  else {
@@ -2728,7 +2750,8 @@ class NodeEffects {
2728
2750
  }
2729
2751
  })), { dispatch: false });
2730
2752
  this.restoreDeletedNodes$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.RestoreDeleted), map((action) => {
2731
- if (action && action.payload && action.payload.length > 0) {
2753
+ var _a;
2754
+ if (((_a = action === null || action === void 0 ? void 0 : action.payload) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2732
2755
  this.contentService.restoreDeletedNodes(action.payload);
2733
2756
  }
2734
2757
  else {
@@ -2743,8 +2766,9 @@ class NodeEffects {
2743
2766
  }
2744
2767
  })), { dispatch: false });
2745
2768
  this.deleteNodes$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.Delete), map((action) => {
2769
+ var _a;
2746
2770
  this.store.dispatch(new ShowLoaderAction(true));
2747
- if (action && action.payload && action.payload.length > 0) {
2771
+ if (((_a = action === null || action === void 0 ? void 0 : action.payload) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2748
2772
  this.contentService.deleteNodes(action.payload);
2749
2773
  }
2750
2774
  else {
@@ -2772,7 +2796,7 @@ class NodeEffects {
2772
2796
  .select(getCurrentFolder)
2773
2797
  .pipe(take(1))
2774
2798
  .subscribe((node) => {
2775
- if (node && node.id) {
2799
+ if (node === null || node === void 0 ? void 0 : node.id) {
2776
2800
  this.contentService.createFolder(node.id);
2777
2801
  }
2778
2802
  });
@@ -2788,7 +2812,7 @@ class NodeEffects {
2788
2812
  .pipe(take(1))
2789
2813
  .subscribe((selection) => {
2790
2814
  var _a;
2791
- if (selection && selection.folder) {
2815
+ if (selection === null || selection === void 0 ? void 0 : selection.folder) {
2792
2816
  this.contentService.editFolder(selection.folder, (_a = action.configuration) === null || _a === void 0 ? void 0 : _a.focusedElementOnCloseSelector);
2793
2817
  }
2794
2818
  });
@@ -2881,14 +2905,14 @@ class NodeEffects {
2881
2905
  .pipe(take(1))
2882
2906
  .subscribe((selection) => {
2883
2907
  var _a;
2884
- if (selection && selection.file) {
2908
+ if (selection === null || selection === void 0 ? void 0 : selection.file) {
2885
2909
  this.contentService.manageVersions(selection.file, (_a = action.configuration) === null || _a === void 0 ? void 0 : _a.focusedElementOnCloseSelector);
2886
2910
  }
2887
2911
  });
2888
2912
  }
2889
2913
  })), { dispatch: false });
2890
2914
  this.printFile$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.PrintFile), map((action) => {
2891
- if (action && action.payload) {
2915
+ if (action === null || action === void 0 ? void 0 : action.payload) {
2892
2916
  this.printFile(action.payload);
2893
2917
  }
2894
2918
  else {
@@ -2896,14 +2920,14 @@ class NodeEffects {
2896
2920
  .select(getAppSelection)
2897
2921
  .pipe(take(1))
2898
2922
  .subscribe((selection) => {
2899
- if (selection && selection.file) {
2923
+ if (selection === null || selection === void 0 ? void 0 : selection.file) {
2900
2924
  this.printFile(selection.file);
2901
2925
  }
2902
2926
  });
2903
2927
  }
2904
2928
  })), { dispatch: false });
2905
2929
  this.unlockWrite$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.UnlockForWriting), map((action) => {
2906
- if (action && action.payload) {
2930
+ if (action === null || action === void 0 ? void 0 : action.payload) {
2907
2931
  this.contentService.unlockNode(action.payload);
2908
2932
  }
2909
2933
  else {
@@ -2911,7 +2935,7 @@ class NodeEffects {
2911
2935
  .select(getAppSelection)
2912
2936
  .pipe(take(1))
2913
2937
  .subscribe((selection) => {
2914
- if (selection && selection.file) {
2938
+ if (selection === null || selection === void 0 ? void 0 : selection.file) {
2915
2939
  this.contentService.unlockNode(selection.file);
2916
2940
  }
2917
2941
  });
@@ -2950,7 +2974,7 @@ class NodeEffects {
2950
2974
  })), { dispatch: false });
2951
2975
  }
2952
2976
  printFile(node) {
2953
- if (node && node.entry) {
2977
+ if (node === null || node === void 0 ? void 0 : node.entry) {
2954
2978
  // shared and favorite
2955
2979
  const id = node.entry.nodeId || node.entry.guid || node.entry.id;
2956
2980
  const mimeType = node.entry.content.mimeType;
@@ -3023,7 +3047,8 @@ class ViewerEffects {
3023
3047
  }
3024
3048
  })), { dispatch: false });
3025
3049
  this.viewFile$ = createEffect(() => this.actions$.pipe(ofType(ViewerActionTypes.ViewFile), map((action) => {
3026
- if (action.payload && action.payload.entry) {
3050
+ var _a;
3051
+ if ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.entry) {
3027
3052
  const { id, nodeId, isFile } = action.payload.entry;
3028
3053
  if (this.extensions.canPreviewNode(action.payload) && (isFile || nodeId)) {
3029
3054
  this.displayPreview(nodeId || id, action.parentId);
@@ -3034,7 +3059,8 @@ class ViewerEffects {
3034
3059
  .select(fileToPreview)
3035
3060
  .pipe(take(1))
3036
3061
  .subscribe((result) => {
3037
- if (result.selection && result.selection.file) {
3062
+ var _a;
3063
+ if ((_a = result.selection) === null || _a === void 0 ? void 0 : _a.file) {
3038
3064
  const { id, nodeId, isFile } = result.selection.file.entry;
3039
3065
  if (this.extensions.canPreviewNode(action.payload) && (isFile || nodeId)) {
3040
3066
  const parentId = result.folder ? result.folder.id : null;
@@ -3271,7 +3297,7 @@ class LibraryEffects {
3271
3297
  .select(getAppSelection)
3272
3298
  .pipe(take(1))
3273
3299
  .subscribe((selection) => {
3274
- if (selection && selection.library) {
3300
+ if (selection === null || selection === void 0 ? void 0 : selection.library) {
3275
3301
  this.content.deleteLibrary(selection.library.entry.id);
3276
3302
  }
3277
3303
  });
@@ -3287,7 +3313,7 @@ class LibraryEffects {
3287
3313
  .pipe(take(1))
3288
3314
  .subscribe((selection) => {
3289
3315
  var _a;
3290
- if (selection && selection.library) {
3316
+ if (selection === null || selection === void 0 ? void 0 : selection.library) {
3291
3317
  this.content.leaveLibrary(selection.library.entry.id, (_a = action.configuration) === null || _a === void 0 ? void 0 : _a.focusedElementOnCloseSelector);
3292
3318
  }
3293
3319
  });
@@ -3313,7 +3339,7 @@ class LibraryEffects {
3313
3339
  .select(getAppSelection)
3314
3340
  .pipe(take(1))
3315
3341
  .subscribe((selection) => {
3316
- if (selection && selection.library) {
3342
+ if (selection === null || selection === void 0 ? void 0 : selection.library) {
3317
3343
  const { id } = selection.library.entry;
3318
3344
  const { title, description, visibility } = action.payload;
3319
3345
  const siteBody = {
@@ -3428,7 +3454,7 @@ class UploadEffects {
3428
3454
  .select(getCurrentFolder)
3429
3455
  .pipe(take(1))
3430
3456
  .subscribe((node) => {
3431
- if (node && node.id) {
3457
+ if (node === null || node === void 0 ? void 0 : node.id) {
3432
3458
  const input = event.currentTarget;
3433
3459
  const files = FileUtils.toFileArray(input.files).map((file) => new FileModel(file, {
3434
3460
  parentId: node.id,
@@ -3456,11 +3482,8 @@ class UploadEffects {
3456
3482
  this.uploadService.addToQueue(file);
3457
3483
  this.uploadService.uploadFilesInTheQueue();
3458
3484
  const subscription = this.uploadService.fileUploadComplete.subscribe((completed) => {
3459
- if (file.data &&
3460
- file.data.entry &&
3461
- file.data.entry.properties &&
3462
- file.data.entry.properties['cm:lockType'] === 'WRITE_LOCK' &&
3463
- file.data.entry.id === completed.data.entry.id) {
3485
+ var _a, _b, _c, _d, _e;
3486
+ if (((_c = (_b = (_a = file.data) === null || _a === void 0 ? void 0 : _a.entry) === null || _b === void 0 ? void 0 : _b.properties) === null || _c === void 0 ? void 0 : _c['cm:lockType']) === 'WRITE_LOCK' && ((_e = (_d = file.data) === null || _d === void 0 ? void 0 : _d.entry) === null || _e === void 0 ? void 0 : _e.id) === completed.data.entry.id) {
3464
3487
  this.store.dispatch(new UnlockWriteAction(completed.data));
3465
3488
  }
3466
3489
  subscription.unsubscribe();
@@ -3577,10 +3600,10 @@ class CreateFromTemplateDialogComponent {
3577
3600
  }
3578
3601
  }
3579
3602
  CreateFromTemplateDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: CreateFromTemplateDialogComponent, deps: [{ token: i4.TranslationService }, { token: i1.Store }, { token: i3.UntypedFormBuilder }, { token: i4$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
3580
- CreateFromTemplateDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: CreateFromTemplateDialogComponent, isStandalone: true, selector: "app-create-from-template-dialog", ngImport: i0, template: "<h2 mat-dialog-title [innerHTML]=\"title\"></h2>\n<div mat-dialog-content>\n <form [formGroup]=\"form\" novalidate>\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n cdkFocusInitial\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.NAME' | translate }}\"\n matInput\n formControlName=\"name\"\n required\n />\n\n <mat-error *ngIf=\"form.controls['name'].errors?.message\">\n {{ form.controls['name'].errors?.message | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.TITLE' | translate }}\"\n matInput\n formControlName=\"title\"\n />\n\n <mat-error *ngIf=\"form.controls['title'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.TITLE_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <textarea\n matInput\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.DESCRIPTION' | translate }}\"\n rows=\"2\"\n formControlName=\"description\"\n ></textarea>\n\n <mat-error *ngIf=\"form.controls['description'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.DESCRIPTION_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n </form>\n</div>\n<div mat-dialog-actions>\n <button mat-button mat-dialog-close data-automation-id=\"cancel-folder-template-button\">\n {{ 'NODE_FROM_TEMPLATE.CANCEL' | translate }}\n </button>\n <button\n class=\"create\"\n [disabled]=\"form.invalid\"\n mat-button\n (click)=\"onSubmit()\"\n data-automation-id=\"create-folder-template-button\"\n >\n {{ 'NODE_FROM_TEMPLATE.CREATE' | translate }}\n </button>\n</div>\n", styles: ["app-create-from-template-dialog{overflow:visible;display:block;margin-left:-24px;margin-right:-24px}app-create-from-template-dialog .mat-dialog-title{margin-left:24px;margin-right:24px;font-size:20px;font-style:normal;font-stretch:normal;line-height:1.6;letter-spacing:-.5px;color:var(--theme-text-bold-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-create-from-template-dialog .mat-dialog-title .bold{font-weight:600}app-create-from-template-dialog .app-create-from-template-field{width:100%}app-create-from-template-dialog .app-create-from-template-field:not(:last-of-type){margin-bottom:20px}app-create-from-template-dialog .mat-dialog-content{margin:0 2px;overflow:hidden}app-create-from-template-dialog .mat-dialog-actions{padding:8px 22px;display:flex;justify-content:flex-end;color:var(--theme-secondary-text-color)}app-create-from-template-dialog .mat-dialog-actions button{text-transform:uppercase;font-weight:400}app-create-from-template-dialog .mat-dialog-actions .create[disabled]{opacity:.6}app-create-from-template-dialog .mat-dialog-actions .create:enabled{color:var(--theme-accent-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i4$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i4$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i7.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], encapsulation: i0.ViewEncapsulation.None });
3603
+ CreateFromTemplateDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: CreateFromTemplateDialogComponent, isStandalone: true, selector: "app-create-from-template-dialog", ngImport: i0, template: "<h2 mat-dialog-title [innerHTML]=\"title\"></h2>\n<div mat-dialog-content>\n <form [formGroup]=\"form\" novalidate>\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n cdkFocusInitial\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.NAME' | translate }}\"\n matInput\n formControlName=\"name\"\n required\n />\n\n <mat-error *ngIf=\"form.controls['name'].errors?.message\">\n {{ form.controls['name'].errors?.message | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.TITLE' | translate }}\"\n matInput\n formControlName=\"title\"\n />\n\n <mat-error *ngIf=\"form.controls['title'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.TITLE_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <textarea\n matInput\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.DESCRIPTION' | translate }}\"\n rows=\"2\"\n formControlName=\"description\"\n ></textarea>\n\n <mat-error *ngIf=\"form.controls['description'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.DESCRIPTION_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n </form>\n</div>\n<div mat-dialog-actions>\n <button mat-button mat-dialog-close data-automation-id=\"create-from-template-dialog-cancel-button\">\n {{ 'NODE_FROM_TEMPLATE.CANCEL' | translate }}\n </button>\n <button\n class=\"create\"\n [disabled]=\"form.invalid\"\n mat-button\n (click)=\"onSubmit()\"\n data-automation-id=\"create-from-template-dialog-create-button\"\n >\n {{ 'NODE_FROM_TEMPLATE.CREATE' | translate }}\n </button>\n</div>\n", styles: ["app-create-from-template-dialog{overflow:visible;display:block;margin-left:-24px;margin-right:-24px}app-create-from-template-dialog .mat-dialog-title{margin-left:24px;margin-right:24px;font-size:20px;font-style:normal;font-stretch:normal;line-height:1.6;letter-spacing:-.5px;color:var(--theme-text-bold-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-create-from-template-dialog .mat-dialog-title .bold{font-weight:600}app-create-from-template-dialog .app-create-from-template-field{width:100%}app-create-from-template-dialog .app-create-from-template-field:not(:last-of-type){margin-bottom:20px}app-create-from-template-dialog .mat-dialog-content{margin:0 2px;overflow:hidden}app-create-from-template-dialog .mat-dialog-actions{padding:8px 22px;display:flex;justify-content:flex-end;color:var(--theme-secondary-text-color)}app-create-from-template-dialog .mat-dialog-actions button{text-transform:uppercase;font-weight:400}app-create-from-template-dialog .mat-dialog-actions .create[disabled]{opacity:.6}app-create-from-template-dialog .mat-dialog-actions .create:enabled{color:var(--theme-accent-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i4$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i4$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i4$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i7.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], encapsulation: i0.ViewEncapsulation.None });
3581
3604
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: CreateFromTemplateDialogComponent, decorators: [{
3582
3605
  type: Component,
3583
- args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatDialogModule, ReactiveFormsModule, MatFormFieldModule, MatInputModule, MatButtonModule], selector: 'app-create-from-template-dialog', encapsulation: ViewEncapsulation.None, template: "<h2 mat-dialog-title [innerHTML]=\"title\"></h2>\n<div mat-dialog-content>\n <form [formGroup]=\"form\" novalidate>\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n cdkFocusInitial\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.NAME' | translate }}\"\n matInput\n formControlName=\"name\"\n required\n />\n\n <mat-error *ngIf=\"form.controls['name'].errors?.message\">\n {{ form.controls['name'].errors?.message | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.TITLE' | translate }}\"\n matInput\n formControlName=\"title\"\n />\n\n <mat-error *ngIf=\"form.controls['title'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.TITLE_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <textarea\n matInput\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.DESCRIPTION' | translate }}\"\n rows=\"2\"\n formControlName=\"description\"\n ></textarea>\n\n <mat-error *ngIf=\"form.controls['description'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.DESCRIPTION_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n </form>\n</div>\n<div mat-dialog-actions>\n <button mat-button mat-dialog-close data-automation-id=\"cancel-folder-template-button\">\n {{ 'NODE_FROM_TEMPLATE.CANCEL' | translate }}\n </button>\n <button\n class=\"create\"\n [disabled]=\"form.invalid\"\n mat-button\n (click)=\"onSubmit()\"\n data-automation-id=\"create-folder-template-button\"\n >\n {{ 'NODE_FROM_TEMPLATE.CREATE' | translate }}\n </button>\n</div>\n", styles: ["app-create-from-template-dialog{overflow:visible;display:block;margin-left:-24px;margin-right:-24px}app-create-from-template-dialog .mat-dialog-title{margin-left:24px;margin-right:24px;font-size:20px;font-style:normal;font-stretch:normal;line-height:1.6;letter-spacing:-.5px;color:var(--theme-text-bold-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-create-from-template-dialog .mat-dialog-title .bold{font-weight:600}app-create-from-template-dialog .app-create-from-template-field{width:100%}app-create-from-template-dialog .app-create-from-template-field:not(:last-of-type){margin-bottom:20px}app-create-from-template-dialog .mat-dialog-content{margin:0 2px;overflow:hidden}app-create-from-template-dialog .mat-dialog-actions{padding:8px 22px;display:flex;justify-content:flex-end;color:var(--theme-secondary-text-color)}app-create-from-template-dialog .mat-dialog-actions button{text-transform:uppercase;font-weight:400}app-create-from-template-dialog .mat-dialog-actions .create[disabled]{opacity:.6}app-create-from-template-dialog .mat-dialog-actions .create:enabled{color:var(--theme-accent-color)}\n"] }]
3606
+ args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatDialogModule, ReactiveFormsModule, MatFormFieldModule, MatInputModule, MatButtonModule], selector: 'app-create-from-template-dialog', encapsulation: ViewEncapsulation.None, template: "<h2 mat-dialog-title [innerHTML]=\"title\"></h2>\n<div mat-dialog-content>\n <form [formGroup]=\"form\" novalidate>\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n cdkFocusInitial\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.NAME' | translate }}\"\n matInput\n formControlName=\"name\"\n required\n />\n\n <mat-error *ngIf=\"form.controls['name'].errors?.message\">\n {{ form.controls['name'].errors?.message | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <input\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.TITLE' | translate }}\"\n matInput\n formControlName=\"title\"\n />\n\n <mat-error *ngIf=\"form.controls['title'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.TITLE_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"app-create-from-template-field\">\n <textarea\n matInput\n placeholder=\"{{ 'NODE_FROM_TEMPLATE.FORM.PLACEHOLDER.DESCRIPTION' | translate }}\"\n rows=\"2\"\n formControlName=\"description\"\n ></textarea>\n\n <mat-error *ngIf=\"form.controls['description'].hasError('maxlength')\">\n {{ 'NODE_FROM_TEMPLATE.FORM.ERRORS.DESCRIPTION_TOO_LONG' | translate }}\n </mat-error>\n </mat-form-field>\n </form>\n</div>\n<div mat-dialog-actions>\n <button mat-button mat-dialog-close data-automation-id=\"create-from-template-dialog-cancel-button\">\n {{ 'NODE_FROM_TEMPLATE.CANCEL' | translate }}\n </button>\n <button\n class=\"create\"\n [disabled]=\"form.invalid\"\n mat-button\n (click)=\"onSubmit()\"\n data-automation-id=\"create-from-template-dialog-create-button\"\n >\n {{ 'NODE_FROM_TEMPLATE.CREATE' | translate }}\n </button>\n</div>\n", styles: ["app-create-from-template-dialog{overflow:visible;display:block;margin-left:-24px;margin-right:-24px}app-create-from-template-dialog .mat-dialog-title{margin-left:24px;margin-right:24px;font-size:20px;font-style:normal;font-stretch:normal;line-height:1.6;letter-spacing:-.5px;color:var(--theme-text-bold-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}app-create-from-template-dialog .mat-dialog-title .bold{font-weight:600}app-create-from-template-dialog .app-create-from-template-field{width:100%}app-create-from-template-dialog .app-create-from-template-field:not(:last-of-type){margin-bottom:20px}app-create-from-template-dialog .mat-dialog-content{margin:0 2px;overflow:hidden}app-create-from-template-dialog .mat-dialog-actions{padding:8px 22px;display:flex;justify-content:flex-end;color:var(--theme-secondary-text-color)}app-create-from-template-dialog .mat-dialog-actions button{text-transform:uppercase;font-weight:400}app-create-from-template-dialog .mat-dialog-actions .create[disabled]{opacity:.6}app-create-from-template-dialog .mat-dialog-actions .create:enabled{color:var(--theme-accent-color)}\n"] }]
3584
3607
  }], ctorParameters: function () {
3585
3608
  return [{ type: i4.TranslationService }, { type: i1.Store }, { type: i3.UntypedFormBuilder }, { type: i4$1.MatDialogRef }, { type: i10.Node, decorators: [{
3586
3609
  type: Inject,
@@ -3680,7 +3703,8 @@ class NodeTemplateService {
3680
3703
  return dialog;
3681
3704
  }
3682
3705
  transformNode(node) {
3683
- if (node && node.path && node.path && node.path.elements instanceof Array) {
3706
+ var _a;
3707
+ if (((_a = node === null || node === void 0 ? void 0 : node.path) === null || _a === void 0 ? void 0 : _a.elements) instanceof Array) {
3684
3708
  node.path.elements = this.getPathElements(node);
3685
3709
  }
3686
3710
  return node;
@@ -3921,7 +3945,8 @@ class ContextMenuItemComponent {
3921
3945
  }
3922
3946
  }
3923
3947
  hasClickAction(actionRef) {
3924
- return !!(actionRef && actionRef.actions && actionRef.actions.click);
3948
+ var _a;
3949
+ return !!((_a = actionRef === null || actionRef === void 0 ? void 0 : actionRef.actions) === null || _a === void 0 ? void 0 : _a.click);
3925
3950
  }
3926
3951
  trackByActionId(_, obj) {
3927
3952
  return obj.id;
@@ -3977,12 +4002,9 @@ class OutsideEventDirective {
3977
4002
  }
3978
4003
  findAncestor(el) {
3979
4004
  const className = 'aca-context-menu';
3980
- if (el.classList.contains(className)) {
3981
- return true;
4005
+ while (el && !el.classList.contains(className)) {
4006
+ el = el.parentElement;
3982
4007
  }
3983
- // eslint-disable-next-line curly
3984
- while ((el = el.parentElement) && !el.classList.contains(className))
3985
- ;
3986
4008
  return !!el;
3987
4009
  }
3988
4010
  }
@@ -3994,7 +4016,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
3994
4016
  standalone: true,
3995
4017
  selector: '[acaContextMenuOutsideEvent]'
3996
4018
  }]
3997
- }], ctorParameters: function () { return []; }, propDecorators: { clickOutside: [{
4019
+ }], propDecorators: { clickOutside: [{
3998
4020
  type: Output
3999
4021
  }] } });
4000
4022
 
@@ -4141,9 +4163,6 @@ class ContextMenuService {
4141
4163
  return containerRef.instance;
4142
4164
  }
4143
4165
  createInjector(contextmenuOverlayRef) {
4144
- const injectionTokens = new WeakMap();
4145
- injectionTokens.set(ContextMenuOverlayRef, contextmenuOverlayRef);
4146
- injectionTokens.set(CONTEXT_MENU_DIRECTION, this.direction);
4147
4166
  return Injector.create({
4148
4167
  parent: this.injector,
4149
4168
  providers: [
@@ -4574,8 +4593,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
4574
4593
  */
4575
4594
  class InstantErrorStateMatcher {
4576
4595
  isErrorState(control, form) {
4577
- const isSubmitted = form && form.submitted;
4578
- return !!(control && control.invalid && (control.dirty || control.touched || isSubmitted));
4596
+ const isSubmitted = form === null || form === void 0 ? void 0 : form.submitted;
4597
+ return !!((control === null || control === void 0 ? void 0 : control.invalid) && ((control === null || control === void 0 ? void 0 : control.dirty) || (control === null || control === void 0 ? void 0 : control.touched) || isSubmitted));
4579
4598
  }
4580
4599
  }
4581
4600
  class LibraryMetadataFormComponent {
@@ -5574,7 +5593,8 @@ class ExpansionPanelDirective {
5574
5593
  }
5575
5594
  }
5576
5595
  hasActiveLinks() {
5577
- if (this.acaExpansionPanel && this.acaExpansionPanel.children) {
5596
+ var _a;
5597
+ if ((_a = this.acaExpansionPanel) === null || _a === void 0 ? void 0 : _a.children) {
5578
5598
  return this.acaExpansionPanel.children.some((child) => this.router.url.startsWith(child.url || child.action.payload));
5579
5599
  }
5580
5600
  return false;
@@ -5665,7 +5685,8 @@ class MenuPanelDirective {
5665
5685
  }
5666
5686
  }
5667
5687
  hasActiveLinks() {
5668
- if (this.acaMenuPanel && this.acaMenuPanel.children) {
5688
+ var _a;
5689
+ if ((_a = this.acaMenuPanel) === null || _a === void 0 ? void 0 : _a.children) {
5669
5690
  return this.acaMenuPanel.children.some((child) => this.router.url.startsWith(child.url || child.action.payload));
5670
5691
  }
5671
5692
  return false;
@@ -5887,7 +5908,7 @@ class ActiveLinkDirective {
5887
5908
  });
5888
5909
  }
5889
5910
  render(routerUrl, actionUrl) {
5890
- if (routerUrl && routerUrl.substring(1).startsWith(actionUrl)) {
5911
+ if (routerUrl === null || routerUrl === void 0 ? void 0 : routerUrl.substring(1).startsWith(actionUrl)) {
5891
5912
  this.isLinkActive = true;
5892
5913
  this.renderer.addClass(this.element.nativeElement, this.acaActiveLink);
5893
5914
  }
@@ -5901,7 +5922,8 @@ class ActiveLinkDirective {
5901
5922
  this.update(this.router.url);
5902
5923
  }
5903
5924
  resolveUrl(item) {
5904
- return (item.action && item.action.click && item.action.click.payload) || item.action.route;
5925
+ var _a, _b, _c;
5926
+ return ((_b = (_a = item.action) === null || _a === void 0 ? void 0 : _a.click) === null || _b === void 0 ? void 0 : _b.payload) || ((_c = item.action) === null || _c === void 0 ? void 0 : _c.route);
5905
5927
  }
5906
5928
  }
5907
5929
  ActiveLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ActiveLinkDirective, deps: [{ token: i2.Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: ActionDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
@@ -6101,8 +6123,9 @@ class UserMenuComponent {
6101
6123
  this.authService = authService;
6102
6124
  }
6103
6125
  ngOnInit() {
6126
+ var _a;
6104
6127
  this.getUserInfo();
6105
- if (this.data && this.data.items) {
6128
+ if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.items) {
6106
6129
  this.data.items.sort((a, b) => a.order - b.order);
6107
6130
  }
6108
6131
  }
@@ -6230,11 +6253,12 @@ class LocationLinkComponent {
6230
6253
  }
6231
6254
  }
6232
6255
  ngOnInit() {
6256
+ var _a;
6233
6257
  if (this.context) {
6234
6258
  const node = this.context.row.node;
6235
- if (node && node.entry && node.entry.path) {
6259
+ if ((node === null || node === void 0 ? void 0 : node.entry) && ((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.path)) {
6236
6260
  const path = node.entry.path;
6237
- if (path && path.name && path.elements) {
6261
+ if ((path === null || path === void 0 ? void 0 : path.name) && (path === null || path === void 0 ? void 0 : path.elements)) {
6238
6262
  if (this.showLocation) {
6239
6263
  this.displayText = of(path.name.substring(1).replace(/\//g, ' &#8250; '));
6240
6264
  }
@@ -6281,7 +6305,9 @@ class LocationLinkComponent {
6281
6305
  return;
6282
6306
  }
6283
6307
  let result = null;
6284
- const elements = path.elements.map((e) => Object.assign({}, e));
6308
+ const elements = path.elements.map((e) => {
6309
+ return Object.assign({}, e);
6310
+ });
6285
6311
  const personalFiles = this.translationService.instant('APP.BROWSE.PERSONAL.TITLE');
6286
6312
  const fileLibraries = this.translationService.instant('APP.BROWSE.LIBRARIES.TITLE');
6287
6313
  if (elements[0].name === 'Company Home') {
@@ -6389,11 +6415,11 @@ class ToggleSharedComponent {
6389
6415
  ngOnInit() {
6390
6416
  this.selection$ = this.store.select(getAppSelection);
6391
6417
  this.selection$.pipe(takeUntil(this.onDestroy$)).subscribe((selectionState) => {
6392
- var _a, _b, _c, _d;
6418
+ var _a, _b, _c, _d, _e, _f;
6393
6419
  this.selectionState = selectionState;
6394
6420
  this.isShared =
6395
- (this.selectionState.first && this.selectionState.first.entry && this.selectionState.first.entry.sharedByUser) ||
6396
- !!((_d = (_c = (_b = (_a = this.selectionState) === null || _a === void 0 ? void 0 : _a.first) === null || _b === void 0 ? void 0 : _b.entry) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d['qshare:sharedId']);
6421
+ (((_b = (_a = this.selectionState) === null || _a === void 0 ? void 0 : _a.first) === null || _b === void 0 ? void 0 : _b.entry) && this.selectionState.first.entry.sharedByUser) ||
6422
+ !!((_f = (_e = (_d = (_c = this.selectionState) === null || _c === void 0 ? void 0 : _c.first) === null || _d === void 0 ? void 0 : _d.entry) === null || _e === void 0 ? void 0 : _e.properties) === null || _f === void 0 ? void 0 : _f['qshare:sharedId']);
6397
6423
  this.selectionLabel = this.isShared ? 'APP.ACTIONS.SHARE_EDIT' : 'APP.ACTIONS.SHARE';
6398
6424
  });
6399
6425
  }
@@ -6753,13 +6779,14 @@ class SearchLibrariesQueryBuilderService {
6753
6779
  });
6754
6780
  }
6755
6781
  buildQuery() {
6782
+ var _a, _b;
6756
6783
  const query = this.userQuery;
6757
- if (query && query.length > 1) {
6784
+ if ((query === null || query === void 0 ? void 0 : query.length) > 1) {
6758
6785
  return {
6759
6786
  term: query,
6760
6787
  opts: {
6761
- skipCount: this.paging && this.paging.skipCount,
6762
- maxItems: this.paging && this.paging.maxItems
6788
+ skipCount: (_a = this.paging) === null || _a === void 0 ? void 0 : _a.skipCount,
6789
+ maxItems: (_b = this.paging) === null || _b === void 0 ? void 0 : _b.maxItems
6763
6790
  }
6764
6791
  };
6765
6792
  }
@@ -7107,7 +7134,8 @@ class SearchLibrariesResultsComponent extends PageComponent {
7107
7134
  this.totalResults = this.getNumberOfResults();
7108
7135
  }
7109
7136
  getNumberOfResults() {
7110
- if (this.data && this.data.list && this.data.list.pagination) {
7137
+ var _a, _b;
7138
+ if ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.list) === null || _b === void 0 ? void 0 : _b.pagination) {
7111
7139
  return this.data.list.pagination.totalItems;
7112
7140
  }
7113
7141
  return 0;
@@ -7120,7 +7148,8 @@ class SearchLibrariesResultsComponent extends PageComponent {
7120
7148
  this.librariesQueryBuilder.update();
7121
7149
  }
7122
7150
  navigateTo(node) {
7123
- if (node && node.entry && node.entry.guid) {
7151
+ var _a;
7152
+ if ((_a = node === null || node === void 0 ? void 0 : node.entry) === null || _a === void 0 ? void 0 : _a.guid) {
7124
7153
  this.store.dispatch(new NavigateLibraryAction(node.entry.guid));
7125
7154
  }
7126
7155
  }
@@ -7506,7 +7535,7 @@ class SearchResultsComponent extends PageComponent {
7506
7535
  return ['name', 'asc'];
7507
7536
  }
7508
7537
  onNodeDoubleClick(node) {
7509
- if (node && node.entry) {
7538
+ if (node === null || node === void 0 ? void 0 : node.entry) {
7510
7539
  if (node.entry.isFolder) {
7511
7540
  this.store.dispatch(new NavigateToFolder(node));
7512
7541
  return;
@@ -7633,7 +7662,7 @@ class FavoritesComponent extends PageComponent {
7633
7662
  navigate(favorite) {
7634
7663
  const { isFolder, id } = favorite;
7635
7664
  // TODO: rework as it will fail on non-English setups
7636
- const isSitePath = (path) => path && path.elements && path.elements.some(({ name }) => name === 'Sites');
7665
+ const isSitePath = (path) => { var _a; return (_a = path === null || path === void 0 ? void 0 : path.elements) === null || _a === void 0 ? void 0 : _a.some(({ name }) => name === 'Sites'); };
7637
7666
  if (isFolder) {
7638
7667
  this.contentApi
7639
7668
  .getNode(id)
@@ -7645,7 +7674,7 @@ class FavoritesComponent extends PageComponent {
7645
7674
  }
7646
7675
  }
7647
7676
  onNodeDoubleClick(node) {
7648
- if (node && node.entry) {
7677
+ if (node === null || node === void 0 ? void 0 : node.entry) {
7649
7678
  if (node.entry.isFolder) {
7650
7679
  this.navigate(node.entry);
7651
7680
  }
@@ -7705,7 +7734,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
7705
7734
  */
7706
7735
  class RecentFilesComponent extends PageComponent {
7707
7736
  constructor() {
7708
- super();
7737
+ super(...arguments);
7709
7738
  this.columns = [];
7710
7739
  }
7711
7740
  ngOnInit() {
@@ -7717,7 +7746,7 @@ class RecentFilesComponent extends PageComponent {
7717
7746
  this.columns = this.extensions.documentListPresets.recent || [];
7718
7747
  }
7719
7748
  onNodeDoubleClick(node) {
7720
- if (node && node.entry) {
7749
+ if (node === null || node === void 0 ? void 0 : node.entry) {
7721
7750
  this.showPreview(node, { location: this.router.url });
7722
7751
  }
7723
7752
  }
@@ -7726,7 +7755,7 @@ class RecentFilesComponent extends PageComponent {
7726
7755
  this.onNodeDoubleClick((_a = event.detail) === null || _a === void 0 ? void 0 : _a.node);
7727
7756
  }
7728
7757
  }
7729
- RecentFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RecentFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7758
+ RecentFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RecentFilesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
7730
7759
  RecentFilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: RecentFilesComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<aca-page-layout>\n <div class=\"aca-page-layout-header\">\n <h1 class=\"aca-page-title\">{{ 'APP.BROWSE.RECENT.TITLE' | translate }}</h1>\n <aca-toolbar [items]=\"actions\"></aca-toolbar>\n </div>\n\n <div class=\"aca-page-layout-content\">\n <div class=\"main-content\">\n <adf-document-list\n #documentList\n acaDocumentList\n acaContextActions\n [currentFolderId]=\"'-recent-'\"\n [selectionMode]=\"'multiple'\"\n [navigate]=\"false\"\n [sorting]=\"['modifiedAt', 'desc']\"\n [sortingMode]=\"'client'\"\n [imageResolver]=\"imageResolver\"\n (node-dblclick)=\"handleNodeClick($event)\"\n (name-click)=\"handleNodeClick($event)\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content icon=\"access_time\" [title]=\"'APP.BROWSE.RECENT.EMPTY_STATE.TITLE'\" subtitle=\"APP.BROWSE.RECENT.EMPTY_STATE.TEXT\">\n </adf-empty-content>\n </adf-custom-empty-content-template>\n\n <data-columns>\n <ng-container *ngFor=\"let column of columns; trackBy: trackByColumnId\">\n <ng-container *ngIf=\"column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n [isHidden]=\"column.isHidden\"\n >\n <ng-template let-context>\n <adf-dynamic-column [id]=\"column.template\" [context]=\"context\"> </adf-dynamic-column>\n </ng-template>\n </data-column>\n </ng-container>\n\n <ng-container *ngIf=\"!column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n [isHidden]=\"column.isHidden\"\n >\n </data-column>\n </ng-container>\n </ng-container>\n </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n\n <div class=\"aca-sidebar\" *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.last\"></aca-info-drawer>\n </div>\n </div>\n</aca-page-layout>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: DocumentListModule }, { kind: "component", type: i1$1.DocumentListComponent, selector: "adf-document-list", inputs: ["includeFields", "where", "display", "permissionsStyle", "locationFormat", "navigate", "showHeader", "navigationMode", "thumbnails", "selectionMode", "multiselect", "contentActions", "contentActionsPosition", "contextMenuActions", "emptyFolderImageUrl", "allowDropFiles", "sorting", "additionalSorting", "sortingMode", "rowStyle", "rowStyleClass", "loading", "_rowFilter", "rowFilter", "imageResolver", "stickyHeader", "headerFilters", "filterValue", "currentFolderId", "preselectNodes", "node", "maxItems", "columnsPresetKey", "maxColumnsVisible"], outputs: ["nodeClick", "nodeDblClick", "folderChange", "preview", "ready", "error", "nodeSelected", "filterSelection"] }, { kind: "directive", type: DocumentListDirective, selector: "[acaDocumentList]" }, { kind: "directive", type: ContextActionsDirective, selector: "[acaContextActions]", inputs: ["acaContextEnable"], exportAs: ["acaContextActions"] }, { kind: "ngmodule", type: TemplateModule }, { kind: "component", type: i4.EmptyContentComponent, selector: "adf-empty-content", inputs: ["icon", "title", "subtitle"] }, { kind: "ngmodule", type: DataTableModule }, { kind: "directive", type: i4.CustomEmptyContentTemplateDirective, selector: "adf-custom-empty-content-template, empty-folder-content" }, { kind: "component", type: i4.DataColumnComponent, selector: "data-column", inputs: ["id", "key", "customData", "type", "format", "sortable", "draggable", "isHidden", "title", "formatTooltip", "sr-title", "class", "copyContent", "editable", "focus", "sortingKey", "order"] }, { kind: "component", type: i4.DataColumnListComponent, selector: "data-columns" }, { kind: "ngmodule", type: ExtensionsModule }, { kind: "component", type: i5$1.DynamicColumnComponent, selector: "adf-dynamic-column", inputs: ["id", "context"] }, { kind: "ngmodule", type: PaginationModule }, { kind: "component", type: i4.PaginationComponent, selector: "adf-pagination", inputs: ["target", "supportedPageSizes", "pagination"], outputs: ["change", "changePageNumber", "changePageSize", "nextPage", "prevPage"] }, { kind: "directive", type: PaginationDirective, selector: "[acaPagination]" }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: PageLayoutComponent, selector: "aca-page-layout", inputs: ["hasError"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }], encapsulation: i0.ViewEncapsulation.None });
7731
7760
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RecentFilesComponent, decorators: [{
7732
7761
  type: Component,
@@ -7745,7 +7774,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
7745
7774
  TranslateModule,
7746
7775
  ToolbarComponent
7747
7776
  ], encapsulation: ViewEncapsulation.None, template: "<aca-page-layout>\n <div class=\"aca-page-layout-header\">\n <h1 class=\"aca-page-title\">{{ 'APP.BROWSE.RECENT.TITLE' | translate }}</h1>\n <aca-toolbar [items]=\"actions\"></aca-toolbar>\n </div>\n\n <div class=\"aca-page-layout-content\">\n <div class=\"main-content\">\n <adf-document-list\n #documentList\n acaDocumentList\n acaContextActions\n [currentFolderId]=\"'-recent-'\"\n [selectionMode]=\"'multiple'\"\n [navigate]=\"false\"\n [sorting]=\"['modifiedAt', 'desc']\"\n [sortingMode]=\"'client'\"\n [imageResolver]=\"imageResolver\"\n (node-dblclick)=\"handleNodeClick($event)\"\n (name-click)=\"handleNodeClick($event)\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content icon=\"access_time\" [title]=\"'APP.BROWSE.RECENT.EMPTY_STATE.TITLE'\" subtitle=\"APP.BROWSE.RECENT.EMPTY_STATE.TEXT\">\n </adf-empty-content>\n </adf-custom-empty-content-template>\n\n <data-columns>\n <ng-container *ngFor=\"let column of columns; trackBy: trackByColumnId\">\n <ng-container *ngIf=\"column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n [isHidden]=\"column.isHidden\"\n >\n <ng-template let-context>\n <adf-dynamic-column [id]=\"column.template\" [context]=\"context\"> </adf-dynamic-column>\n </ng-template>\n </data-column>\n </ng-container>\n\n <ng-container *ngIf=\"!column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n [isHidden]=\"column.isHidden\"\n >\n </data-column>\n </ng-container>\n </ng-container>\n </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n\n <div class=\"aca-sidebar\" *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.last\"></aca-info-drawer>\n </div>\n </div>\n</aca-page-layout>\n" }]
7748
- }], ctorParameters: function () { return []; } });
7777
+ }] });
7749
7778
 
7750
7779
  /*!
7751
7780
  * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.