<!--
  Licensed to the Apache Software
	Foundation (ASF) under one or more contributor license agreements. See the
	NOTICE file distributed with this work for additional information regarding
	copyright ownership. The ASF licenses this file to You under the Apache License,
	Version 2.0 (the "License"); you may not use this file except in compliance
	with the License. You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software distributed
	under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
	OR CONDITIONS OF ANY KIND, either express or implied. See the License for
  the specific language governing permissions and limitations under the License.
  -->
<a [attr.href]="'#' + uniqueId"  data-toggle="collapse"  aria-expanded="false" [attr.aria-controls]="uniqueId" class="pr-2 collapsed"
   [ngClass]="{'font-size-12' : fontSize === 12, 'font-size-15' : fontSize === 15, 'border-bottom' : titleSeperator=== true}">
  {{ data.groupName | columnNameTranslate | centerEllipses: strLength  }}  <span *ngIf="countOption" class="group-items-count"> {{ data.groupItems.length }} </span>
</a>
<div class="collapse" [attr.id]="uniqueId" [ngClass]="{'show': data.collapsed === false}">
  <div *ngIf="data.groupItems.length === 0" class="container-fluid no-data-text">
    <i> {{ 'No ' +  data.groupName  | centerEllipses: strLength }}  </i>
  </div>
  <ul  *ngIf="data.groupItems.length > 0"  class="list-group">
    <li *ngFor="let groupItem of data.groupItems" class="list-group-item justify-content-between anchor d-flex"
        [ngClass]="{'font-size-12' : fontSize === 12, 'font-size-15' : fontSize === 15}" [attr.title]="groupItem.name"
        (click)="onSelectClick(groupItem.name)">
      {{ groupItem.name | centerEllipses: strLength }}
      <span *ngIf="countOption" class="count"> {{ groupItem.count }} </span>
      <span *ngIf="deleteOption" class="delete" (click)="onDeleteClick($event, groupItem.name)"> </span>
    </li>
  </ul>
</div>
