function generateDefaultViewId(viewId, componentName, componentId) {
	if (!viewId) {
		if (componentName && componentId) {
			return `${componentName}#${componentId}`;
		} else if (componentName) {
			return componentName;
		}
	}
	return viewId;
}
/**
 * if viewId is undefined, try to generate a meaningfull one
 * else return given viewId
 * @param {string} viewId
 * @param {strign} componentName
 * @param {string} componentId
 */
if viewId is undefined, try to generate a meaningfull one
else return given viewId
@param {string} viewId
@param {strign} componentName
@param {string} componentId
if viewId is undefined try to generate a meaningfull one else return given viewId @param { string } viewId @param { strign } componentName @param { string } componentId
function generateDefaultViewId(viewId, componentName, componentId) {
	if (!viewId) {
		if (componentName && componentId) {
			return `${componentName}#${componentId}`;
		} else if (componentName) {
			return componentName;
		}
	}
	return viewId;
}
function generateDefaultViewId ( viewId , componentName , componentId ) { if ( ! viewId ) { if ( componentName && componentId ) { return ` ${ componentName } ${ componentId } ` ; } else if ( componentName ) { return componentName ; } } return viewId ; }
if viewId is undefined, try to generate a meaningfull one
 else return given viewId
 @param {string} viewId
 @param {strign} componentName
 @param {string} componentId
if viewId is undefined try to generate a meaningfull one else return given viewId @param { string } viewId @param { strign } componentName @param { string } componentId