UNPKG

@alfresco/adf-core

Version:
81 lines (80 loc) 4.81 kB
/*! * @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, TemplateRef } from '@angular/core'; import { DataColumnType } from '@alfresco/adf-extensions'; import { CurrencyConfig, DateConfig, DecimalConfig } from '../data/data-column.model'; import * as i0 from "@angular/core"; export declare class DataColumnComponent implements OnInit { /** Id of the Column */ id: string; /** * Data source key. Can be either a column/property key like `title` * or a property path like `createdBy.name`. */ key: string; /** You can specify any custom data which can be used by any specific feature */ customData: any; /** * Value type for the column. Possible settings are defined via DataColumnType. * Example types: `text`, `date`, `image`, `icon`, `boolean`. */ type: DataColumnType; /** Value format (if supported by the parent component), for example format of the date. */ format: string; /** Toggles ability to sort by this column, for example by clicking the column header. */ sortable: boolean; /** Enable drag and drop for header column */ draggable: boolean; /** Enable resize for column */ resizable: boolean; /** Hide column */ isHidden: boolean; /** * Display title of the column, typically used for column headers. You can use the * i18n resource key to get it translated automatically. */ title: string; subtitle: string; template: any; /** Custom tooltip formatter function. */ formatTooltip: (...args: any[]) => string; /** Title to be used for screen readers. */ srTitle: string; /** Additional CSS class to be applied to column (header and cells). */ cssClass: string; /** Enables/disables a Clipboard directive to allow copying of cell contents. */ copyContent: boolean; /** Toggles the editing support of the column data. */ editable: boolean; /** Enable or disable cell focus */ focus: boolean; /** When using server side sorting the column used by the api call where the sorting will be performed */ sortingKey: string; /** Sets position of column. */ order?: number; /** Allows you to customize the formatting and display of currency values within the component. */ currencyConfig?: CurrencyConfig; /** The decimalConfig input allows you to customize the formatting and display of decimal values within the component. */ decimalConfig?: DecimalConfig; /** The decimalConfig input allows you to customize the formatting and display of decimal values within the component. */ dateConfig?: DateConfig; /** Data column header template */ header?: TemplateRef<any>; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<DataColumnComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DataColumnComponent, "data-column", never, { "id": { "alias": "id"; "required": false; }; "key": { "alias": "key"; "required": true; }; "customData": { "alias": "customData"; "required": false; }; "type": { "alias": "type"; "required": false; }; "format": { "alias": "format"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "isHidden": { "alias": "isHidden"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "formatTooltip": { "alias": "formatTooltip"; "required": false; }; "srTitle": { "alias": "sr-title"; "required": false; }; "cssClass": { "alias": "class"; "required": false; }; "copyContent": { "alias": "copyContent"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "focus": { "alias": "focus"; "required": false; }; "sortingKey": { "alias": "sortingKey"; "required": false; }; "order": { "alias": "order"; "required": false; }; "currencyConfig": { "alias": "currencyConfig"; "required": false; }; "decimalConfig": { "alias": "decimalConfig"; "required": false; }; "dateConfig": { "alias": "dateConfig"; "required": false; }; }, {}, ["template"], never, true, never>; }