/** Core */ import { CoreComponent } from "cmf.core/src/core"; import { Cmf } from "cmf.lbos"; import { MetadataTableType } from "cmf.core/src/domain/metadata/table"; /** Angular */ import * as ng from "@angular/core"; /** cmf.core.controls modules */ import { PageBag } from "cmf.core.controls/src/components/page/pageBag"; import { Wizard } from "cmf.core.controls/src/components/wizard/wizardBase"; /** cmf.core.business.controls modules and directives */ import { TransactionWizardInterface, TransactionWizardArgs } from "../../directives/transactionWizard/transactionWizard"; import { DataGridBusinessColumn } from "../dataGrid/dataGrid"; /** * @whatItDoes * The WizardRemoveTableData component is used to Remove one or more rows from a given Smart or Generic Table. * * @howToUse * This component is used with the inputs and outputs mentioned below. * Keep in mind that the inputs are passed in the page bag. * * ### Inputs * `string` : **id** - The Table Id. * `string` : **name** - The Table name. * `MetadataTableType | string` : **tableType** - The Table type. * `Cmf.Foundation.BusinessObjects.Entity` : **instance** - The Table type. * `any[]` : **selectedItems** - The table rows to be removed. * * ### Outputs * There are no outputs on this component. * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * ``` * * @description * * ## WizardRemoveTableData Component * * ### Dependencies * * #### Components * * DataGridBusinessModule : `cmf.core.business.controls` * * #### Services * * TableService : `cmf.core.business.controls` * * #### Directives * * TransactionWizardModule : `cmf.core.business.controls` * */ export declare class WizardRemoveTableData extends CoreComponent implements TransactionWizardInterface { private _pageBag; protected _nestedWizard: Wizard; /** * Nested business data grid component. */ private _dataGridBusinessComponent; /** * Table object. */ private _table; /** * Table's Type. */ private _tableType; /** * Items passed by context to be use as data grid's data. */ private _selectedItems; /** * Step Id. */ stepId: string; /** * Entity Instance. */ instance: Cmf.Foundation.BusinessObjects.Entity; /** * Table's name. */ name: string; /** * Table's Id. */ id: string; /** * Table Type property getter/setter */ tableType: MetadataTableType | string; /** * Wizard/Step title. */ title: string; /** * Table's columns. */ columns: DataGridBusinessColumn[]; /** * Data grid selected items. */ selectedItems: any[]; /** * Constructor. * @param viewContainerRef ViewContainerRef. * @param _pageBag PageBag. */ constructor(viewContainerRef: ng.ViewContainerRef, _pageBag: PageBag); /** * Returns the data inputs to get the Table object. */ prepareDataInput(): Promise; /** * Callback to handle the output that gets the Table object. * @param outputs Outputs array. */ handleDataOutput(outputs: Cmf.Foundation.BusinessOrchestration.BaseOutput[]): Promise; /** * Processes the data to be sent in the service call, on wizard's action. * @param args TransactionWizardArgs. */ prepareTransactionInput(args: TransactionWizardArgs): Promise; /** * Refresh the grid. */ refresh(): void; } export declare class WizardRemoveTableDataModule { }