Showing 33 of 77 total issues
Function mdtAjaxPaginationHelperFactory
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtAjaxPaginationHelperFactory(ColumnFilterFeature, ColumnSortFeature, PaginatorTypeProvider, _){
function mdtAjaxPaginationHelper(params){
this.paginatorType = PaginatorTypeProvider.AJAX;
Function mdtTableDirective
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtTableDirective(TableDataStorageFactory,
EditCellFeature,
SelectableRowsFeature,
PaginationFeature,
ColumnSelectorFeature,
Function TableDataStorageFactory
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TableDataStorageFactory($log, _){
function TableDataStorageService(){
this.storage = [];
this.header = [];
Function ColumnSortFeature
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ColumnSortFeature(ColumnSortDirectionProvider) {
var service = this;
/**
Function ColumnFilterFeature
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ColumnFilterFeature(ColumnSortFeature, PaginatorTypeProvider){
var service = this;
/**
Function mdtColumnSelectorDirective
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtColumnSelectorDirective(ColumnSelectorFeature, ColumnFilterFeature, PaginatorTypeProvider){
return{
restrict: 'E',
templateUrl: '/main/templates/mdtColumnSelector.html',
scope: true,
Function link
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, element){
ColumnSelectorFeature.positionElement(element);
$scope.headerRowsData = _.map($scope.dataStorage.header, function(item){
//excluded content should also be in, since we use the index of the array to apply the changes. Do not exclude them.
Function mdtPaginationHelperFactory
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtPaginationHelperFactory(PaginatorTypeProvider, _){
function mdtPaginationHelper(dataStorage, paginationSetting){
this.paginatorType = PaginatorTypeProvider.ARRAY;
Function mdtCheckboxColumnFilterDirective
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtCheckboxColumnFilterDirective(_, ColumnFilterFeature, ColumnSortFeature, ColumnSortDirectionProvider){
return{
restrict: 'E',
templateUrl: '/main/templates/mdtCheckboxColumnFilter.html',
scope: {
Function mdtTable
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function mdtTable($scope){
var vm = this;
$scope.rippleEffectCallback = function(){
return $scope.rippleEffect ? $scope.rippleEffect : false;
Function ColumnSelectorFeature
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ColumnSelectorFeature() {
var service = this;
/**
Function link
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, element){
ColumnFilterFeature.positionColumnFilterBox(element);
$scope.transformChip = transformChip;
$scope.selectableItems = [];
Function mdtDropdownColumnFilterDirective
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtDropdownColumnFilterDirective(ColumnFilterFeature, ColumnSortFeature){
return{
restrict: 'E',
templateUrl: '/main/templates/mdtDropdownColumnFilter.html',
scope: {
Function link
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, element, attrs, ctrl, transclude){
$scope.dataStorage = ctrl.dataStorage;
_injectContentIntoTemplate();
Function link
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, element){
ColumnFilterFeature.positionColumnFilterBox(element);
$scope.transformChip = transformChip;
$scope.selectedItem = selectedItem;
Function PaginationFeature
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PaginationFeature(mdtPaginationHelperFactory, mdtAjaxPaginationHelperFactory){
var service = this;
service.initFeature = initFeature;
service.startFeature = startFeature;
Function EditCellFeature
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EditCellFeature($mdDialog){
var service = this;
service.addRequiredFunctions = function($scope, ctrl){
Function mdtChipsColumnFilterDirective
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtChipsColumnFilterDirective(_, $timeout, ColumnFilterFeature, ColumnSortFeature){
return{
restrict: 'E',
templateUrl: '/main/templates/mdtChipsColumnFilter.html',
scope: {
Function addRequiredFunctions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
service.addRequiredFunctions = function($scope, ctrl){
$scope.saveRow = function(rowData){
var rawRowData = ctrl.dataStorage.getSavedRowData(rowData);
Function mdtColumnDirective
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mdtColumnDirective($interpolate, ColumnFilterFeature, ColumnSortFeature, ColumnSelectorFeature){
return {
restrict: 'E',
transclude: true,
replace: true,