UNPKG

carbon-components-angular

Version:
56 lines (52 loc) 2 kB
/** * * carbon-angular v0.0.0 | file.component.d.ts * * Copyright 2014, 2025 IBM * * 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, OnDestroy, TemplateRef } from "@angular/core"; import { I18n } from "carbon-components-angular/i18n"; import { FileItem } from "./file-item.interface"; import * as i0 from "@angular/core"; export declare class FileComponent implements OnDestroy { protected i18n: I18n; /** * Accessible translations for the close and complete icons */ translations: any; /** * A single `FileItem` from the set of `FileItem`s */ fileItem: FileItem; size: "sm" | "md" | "lg"; /** * A custom template for the file name */ nameTpl: TemplateRef<unknown>; /** * A custom template for the available file actions */ actionsTpl: TemplateRef<unknown>; remove: EventEmitter<any>; selectedFile: boolean; get isInvalidText(): string; get fileSizeSmall(): boolean; get fileSizeMedium(): boolean; get fileSizeLarge(): boolean; constructor(i18n: I18n); isTemplate(value: unknown): boolean; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<FileComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FileComponent, "cds-file, ibm-file", never, { "translations": "translations"; "fileItem": "fileItem"; "size": "size"; "nameTpl": "nameTpl"; "actionsTpl": "actionsTpl"; }, { "remove": "remove"; }, never, never, false>; }