<div class="sidebar-item">
  <div class="sidebar-item-title">
    {{ groupName }}
  </div>

  <div class="vis-editor-agg-group" ng-class="groupName">
    <!-- wrapper needed for nesting-indicator -->
    <div ng-repeat="agg in group" class="vis-editor-agg-wrapper">
      <nesting-indicator
        ng-if="groupName === 'buckets'"
        item="agg"
        index="$index"
        list="group">
      </nesting-indicator>

      <!-- agg.html - controls for aggregation -->
      <ng-form vis-editor-agg name="aggForm" class="vis-editor-agg"></ng-form>
    </div>

    <vis-editor-agg-add ng-if="stats.count === 0" class="vis-editor-agg-add"></vis-editor-agg-add>
  </div>
</div>
