@incdevco/framework
Version:
node.js lambda framework
507 lines (404 loc) • 11.9 kB
JavaScript
/* global angular */
angular.module('icon', [])
.directive('iconAdd', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/add.html'
};
}
])
.directive('iconAddBox', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/add-box.html'
};
}
])
.directive('iconAddCircle', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/add-circle.html'
};
}
])
.directive('iconAddCircleOutline', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/add-circle-outline.html'
};
}
])
.directive('iconClear', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/clear.html'
};
}
])
.directive('iconClearAll', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/clear-all.html'
};
}
])
.directive('iconClose', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/close.html'
};
}
])
.directive('iconCloudDone', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/cloud-done.html'
};
}
])
.directive('iconDelete', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/delete.html'
};
}
])
.directive('iconDone', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/done.html'
};
}
])
.directive('iconDoneAll', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/done-all.html'
};
}
])
.directive('iconEdit', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/edit.html'
};
}
])
.directive('iconExpandLess', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/expand-less.html'
};
}
])
.directive('iconExpandMore', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/expand-more.html'
};
}
])
.directive('iconInput', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/input.html'
};
}
])
.directive('iconLibraryAdd', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/library-add.html'
};
}
])
.directive('iconMinus', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/remove.html'
};
}
])
.directive('iconOpacity', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/opacity.html'
};
}
])
.directive('iconRefresh', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/refresh.html'
};
}
])
.directive('iconRemove', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/remove.html'
};
}
])
.directive('iconRemoveCircle', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/remove-circle.html'
};
}
])
.directive('iconRemoveCircleOutline', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/remove-circle-outline.html'
};
}
])
.directive('iconReport', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/report.html'
};
}
])
.directive('iconSubtract', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/remove.html'
};
}
])
.directive('iconUpdate', [
function () {
return {
link: function ($scope) {
$scope.modern = $scope.modern || false;
},
replace: true,
restrict: 'E',
scope: {
modern: '='
},
templateUrl: 'icon/templates/edit.html'
};
}
]);
angular.module('icon')
.run([
'$templateCache',
function ($templateCache) {
$templateCache.put('icon/templates/add-box.html', '<i class="material-icons" ng-if="modern">add_box</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/add-circle-outline.html', '<i class="material-icons" ng-if="modern">add_circle_outline</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/add-circle.html', '<i class="material-icons" ng-if="modern">add_circle</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/add.html', '<i class="material-icons" ng-if="modern">add</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/clear-all.html', '<i class="material-icons" ng-if="modern">clear_all</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/clear.html', '<i class="material-icons" ng-if="modern">clear</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/close.html', '<i class="material-icons" ng-if="modern">close</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/cloud-done.html', '<i class="material-icons" ng-if="modern">cloud_done</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/delete.html', '<i class="material-icons" ng-if="modern">delete</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/done-all.html', '<i class="material-icons" ng-if="modern">done_all</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/done.html', '<i class="material-icons" ng-if="modern">done</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/edit.html', '<i class="material-icons" ng-if="modern">edit</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/expand-less.html', '<i class="material-icons" ng-if="modern">expand_less</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/expand-more.html', '<i class="material-icons" ng-if="modern">expand_more</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/input.html', '<i class="material-icons" ng-if="modern">input</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/library-add.html', '<i class="material-icons" ng-if="modern">library_add</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/opacity.html', '<i class="material-icons" ng-if="modern">opacity</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/refresh.html', '<i class="material-icons" ng-if="modern">refesh</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/remove-circle-outline.html', '<i class="material-icons" ng-if="modern">remove_circle</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/remove-circle.html', '<i class="material-icons" ng-if="modern">remove_circle_outline</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/remove.html', '<i class="material-icons" ng-if="modern">remove</i><i class="material-icons" ng-if="!modern"></i>');
$templateCache.put('icon/templates/report.html', '<i class="material-icons" ng-if="modern">report</i><i class="material-icons" ng-if="!modern"></i>');}
]);