Remove unused components

This commit is contained in:
gconsidine 2017-06-26 16:23:05 -04:00
parent 523170491c
commit fd0c67be0c
14 changed files with 0 additions and 326 deletions

View File

@ -3,7 +3,5 @@
@import 'modal/_index';
@import 'panel/_index';
@import 'popover/_index';
@import 'search/_index';
@import 'tabs/_index';
@import 'table/_index';
@import 'utility/_index';

View File

@ -7,8 +7,6 @@ import inputGroup from './input/group.directive';
import inputLabel from './input/label.directive';
import inputLookup from './input/lookup.directive';
import inputMessage from './input/message.directive';
import inputNumber from './input/number.directive';
import inputSelect from './input/select.directive';
import inputSecret from './input/secret.directive';
import inputText from './input/text.directive';
import inputTextarea from './input/textarea.directive';
@ -18,11 +16,8 @@ import panel from './panel/panel.directive';
import panelHeading from './panel/heading.directive';
import panelBody from './panel/body.directive';
import popover from './popover/popover.directive';
import search from './search/search.directive';
import searchKey from './search/key.directive';
import tab from './tabs/tab.directive';
import tabGroup from './tabs/group.directive';
import table from './table/table.directive';
import BaseInputController from './input/base.controller';
@ -37,9 +32,7 @@ angular
.directive('atInputLabel', inputLabel)
.directive('atInputLookup', inputLookup)
.directive('atInputMessage', inputMessage)
.directive('atInputNumber', inputNumber)
.directive('atInputSecret', inputSecret)
.directive('atInputSelect', inputSelect)
.directive('atInputText', inputText)
.directive('atInputTextarea', inputTextarea)
.directive('atInputTextareaSecret', inputTextareaSecret)
@ -48,11 +41,8 @@ angular
.directive('atPanelHeading', panelHeading)
.directive('atPanelBody', panelBody)
.directive('atPopover', popover)
.directive('atSearch', search)
.directive('atSearchKey', searchKey)
.directive('atTab', tab)
.directive('atTabGroup', tabGroup)
.directive('atTable', table)
.service('BaseInputController', BaseInputController);

View File

@ -1,54 +0,0 @@
const DEFAULT_STEP = '1';
const DEFAULT_MIN = '0';
const DEFAULT_MAX = '1000000000';
const DEFAULT_PLACEHOLDER = '';
function atInputNumberLink (scope, element, attrs, controllers) {
let formController = controllers[0];
let inputController = controllers[1];
if (scope.tab === '1') {
element.find('input')[0].focus();
}
inputController.init(scope, element, formController);
}
function AtInputNumberController (baseInputController) {
let vm = this || {};
vm.init = (scope, element, form) => {
baseInputController.call(vm, 'input', scope, element, form);
scope.state._step = scope.state._step || DEFAULT_STEP;
scope.state._min = scope.state._min || DEFAULT_MIN;
scope.state._max = scope.state._max || DEFAULT_MAX;
scope.state._placeholder = scope.state._placeholder || DEFAULT_PLACEHOLDER;
vm.check();
};
}
AtInputNumberController.$inject = ['BaseInputController'];
function atInputNumber (pathService) {
return {
restrict: 'E',
transclude: true,
replace: true,
require: ['^^atForm', 'atInputNumber'],
templateUrl: pathService.getPartialPath('components/input/number'),
controller: AtInputNumberController,
controllerAs: 'vm',
link: atInputNumberLink,
scope: {
state: '=',
col: '@',
tab: '@'
}
};
}
atInputNumber.$inject = ['PathService'];
export default atInputNumber;

View File

@ -1,19 +0,0 @@
<div class="col-sm-{{::col}} at-InputContainer">
<div class="form-group at-u-flat">
<at-input-label></at-input-label>
<input type="number"
class="form-control at-Input"
ng-class="{ 'at-Input--rejected': state.rejected }"
ng-model="state._value"
ng-attr-min="state._min"
ng-attr-max="state._max"
ng-attr-step="state._step"
ng-attr-tabindex="{{ tab || undefined }}"
ng-attr-placeholder="{{::state._placeholder || undefined }}"
ng-change="vm.check()"
ng-disabled="state._disabled || form.disabled" />
<at-input-message></at-input-message>
</div>
</div>

View File

@ -1,37 +0,0 @@
.at-Search-group--left {
padding-right: @at-margin-item-column;
}
.at-Search-group--right {
padding-left: 0;
}
.at-Search-well {
margin: @at-margin-top-search-key 0 0 0;
padding: @at-padding-well;
}
.at-Search-well {
margin: @at-margin-top-search-key 0 0 0;
padding: @at-padding-well;
}
.at-Search-toggle {
width: 100%;
&, &:focus, &:visited, &:active {
background: @at-color-default;
cursor: pointer;
}
}
.at-Search-toggle--active {
&, &:hover, &:focus, &:visited, &:active {
border: @at-color-search-key-active;
background: @at-color-search-key-active;
color: @at-color-default;
cursor: pointer;
}
}

View File

@ -1,38 +0,0 @@
function atSearchKeyLink (scope, element, attrs, controllers) {
let searchController = controllers[0];
let property = `scope.${scope.ns}.search`;
let done = scope.$watch(property, () => {
searchController.init(scope, element);
done();
});
}
function AtSearchKeyController () {
let vm = this || {};
vm.init = (scope, element) => {
/*
*vm.placeholder = DEFAULT_PLACEHOLDER;
*vm.search = scope[scope.ns].search;
*/
};
}
function atSearchKey (pathService) {
return {
restrict: 'E',
transclude: true,
replace: true,
require: ['atSearchKey'],
templateUrl: pathService.getPartialPath('components/search/key'),
controller: AtSearchKeyController,
controllerAs: 'vm',
link: atSearchKeyLink,
scope: true
};
}
atSearchKey.$inject = ['PathService'];
export default atSearchKey;

View File

@ -1,23 +0,0 @@
<div class="col-xs-12">
<div class="well at-Search-well">
<div class="">
<h4>EXAMPLES:</h4>
<span></span>
</div>
<div class="">
<h4>FIELDS:</h4>
<div></div>
</div>
<div>
<h4>RELATED FIELDS:</h4>
<div></div>
</div>
<div class="">
<h4>ADDITIONAL INFORMATION:</h4>
<p>
For additional information on advanced search search syntax please see the
Ansible Tower <at-doc resource="search_sort">documentation</at-doc>.
</p>
</div>
</div>
</div>

View File

@ -1,50 +0,0 @@
const DEFAULT_PLACEHOLDER = 'SEARCH';
function atSearchLink (scope, element, attrs, controllers) {
let inputController = controllers[0];
let property = `scope.${scope.ns}.search`;
let done = scope.$watch(property, () => {
inputController.init(scope, element);
scope.ready = true;
done();
});
}
function AtSearchController () {
let vm = this || {};
let toggleButton;
let input;
vm.init = (scope, element) => {
toggleButton = element.find('.at-Search-toggle')[0];
input = element.find('.at-Input')[0];
vm.placeholder = DEFAULT_PLACEHOLDER;
vm.search = scope[scope.ns].search;
};
vm.toggle = () => {
input.focus();
vm.isToggleActive = !vm.isToggleActive;
};
}
function atSearch (pathService) {
return {
restrict: 'E',
transclude: true,
replace: true,
require: ['atSearch'],
templateUrl: pathService.getPartialPath('components/search/search'),
controller: AtSearchController,
controllerAs: 'vm',
link: atSearchLink,
scope: true
};
}
atSearch.$inject = ['PathService'];
export default atSearch;

View File

@ -1,27 +0,0 @@
<div class="at-InputContainer">
<div class="row">
<div class="col-xs-10 at-Search-group--left">
<div class="form-group at-u-flat">
<div class="input-group">
<input type="text" class="form-control at-Input"
ng-attr-placeholder="{{ vm.placeholder }}" autofocus />
<span class="input-group-btn">
<button class="btn at-ButtonHollow--default at-Input-button">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</div>
</div>
<div class="col-xs-2 at-Search-group--right">
<button class="btn at-ButtonHollow--default at-Search-toggle"
ng-class="{ 'at-Search-toggle--active': vm.isToggleActive }"
ng-click="vm.toggle()">
KEY
</button>
</div>
</div>
<div class="row" ng-show="vm.isToggleActive">
<at-search-key></at-search-key>
</div>
</div>

View File

@ -1,3 +0,0 @@
.at-Table {
margin-top: @at-margin-panel;
}

View File

@ -1,36 +0,0 @@
function atTableLink (scope, element, attrs, controllers) {
let tableController = controllers[0];
tableController.init(scope, element);
}
function AtTableController (baseInputController) {
let vm = this || {};
vm.init = (scope, element) => {
};
}
AtTableController.$inject = ['BaseInputController'];
function atTable (pathService) {
return {
restrict: 'E',
transclude: true,
replace: true,
require: ['atTable'],
templateUrl: pathService.getPartialPath('components/table/table'),
controller: AtTableController,
controllerAs: 'vm',
link: atTableLink,
scope: {
state: '=',
col: '@'
}
};
}
atTable.$inject = ['PathService'];
export default atTable;

View File

@ -1,27 +0,0 @@
<table class="table table-hover table-striped at-Table">
<tr>
<th></th>
<th>Name</th>
<th>Kind</th>
</tr>
<tr>
<td><input type="radio" /></td>
<td>Cell One</td>
<td>Cell Two</td>
</tr>
<tr>
<td><input type="radio" /></td>
<td>Cell One</td>
<td>Cell Two</td>
</tr>
<tr>
<td><input type="radio" /></td>
<td>Cell One</td>
<td>Cell Two</td>
</tr>
<tr>
<td><input type="radio" /></td>
<td>Cell One</td>
<td>Cell Two</td>
</tr>
</table>