Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-material-data-table

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-material-data-table - npm Package Compare versions

Comparing version 0.9.9 to 0.9.11

src/icons/arrow-up.svg

7

bower.json
{
"name": "angular-material-data-table",
"version": "0.9.9",
"version": "0.9.11",
"description": "Material Design data table.",
"main": [
"dist/md-data-table.min.js",
"dist/md-data-table.min.css"
"dist/md-data-table.js",
"dist/md-data-table.css"
],

@@ -28,2 +28,3 @@ "repository": {

"node_modules",
"src",
"Gruntfile.js"

@@ -30,0 +31,0 @@ ],

@@ -0,1 +1,7 @@

/*
* Angular Material Data Table
* https://github.com/daniel-nagy/md-data-table
* @license MIT
* v0.9.11
*/
(function (window, angular, undefined) {

@@ -8,3 +14,3 @@ 'use strict';

$templateCache.put('md-table-pagination.html',
'<span class="label" ng-if="$pagination.showPageSelect()">{{$pagination.$label[\'page\']}}</span>\n' +
'<span class="label" ng-if="$pagination.showPageSelect()">{{ $pagination.$label[\'page\'] }}</span>\n' +
'\n' +

@@ -15,3 +21,3 @@ '<md-select class="md-table-select" ng-if="$pagination.showPageSelect()" ng-model="$pagination.page" md-container-class="md-pagination-select" ng-change="$pagination.onPaginationChange()" aria-label="Page">\n' +

'\n' +
'<span class="label">{{$pagination.$label[\'rowsPerPage\']}}</span>\n' +
'<span class="label">{{ $pagination.$label[\'rowsPerPage\'] }}</span>\n' +
'\n' +

@@ -22,3 +28,3 @@ '<md-select class="md-table-select" ng-model="$pagination.limit" md-container-class="md-pagination-select" aria-label="Rows" placeholder="{{$pagination.options ? $pagination.options[0] : 5}}">\n' +

'\n' +
'<span class="label">{{$pagination.min() + 1}} - {{$pagination.max()}} {{$pagination.$label[\'of\']}} {{$pagination.total}}</span>\n' +
'<span class="label">{{$pagination.min() + 1}} - {{$pagination.max()}} {{ $pagination.$label[\'of\'] }} {{$pagination.total}}</span>\n' +
'\n' +

@@ -25,0 +31,0 @@ '<md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.first()" ng-disabled="!$pagination.hasPrevious()" aria-label="First">\n' +

@@ -1,1 +0,1 @@

!function(a,b,c){"use strict";function d(){function a(a){a.addClass("md-body")}return{compile:a,restrict:"A"}}function e(){function a(a){var b=a.find("md-select");return b.length&&b.addClass("md-table-select").attr("md-container-class","md-table-select"),a.addClass("md-cell"),c}function b(){}function c(a,b,c,d){function e(){return i.$$columns[f()]}function f(){return Array.prototype.indexOf.call(b.parent().children(),b[0])}var g=b.find("md-select"),h=d.shift(),i=d.shift();c.ngClick&&b.addClass("md-clickable"),g.length&&(g.on("click",function(a){a.stopPropagation()}),b.addClass("md-clickable").on("click",function(a){a.stopPropagation(),g[0].click()})),h.getTable=i.getElement,a.$watch(e,function(a){a&&(a.numeric?b.addClass("md-numeric"):b.removeClass("md-numeric"))})}return{controller:b,compile:a,require:["mdCell","^^mdTable"],restrict:"A"}}function f(a){function c(a){return a.addClass("md-column"),d}function d(c,d,e,f){function g(){var e=b.element('<md-icon md-svg-icon="arrow-up.svg">');a(e.addClass("md-sort-icon").attr("ng-class","getDirection()"))(c),d.hasClass("md-numeric")?d.prepend(e):d.append(e)}function h(){Array.prototype.some.call(d.find("md-icon"),function(a){return a.classList.contains("md-sort-icon")&&d[0].removeChild(a)})}function i(){h(),d.removeClass("md-sort").off("click",n)}function j(){g(),d.addClass("md-sort").on("click",n)}function k(){return Array.prototype.indexOf.call(d.parent().children(),d[0])}function l(){return c.orderBy?p.order===c.orderBy||p.order==="-"+c.orderBy:!1}function m(){return e.hasOwnProperty("mdNumeric")&&""===e.mdNumeric?!0:c.numeric}function n(){c.$applyAsync(function(){l()?p.order="md-asc"===c.getDirection()?"-"+c.orderBy:c.orderBy:p.order="md-asc"===c.getDirection()?c.orderBy:"-"+c.orderBy,b.isFunction(p.onReorder)&&p.onReorder(p.order)})}function o(a,b){q.$$columns[a]=b,b.numeric?d.addClass("md-numeric"):d.removeClass("md-numeric")}var p=f.shift(),q=f.shift();c.getDirection=function(){return l()?p.order==="-"+c.orderBy?"md-desc":"md-asc":e.hasOwnProperty("mdDesc")?"md-desc":"md-asc"},c.$watch(l,function(a){a?d.addClass("md-active"):d.removeClass("md-active")}),c.$watch(k,function(a){o(a,{numeric:m()})}),c.$watch(m,function(a){o(k(),{numeric:a})}),c.$watch("orderBy",function(a){a?j():i()})}return{compile:c,require:["^^mdHead","^^mdTable"],restrict:"A",scope:{numeric:"=?mdNumeric",orderBy:"@?mdOrderBy"}}}function g(a){return function(c,d,e,f){if(e&&"object"==typeof e){var g=a(c,d,!0,f);return b.extend(g.instance,e),g()}return a(c,d,e,f)}}function h(a,c,d,e,f,g,h,i,j){function k(c,d){var f,h=g.$new(),i=a(c)(h),j=e.createBackdrop(h,"md-edit-dialog-backdrop");if(d.controller?f=m(d,h,{$element:i,$scope:h}):b.extend(h,d.scope),d.disableScroll&&l(i),u.prepend(j).append(i.addClass("md-whiteframe-1dp")),q(i,d.targetEvent.currentTarget),d.focusOnOpen){var k=e.findFocusTarget(i);k&&k.focus()}return d.clickOutsideToClose&&j.on("click",function(){i.remove()}),d.escToClose&&p(i),i.on("$destroy",function(){t=!1,j.remove()}),f}function l(a){var b=e.disableScrollAround(a,u);a.on("$destroy",function(){b()})}function m(a,d,e){return a.controller?(a.resolve&&b.extend(e,a.resolve),a.locals&&b.extend(e,a.locals),a.controllerAs?(d[a.controllerAs]={},a.bindToController?b.extend(d[a.controllerAs],a.scope):b.extend(d,a.scope)):b.extend(d,a.scope),a.bindToController?c(a.controller,e,d[a.controllerAs]):c(a.controller,e)):void 0}function n(a){return f(function(c,d){function e(a){d("Unexpected template value. Expected a string; received a "+a+".")}var f=a.template;if(f)return b.isString(f)?c(f):e(typeof f);if(a.templateUrl){if(f=h.get(a.templateUrl))return c(f);var g=function(a){return c(a)},j=function(){return d("Error retrieving template from URL.")};return i(a.templateUrl).then(g,j)}d("Template not provided.")})}function o(a){t=!1,console.error(a)}function p(a){var b=function(b){b.keyCode===s&&a.remove()};u.on("keyup",b),a.on("$destroy",function(){u.off("keyup",b)})}function q(a,c){var d=b.element(c).controller("mdCell").getTable(),e=function(){return a.prop("clientHeight")},f=function(){return{width:i(),height:e()}},h=function(){var a=d.parent();return"MD-TABLE-CONTAINER"===a.prop("tagName")?a[0].getBoundingClientRect():d[0].getBoundingClientRect()},i=function(){return a.prop("clientWidth")},k=function(){var b=f(),d=c.getBoundingClientRect(),e=h();b.width>e.right-d.left?a.css("left",e.right-b.width+"px"):a.css("left",d.left+"px"),b.height>e.bottom-d.top?a.css("top",e.bottom-b.height+"px"):a.css("top",d.top+1+"px"),a.css("minWidth",d.width+"px")},l=g.$watch(i,k),m=g.$watch(e,k);j.addEventListener("resize",k),a.on("$destroy",function(){l(),m(),j.removeEventListener("resize",k)})}function r(a,c){function d(){var a='type="'+(c.type||"text")+'"';for(var b in c.validators)a+=" "+b+'="'+c.validators[b]+'"';return a}return{controller:["$element","$q","save","$scope",function(a,c,d,e){function f(){return e.editDialog.$invalid?c.reject():b.isFunction(d)?c.when(d(e.editDialog.input)):c.resolve()}this.dismiss=function(){a.remove()},this.getInput=function(){return e.editDialog.input},e.dismiss=this.dismiss,e.submit=function(){f().then(function(){e.dismiss()})}}],locals:{save:c.save},scope:{cancel:c.cancel||"Cancel",messages:c.messages,model:c.modelValue,ok:c.ok||"Save",placeholder:c.placeholder,title:c.title,size:a},template:'<md-edit-dialog><div layout="column" class="md-content"><div ng-if="size === \'large\'" class="md-title">{{title || \'Edit\'}}</div><form name="editDialog" layout="column" ng-submit="submit(model)"><md-input-container md-no-float><input name="input" ng-model="model" md-autofocus placeholder="{{placeholder}} "'+d()+'><div ng-messages="editDialog.input.$error"><div ng-repeat="(key, message) in messages" ng-message="{{key}}">{{message}}</div></div></md-input-container></form></div><div ng-if="size === \'large\'" layout="row" layout-align="end" class="md-actions"><md-button class="md-primary" ng-click="dismiss()">{{cancel}}</md-button><md-button class="md-primary" ng-click="submit()">{{ok}}</md-button></div></md-edit-dialog>'}}var s=27,t=!1,u=b.element(d.prop("body")),v={clickOutsideToClose:!0,disableScroll:!0,escToClose:!0,focusOnOpen:!0};return this.show=function(a){if(t)return f.reject();if(t=!0,a=b.extend({},v,a),!a.targetEvent)return o("options.targetEvent is required to align the dialog with the table cell.");if(!a.targetEvent.currentTarget.classList.contains("md-cell"))return o("The event target must be a table cell.");if(a.bindToController&&!a.controllerAs)return o("You must define options.controllerAs when options.bindToController is true.");var c=n(a),d=[c];for(var e in a.resolve)c=a.resolve[e],d.push(f.when(b.isFunction(c)?c():c));return c=f.all(d),c["catch"](o),c.then(function(b){var c=b.shift();for(var d in a.resolve)a.resolve[d]=b.shift();return k(c,a)})},this.small=function(a){return this.show(b.extend({},a,r("small",a)))}.bind(this),this.large=function(a){return this.show(b.extend({},a,r("large",a)))}.bind(this),this}function i(){function a(a){a.addClass("md-foot")}return{compile:a,restrict:"A"}}function j(a){function c(a){return a.addClass("md-head"),e}function d(){}function e(c,d,e,f){function g(){for(var a=d.children(),b=0;b<a.length-1;b++)a.eq(b).prepend('<th class="md-column">');a.eq(a.length-1).prepend(h())}function h(){var d=b.element("<md-checkbox>");return d.attr("aria-label","Select All"),d.attr("ng-click","toggleAll()"),d.attr("ng-checked","allSelected()"),b.element('<th class="md-column md-checkbox-column">').append(a(d)(c))}function i(){return f.$$rowSelect}function j(a){return b.element(a).controller("mdSelect")}function k(){var a=d.children(),b=a.eq(a.length-1);Array.prototype.some.call(b.prop("cells"),function(a){return a.classList.contains("md-checkbox-column")&&b[0].removeChild(a)})}c.allSelected=function(){var a=f.getBodyRows();return a.length&&a.map(j).every(function(a){return a&&a.isSelected()})},c.selectAll=function(){f.getBodyRows().map(j).forEach(function(a){a&&!a.isSelected()&&a.select()})},c.toggleAll=function(){return c.allSelected()?c.unSelectAll():c.selectAll()},c.unSelectAll=function(){f.getBodyRows().map(j).forEach(function(a){a&&a.isSelected()&&a.deselect()})},c.$watch(i,function(a){a?g():k()})}return{bindToController:!0,compile:c,controller:d,controllerAs:"$mdHead",require:"^^mdTable",restrict:"A",scope:{order:"=?mdOrder",onReorder:"=?mdOnReorder"}}}function k(){function a(a){return a.addClass("md-row"),c}function c(a,c,d,e){function f(){return e.$$rowSelect}function g(){return-1!==e.getBodyRows().indexOf(c[0])}function h(a){return a.parent()[0]===c[0]}if(g()){var i=b.element('<td class="md-cell">');a.$watch(f,function(a){return a&&!d.mdSelect?void(h(i)||c.prepend(i)):void(h(i)&&i.remove())})}}return{compile:a,require:"^^mdTable",restrict:"A"}}function l(a){function c(){}function d(c,d,e,f){function g(){return e.hasOwnProperty("mdAutoSelect")&&""===e.mdAutoSelect?!0:n.autoSelect}function h(){var d=b.element("<md-checkbox>");return d.attr("aria-label","Select Row"),d.attr("ng-click","$mdSelect.toggle($event)"),d.attr("ng-checked","$mdSelect.isSelected()"),d.attr("ng-disabled","$mdSelect.disabled"),b.element('<td class="md-cell md-checkbox-cell">').append(a(d)(c))}function i(){Array.prototype.some.call(d.children(),function(a){return a.classList.contains("md-checkbox-cell")&&d[0].removeChild(a)}),g()&&d.off("click",m)}function j(){d.prepend(h()),g()&&d.on("click",m)}function k(){return o.$$rowSelect}function l(a){return n.id?o.$$hash.has(n.id)?void(-1===a.indexOf(o.$$hash.get(n.id))&&o.$$hash.purge(n.id)):void(-1!==a.indexOf(n.model)&&o.$$hash.update(n.id,n.model)):void 0}function m(a){c.$applyAsync(function(){n.toggle(a)})}var n=f.shift(),o=f.shift();if(o.$$rowSelect&&n.id&&o.$$hash.has(n.id)){var p=o.selected.indexOf(o.$$hash.get(n.id));-1===p?o.$$hash.purge(n.id):o.$$hash.equals(n.id,n.model)||(o.$$hash.update(n.id,n.model),o.selected.splice(p,1,n.model))}n.isSelected=function(){return o.$$rowSelect?n.id?o.$$hash.has(n.id):-1!==o.selected.indexOf(n.model):!1},n.select=function(){n.disabled||(o.selected.push(n.model),b.isFunction(n.onSelect)&&n.onSelect(n.model))},n.deselect=function(){n.disabled||(o.selected.splice(o.selected.indexOf(n.model),1),b.isFunction(n.onDeselect)&&n.onDeselect(n.model))},n.toggle=function(a){return a&&a.stopPropagation&&a.stopPropagation(),n.isSelected()?n.deselect():n.select()},c.$watch(k,function(a){a?j():i()}),c.$watch(g,function(a,b){a!==b&&(o.$$rowSelect&&a?d.on("click",m):d.off("click",m))}),c.$watch(n.isSelected,function(a){return a?d.addClass("md-selected"):d.removeClass("md-selected")}),o.registerModelChangeListener(l),d.on("$destroy",function(){o.removeModelChangeListener(l)})}return{bindToController:!0,controller:c,controllerAs:"$mdSelect",link:d,require:["mdSelect","^^mdTable"],restrict:"A",scope:{id:"@mdSelectId",model:"=mdSelect",disabled:"=ngDisabled",onSelect:"=?mdOnSelect",onDeselect:"=?mdOnDeselect",autoSelect:"=mdAutoSelect"}}}function m(){var a={};this.equals=function(b,c){return a[b]===c},this.get=function(b){return a[b]},this.has=function(b){return a.hasOwnProperty(b)},this.purge=function(b){delete a[b]},this.update=function(b,c){a[b]=c}}function n(){function a(a,c){if(a.addClass("md-table"),c.hasOwnProperty("mdProgress")){var d=a.find("tbody")[0],e=b.element('<thead class="md-table-progress">');d&&a[0].insertBefore(e[0],d)}}function c(a,c,d,e){function f(){l.$$rowSelect=!0,k=e.$watchCollection("$mdTable.selected",function(a){o.forEach(function(b){b(a)})}),c.addClass("md-row-select")}function g(){l.$$rowSelect=!1,b.isFunction(k)&&k(),c.removeClass("md-row-select")}function h(){return n.length?void n[0].then(function(){n.shift(),h()}):e.$applyAsync()}function i(){return a.hasOwnProperty("mdRowSelect")&&""===a.mdRowSelect?!0:l.rowSelect}function j(){return l.selected?b.isArray(l.selected)?!0:console.error("Row selection: Expected an array. Recived "+typeof l.selected+"."):console.error("Row selection: ngModel is not defined.")}var k,l=this,n=[],o=[];l.$$hash=new m,l.$$columns={},l.columnCount=function(){return l.getRows(c[0]).reduce(function(a,b){return b.cells.length>a?b.cells.length:a},0)},l.getRows=function(a){return Array.prototype.filter.call(a.rows,function(a){return!a.classList.contains("ng-leave")})},l.getBodyRows=function(){return Array.prototype.reduce.call(c.prop("tBodies"),function(a,b){return a.concat(l.getRows(b))},[])},l.getElement=function(){return c},l.getHeaderRows=function(){return l.getRows(c.prop("tHead"))},l.waitingOnPromise=function(){return!!n.length},l.queuePromise=function(a){a&&1===n.push(b.isArray(a)?d.all(a):d.when(a))&&h()},l.registerModelChangeListener=function(a){o.push(a)},l.removeModelChangeListener=function(a){var b=o.indexOf(a);-1!==b&&o.splice(b,1)},a.hasOwnProperty("mdProgress")&&e.$watch("$mdTable.progress",l.queuePromise),e.$watch(i,function(a){a&&j()?f():g()})}return c.$inject=["$attrs","$element","$q","$scope"],{bindToController:!0,compile:a,controller:c,controllerAs:"$mdTable",restrict:"A",scope:{progress:"=?mdProgress",selected:"=ngModel",rowSelect:"=mdRowSelect"}}}function o(){function a(a){a.addClass("md-table-pagination")}function c(a,c){function d(a){return a>0}function e(a){return 0===a||"0"===a}var f=this;f.$label=b.extend({page:"Page:",rowsPerPage:"Rows per page:",of:"of"},c.$eval(f.label)||{}),f.disableNext=function(){return e(f.limit)||!f.hasNext()},f.first=function(){f.page=1,f.onPaginationChange()},f.hasNext=function(){return f.page*f.limit<f.total},f.hasPrevious=function(){return f.page>1},f.last=function(){f.page=f.pages(),f.onPaginationChange()},f.max=function(){return f.hasNext()?f.page*f.limit:f.total},f.min=function(){return f.page*f.limit-f.limit},f.next=function(){f.page++,f.onPaginationChange()},f.onPaginationChange=function(){b.isFunction(f.onPaginate)&&f.onPaginate(f.page,f.limit)},f.pages=function(){return Math.ceil(f.total/(e(f.limit)?1:f.limit))},f.previous=function(){f.page--,f.onPaginationChange()},f.range=function(a){return new Array(isFinite(a)&&d(a)?a:1)},f.showBoundaryLinks=function(){return a.hasOwnProperty("mdBoundaryLinks")&&""===a.mdBoundaryLinks?!0:f.boundaryLinks},f.showPageSelect=function(){return a.hasOwnProperty("mdPageSelect")&&""===a.mdPageSelect?!0:f.pageSelect},c.$watch("$pagination.limit",function(a,b){a!==b&&(f.page=Math.floor((f.page*b-b+a)/(e(a)?1:a)),f.onPaginationChange())})}return c.$inject=["$attrs","$scope"],{bindToController:{boundaryLinks:"=?mdBoundaryLinks",label:"@?mdLabel",limit:"=mdLimit",page:"=mdPage",pageSelect:"=?mdPageSelect",onPaginate:"=?mdOnPaginate",options:"=mdOptions",total:"@mdTotal"},compile:a,controller:c,controllerAs:"$pagination",restrict:"E",scope:{},templateUrl:"md-table-pagination.html"}}function p(){function a(a,b,c,d){a.columnCount=d.columnCount,a.deferred=d.waitingOnPromise}return{link:a,require:"^^mdTable",restrict:"C",scope:{},templateUrl:"md-table-progress.html"}}b.module("md.table.templates",["md-table-pagination.html","md-table-progress.html","arrow-up.svg","navigate-before.svg","navigate-first.svg","navigate-last.svg","navigate-next.svg"]),b.module("md-table-pagination.html",[]).run(["$templateCache",function(a){a.put("md-table-pagination.html",'<span class="label" ng-if="$pagination.showPageSelect()">{{$pagination.$label[\'page\']}}</span>\n\n<md-select class="md-table-select" ng-if="$pagination.showPageSelect()" ng-model="$pagination.page" md-container-class="md-pagination-select" ng-change="$pagination.onPaginationChange()" aria-label="Page">\n <md-option ng-repeat="num in $pagination.range($pagination.pages()) track by $index" ng-value="$index + 1">{{$index + 1}}</md-option>\n</md-select>\n\n<span class="label">{{$pagination.$label[\'rowsPerPage\']}}</span>\n\n<md-select class="md-table-select" ng-model="$pagination.limit" md-container-class="md-pagination-select" aria-label="Rows" placeholder="{{$pagination.options ? $pagination.options[0] : 5}}">\n <md-option ng-repeat="rows in $pagination.options ? $pagination.options : [5, 10, 15]" ng-value="rows">{{rows}}</md-option>\n</md-select>\n\n<span class="label">{{$pagination.min() + 1}} - {{$pagination.max()}} {{$pagination.$label[\'of\']}} {{$pagination.total}}</span>\n\n<md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.first()" ng-disabled="!$pagination.hasPrevious()" aria-label="First">\n <md-icon md-svg-icon="navigate-first.svg"></md-icon>\n</md-button>\n<md-button class="md-icon-button" type="button" ng-click="$pagination.previous()" ng-disabled="!$pagination.hasPrevious()" aria-label="Previous">\n <md-icon md-svg-icon="navigate-before.svg"></md-icon>\n</md-button>\n<md-button class="md-icon-button" type="button" ng-click="$pagination.next()" ng-disabled="$pagination.disableNext()" aria-label="Next">\n <md-icon md-svg-icon="navigate-next.svg"></md-icon>\n</md-button>\n<md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.last()" ng-disabled="$pagination.disableNext()" aria-label="Last">\n <md-icon md-svg-icon="navigate-last.svg"></md-icon>\n</md-button>')}]),b.module("md-table-progress.html",[]).run(["$templateCache",function(a){a.put("md-table-progress.html",'<tr>\n <th colspan="{{columnCount()}}">\n <md-progress-linear ng-show="deferred()" md-mode="indeterminate"></md-progress-linear>\n </th>\n</tr>')}]),b.module("arrow-up.svg",[]).run(["$templateCache",function(a){a.put("arrow-up.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>')}]),b.module("navigate-before.svg",[]).run(["$templateCache",function(a){a.put("navigate-before.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>')}]),b.module("navigate-first.svg",[]).run(["$templateCache",function(a){a.put("navigate-first.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 6 v12 h2 v-12 h-2z M17.41 7.41L16 6l-6 6 6 6 1.41-1.41L12.83 12z"/></svg>')}]),b.module("navigate-last.svg",[]).run(["$templateCache",function(a){a.put("navigate-last.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 6 v12 h2 v-12 h-2z M8 6L6.59 7.41 11.17 12l-4.58 4.59L8 18l6-6z"/></svg>')}]),b.module("navigate-next.svg",[]).run(["$templateCache",function(a){a.put("navigate-next.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>')}]),b.module("md.data.table",["md.table.templates"]),b.module("md.data.table").directive("mdBody",d),b.module("md.data.table").directive("mdCell",e),b.module("md.data.table").directive("mdColumn",f),f.$inject=["$compile"],b.module("md.data.table").decorator("$controller",g).factory("$mdEditDialog",h),g.$inject=["$delegate"],h.$inject=["$compile","$controller","$document","$mdUtil","$q","$rootScope","$templateCache","$templateRequest","$window"],b.module("md.data.table").directive("mdFoot",i),b.module("md.data.table").directive("mdHead",j),j.$inject=["$compile"],b.module("md.data.table").directive("mdRow",k),b.module("md.data.table").directive("mdSelect",l),l.$inject=["$compile"],b.module("md.data.table").directive("mdTable",n),b.module("md.data.table").directive("mdTablePagination",o),b.module("md.data.table").directive("mdTableProgress",p)}(window,angular);
!function(a,b,c){"use strict";function d(){function a(a){a.addClass("md-body")}return{compile:a,restrict:"A"}}function e(){function a(a){var b=a.find("md-select");return b.length&&b.addClass("md-table-select").attr("md-container-class","md-table-select"),a.addClass("md-cell"),c}function b(){}function c(a,b,c,d){function e(){return i.$$columns[f()]}function f(){return Array.prototype.indexOf.call(b.parent().children(),b[0])}var g=b.find("md-select"),h=d.shift(),i=d.shift();c.ngClick&&b.addClass("md-clickable"),g.length&&(g.on("click",function(a){a.stopPropagation()}),b.addClass("md-clickable").on("click",function(a){a.stopPropagation(),g[0].click()})),h.getTable=i.getElement,a.$watch(e,function(a){a&&(a.numeric?b.addClass("md-numeric"):b.removeClass("md-numeric"))})}return{controller:b,compile:a,require:["mdCell","^^mdTable"],restrict:"A"}}function f(a){function c(a){return a.addClass("md-column"),d}function d(c,d,e,f){function g(){var e=b.element('<md-icon md-svg-icon="arrow-up.svg">');a(e.addClass("md-sort-icon").attr("ng-class","getDirection()"))(c),d.hasClass("md-numeric")?d.prepend(e):d.append(e)}function h(){Array.prototype.some.call(d.find("md-icon"),function(a){return a.classList.contains("md-sort-icon")&&d[0].removeChild(a)})}function i(){h(),d.removeClass("md-sort").off("click",n)}function j(){g(),d.addClass("md-sort").on("click",n)}function k(){return Array.prototype.indexOf.call(d.parent().children(),d[0])}function l(){return c.orderBy?p.order===c.orderBy||p.order==="-"+c.orderBy:!1}function m(){return e.hasOwnProperty("mdNumeric")&&""===e.mdNumeric?!0:c.numeric}function n(){c.$applyAsync(function(){l()?p.order="md-asc"===c.getDirection()?"-"+c.orderBy:c.orderBy:p.order="md-asc"===c.getDirection()?c.orderBy:"-"+c.orderBy,b.isFunction(p.onReorder)&&p.onReorder(p.order)})}function o(a,b){q.$$columns[a]=b,b.numeric?d.addClass("md-numeric"):d.removeClass("md-numeric")}var p=f.shift(),q=f.shift();c.getDirection=function(){return l()?p.order==="-"+c.orderBy?"md-desc":"md-asc":e.hasOwnProperty("mdDesc")?"md-desc":"md-asc"},c.$watch(l,function(a){a?d.addClass("md-active"):d.removeClass("md-active")}),c.$watch(k,function(a){o(a,{numeric:m()})}),c.$watch(m,function(a){o(k(),{numeric:a})}),c.$watch("orderBy",function(a){a?j():i()})}return{compile:c,require:["^^mdHead","^^mdTable"],restrict:"A",scope:{numeric:"=?mdNumeric",orderBy:"@?mdOrderBy"}}}function g(a){return function(c,d,e,f){if(e&&"object"==typeof e){var g=a(c,d,!0,f);return b.extend(g.instance,e),g()}return a(c,d,e,f)}}function h(a,c,d,e,f,g,h,i,j){function k(c,d){var f,h=g.$new(),i=a(c)(h),j=e.createBackdrop(h,"md-edit-dialog-backdrop");if(d.controller?f=m(d,h,{$element:i,$scope:h}):b.extend(h,d.scope),d.disableScroll&&l(i),u.prepend(j).append(i.addClass("md-whiteframe-1dp")),q(i,d.targetEvent.currentTarget),d.focusOnOpen){var k=e.findFocusTarget(i);k&&k.focus()}return d.clickOutsideToClose&&j.on("click",function(){i.remove()}),d.escToClose&&p(i),i.on("$destroy",function(){t=!1,j.remove()}),f}function l(a){var b=e.disableScrollAround(a,u);a.on("$destroy",function(){b()})}function m(a,d,e){return a.controller?(a.resolve&&b.extend(e,a.resolve),a.locals&&b.extend(e,a.locals),a.controllerAs?(d[a.controllerAs]={},a.bindToController?b.extend(d[a.controllerAs],a.scope):b.extend(d,a.scope)):b.extend(d,a.scope),a.bindToController?c(a.controller,e,d[a.controllerAs]):c(a.controller,e)):void 0}function n(a){return f(function(c,d){function e(a){d("Unexpected template value. Expected a string; received a "+a+".")}var f=a.template;if(f)return b.isString(f)?c(f):e(typeof f);if(a.templateUrl){if(f=h.get(a.templateUrl))return c(f);var g=function(a){return c(a)},j=function(){return d("Error retrieving template from URL.")};return i(a.templateUrl).then(g,j)}d("Template not provided.")})}function o(a){t=!1,console.error(a)}function p(a){var b=function(b){b.keyCode===s&&a.remove()};u.on("keyup",b),a.on("$destroy",function(){u.off("keyup",b)})}function q(a,c){var d=b.element(c).controller("mdCell").getTable(),e=function(){return a.prop("clientHeight")},f=function(){return{width:i(),height:e()}},h=function(){var a=d.parent();return"MD-TABLE-CONTAINER"===a.prop("tagName")?a[0].getBoundingClientRect():d[0].getBoundingClientRect()},i=function(){return a.prop("clientWidth")},k=function(){var b=f(),d=c.getBoundingClientRect(),e=h();b.width>e.right-d.left?a.css("left",e.right-b.width+"px"):a.css("left",d.left+"px"),b.height>e.bottom-d.top?a.css("top",e.bottom-b.height+"px"):a.css("top",d.top+1+"px"),a.css("minWidth",d.width+"px")},l=g.$watch(i,k),m=g.$watch(e,k);j.addEventListener("resize",k),a.on("$destroy",function(){l(),m(),j.removeEventListener("resize",k)})}function r(a,c){function d(){var a='type="'+(c.type||"text")+'"';for(var b in c.validators)a+=" "+b+'="'+c.validators[b]+'"';return a}return{controller:["$element","$q","save","$scope",function(a,c,d,e){function f(){return e.editDialog.$invalid?c.reject():b.isFunction(d)?c.when(d(e.editDialog.input)):c.resolve()}this.dismiss=function(){a.remove()},this.getInput=function(){return e.editDialog.input},e.dismiss=this.dismiss,e.submit=function(){f().then(function(){e.dismiss()})}}],locals:{save:c.save},scope:{cancel:c.cancel||"Cancel",messages:c.messages,model:c.modelValue,ok:c.ok||"Save",placeholder:c.placeholder,title:c.title,size:a},template:'<md-edit-dialog><div layout="column" class="md-content"><div ng-if="size === \'large\'" class="md-title">{{title || \'Edit\'}}</div><form name="editDialog" layout="column" ng-submit="submit(model)"><md-input-container md-no-float><input name="input" ng-model="model" md-autofocus placeholder="{{placeholder}} "'+d()+'><div ng-messages="editDialog.input.$error"><div ng-repeat="(key, message) in messages" ng-message="{{key}}">{{message}}</div></div></md-input-container></form></div><div ng-if="size === \'large\'" layout="row" layout-align="end" class="md-actions"><md-button class="md-primary" ng-click="dismiss()">{{cancel}}</md-button><md-button class="md-primary" ng-click="submit()">{{ok}}</md-button></div></md-edit-dialog>'}}var s=27,t=!1,u=b.element(d.prop("body")),v={clickOutsideToClose:!0,disableScroll:!0,escToClose:!0,focusOnOpen:!0};return this.show=function(a){if(t)return f.reject();if(t=!0,a=b.extend({},v,a),!a.targetEvent)return o("options.targetEvent is required to align the dialog with the table cell.");if(!a.targetEvent.currentTarget.classList.contains("md-cell"))return o("The event target must be a table cell.");if(a.bindToController&&!a.controllerAs)return o("You must define options.controllerAs when options.bindToController is true.");var c=n(a),d=[c];for(var e in a.resolve)c=a.resolve[e],d.push(f.when(b.isFunction(c)?c():c));return c=f.all(d),c["catch"](o),c.then(function(b){var c=b.shift();for(var d in a.resolve)a.resolve[d]=b.shift();return k(c,a)})},this.small=function(a){return this.show(b.extend({},a,r("small",a)))}.bind(this),this.large=function(a){return this.show(b.extend({},a,r("large",a)))}.bind(this),this}function i(){function a(a){a.addClass("md-foot")}return{compile:a,restrict:"A"}}function j(a){function c(a){return a.addClass("md-head"),e}function d(){}function e(c,d,e,f){function g(){for(var a=d.children(),b=0;b<a.length-1;b++)a.eq(b).prepend('<th class="md-column">');a.eq(a.length-1).prepend(h())}function h(){var d=b.element("<md-checkbox>");return d.attr("aria-label","Select All"),d.attr("ng-click","toggleAll()"),d.attr("ng-checked","allSelected()"),b.element('<th class="md-column md-checkbox-column">').append(a(d)(c))}function i(){return f.$$rowSelect}function j(a){return b.element(a).controller("mdSelect")}function k(){var a=d.children(),b=a.eq(a.length-1);Array.prototype.some.call(b.prop("cells"),function(a){return a.classList.contains("md-checkbox-column")&&b[0].removeChild(a)})}c.allSelected=function(){var a=f.getBodyRows();return a.length&&a.map(j).every(function(a){return a&&a.isSelected()})},c.selectAll=function(){f.getBodyRows().map(j).forEach(function(a){a&&!a.isSelected()&&a.select()})},c.toggleAll=function(){return c.allSelected()?c.unSelectAll():c.selectAll()},c.unSelectAll=function(){f.getBodyRows().map(j).forEach(function(a){a&&a.isSelected()&&a.deselect()})},c.$watch(i,function(a){a?g():k()})}return{bindToController:!0,compile:c,controller:d,controllerAs:"$mdHead",require:"^^mdTable",restrict:"A",scope:{order:"=?mdOrder",onReorder:"=?mdOnReorder"}}}function k(){function a(a){return a.addClass("md-row"),c}function c(a,c,d,e){function f(){return e.$$rowSelect}function g(){return-1!==e.getBodyRows().indexOf(c[0])}function h(a){return a.parent()[0]===c[0]}if(g()){var i=b.element('<td class="md-cell">');a.$watch(f,function(a){return a&&!d.mdSelect?void(h(i)||c.prepend(i)):void(h(i)&&i.remove())})}}return{compile:a,require:"^^mdTable",restrict:"A"}}function l(a){function c(){}function d(c,d,e,f){function g(){return e.hasOwnProperty("mdAutoSelect")&&""===e.mdAutoSelect?!0:n.autoSelect}function h(){var d=b.element("<md-checkbox>");return d.attr("aria-label","Select Row"),d.attr("ng-click","$mdSelect.toggle($event)"),d.attr("ng-checked","$mdSelect.isSelected()"),d.attr("ng-disabled","$mdSelect.disabled"),b.element('<td class="md-cell md-checkbox-cell">').append(a(d)(c))}function i(){Array.prototype.some.call(d.children(),function(a){return a.classList.contains("md-checkbox-cell")&&d[0].removeChild(a)}),g()&&d.off("click",m)}function j(){d.prepend(h()),g()&&d.on("click",m)}function k(){return o.$$rowSelect}function l(a){return n.id?o.$$hash.has(n.id)?void(-1===a.indexOf(o.$$hash.get(n.id))&&o.$$hash.purge(n.id)):void(-1!==a.indexOf(n.model)&&o.$$hash.update(n.id,n.model)):void 0}function m(a){c.$applyAsync(function(){n.toggle(a)})}var n=f.shift(),o=f.shift();if(o.$$rowSelect&&n.id&&o.$$hash.has(n.id)){var p=o.selected.indexOf(o.$$hash.get(n.id));-1===p?o.$$hash.purge(n.id):o.$$hash.equals(n.id,n.model)||(o.$$hash.update(n.id,n.model),o.selected.splice(p,1,n.model))}n.isSelected=function(){return o.$$rowSelect?n.id?o.$$hash.has(n.id):-1!==o.selected.indexOf(n.model):!1},n.select=function(){n.disabled||(o.selected.push(n.model),b.isFunction(n.onSelect)&&n.onSelect(n.model))},n.deselect=function(){n.disabled||(o.selected.splice(o.selected.indexOf(n.model),1),b.isFunction(n.onDeselect)&&n.onDeselect(n.model))},n.toggle=function(a){return a&&a.stopPropagation&&a.stopPropagation(),n.isSelected()?n.deselect():n.select()},c.$watch(k,function(a){a?j():i()}),c.$watch(g,function(a,b){a!==b&&(o.$$rowSelect&&a?d.on("click",m):d.off("click",m))}),c.$watch(n.isSelected,function(a){return a?d.addClass("md-selected"):d.removeClass("md-selected")}),o.registerModelChangeListener(l),d.on("$destroy",function(){o.removeModelChangeListener(l)})}return{bindToController:!0,controller:c,controllerAs:"$mdSelect",link:d,require:["mdSelect","^^mdTable"],restrict:"A",scope:{id:"@mdSelectId",model:"=mdSelect",disabled:"=ngDisabled",onSelect:"=?mdOnSelect",onDeselect:"=?mdOnDeselect",autoSelect:"=mdAutoSelect"}}}function m(){var a={};this.equals=function(b,c){return a[b]===c},this.get=function(b){return a[b]},this.has=function(b){return a.hasOwnProperty(b)},this.purge=function(b){delete a[b]},this.update=function(b,c){a[b]=c}}function n(){function a(a,c){if(a.addClass("md-table"),c.hasOwnProperty("mdProgress")){var d=a.find("tbody")[0],e=b.element('<thead class="md-table-progress">');d&&a[0].insertBefore(e[0],d)}}function c(a,c,d,e){function f(){l.$$rowSelect=!0,k=e.$watchCollection("$mdTable.selected",function(a){o.forEach(function(b){b(a)})}),c.addClass("md-row-select")}function g(){l.$$rowSelect=!1,b.isFunction(k)&&k(),c.removeClass("md-row-select")}function h(){return n.length?void n[0].then(function(){n.shift(),h()}):e.$applyAsync()}function i(){return a.hasOwnProperty("mdRowSelect")&&""===a.mdRowSelect?!0:l.rowSelect}function j(){return l.selected?b.isArray(l.selected)?!0:console.error("Row selection: Expected an array. Recived "+typeof l.selected+"."):console.error("Row selection: ngModel is not defined.")}var k,l=this,n=[],o=[];l.$$hash=new m,l.$$columns={},l.columnCount=function(){return l.getRows(c[0]).reduce(function(a,b){return b.cells.length>a?b.cells.length:a},0)},l.getRows=function(a){return Array.prototype.filter.call(a.rows,function(a){return!a.classList.contains("ng-leave")})},l.getBodyRows=function(){return Array.prototype.reduce.call(c.prop("tBodies"),function(a,b){return a.concat(l.getRows(b))},[])},l.getElement=function(){return c},l.getHeaderRows=function(){return l.getRows(c.prop("tHead"))},l.waitingOnPromise=function(){return!!n.length},l.queuePromise=function(a){a&&1===n.push(b.isArray(a)?d.all(a):d.when(a))&&h()},l.registerModelChangeListener=function(a){o.push(a)},l.removeModelChangeListener=function(a){var b=o.indexOf(a);-1!==b&&o.splice(b,1)},a.hasOwnProperty("mdProgress")&&e.$watch("$mdTable.progress",l.queuePromise),e.$watch(i,function(a){a&&j()?f():g()})}return c.$inject=["$attrs","$element","$q","$scope"],{bindToController:!0,compile:a,controller:c,controllerAs:"$mdTable",restrict:"A",scope:{progress:"=?mdProgress",selected:"=ngModel",rowSelect:"=mdRowSelect"}}}function o(){function a(a){a.addClass("md-table-pagination")}function c(a,c){function d(a){return a>0}function e(a){return 0===a||"0"===a}var f=this;f.$label=b.extend({page:"Page:",rowsPerPage:"Rows per page:",of:"of"},c.$eval(f.label)||{}),f.disableNext=function(){return e(f.limit)||!f.hasNext()},f.first=function(){f.page=1,f.onPaginationChange()},f.hasNext=function(){return f.page*f.limit<f.total},f.hasPrevious=function(){return f.page>1},f.last=function(){f.page=f.pages(),f.onPaginationChange()},f.max=function(){return f.hasNext()?f.page*f.limit:f.total},f.min=function(){return f.page*f.limit-f.limit},f.next=function(){f.page++,f.onPaginationChange()},f.onPaginationChange=function(){b.isFunction(f.onPaginate)&&f.onPaginate(f.page,f.limit)},f.pages=function(){return Math.ceil(f.total/(e(f.limit)?1:f.limit))},f.previous=function(){f.page--,f.onPaginationChange()},f.range=function(a){return new Array(isFinite(a)&&d(a)?a:1)},f.showBoundaryLinks=function(){return a.hasOwnProperty("mdBoundaryLinks")&&""===a.mdBoundaryLinks?!0:f.boundaryLinks},f.showPageSelect=function(){return a.hasOwnProperty("mdPageSelect")&&""===a.mdPageSelect?!0:f.pageSelect},c.$watch("$pagination.limit",function(a,b){a!==b&&(f.page=Math.floor((f.page*b-b+a)/(e(a)?1:a)),f.onPaginationChange())})}return c.$inject=["$attrs","$scope"],{bindToController:{boundaryLinks:"=?mdBoundaryLinks",label:"@?mdLabel",limit:"=mdLimit",page:"=mdPage",pageSelect:"=?mdPageSelect",onPaginate:"=?mdOnPaginate",options:"=mdOptions",total:"@mdTotal"},compile:a,controller:c,controllerAs:"$pagination",restrict:"E",scope:{},templateUrl:"md-table-pagination.html"}}function p(){function a(a,b,c,d){a.columnCount=d.columnCount,a.deferred=d.waitingOnPromise}return{link:a,require:"^^mdTable",restrict:"C",scope:{},templateUrl:"md-table-progress.html"}}b.module("md.table.templates",["md-table-pagination.html","md-table-progress.html","arrow-up.svg","navigate-before.svg","navigate-first.svg","navigate-last.svg","navigate-next.svg"]),b.module("md-table-pagination.html",[]).run(["$templateCache",function(a){a.put("md-table-pagination.html",'<span class="label" ng-if="$pagination.showPageSelect()">{{ $pagination.$label[\'page\'] }}</span>\n\n<md-select class="md-table-select" ng-if="$pagination.showPageSelect()" ng-model="$pagination.page" md-container-class="md-pagination-select" ng-change="$pagination.onPaginationChange()" aria-label="Page">\n <md-option ng-repeat="num in $pagination.range($pagination.pages()) track by $index" ng-value="$index + 1">{{$index + 1}}</md-option>\n</md-select>\n\n<span class="label">{{ $pagination.$label[\'rowsPerPage\'] }}</span>\n\n<md-select class="md-table-select" ng-model="$pagination.limit" md-container-class="md-pagination-select" aria-label="Rows" placeholder="{{$pagination.options ? $pagination.options[0] : 5}}">\n <md-option ng-repeat="rows in $pagination.options ? $pagination.options : [5, 10, 15]" ng-value="rows">{{rows}}</md-option>\n</md-select>\n\n<span class="label">{{$pagination.min() + 1}} - {{$pagination.max()}} {{ $pagination.$label[\'of\'] }} {{$pagination.total}}</span>\n\n<md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.first()" ng-disabled="!$pagination.hasPrevious()" aria-label="First">\n <md-icon md-svg-icon="navigate-first.svg"></md-icon>\n</md-button>\n<md-button class="md-icon-button" type="button" ng-click="$pagination.previous()" ng-disabled="!$pagination.hasPrevious()" aria-label="Previous">\n <md-icon md-svg-icon="navigate-before.svg"></md-icon>\n</md-button>\n<md-button class="md-icon-button" type="button" ng-click="$pagination.next()" ng-disabled="$pagination.disableNext()" aria-label="Next">\n <md-icon md-svg-icon="navigate-next.svg"></md-icon>\n</md-button>\n<md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.last()" ng-disabled="$pagination.disableNext()" aria-label="Last">\n <md-icon md-svg-icon="navigate-last.svg"></md-icon>\n</md-button>')}]),b.module("md-table-progress.html",[]).run(["$templateCache",function(a){a.put("md-table-progress.html",'<tr>\n <th colspan="{{columnCount()}}">\n <md-progress-linear ng-show="deferred()" md-mode="indeterminate"></md-progress-linear>\n </th>\n</tr>')}]),b.module("arrow-up.svg",[]).run(["$templateCache",function(a){a.put("arrow-up.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>')}]),b.module("navigate-before.svg",[]).run(["$templateCache",function(a){a.put("navigate-before.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>')}]),b.module("navigate-first.svg",[]).run(["$templateCache",function(a){a.put("navigate-first.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 6 v12 h2 v-12 h-2z M17.41 7.41L16 6l-6 6 6 6 1.41-1.41L12.83 12z"/></svg>')}]),b.module("navigate-last.svg",[]).run(["$templateCache",function(a){a.put("navigate-last.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 6 v12 h2 v-12 h-2z M8 6L6.59 7.41 11.17 12l-4.58 4.59L8 18l6-6z"/></svg>')}]),b.module("navigate-next.svg",[]).run(["$templateCache",function(a){a.put("navigate-next.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>')}]),b.module("md.data.table",["md.table.templates"]),b.module("md.data.table").directive("mdBody",d),b.module("md.data.table").directive("mdCell",e),b.module("md.data.table").directive("mdColumn",f),f.$inject=["$compile"],b.module("md.data.table").decorator("$controller",g).factory("$mdEditDialog",h),g.$inject=["$delegate"],h.$inject=["$compile","$controller","$document","$mdUtil","$q","$rootScope","$templateCache","$templateRequest","$window"],b.module("md.data.table").directive("mdFoot",i),b.module("md.data.table").directive("mdHead",j),j.$inject=["$compile"],b.module("md.data.table").directive("mdRow",k),b.module("md.data.table").directive("mdSelect",l),l.$inject=["$compile"],b.module("md.data.table").directive("mdTable",n),b.module("md.data.table").directive("mdTablePagination",o),b.module("md.data.table").directive("mdTableProgress",p)}(window,angular);
module.exports = function (grunt) {
'use strict';
function banner() {
return '/*\n' +
' * Angular Material Data Table\n' +
' * https://github.com/daniel-nagy/md-data-table\n' +
' * @license MIT\n' +
' * v' + getVersion() + '\n' +
' */\n' +
'(function (window, angular, undefined) {\n\'use strict\';\n\n';
}
function getVersion() {
return grunt.file.readJSON('./bower.json').version;
}
// load plugins

@@ -40,3 +54,3 @@ require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});

options: {
banner: '(function (window, angular, undefined) {\n\'use strict\';\n\n',
banner: banner(),
footer: '\n\n})(window, angular);',

@@ -50,3 +64,3 @@ process: function (src) {

files: {
'dist/md-data-table.js': ['.temp/templates.js', 'app/md-data-table/**/*.js']
'dist/md-data-table.js': ['.temp/templates.js', 'src/**/*.js']
}

@@ -91,3 +105,3 @@ }

files: {
'.temp/templates.js': ['app/md-data-table/templates/*.html', 'app/md-data-table/icons/*.svg']
'.temp/templates.js': ['src/templates/*.html', 'src/icons/*.svg']
}

@@ -105,3 +119,3 @@ }

},
build: 'app/md-data-table/**/*.js',
build: 'src/**/*.js',
app: ['app/app.js', 'app/scripts/**/*.js']

@@ -119,3 +133,3 @@ },

files: {
'dist/md-data-table.css': 'app/md-data-table/styles/md-table.less'
'dist/md-data-table.css': 'src/styles/md-table.less'
}

@@ -151,11 +165,11 @@ }

buildLess: {
files: 'app/md-data-table/**/*.less',
files: 'src/**/*.less',
tasks: ['less:build', 'autoprefixer:build']
},
buildScripts: {
files: 'app/md-data-table/**/*.js',
files: 'src/**/*.js',
tasks: ['jshint:build', 'concat:build']
},
buildTemplates: {
files: 'app/md-data-table/**/*.html',
files: 'src/**/*.html',
tasks: ['html2js:build', 'concat:build']

@@ -162,0 +176,0 @@ },

// support for Browserify
require('angular-material');
require('./dist/md-data-table.min');
require('./dist/md-data-table');
module.exports = 'md.data.table';
{
"name": "angular-material-data-table",
"version": "0.9.9",
"version": "0.9.11",
"description": "Material Design data table.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -23,3 +23,3 @@ # Material Design Data Table

A fork-able [Codepen](http://codepen.io/anon/pen/YwGJVr?editors=101). Please use this to reproduce any issues you may be experiencing.
A fork-able [Codepen](http://codepen.io/anon/pen/BjvLVJ?editors=1010). Please use this to reproduce any issues you may be experiencing.

@@ -148,2 +148,15 @@ ## Installation

#### Version 0.9.11
###### February 7, 2016
Merge pull request [#281](https://github.com/daniel-nagy/md-data-table/pull/281) from aleeeftw/angular-symbols-fix.
#### Version 0.9.10
###### February 3, 2016
* Fix select menu styles for Angular Material v1.0.4
* Renamed md-data-table directory to src and moved it outside the demo app
* Changed main files to unminified source
* Added comment banner to source
#### Version 0.9.9

@@ -150,0 +163,0 @@ ###### January 19, 2016

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc