/*! * @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 { EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core'; import { ContentActionHandler } from '../../models/content-action.model'; import { ContentActionModel } from './../../models/content-action.model'; import * as i0 from "@angular/core"; export declare class ContentActionComponent implements OnInit, OnChanges, OnDestroy { private readonly list; private readonly documentActions; private readonly folderActions; /** The title of the action as shown in the menu. */ title: string; /** The name of the icon to display next to the menu command (can be left blank). */ icon: string; /** Visibility state (see examples). */ visible: boolean | ((...args: any[]) => boolean); /** System actions. Can be "delete", "download", "copy" or "move". */ handler: string; /** Type of item that the action applies to. Can be "document" or "folder" */ target: string; /** The permission type. */ permission: string; /** Should this action be disabled in the menu if the user doesn't have permission for it? */ disableWithNoPermission: boolean; /** Is the menu item disabled? */ disabled: boolean | ((...args: any[]) => boolean); /** Emitted when the user selects the action from the menu. */ execute: EventEmitter; /** Emitted when a permission error occurs */ permissionEvent: EventEmitter; /** * Emitted when an error occurs during the action. * Applies to copy and move actions. */ error: EventEmitter; /** * Emitted when the action succeeds with the success string message. * Applies to copy, move and delete actions. */ success: EventEmitter; documentActionModel: ContentActionModel; folderActionModel: ContentActionModel; private subscriptions; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; register(model: ContentActionModel): boolean; unregister(model: ContentActionModel): boolean; private generateAction; getSystemHandler(target: string, name: string): ContentActionHandler; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }