aliasName(name, isPreAggregationName) { const path = name.split('.'); if (path[0] && this.cubeEvaluator.cubeExists(path[0]) && this.cubeEvaluator.cubeFromPath(path[0]).sqlAlias) { const cubeName = path[0]; path.splice(0, 1); path.unshift(this.cubeEvaluator.cubeFromPath(cubeName).sqlAlias); name = this.cubeEvaluator.pathFromArray(path); } // use single underscore for pre-aggregations to avoid fail of pre-aggregation name replace return inflection.underscore(name).replace(/\./g, isPreAggregationName ? '_' : '__'); }
inflect(step) { return inflection.underscore(inflection.camelize(step.name.replace(/[^A-Za-z0-9]+/g, '_'))); }
memberTitle(m) { return inflection.titleize(inflection.underscore(this.memberName(m))) !== m.title ? m.title : undefined; }
const anchorName = (link) => inflection.dasherize(inflection.underscore(link.replace(/#/g, '-')))
config.filters = itemTemplate.filters.map(f => ({ value: f.params, operator: inlection.underscore(f.operator), dimension: this.cubeEvaluator.evaluateReferences(null, f.member) }));
titleize(name) { return inflection.titleize(inflection.underscore(name)); }