import { TemplateCategory } from "../enums/template-category" ; import { TemplateConfig } from "@rxweb/dom" ; import { ClassConfig } from "../interface/class-config" ; export const controlsTemplateContainer = new ( class { private controls : { [ key ] : { [ key ] : TemplateConfig ; } ; } = { } ; private controlClassConfig : { [ key ] : ClassConfig ; } = { } ; getClass ( templateCategory ) { return this . controlClassConfig [ templateCategory ] ; } get ( templateCategory ) { return this . controls [ templateCategory ] ; } addTemplate ( templateCategory , customTemplates , templateClass ) { this . controls [ templateCategory ] = customTemplates ; this . controlClassConfig [ templateCategory ] = templateClass ; } } ) ( ) ;