nge-facturaperu
Version:
nge-facturaperu. Es un proyecto de libreria javascript que contiene componentes reutilizables para el proyectos web de [facturación electrónica](http://svs.factura-peru.com/) u [algún otro proyecto web](http://hotelparis.pe/).
92 lines (91 loc) • 2.98 kB
TypeScript
import { QueryList, TemplateRef, AfterContentChecked, EventEmitter, OnInit, OnDestroy } from '@angular/core';
import { ConfigNames, NgeStepConfig } from './step-config';
export declare class NgeStepTitleDirective {
templateRef: TemplateRef<any>;
constructor(templateRef: TemplateRef<any>);
}
export declare class NgeStepContentDirective {
templateRef: TemplateRef<any>;
constructor(templateRef: TemplateRef<any>);
}
export declare class NgeStepDirective {
id: string;
title: string;
icon: string;
/**
* Guarda Cualquier dato. Creado por el Equipo Lamb.
*/
data: any;
disabled: boolean;
isValidStep: boolean;
validStep: string | boolean;
titleTemplate: NgeStepTitleDirective;
contentTemplate: NgeStepContentDirective;
}
export interface NgeStepChangeEvent {
/**
* Id de la pestaña actualmente activa.
*/
activeId: string;
/**
* Id de la pestaña recién seleccionada.
*/
nextId: string;
/**
* data guardada en la pestaña actualmente activa.
*/
activeData: any;
/**
* Función que evitará el cambio de pertaña si se llama.
*/
preventDefault: () => void;
}
export declare class NgeStepGroupComponent implements OnInit, AfterContentChecked, OnDestroy {
private config;
justifyClass: string;
hideContent: boolean;
steps: QueryList<NgeStepDirective>;
/**
* Id del step que saldrá activado por defecto.
*/
activeId: string;
/**
* Personalizar el nombre 'Anterior | siguiente y Finalizar'
* Formato de variable : objecto
* Ej. configNames: object = {buttonBack: 'Regresar', buttonNext: 'Grabar', buttonFinish: 'Fin'}
*/
iConfigNames: ConfigNames;
configNames: ConfigNames;
/**
* Cuando cambia de step se destruira el contenido anterior o solo se oculatará?
*/
destroyOnHide: boolean;
/**
* se va usar los botones en cada paso como: siguiente, atras, finalizar?,
* se muestra por default
*/
isShowButtons: boolean;
/**
* Emite cuando hay cambios de steps.
*/
stepChange: EventEmitter<NgeStepChangeEvent>;
onComplete: EventEmitter<any>;
justify: 'start' | 'center' | 'end' | 'fill' | 'justified';
onSelect(stepId: string): void;
constructor(config: NgeStepConfig);
ngOnInit(): void;
orientation: 'horizontal' | 'vertical';
type: 'stepss' | 'pills';
ngAfterContentChecked(): void;
private getStepById;
back(): void;
next(): void;
complete(): void;
current(stepId: string): void;
private getStepIdSplice;
readonly hidePrevious: boolean;
readonly hideNext: boolean;
hideLineRight(stepId: any): boolean;
ngOnDestroy(): void;
}
export declare const APP_STEPS_COMPONENTS: (typeof NgeStepTitleDirective | typeof NgeStepDirective | typeof NgeStepGroupComponent)[];