@alfresco/aca-content 7.5.0-25483963230 → 7.5.0-25545454865
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.
|
@@ -4,7 +4,7 @@ import { inject, Injectable, DestroyRef, ViewEncapsulation, Component, SecurityC
|
|
|
4
4
|
import * as i2$6 from '@alfresco/adf-core';
|
|
5
5
|
import { TranslationService, ThumbnailService, FileSizePipe, DIALOG_COMPONENT_DATA, TimeAgoPipe, LocalizedDatePipe, IconComponent, NotificationService, ConfirmDialogComponent, DialogComponent, DialogSize, FileUtils, UserPreferencesService, LogoutDirective, AppConfigService, AppConfigValues, UnsavedChangesDialogComponent, AvatarComponent, ShowHeaderMode, PaginationComponent, DataColumnListComponent, DataColumnComponent, CustomEmptyContentTemplateDirective, EmptyContentComponent, DateColumnHeaderComponent, ViewerToolbarComponent, InfoDrawerButtonsDirective, AuthenticationService, ViewerModule, ClipboardService, UnsavedChangesGuard, DataTableSchema, DATATABLE_DIRECTIVES, TEMPLATE_DIRECTIVES, DataTableComponent, AuthGuard, provideTranslations, NotificationHistoryComponent, LanguagePickerComponent, AuthGuardEcm } from '@alfresco/adf-core';
|
|
6
6
|
import * as i3$4 from '@alfresco/adf-content-services';
|
|
7
|
-
import { DocumentListService, ContentVersionService, DownloadZipDialogComponent, ContentService, AlfrescoApiService, NodeAction,
|
|
7
|
+
import { DocumentListService, ContentVersionService, DownloadZipDialogComponent, ContentService, AlfrescoApiService, NodeAction, ContentNodeSelectorComponent, ContentNodeDialogService, NodesApiService, NodeAspectService, NewVersionUploaderService, NewVersionUploaderDataAction, ShareDialogComponent, FolderDialogComponent, LibraryDialogComponent, RenditionService, SearchQueryBuilderService, UploadService, FileModel, SearchAiService, NameColumnComponent, NodeCommentsComponent, ContentMetadataService, TagService, CategoryService, ContentMetadataComponent, VersionManagerComponent, LibraryFavoriteDirective, NodeFavoriteDirective, LibraryMembershipDirective, DocumentListComponent, AgentService, SearchHeaderQueryBuilderService, BreadcrumbComponent, UploadDragAreaComponent, SavedSearchesLegacyService, SavedSearchesService, forbidOnlySpaces, AlfrescoViewerComponent, SearchFormComponent, ResetSearchDirective, SearchFilterChipsComponent, PermissionListComponent, AlfrescoViewerModule, AutoFocusDirective, SitesService, UploadModule, TagNodeListComponent, ContentModule, TrashcanNameColumnComponent, LibraryStatusColumnComponent, LibraryRoleColumnComponent, LibraryNameColumnComponent } from '@alfresco/adf-content-services';
|
|
8
8
|
import { ContentApiService, NodePermissionService, AppHookService, AppSettingsService, AppExtensionService, isLocked, LockedByComponent, UserProfileService, AutoDownloadService, PageComponent, GenericErrorComponent, ContextActionsDirective, InfoDrawerComponent, PaginationDirective, PageLayoutComponent, ToolbarComponent, AppService, AppSharedRuleGuard, PluginEnabledGuard, ExtensionsDataLoaderGuard, NavigationHistoryService, ToolbarMenuItemComponent, DocumentBasePageService, provideContentAppExtensions } from '@alfresco/aca-shared';
|
|
9
9
|
import * as rules from '@alfresco/aca-shared/rules';
|
|
10
10
|
import { Store, createSelector, provideStore } from '@ngrx/store';
|
|
@@ -611,6 +611,23 @@ class NodeActionsService {
|
|
|
611
611
|
return entryParentId;
|
|
612
612
|
}
|
|
613
613
|
getContentNodeSelection(action, contentEntities, focusedElementOnCloseSelector) {
|
|
614
|
+
this.isSitesDestinationAvailable = false;
|
|
615
|
+
const data = this.buildContentNodeSelectorData(action, contentEntities);
|
|
616
|
+
this.dialog
|
|
617
|
+
.open(ContentNodeSelectorComponent, {
|
|
618
|
+
data,
|
|
619
|
+
panelClass: 'adf-content-node-selector-dialog',
|
|
620
|
+
width: '630px',
|
|
621
|
+
role: 'dialog'
|
|
622
|
+
})
|
|
623
|
+
.afterClosed()
|
|
624
|
+
.subscribe(() => this.focusAfterClose(focusedElementOnCloseSelector));
|
|
625
|
+
data.select.subscribe({
|
|
626
|
+
complete: this.close.bind(this)
|
|
627
|
+
});
|
|
628
|
+
return data.select;
|
|
629
|
+
}
|
|
630
|
+
buildContentNodeSelectorData(action, contentEntities) {
|
|
614
631
|
const currentParentFolderId = this.getEntryParentId(contentEntities[0].entry);
|
|
615
632
|
const customDropdown = new SitePaging({
|
|
616
633
|
list: {
|
|
@@ -630,11 +647,9 @@ class NodeActionsService {
|
|
|
630
647
|
]
|
|
631
648
|
}
|
|
632
649
|
});
|
|
633
|
-
|
|
634
|
-
this.isSitesDestinationAvailable = false;
|
|
635
|
-
const data = {
|
|
650
|
+
return {
|
|
636
651
|
selectionMode: 'single',
|
|
637
|
-
title,
|
|
652
|
+
title: this.getTitleTranslation(action, contentEntities),
|
|
638
653
|
currentFolderId: currentParentFolderId,
|
|
639
654
|
actionName: action,
|
|
640
655
|
dropdownHideMyFiles: true,
|
|
@@ -646,19 +661,6 @@ class NodeActionsService {
|
|
|
646
661
|
select: new Subject(),
|
|
647
662
|
excludeSiteContent: ContentNodeDialogService.nonDocumentSiteContent
|
|
648
663
|
};
|
|
649
|
-
this.dialog
|
|
650
|
-
.open(ContentNodeSelectorComponent, {
|
|
651
|
-
data,
|
|
652
|
-
panelClass: 'adf-content-node-selector-dialog',
|
|
653
|
-
width: '630px',
|
|
654
|
-
role: 'dialog'
|
|
655
|
-
})
|
|
656
|
-
.afterClosed()
|
|
657
|
-
.subscribe(() => this.focusAfterClose(focusedElementOnCloseSelector));
|
|
658
|
-
data.select.subscribe({
|
|
659
|
-
complete: this.close.bind(this)
|
|
660
|
-
});
|
|
661
|
-
return data.select;
|
|
662
664
|
}
|
|
663
665
|
getTitleTranslation(action, nodes = []) {
|
|
664
666
|
let keyPrefix = 'ITEMS';
|
|
@@ -11233,5 +11235,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
11233
11235
|
* Generated bundle index. Do not edit.
|
|
11234
11236
|
*/
|
|
11235
11237
|
|
|
11236
|
-
export { CONTENT_LAYOUT_ROUTES, CONTENT_ROUTES, ContentManagementService, ContentServiceExtensionModule, ContentUrlService, ExternalNodePermissionCommentsTabService, IsFeatureSupportedInCurrentAcsPipe, extractFiltersFromEncodedQuery, extractSearchedWordFromEncodedQuery, extractUserQueryFromEncodedQuery, formatSearchTerm, formatSearchTermByFields, isOperator };
|
|
11238
|
+
export { CONTENT_LAYOUT_ROUTES, CONTENT_ROUTES, ContentManagementService, ContentServiceExtensionModule, ContentUrlService, ExternalNodePermissionCommentsTabService, IsFeatureSupportedInCurrentAcsPipe, NodeActionsService, extractFiltersFromEncodedQuery, extractSearchedWordFromEncodedQuery, extractUserQueryFromEncodedQuery, formatSearchTerm, formatSearchTermByFields, isOperator };
|
|
11237
11239
|
//# sourceMappingURL=alfresco-aca-content.mjs.map
|