@o3r/schematics
Version:
Schematics module of the Otter framework
86 lines • 3.21 kB
TypeScript
/**
* Returns the component name as the last element of the provided component name path
* @param componentName
*/
export declare function getInputComponentName(componentName: string): string;
/**
* returns the component folder name
* @param componentName
*/
export declare function getComponentFolderName(componentName: string): string;
/**
* Returns the component file name
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentFileName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component selector without suffix
* @param componentName
* @param prefix
*/
export declare function getComponentSelectorWithoutSuffix(componentName: string, prefix: string | null): string;
/**
* Returns the component module name (e.g. AirOfferModule)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentModuleName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component analytics name (e.g. AirOfferAnalytics)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentAnalyticsName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component name (e.g. AirOfferComponent)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component block name (e.g. AirOffer)
* @param componentName
*/
export declare function getComponentBlockName(componentName: string): string;
/**
* Return the component in kebab-case (e.g. air-offer)
* @param blockName
*/
export declare function getKebabCaseBlockName(blockName: string): string;
/**
* Returns the component config name (e.g. AirOfferConfig)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentConfigName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component translation name (e.g. AirOfferTranslation)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentTranslationName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component context name (e.g. AirOfferContext)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentContextName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component fixture name (e.g. AirOfferFixture)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentFixtureName(componentName: string, componentStructureDef: string): string;
/**
* Returns the component config key name (e.g. AIR_OFFER_CONT or AIR_OFFER_PRES)
* @param componentName
* @param componentStructureDef
*/
export declare function getComponentConfigKey(componentName: string, componentStructureDef: string): string;
/**
* Return the library name from path in a monorepos
* @param path
*/
export declare function getLibraryNameFromPath(path: string | null | undefined): string | null;
//# sourceMappingURL=template-property.helper.d.ts.map