UNPKG

@incdevco/framework

Version:
587 lines (468 loc) 15 kB
/* 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('iconCheckBox', [ function () { return { link: function ($scope) { $scope.modern = $scope.modern || false; }, replace: true, restrict: 'E', scope: { modern: '=?' }, templateUrl: 'icon/templates/check-box.html' }; } ]) .directive('iconCheckBoxOutlineBlank', [ function () { return { link: function ($scope) { $scope.modern = $scope.modern || false; }, replace: true, restrict: 'E', scope: { modern: '=?' }, templateUrl: 'icon/templates/check-box-outline-blank.html' }; } ]) .directive('iconCheckCircle', [ function () { return { link: function ($scope) { $scope.modern = $scope.modern || false; }, replace: true, restrict: 'E', scope: { modern: '=?' }, templateUrl: 'icon/templates/check-circle.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('iconIndeterminateCheckBox', [ function () { return { link: function ($scope) { $scope.modern = $scope.modern || false; }, replace: true, restrict: 'E', scope: { modern: '=?' }, templateUrl: 'icon/templates/indeterminate-check-box.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', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">add_box</i> <i class="material-icons" ng-if="!modern">&#xE146;</i></span>'); $templateCache.put('icon/templates/add-circle-outline.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">add_circle_outline</i> <i class="material-icons" ng-if="!modern">&#xE148;</i></span>'); $templateCache.put('icon/templates/add-circle.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">add_circle</i> <i class="material-icons" ng-if="!modern">&#xE147;</i></span>'); $templateCache.put('icon/templates/add.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">add</i> <i class="material-icons" ng-if="!modern">&#xE145;</i></span>'); $templateCache.put('icon/templates/check-box-outline-blank.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">check_box_outline_blank</i> <i class="material-icons" ng-if="!modern">&#xe835;</i></span>'); $templateCache.put('icon/templates/check-box.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">check_box</i> <i class="material-icons" ng-if="!modern">&#xe834;</i></span>'); $templateCache.put('icon/templates/check-circle.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">check_circle</i> <i class="material-icons" ng-if="!modern">&#xe86c;</i></span>'); $templateCache.put('icon/templates/clear-all.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">clear_all</i> <i class="material-icons" ng-if="!modern">&#xE0B8;</i></span>'); $templateCache.put('icon/templates/clear.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">clear</i> <i class="material-icons" ng-if="!modern">&#xE14C;</i></span>'); $templateCache.put('icon/templates/close.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">close</i> <i class="material-icons" ng-if="!modern">&#xE5CD;</i></span>'); $templateCache.put('icon/templates/cloud-done.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">cloud_done</i> <i class="material-icons" ng-if="!modern">&#xE2BF;</i></span>'); $templateCache.put('icon/templates/delete.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">delete</i> <i class="material-icons" ng-if="!modern">&#xE872;</i></span>'); $templateCache.put('icon/templates/done-all.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">done_all</i> <i class="material-icons" ng-if="!modern">&#xE877;</i></span>'); $templateCache.put('icon/templates/done.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">done</i> <i class="material-icons" ng-if="!modern">&#xE876;</i></span>'); $templateCache.put('icon/templates/edit.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">edit</i> <i class="material-icons" ng-if="!modern">&#xE3C9;</i></span>'); $templateCache.put('icon/templates/expand-less.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">expand_less</i> <i class="material-icons" ng-if="!modern">&#xE5CE;</i></span>'); $templateCache.put('icon/templates/expand-more.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">expand_more</i> <i class="material-icons" ng-if="!modern">&#xE5CF;</i></span>'); $templateCache.put('icon/templates/indeterminate-check-box.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">indeterminate_check_box</i> <i class="material-icons" ng-if="!modern">&#xe909;</i></span>'); $templateCache.put('icon/templates/input.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">input</i> <i class="material-icons" ng-if="!modern">&#xE890;</i></span>'); $templateCache.put('icon/templates/library-add.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">library_add</i> <i class="material-icons" ng-if="!modern">&#xE02E;</i></span>'); $templateCache.put('icon/templates/opacity.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">opacity</i> <i class="material-icons" ng-if="!modern">&#xE91C;</i></span>'); $templateCache.put('icon/templates/refresh.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">refesh</i> <i class="material-icons" ng-if="!modern">&#xE5D5;</i></span>'); $templateCache.put('icon/templates/remove-circle-outline.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">remove_circle</i> <i class="material-icons" ng-if="!modern">&#xE15C;</i></span>'); $templateCache.put('icon/templates/remove-circle.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">remove_circle_outline</i> <i class="material-icons" ng-if="!modern">&#xE15D;</i></span>'); $templateCache.put('icon/templates/remove.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">remove</i> <i class="material-icons" ng-if="!modern">&#xE15B;</i></span>'); $templateCache.put('icon/templates/report.html', '<span class="icon-wrapper"> <i class="material-icons" ng-if="modern">report</i> <i class="material-icons" ng-if="!modern">&#xE160;</i></span>');} ]);