<!--
  #%L
  thinkbig-ui-feed-manager
  %%
  Copyright (C) 2017 ThinkBig Analytics
  %%
  Licensed 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.
  #L%
  -->
<div > <form name="defineFeedForm">
    <md-tabs md-dynamic-height md-center-tabs="true" md-border-bottom md-selected="vm.selectedStepIndex" md-on-select="vm.onStepSelect()" md-no-ink-bar="true" md-no-ink="true" sticky-tabs>
        <md-tab  >
            <md-tab-label>
                <div class="{{vm.steps[0].type}} step-label"><ng-md-icon md-icon icon="{{vm.steps[0].icon}}" size="{{vm.steps[0].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[0].iconStyle}}" ></ng-md-icon> General Info</div>
            </md-tab-label>
            <md-tab-body>
                <thinkbig-define-feed-general-info step-index="0"></thinkbig-define-feed-general-info>
            </md-tab-body>
        </md-tab>
        <md-tab ng-disabled="vm.steps[1].disabled">
            <md-tab-label>
                <div class="{{vm.steps[1].type}} step-label"><ng-md-icon nomorph md-icon icon="{{vm.steps[1].icon}}" size="{{vm.steps[1].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[1].iconStyle}}"></ng-md-icon> Feed Details</div>
            </md-tab-label>
            <md-tab-body>
                <thinkbig-define-feed-details step-index="1" ></thinkbig-define-feed-details>
            </md-tab-body>
        </md-tab>
        <md-tab ng-disabled="vm.steps[2].disabled">
            <md-tab-label>
                <div class="{{vm.steps[2].type}} step-label"><ng-md-icon nomorph md-icon icon="{{vm.steps[2].icon}}" size="{{vm.steps[2].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[0].iconStyle}}"></ng-md-icon> Build Query</div>
            </md-tab-label>
            <md-tab-body>
                <thinkbig-visual-query-builder step-index="2" ng-if="vm.selectedStepIndex == 2" ></thinkbig-visual-query-builder>
            </md-tab-body>
        </md-tab>
        <md-tab ng-disabled="vm.steps[3].disabled">
            <md-tab-label>
                <div class="{{vm.steps[3].type}} step-label"><ng-md-icon nomorph md-icon icon="{{vm.steps[3].icon}}" size="{{vm.steps[3].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[1].iconStyle}}"></ng-md-icon>Transform Data</div>
            </md-tab-label>
            <md-tab-body>
                <!-- keep this transform step visible if its been visited once since it needs to update the model after a user leaves this step -->
                <thinkbig-visual-query-transform step-index="3" ng-if="vm.selectedStepIndex == 3 || vm.steps[3].visited"></thinkbig-visual-query-transform>
            </md-tab-body>
        </md-tab>
        <md-tab ng-disabled="vm.steps[4].disabled">
            <md-tab-label>
                <div class="{{vm.steps[4].type}} step-label"><ng-md-icon nomorph md-icon icon="{{vm.steps[4].icon}}" size="{{vm.steps[4].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[4].iconStyle}}"></ng-md-icon> Table</div>
            </md-tab-label>
            <md-tab-body>
                <thinkbig-define-feed-table step-index="4" ng-if="vm.selectedStepIndex == 4" ></thinkbig-define-feed-table>
            </md-tab-body>
        </md-tab>
        <md-tab ng-disabled="vm.steps[5].disabled">
            <md-tab-label>
                <div class="{{vm.steps[5].type}} step-label"><ng-md-icon nomorph md-icon icon="{{vm.steps[5].icon}}" size="{{vm.steps[5].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[5].iconStyle}}"></ng-md-icon> Data Processing</div>
            </md-tab-label>
            <md-tab-body>
                <thinkbig-define-feed-data-processing step-index="5" ></thinkbig-define-feed-data-processing>
            </md-tab-body>
        </md-tab>
        <md-tab ng-disabled="vm.steps[6].disabled">
            <md-tab-label>
                <div class="{{vm.steps[6].type}} step-label"><ng-md-icon nomorph md-icon icon="{{vm.steps[6].icon}}" size="{{vm.steps[6].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[6].iconStyle}}"></ng-md-icon> Properties</div>
            </md-tab-label>
            <md-tab-body>
                <thinkbig-define-feed-properties step-index="6"></thinkbig-define-feed-properties>
            </md-tab-body>
        </md-tab>
        <md-tab ng-disabled="vm.steps[7].disabled">
            <md-tab-label>
                <div class="{{vm.steps[7].type}} step-label"><ng-md-icon nomorph md-icon icon="{{vm.steps[7].icon}}" size="{{vm.steps[7].iconSize}}" style="fill-rule:evenodd;fill:{{vm.steps[7].iconStyle}}"></ng-md-icon> Schedule</div>
            </md-tab-label>
            <md-tab-body>
                <thinkbig-define-feed-schedule step-index="7" ></thinkbig-define-feed-schedule>
            </md-tab-body>
        </md-tab>

    </md-tabs>
</form>
</div>
