<!--
  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.
-->
<div class="add-panel">

<section class="spec-parent">
    <a ng-href="{{getParentLink()}}">{{getParentLinkLabel()}}</a>
</section>

 <div class="add-panel-main">
    <div class="toolbar">
        <div class="list-group">
            <a href class="list-group-item"
               ng-repeat="section in vm.sections track by $index"
               ng-class="{'active': vm.selectedSection === section}"
               ng-if="familiesToShow.indexOf(section.type) >= 0"
               ng-click="vm.selectedSection = section">
                <i class="fa fa-fw" ng-class="section.icon"></i>
            </a>
        </div>
    </div>

  <div class="pane pane-palette" ng-if="vm.selectedSection">
    <div ng-repeat="section in vm.sections track by $index"
         class="palette-full-height-wrapper"
         ng-if="vm.selectedSection === section">
        <div class="container-fluid palette-title">
            <h3>
                {{section.title}}
                <br-svg type="close" class="pull-right" ng-click="vm.selectedSection = undefined"></br-svg>
            </h3>
        </div>
        <catalog-selector state="paletteState" family="section.type" mode="{{ section.mode }}" on-select="vm.onTypeSelected(item)" on-select-text="vm.getOnSelectText(item)" icon-selects="true" class="palette-full-height-wrapper"></catalog-selector>
    </div>
  </div>
 </div>

</div>