cfc-ds
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
42 lines (41 loc) • 2.54 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import * as i0 from "@angular/core";
export declare class ListComponent implements OnInit {
items: any[];
title: string;
headerActions: boolean;
layout: 'vertical' | 'horizontal';
spacing: 'none' | 'small' | 'medium' | 'large';
lineHeight: '1' | '2' | '3';
showDividers: boolean;
grouped: boolean;
expandable: boolean;
draggable: boolean;
density: 'high' | 'medium' | 'low';
flexHeight: boolean;
itemClick: EventEmitter<any>;
actionClick: EventEmitter<any>;
checkboxChange: EventEmitter<any>;
itemsReordered: EventEmitter<any[]>;
expandedGroups: Set<string | number>;
dragItemIndex: number | null;
dragGroupIndex: number | null;
dragGroupItemIndex: number | null;
constructor();
ngOnInit(): void;
isGroup(item: any): boolean;
isGroupExpanded(groupId: string | number): boolean;
toggleGroup(groupId: string | number): void;
onItemClick(item: any): void;
onActionClick(event: Event, item: any): void;
onCheckboxChange(event: Event, item: any): void;
onDragStart(event: DragEvent, index: number): void;
onGroupItemDragStart(event: DragEvent, groupIndex: number, itemIndex: number): void;
onDragOver(event: DragEvent, index: number): void;
onDragLeave(event: DragEvent): void;
onDrop(event: DragEvent, index: number): void;
onGroupItemDrop(event: DragEvent, groupIndex: number, itemIndex: number): void;
onDragEnd(event: DragEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "cfc-list", never, { "items": { "alias": "items"; "required": false; }; "title": { "alias": "title"; "required": false; }; "headerActions": { "alias": "headerActions"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "lineHeight": { "alias": "lineHeight"; "required": false; }; "showDividers": { "alias": "showDividers"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "density": { "alias": "density"; "required": false; }; "flexHeight": { "alias": "flexHeight"; "required": false; }; }, { "itemClick": "itemClick"; "actionClick": "actionClick"; "checkboxChange": "checkboxChange"; "itemsReordered": "itemsReordered"; }, never, never, false, never>;
}