/** Core */ import { CoreComponent } from "cmf.core/src/core"; /** Nested modules */ /** Angular */ import * as ng from "@angular/core"; import { ActionTreeService } from "./actionTreeService"; import { ActionGroupButtonDefinition } from "cmf.core/src/domain/metadata/action"; import { PageBag } from "../page/pageBag"; /** * @whatItDoes * Defines Group sections and should be used in the ActionBar. * * @howToUse * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `string` : **label** - The Group's label. * `boolean` : **showLabel** - A boolean determining if the label should be visible or not. * `string` : **group-id** - The group-id value from the metadata. * `any` : **buildContext** - The build-context of the ActionButtons. * * ### Outputs * NONE * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * * ``` * * ### _NOTES_ * NONE * * @description * * ## ActionGroup Component * */ export declare class ActionGroup extends CoreComponent implements ng.OnDestroy, ng.OnChanges, ng.AfterViewInit { private elementRef; actionTreeService: ActionTreeService; /** * The PageBag */ private _pageBag; /** * The id of the parent action bar */ private _actionBarId; /** * groupId */ groupId: string; /** * label */ label: string; /** * Show/hide label. */ showLabel: boolean; /** * ActionsButtons for the ActionGroup */ actionGroupButtons: Array; /** * Customization ActionsButtons for the ActionGroup */ customActionGroupButtons: Array; /** * ActionsButtons' BuildContext */ buildContext: any; _isHidden: boolean; actionBarId: string; /** * Constructor * * @param viewContainerRef the reference to the component view container */ constructor(elementRef: ng.ElementRef, viewContainerRef: ng.ViewContainerRef, actionTreeService: ActionTreeService, _pageBag: PageBag); private readMetadataFromParentActionBar; /** * Show or hide button */ setVisible(visible: boolean): void; ngAfterViewInit(): void; /** * Triggers the discoverParent event in the action tree service. */ discoverParent(): void; /** * On Destroy */ ngOnDestroy(): void; /** * On Changes * Gets the corresponding Id from the metadata and builds the actionGroup accordingly */ ngOnChanges(changes: ng.SimpleChanges): void; } export declare class ActionGroupModule { }