@alfresco/adf-content-services
Version:
Alfresco ADF content services
79 lines (78 loc) • 3.5 kB
TypeScript
/*!
* @license
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OnInit } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog';
import { NotificationService, TranslationService } from '@alfresco/adf-core';
import { Node } from '@alfresco/js-api';
import { ContentService } from '../common/services/content.service';
import { UploadService } from '../common/services/upload.service';
import { ContentNodeSelectorComponentData } from './content-node-selector.component-data.interface';
import { NodeEntryEvent } from '../document-list/components/node.event';
import { NodeAction } from '../document-list/models/node-action.enum';
import { OverlayContainer } from '@angular/cdk/overlay';
import * as i0 from "@angular/core";
export declare class ContentNodeSelectorComponent implements OnInit {
private translation;
private contentService;
private notificationService;
private uploadService;
private dialog;
private overlayContainer;
data: ContentNodeSelectorComponentData;
title: string;
action: NodeAction;
buttonActionName: string;
chosenNode: Node[];
currentDirectoryId: string;
showingSearch: boolean;
hasAllowableOperations: boolean;
isLoading: boolean;
selectedTabIndex: number;
uploadStarted: boolean;
emptyFolderImageUrl: string;
breadcrumbFolderNode: Node;
private readonly destroyRef;
constructor(translation: TranslationService, contentService: ContentService, notificationService: NotificationService, uploadService: UploadService, dialog: MatDialogRef<ContentNodeSelectorComponent>, overlayContainer: OverlayContainer, data: ContentNodeSelectorComponentData);
ngOnInit(): void;
close(): void;
onSelect(nodeList: Node[]): void;
onSiteChange(siteTitle: string): void;
onNavigationChange(pathElement: NodeEntryEvent): void;
onClick(): void;
updateTitle(siteTitle: string): void;
getTitleTranslation(action: NodeAction, name: string): string;
getSelectedCount(): number;
isCounterVisible(): boolean;
isMultipleSelection(): boolean;
onError(error: any): void;
isChooseButtonDisabled(): boolean;
hasNodeSelected(): boolean;
onShowingSearch(value: boolean): void;
onCurrentFolder(currentFolder: Node): void;
isNotAllowedToUpload(): boolean;
onFolderLoaded(): void;
onTabSelectionChange(tabIndex: number): void;
isFileServerTabSelected(): boolean;
isLocalUploadTabSelected(): boolean;
isUploadEnabled(): boolean;
canPerformLocalUpload(): boolean;
getWarningMessage(): string;
hasNoPermissionToUpload(): boolean;
hasUploadError(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<ContentNodeSelectorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ContentNodeSelectorComponent, "adf-content-node-selector", never, {}, {}, never, never, true, never>;
}