| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { IComponent } from "../../interfaces/iComponent";
- import { BeanStub } from "../../context/beanStub";
- export declare enum RegisteredComponentSource {
- DEFAULT = 0,
- REGISTERED = 1
- }
- /**
- * B the business interface (ie IHeader)
- * A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
- */
- export interface RegisteredComponent<A extends IComponent<any> & B, B> {
- component: RegisteredComponentInput<A, B>;
- componentFromFramework: boolean;
- source: RegisteredComponentSource;
- }
- export declare type RegisteredComponentInput<A extends IComponent<any> & B, B> = AgGridRegisteredComponentInput<A> | {
- new (): B;
- };
- export declare type AgGridRegisteredComponentInput<A extends IComponent<any>> = AgGridComponentFunctionInput | {
- new (): A;
- };
- export declare type AgGridComponentFunctionInput = (params: any) => string | HTMLElement;
- export interface DeprecatedComponentName {
- propertyHolder: string;
- newComponentName: string;
- }
- export declare class UserComponentRegistry extends BeanStub {
- private gridOptions;
- private agGridDefaults;
- private agDeprecatedNames;
- private jsComponents;
- private frameworkComponents;
- private init;
- registerDefaultComponent<A extends IComponent<any>>(rawName: string, component: AgGridRegisteredComponentInput<A>): void;
- registerComponent<A extends IComponent<any>>(rawName: string, component: AgGridRegisteredComponentInput<A>): void;
- /**
- * B the business interface (ie IHeader)
- * A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
- */
- registerFwComponent<A extends IComponent<any> & B, B>(rawName: string, component: {
- new (): IComponent<B>;
- }): void;
- /**
- * B the business interface (ie IHeader)
- * A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
- */
- retrieve<A extends IComponent<any> & B, B>(rawName: string): RegisteredComponent<A, B>;
- private translateIfDeprecated;
- }
|