tt-ui-md-table
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,3 @@ | ||
!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="./",e(0)}([function(t,e,n){"use strict";var i=angular.module("ttmd.table",[]);n(54)["default"](i)},function(t,e){"use strict";e.__esModule=!0,e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(84),r=i(o);e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r["default"])(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},function(t,e){var n=t.exports={version:"2.3.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(28)("wks"),o=n(31),r=n(7).Symbol,u="function"==typeof r,a=t.exports=function(t){return i[t]||(i[t]=u&&r[t]||(u?r:o)("Symbol."+t))};a.store=i},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(7),o=n(3),r=n(23),u=n(12),a="prototype",l=function(t,e,n){var s,c,f,d=t&l.F,m=t&l.G,p=t&l.S,v=t&l.P,g=t&l.B,h=t&l.W,b=m?o:o[e]||(o[e]={}),y=b[a],x=m?i:p?i[e]:(i[e]||{})[a];m&&(n=e);for(s in n)c=!d&&x&&void 0!==x[s],c&&s in b||(f=c?x[s]:n[s],b[s]=m&&"function"!=typeof x[s]?n[s]:g&&c?r(f,i):h&&x[s]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[a]=t[a],e}(f):v&&"function"==typeof f?r(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[s]=f,t&l.R&&y&&!y[s]&&u(y,s,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(9),o=n(96),r=n(114),u=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return u(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(15);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(8),o=n(18);t.exports=n(5)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(14);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e,n){var i=n(108),o=n(25);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(28)("keys"),o=n(31);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){t.exports={"default":n(90),__esModule:!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(91);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(15),o=n(7).document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(8).f,o=n(11),r=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},function(t,e,n){var i=n(7),o="__core-js_shared__",r=i[o]||(i[o]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e,n){var i=n(26),o=n(14);t.exports=function(t){return i(o(t))}},function(t,e,n){var i=n(20),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.eot?178d7a4dacfb885abee8e2d905b08524"},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.ttf?9ac46d2eb22f2f00090a73ed943b9522"},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.woff?e2f35f2d8bb12d4d3407ebe3683adaa1"},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.woff2?81025269949a562d06d5e316f733b140"},function(t,e){t.exports='<div flex=100 ng-if="vm.text && vm.shouldDisplay()" layout-align="center center" style="text-align: center">\n <md-button ng-if="vm.showButtonOrText() === \'button\'" ng-click=" vm.action($event)" class="md-button md-raised">\n {{vm.text | translate}}\n </md-button>\n <span ng-if="vm.showButtonOrText() === \'text\' ">\n {{vm.text | translate}}\n </span>\n</div>\n\n'},function(t,e){t.exports='<div layout=row flex=100 layout-align="center center" ng-transclude="">\r\n\r\n</div>\r\n'},function(t,e){t.exports='<md-card layout-padding class=detail-view>\r\n <span layout-padding class="pull-right close" ng-click=vm.ListCtrl.toggleDetail()>\r\n <i class=material-icons>highlight_off</i>\r\n </span>\r\n <div ng-transclude>\r\n\r\n </div>\r\n</md-card>\r\n\r\n'},function(t,e){t.exports='<div layout=row flex=100 layout-padding layout-align="end center" ng-init=vm.printPagination() class=pagination-desktop>\r\n <md-list layout=row ng-if="vm.pages.length > 1">\r\n <md-list-item flex=none ng-class="{active: vm.offset == num }" ng-repeat="num in vm.pages track by $index">\r\n <a ng-click=vm.goToPage(num)>{{num}}</a>\r\n </md-list-item>\r\n </md-list>\r\n</div>\r\n'},function(t,e){t.exports="<div layout=row layout-fill>\r\n <md-button layout=row class=\"md-button md-raised\" layout-fill ng-click=vm.previous()>\r\n {{'util.back' | translate}}\r\n </md-button>\r\n <md-button layout=row class=\"md-button md-raised\" layout-fill ng-click=vm.more()>\r\n {{'util.next' | translate}}\r\n </md-button>\r\n</div>\r\n\r\n"},function(t,e){t.exports="<div layout=row class=pagination>\r\n <ttmd-pagination-mobile offset=vm.model.getOffset() ng-if=vm.listCtrl.goMobile() flex=100></ttmd-pagination-mobile>\r\n <ttmd-pagination-desktop offset=vm.model.getOffset() ng-if=!vm.listCtrl.goMobile() flex=100></ttmd-pagination-desktop>\r\n</div>\r\n"},function(t,e){t.exports='<div class=desktop-service-item layout=row flex=100 layout-align="center center">\n <div flex=100 ng-repeat="(key, value) in vm.item\n | exclude: vm.getExcludedKeys()\n | pipes: vm.getPipes()\n track by $index">\n {{value}}\n </div>\n <span ng-transclude ng-class="{\'flex-100\': vm.ItemCtrl.hasTransclude, \'layout-row\': vm.ItemCtrl.hasTransclude}" layout-align="center center" style="text-align: center"></span>\n</div>\n'},function(t,e){t.exports='<md-card class=mobile-service-item layout=column>\n <div layout=row layout-padding ng-repeat="(key, value) in vm.item\n | exclude: vm.getExcludedKeys()\n | pipes: vm.getPipes()\n track by $index">\n <div class=mobile-service-item-title flex=50>{{vm.headers[$index] | translate}}</div>\n <div flex=50>{{value}}</div>\n </div>\n <div layout=row layout-padding ng-if=vm.ItemCtrl.hasTransclude>\n <ng-transclude flex=100 layout=row layout-align="center center"></ng-transclude>\n </div>\n</md-card>\n'},function(t,e){t.exports="<div class=service-item layout=column>\r\n \r\n <ttmd-mobile-item ng-if=vm.listCtrl.goMobile() item=vm.item headers=vm.headers>\r\n <div ng-transclude></div>\r\n </ttmd-mobile-item>\r\n \r\n <ttmd-desktop-item ng-if=!vm.listCtrl.goMobile() item=vm.item>\r\n <div ng-transclude></div>\r\n </ttmd-desktop-item>\r\n</div>\r\n"},function(t,e){t.exports='<div class=service-list layout-padding>\n <section ng-if=!vm.isDetailShown>\n \n <md-toolbar class="list-title md-whiteframe-3dp" ng-if=vm.toolbar>\n <div class=md-toolbar-tools>\n <i class=material-icons ng-if=vm.toolbar.icon>{{vm.toolbar.icon}}</i>\n <span style="margin: 0 10px 0 10px" ng-if=vm.toolbar.title>{{vm.toolbar.title | translate}}</span>\n </div>\n </md-toolbar>\n\n \n <md-list layout=column>\n\n \n <md-list-item layout=row class=list-header ng-if="vm.headers && !vm.model.goMobile()">\n <div flex=100 class=header-item ng-repeat="header in vm.headers track by $index">\n {{header | translate}}\n </div>\n </md-list-item>\n\n \n <md-list-item class=list-row ng-class="{bottomBorder: !$last && !vm.model.goMobile(), highlight: vm.shouldHighlightRow(item)}" ng-if=vm.items layout=row ng-repeat="item in vm.items\n | orderBy: vm.getOrderBy()\n | limitTo: vm.getLimitTo()\n as results track by $index">\n <ttmd-table-item flex=100 item=item headers=vm.headers has-transclude="vm.hasTransclude(\'actions\')" ng-click="vm.hasTransclude(\'details\') && vm.showDetail(item, $event);">\n <div ng-if="vm.hasTransclude(\'actions\')" ng-transclude=actions layout=row flex=100></div>\n </ttmd-table-item>\n </md-list-item>\n\n \n \n <md-list-item ng-if="results.length === 0">\n {{\'util.noData\'|translate}}\n </md-list-item>\n </md-list>\n\n \n <ttmd-pagination ng-if=vm.totalNumber model=vm.model list={{vm.type}} limits=vm.limits total-number=vm.totalNumber cb=vm.updateList(model)></ttmd-pagination>\n </section>\n\n \n <ttmd-detail-view ng-if="vm.isDetailShown && vm.hasTransclude(\'details\')">\n <div ng-transclude=details></div>\n </ttmd-detail-view>\n</div>\n\n'},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t.config(["$animateProvider","$httpProvider","$logProvider",function(t,e,n){e.defaults.useXDomain=!0,n.debugEnabled(!0),t.classNameFilter(/\banimated\b/)}])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(55)["default"](t),n(53)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(39),n(40),n(41),n(42),n(32),n(62)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(e){(0,r["default"])(this,t),this.$parse=e}return t.$inject=["$parse"],(0,a["default"])(t,[{key:"action",value:function(t){t.stopPropagation();var e=this.ItemCtrl.getSelectedItem();this.onClick({payload:e})}},{key:"shouldDisplay",value:function(){if(!this["if"])return!0;var t=this.$parse(this["if"]),e=this.ItemCtrl.getSelectedItem();return t(e)}},{key:"showButtonOrText",value:function(){var t=["button","text"];return this.showAs&&t.indexOf(this.showAs)>-1?this.showAs:t[0]}}]),t}(),s={bindings:{text:"@",onClick:"&","if":"@",showAs:"@"},require:{ItemCtrl:"?^^ttmdTableItem"},controller:l,controllerAs:"vm",replace:!0,template:n(43)};e["default"]=function(t){t.component("ttmdAction",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(56)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={transclude:!0,replace:!0,template:n(44)};e["default"]=function(t){t.component("ttmdActions",i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(57)["default"](t),n(58)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(){(0,r["default"])(this,t)}return(0,a["default"])(t,[{key:"closeDetailView",value:function(){this.ListCtrl.toggleDetail(!1)}}]),t}(),s={bindings:{},controller:l,transclude:!0,controllerAs:"vm",require:{ListCtrl:"^ttmdTable"},template:n(45)};e["default"]=function(t){t.component("ttmdDetailView",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(33),n(60)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(38),n(65)["default"](t),n(59)["default"](t),n(72)["default"](t),n(61)["default"](t),n(76)["default"](t),n(77)["default"](t),n(80)["default"](t),n(79)["default"](t),n(78)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(34),n(64)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(){(0,r["default"])(this,t)}return(0,a["default"])(t,[{key:"printPagination",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0];this.pages=this.paginationCtrl.printPagination(t)}},{key:"goToPage",value:function(t){_.isNumber(t)&&(this.paginationCtrl.goToPage(t),this.printPagination(t))}},{key:"next",value:function(){this.paginationCtrl.next()}},{key:"previous",value:function(){this.paginationCtrl.previous()}}]),t}(),s={bindings:{offset:"="},controller:l,controllerAs:"vm",require:{paginationCtrl:"^ttmdPagination"},template:n(46)};e["default"]=function(t){t.component("ttmdPaginationDesktop",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(66)["default"](t),n(63)["default"](t),n(68)["default"](t),n(69)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(35),n(67)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(){(0,r["default"])(this,t)}return(0,a["default"])(t,[{key:"more",value:function(){this.paginationCtrl.more()}},{key:"previous",value:function(){this.paginationCtrl.previous()}}]),t}(),s={bindings:{offset:"<"},controller:l,controllerAs:"vm",require:{paginationCtrl:"^ttmdPagination"},template:n(47)};e["default"]=function(t){t.component("ttmdPaginationMobile",s)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(85),r=i(o),u=n(1),a=i(u),l=n(2),s=i(l),c=function(){function t(e){(0,a["default"])(this,t),this.ttMdTable=e}return t.$inject=["ttMdTable"],(0,s["default"])(t,[{key:"printPagination",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],e=this.model.getPages(this.totalNumber);return 6>=e?_.range(1,e+1):0>=t-3?[].concat((0,r["default"])(_.range(1,5)),["...",e]):t+3>e?[1,"..."].concat((0,r["default"])(_.range(e-3,e+1))):t-3>0&&e>=t+3?[1,"...",t-1,t,t+1,"...",e]:void 0}},{key:"next",value:function(){this.model.getOffset()+1<=this.model.getPages(this.totalNumber)?this.goToPage(this.model.getOffset()+1):console.log("Cannot go next")}},{key:"previous",value:function(){this.model.getOffset()-1>0?this.goToPage(this.model.getOffset()-1):console.log("Cannot go previous")}},{key:"goToPage",value:function(t){this.model.setOffset(t),this.cb({model:this.model})}},{key:"more",value:function(){this.next()}}]),t}(),f={bindings:{list:"@",model:"=",limits:"<",cb:"&",totalNumber:"="},controller:c,controllerAs:"vm",require:{listCtrl:"^ttmdTable"},template:n(48)};e["default"]=function(t){t.component("ttmdPagination",f)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function i(t,e,n){function i(t){var e=t.listType,n=t.offset,i=t.limits,o=t.total,r=t.breakpoint,u=t.forceMobile;this.listType=e||"",this.offset=n||1,this.limits=i||null,this.total=o||null,this.forceMobile=u||null,this.breakpoint=r||null,this.limit=this.getLimit(),this.pages=this.getPages(o),this.forceDesktop=!1}return i.$inject=["_ref"],i.prototype.getPages=function(t){return t?t%this.getLimit()>0?Math.floor(t/this.getLimit())+1:Math.floor(t/this.getLimit()):void 0},i.prototype.setOffset=function(t){this.offset=t},i.prototype.getOffset=function(){return this.offset},i.prototype.getLimit=function(){var t=void 0;return t=this.forceMobile?n.limits.mobile:this.goMobile()?n.limits.mobile:n.limits.desktop,this.limits?this.limits[t]||e.getLimits(t):e.getLimits(t)},i.prototype.goMobile=function(){if(this.forceMobile)return!0;if(this.forceDesktop)return!1;if(this.breakpoint)return!t("gt-"+this.breakpoint);if(e.isForceMobile())return!0;var n=e.getMobile();return!t(n)},i};n.$inject=["$mdMedia","ttMdTable","TableConstant"],e["default"]=function(t){t.factory("PaginationModel",n)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(){(0,r["default"])(this,t)}return(0,a["default"])(t,[{key:"getExcludedKeys",value:function(){return this.ListCtrl.exclude}},{key:"getPipes",value:function(){return this.ListCtrl.getPipes()}}]),t}(),s={bindings:{item:"="},transclude:!0,require:{ItemCtrl:"^ttmdTableItem",ListCtrl:"^^ttmdTable"},replace:!0,controller:l,controllerAs:"vm",template:n(49)};e["default"]=function(t){t.component("ttmdDesktopItem",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(36),n(70)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(73)["default"](t),n(71)["default"](t),n(75)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(37),n(74)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(){(0,r["default"])(this,t)}return(0,a["default"])(t,[{key:"getExcludedKeys",value:function(){return this.ListCtrl.exclude}},{key:"getPipes",value:function(){return this.ListCtrl.getPipes()}}]),t}(),s={bindings:{item:"=",headers:"<"},transclude:!0,require:{ItemCtrl:"^ttmdTableItem",ListCtrl:"^^ttmdTable"},replace:!0,controller:l,controllerAs:"vm",template:n(50)};e["default"]=function(t){t.component("ttmdMobileItem",s)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(e){(0,r["default"])(this,t),this.ttMdTable=e}return t.$inject=["ttMdTable"],(0,a["default"])(t,[{key:"getSelectedItem",value:function(){return this.item}}]),t}(),s={bindings:{item:"=",headers:"<",hasTransclude:"<"},transclude:!0,replace:!0,require:{listCtrl:"^ttmdTable"},controller:l,controllerAs:"vm",template:n(51)};e["default"]=function(t){t.component("ttmdTableItem",s)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t.animation(".fadeleft",["$animateCss",function(t){return{enter:function(e){var n=angular.element(e).width();return t(e,{from:{opacity:0,marginLeft:"-"+n+"px"},to:{opacity:1,marginLeft:"0"},duration:.4})},leave:function(e){var n=angular.element(e).width();return t(e,{from:{opacity:1,marginLeft:0},to:{opacity:0,marginLeft:"-"+n+"px"},duration:.4})}}}])}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=i(o),u=n(2),a=i(u),l=function(){function t(e,n,i,o){(0,r["default"])(this,t),this.$transclude=n,this.isDetailShown=!1,this.$log=i,this.$parse=o;var u={listType:this.type,offset:1,limits:this.limits,total:this.totalNumber,breakpoint:this.breakpoint,forceMobile:this.forceMobile};this.model=new e(u)}return t.$inject=["PaginationModel","$transclude","$log","$parse"],(0,a["default"])(t,[{key:"hasTransclude",value:function(t){return this.$transclude.isSlotFilled(t)}},{key:"getLimitTo",value:function(){return this.totalNumber?this.model.getLimit():_.size(this.items)}},{key:"getOrderBy",value:function(){return this.sort?_.first(this.sort):""}},{key:"goMobile",value:function(){return this.model.goMobile()}},{key:"updateList",value:function(t){var e=t.listType,n=t.getOffset(),i=t.getLimit(),o={limit:i,offset:n,listType:e};this.onPageChange({payload:o})}},{key:"showDetail",value:function(t,e){return e.stopPropagation(),this.hasTransclude("details")?(this.onRowClick({payload:t}),void this.toggleDetail()):void this.$log.debug("ttmd-table component: ttmd-detail tag is not defined in your html")}},{key:"getPipes",value:function(){return this.pipes?this.pipes:[]}},{key:"toggleDetail",value:function(t){t?this.isDetailShown=t:this.isDetailShown=!this.isDetailShown}},{key:"shouldHighlightRow",value:function(t){return this.highlightRow?this.highlightRow(t):!1}}]),t}(),s={bindings:{toolbar:"<",headers:"<",forceMobile:"<",limits:"<",sort:"<",exclude:"<",items:"=",totalNumber:"<",highlightRow:"<",pipes:"<",type:"@",breakpoint:"@",onPageChange:"&",onRowClick:"&"},transclude:{actions:"?ttmdActions",details:"?ttmdDetail"},controller:l,controllerAs:"vm",template:n(52)};e["default"]=function(t){t.component("ttmdTable",s)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t.value("TableConstant",{limits:{mobile:"mobile",desktop:"desktop"}})}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(21),r=i(o);e["default"]=function(t){t.filter("exclude",function(){return function(t,e){var n=e||[""],i=(0,r["default"])(t);return i.reduce(function(e,i){return n.indexOf(i)>-1?e:(e[i]=t[i],e)},{})}}),t.filter("pipes",["$filter",function(t){return function(e,n){return(0,r["default"])(n).reduce(function(e,i){var o=void 0,r=void 0,u=void 0,a=void 0,l=void 0;return o=i,(r=n[o].targets)?(r.forEach(function(i){u=e[i],a=n[o].format,l=a&&""!==a?t(o)(u,a):t(o)(u),l&&(e[i]=l)}),e):e},e)}}])}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function o(){function t(t){return s.some(function(e){return e===t})}function e(t){var e=(0,c["default"])(t).sort(),n=a.sort();return 1===e.length?n.indexOf(e[0])>-1:_.isEqual(e,n)}function n(t){f=(0,l["default"])({},f,{forceMobile:t})}function i(e){if(!t(e))throw new Error("ttMdTable: setMobile() --> Cannot set mobile as: ",e);f=(0,l["default"])({},f,{breakpoint:e})}function o(t){if(!e(t))throw new Error("ttMdTable: setPagination() --> Cannot set pagination as: ",(0,u["default"])(null,3,t));f=(0,l["default"])({},f,{limits:t})}var r={forceMobile:!1,breakpoint:"xs",limits:{desktop:8,mobile:3}},a=["desktop","mobile"],s=["xs","sm","md","lg"],f={};return{setConfig:function(t){t&&(t.forceMobile&&n(t.forceMobile),t.breakpoint&&i(t.breakpoint),t.limits&&o(t.limits))},$get:function(){return{isForceMobile:function(){return f.forceMobile?f.forceMobile:r.forceMobile},getMobile:function(){return f.breakpoint?"gt-"+f.breakpoint:"gt-"+r.breakpoint},getLimits:function(t){return f.limits?f.limits[t]||r.limits[t]:r.limits[t]}}}}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(82),u=i(r),a=n(83),l=i(a),s=n(21),c=i(s);e["default"]=function(t){t.provider("ttMdTable",o)}},function(t,e,n){t.exports={"default":n(86),__esModule:!0}},function(t,e,n){t.exports={"default":n(87),__esModule:!0}},function(t,e,n){t.exports={"default":n(88),__esModule:!0}},function(t,e,n){t.exports={"default":n(89),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(81),r=i(o);e["default"]=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,r["default"])(t)}},function(t,e,n){n(120),n(116),t.exports=n(3).Array.from},function(t,e,n){var i=n(3),o=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){n(117),t.exports=n(3).Object.assign},function(t,e,n){n(118);var i=n(3).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){n(119),t.exports=n(3).Object.keys},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(29),o=n(30),r=n(113);t.exports=function(t){return function(e,n,u){var a,l=i(e),s=o(l.length),c=r(u,s);if(t&&n!=n){for(;s>c;)if(a=l[c++],a!=a)return!0}else for(;s>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(22),o=n(4)("toStringTag"),r="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),o))?n:r?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){"use strict";var i=n(8),o=n(18);t.exports=function(t,e,n){e in t?i.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){t.exports=n(7).document&&document.documentElement},function(t,e,n){t.exports=!n(5)&&!n(10)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(16),o=n(4)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||r[o]===t)}},function(t,e,n){var i=n(9);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(r){var u=t["return"];throw void 0!==u&&i(u.call(t)),r}}},function(t,e,n){"use strict";var i=n(104),o=n(18),r=n(27),u={};n(12)(u,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(u,{next:o(1,n)}),r(t,e+" Iterator")}},function(t,e,n){"use strict";var i=n(102),o=n(6),r=n(111),u=n(12),a=n(11),l=n(16),s=n(99),c=n(27),f=n(107),d=n(4)("iterator"),m=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",g="values",h=function(){return this};t.exports=function(t,e,n,b,y,x,_){s(n,e,b);var M,O,w,k=function(t){if(!m&&t in C)return C[t];switch(t){case v:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},P=e+" Iterator",j=y==g,T=!1,C=t.prototype,S=C[d]||C[p]||y&&C[y],A=S||k(y),I=y?j?k("entries"):A:void 0,$="Array"==e?C.entries||S:S;if($&&(w=f($.call(new t)),w!==Object.prototype&&(c(w,P,!0),i||a(w,d)||u(w,d,h))),j&&S&&S.name!==g&&(T=!0,A=function(){return S.call(this)}),i&&!_||!m&&!T&&C[d]||u(C,d,A),l[e]=A,l[P]=h,y)if(M={values:j?A:k(g),keys:x?A:k(v),entries:I},_)for(O in M)O in C||r(C,O,M[O]);else o(o.P+o.F*(m||T),e,M);return M}},function(t,e,n){var i=n(4)("iterator"),o=!1;try{var r=[7][i]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r=[7],u=r[i]();u.next=function(){return{done:n=!0}},r[i]=function(){return u},t(r)}catch(a){}return n}},function(t,e){t.exports=!0},function(t,e,n){"use strict";var i=n(17),o=n(106),r=n(109),u=n(13),a=n(26),l=Object.assign;t.exports=!l||n(10)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=u(t),l=arguments.length,s=1,c=o.f,f=r.f;l>s;)for(var d,m=a(arguments[s++]),p=c?i(m).concat(c(m)):i(m),v=p.length,g=0;v>g;)f.call(m,d=p[g++])&&(n[d]=m[d]);return n}:l},function(t,e,n){var i=n(9),o=n(105),r=n(25),u=n(19)("IE_PROTO"),a=function(){},l="prototype",s=function(){var t,e=n(24)("iframe"),i=r.length,o=">";for(e.style.display="none",n(95).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+o),t.close(),s=t.F;i--;)delete s[l][r[i]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=i(t),n=new a,a[l]=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var i=n(8),o=n(9),r=n(17);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,u=r(e),a=u.length,l=0;a>l;)i.f(t,n=u[l++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(11),o=n(13),r=n(19)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var i=n(11),o=n(29),r=n(92)(!1),u=n(19)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),l=0,s=[];for(n in a)n!=u&&i(a,n)&&s.push(n);for(;e.length>l;)i(a,n=e[l++])&&(~r(s,n)||s.push(n));return s}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(6),o=n(3),r=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),i(i.S+i.F*r(function(){n(1)}),"Object",u)}},function(t,e,n){t.exports=n(12)},function(t,e,n){var i=n(20),o=n(14);t.exports=function(t){return function(e,n){var r,u,a=String(o(e)),l=i(n),s=a.length;return 0>l||l>=s?t?"":void 0:(r=a.charCodeAt(l),55296>r||r>56319||l+1===s||(u=a.charCodeAt(l+1))<56320||u>57343?t?a.charAt(l):r:t?a.slice(l,l+2):(r-55296<<10)+(u-56320)+65536)}}},function(t,e,n){var i=n(20),o=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),0>t?o(t+e,0):r(t,e)}},function(t,e,n){var i=n(15);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(93),o=n(4)("iterator"),r=n(16);t.exports=n(3).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||r[i(t)]:void 0}},function(t,e,n){"use strict";var i=n(23),o=n(6),r=n(13),u=n(98),a=n(97),l=n(30),s=n(94),c=n(115);o(o.S+o.F*!n(101)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,d=r(t),m="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,h=0,b=c(d);if(g&&(v=i(v,p>2?arguments[2]:void 0,2)),void 0==b||m==Array&&a(b))for(e=l(d.length),n=new m(e);e>h;h++)s(n,h,g?v(d[h],h):d[h]);else for(f=b.call(d),n=new m;!(o=f.next()).done;h++)s(n,h,g?u(f,v,[o.value,h],!0):o.value);return n.length=h,n}})},function(t,e,n){var i=n(6);i(i.S+i.F,"Object",{assign:n(103)})},function(t,e,n){var i=n(6);i(i.S+i.F*!n(5),"Object",{defineProperty:n(8).f})},function(t,e,n){var i=n(13),o=n(17);n(110)("keys",function(){return function(t){return o(i(t))}})},function(t,e,n){"use strict";var i=n(112)(!0);n(100)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})}]); | ||
!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="./",e(0)}([function(t,e,n){"use strict";var i=angular.module("ttmd.table",[]);n(54)["default"](i)},function(t,e){"use strict";e.__esModule=!0,e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(84),o=i(r);e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,o["default"])(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},function(t,e){var n=t.exports={version:"2.3.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(28)("wks"),r=n(31),o=n(7).Symbol,u="function"==typeof o,a=t.exports=function(t){return i[t]||(i[t]=u&&o[t]||(u?o:r)("Symbol."+t))};a.store=i},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(7),r=n(3),o=n(23),u=n(12),a="prototype",l=function(t,e,n){var s,c,f,d=t&l.F,m=t&l.G,p=t&l.S,v=t&l.P,g=t&l.B,h=t&l.W,b=m?r:r[e]||(r[e]={}),y=b[a],x=m?i:p?i[e]:(i[e]||{})[a];m&&(n=e);for(s in n)c=!d&&x&&void 0!==x[s],c&&s in b||(f=c?x[s]:n[s],b[s]=m&&"function"!=typeof x[s]?n[s]:g&&c?o(f,i):h&&x[s]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[a]=t[a],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[s]=f,t&l.R&&y&&!y[s]&&u(y,s,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(9),r=n(96),o=n(114),u=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return u(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(15);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(8),r=n(18);t.exports=n(5)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(14);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e,n){var i=n(108),r=n(25);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(28)("keys"),r=n(31);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){t.exports={"default":n(90),__esModule:!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(91);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(15),r=n(7).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(8).f,r=n(11),o=n(4)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(7),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var i=n(26),r=n(14);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(20),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.eot?178d7a4dacfb885abee8e2d905b08524"},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.ttf?9ac46d2eb22f2f00090a73ed943b9522"},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.woff?e2f35f2d8bb12d4d3407ebe3683adaa1"},function(t,e,n){t.exports=n.p+"res/lib/fonts/MaterialIcons/MaterialIcons-Regular.woff2?81025269949a562d06d5e316f733b140"},function(t,e){t.exports='<div flex=100 ng-if="vm.text && vm.shouldDisplay()" layout-align="center center" style="text-align: center">\n <md-button ng-if="vm.showButtonOrText() === \'button\'" ng-click=" vm.action($event)" class="md-button md-raised">\n {{vm.text | translate}}\n </md-button>\n <span ng-if="vm.showButtonOrText() === \'text\' ">\n {{vm.text | translate}}\n </span>\n</div>\n\n'},function(t,e){t.exports='<div layout=row flex=100 layout-align="center center" ng-transclude="">\r\n\r\n</div>\r\n'},function(t,e){t.exports='<md-card layout-padding class=detail-view>\r\n <span layout-padding class="pull-right close" ng-click=vm.ListCtrl.toggleDetail()>\r\n <i class=material-icons>highlight_off</i>\r\n </span>\r\n <div ng-transclude>\r\n\r\n </div>\r\n</md-card>\r\n\r\n'},function(t,e){t.exports='<div layout=row flex=100 layout-padding layout-align="end center" ng-init=vm.printPagination() class=pagination-desktop>\r\n <md-list layout=row ng-if="vm.pages.length > 1">\r\n <md-list-item flex=none ng-class="{active: vm.offset == num }" ng-repeat="num in vm.pages track by $index">\r\n <a ng-click=vm.goToPage(num)>{{num}}</a>\r\n </md-list-item>\r\n </md-list>\r\n</div>\r\n'},function(t,e){t.exports='<div layout=row layout-fill>\r\n <md-button layout=row class="md-button md-raised" layout-fill ng-click=vm.previous() translate=util.previous translate-default=Previous>\r\n Previous\r\n </md-button>\r\n <md-button layout=row class="md-button md-raised" layout-fill ng-click=vm.more() translate=util.next translate-default=Next>\r\n Next\r\n </md-button>\r\n</div>\r\n\r\n'},function(t,e){t.exports="<div layout=row class=pagination>\r\n <ttmd-pagination-mobile offset=vm.model.getOffset() ng-if=vm.listCtrl.goMobile() flex=100></ttmd-pagination-mobile>\r\n <ttmd-pagination-desktop offset=vm.model.getOffset() ng-if=!vm.listCtrl.goMobile() flex=100></ttmd-pagination-desktop>\r\n</div>\r\n"},function(t,e){t.exports='<div class=desktop-service-item layout=row flex=100 layout-align="center center">\n <div flex=100 ng-repeat="(key, value) in vm.item\n | exclude: vm.getExcludedKeys()\n | pipes: vm.getPipes()\n track by $index">\n {{value}}\n </div>\n <span ng-transclude ng-class="{\'flex-100\': vm.ItemCtrl.hasTransclude, \'layout-row\': vm.ItemCtrl.hasTransclude}" layout-align="center center" style="text-align: center"></span>\n</div>\n'},function(t,e){t.exports='<md-card class=mobile-service-item layout=column>\n <div layout=row layout-padding ng-repeat="(key, value) in vm.item\n | exclude: vm.getExcludedKeys()\n | pipes: vm.getPipes()\n track by $index">\n <div class=mobile-service-item-title flex=50>{{vm.headers[$index] | translate}}</div>\n <div flex=50>{{value}}</div>\n </div>\n <div layout=row layout-padding ng-if=vm.ItemCtrl.hasTransclude>\n <ng-transclude flex=100 layout=row layout-align="center center"></ng-transclude>\n </div>\n</md-card>\n'},function(t,e){t.exports="<div class=service-item layout=column>\r\n \r\n <ttmd-mobile-item ng-if=vm.listCtrl.goMobile() item=vm.item headers=vm.headers>\r\n <div ng-transclude></div>\r\n </ttmd-mobile-item>\r\n \r\n <ttmd-desktop-item ng-if=!vm.listCtrl.goMobile() item=vm.item>\r\n <div ng-transclude></div>\r\n </ttmd-desktop-item>\r\n</div>\r\n"},function(t,e){t.exports='<div class=service-list layout-padding>\n <section ng-if=!vm.isDetailShown>\n \n <md-toolbar class="list-title md-whiteframe-3dp" ng-if=vm.toolbar>\n <div class=md-toolbar-tools>\n <i class=material-icons ng-if=vm.toolbar.icon>{{vm.toolbar.icon}}</i>\n <span style="margin: 0 10px 0 10px" ng-if=vm.toolbar.title>{{vm.toolbar.title | translate}}</span>\n </div>\n </md-toolbar>\n\n \n <md-list layout=column>\n\n \n <md-list-item layout=row class=list-header ng-if="vm.headers && !vm.model.goMobile()">\n <div flex=100 class=header-item ng-repeat="header in vm.headers track by $index">\n {{header | translate}}\n </div>\n </md-list-item>\n\n \n <md-list-item class=list-row ng-class="{bottomBorder: !$last && !vm.model.goMobile(), highlight: vm.shouldHighlightRow(item)}" ng-if=vm.items layout=row ng-repeat="item in vm.items\n | orderBy: vm.getOrderBy()\n | limitTo: vm.getLimitTo()\n as results track by $index">\n <ttmd-table-item flex=100 item=item headers=vm.headers has-transclude="vm.hasTransclude(\'actions\')" ng-click="vm.hasTransclude(\'details\') && vm.showDetail(item, $event);">\n <div ng-if="vm.hasTransclude(\'actions\')" ng-transclude=actions layout=row flex=100></div>\n </ttmd-table-item>\n </md-list-item>\n\n \n \n <md-list-item ng-if="results.length === 0">\n {{\'util.noData\'|translate}}\n </md-list-item>\n </md-list>\n\n \n <ttmd-pagination ng-if=vm.totalNumber model=vm.model list={{vm.type}} limits=vm.limits total-number=vm.totalNumber cb=vm.updateList(model)></ttmd-pagination>\n </section>\n\n \n <ttmd-detail-view ng-if="vm.isDetailShown && vm.hasTransclude(\'details\')">\n <div ng-transclude=details></div>\n </ttmd-detail-view>\n</div>\n\n'},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t.config(["$animateProvider","$httpProvider","$logProvider",function(t,e,n){e.defaults.useXDomain=!0,n.debugEnabled(!0),t.classNameFilter(/\banimated\b/)}])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(55)["default"](t),n(53)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(39),n(40),n(41),n(42),n(32),n(62)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(e){(0,o["default"])(this,t),this.$parse=e}return t.$inject=["$parse"],(0,a["default"])(t,[{key:"action",value:function(t){t.stopPropagation();var e=this.ItemCtrl.getSelectedItem();this.onClick({payload:e})}},{key:"shouldDisplay",value:function(){if(!this["if"])return!0;var t=this.$parse(this["if"]),e=this.ItemCtrl.getSelectedItem();return t(e)}},{key:"showButtonOrText",value:function(){var t=["button","text"];return this.showAs&&t.indexOf(this.showAs)>-1?this.showAs:t[0]}}]),t}(),s={bindings:{text:"@",onClick:"&","if":"@",showAs:"@"},require:{ItemCtrl:"?^^ttmdTableItem"},controller:l,controllerAs:"vm",replace:!0,template:n(43)};e["default"]=function(t){t.component("ttmdAction",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(56)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={transclude:!0,replace:!0,template:n(44)};e["default"]=function(t){t.component("ttmdActions",i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(57)["default"](t),n(58)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(){(0,o["default"])(this,t)}return(0,a["default"])(t,[{key:"closeDetailView",value:function(){this.ListCtrl.toggleDetail(!1)}}]),t}(),s={bindings:{},controller:l,transclude:!0,controllerAs:"vm",require:{ListCtrl:"^ttmdTable"},template:n(45)};e["default"]=function(t){t.component("ttmdDetailView",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(33),n(60)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(38),n(65)["default"](t),n(59)["default"](t),n(72)["default"](t),n(61)["default"](t),n(76)["default"](t),n(77)["default"](t),n(80)["default"](t),n(79)["default"](t),n(78)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(34),n(64)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(){(0,o["default"])(this,t)}return(0,a["default"])(t,[{key:"printPagination",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0];this.pages=this.paginationCtrl.printPagination(t)}},{key:"goToPage",value:function(t){_.isNumber(t)&&(this.paginationCtrl.goToPage(t),this.printPagination(t))}},{key:"next",value:function(){this.paginationCtrl.next()}},{key:"previous",value:function(){this.paginationCtrl.previous()}}]),t}(),s={bindings:{offset:"="},controller:l,controllerAs:"vm",require:{paginationCtrl:"^ttmdPagination"},template:n(46)};e["default"]=function(t){t.component("ttmdPaginationDesktop",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(66)["default"](t),n(63)["default"](t),n(68)["default"](t),n(69)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(35),n(67)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(){(0,o["default"])(this,t)}return(0,a["default"])(t,[{key:"more",value:function(){this.paginationCtrl.more()}},{key:"previous",value:function(){this.paginationCtrl.previous()}}]),t}(),s={bindings:{offset:"<"},controller:l,controllerAs:"vm",require:{paginationCtrl:"^ttmdPagination"},template:n(47)};e["default"]=function(t){t.component("ttmdPaginationMobile",s)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(85),o=i(r),u=n(1),a=i(u),l=n(2),s=i(l),c=function(){function t(e){(0,a["default"])(this,t),this.ttMdTable=e}return t.$inject=["ttMdTable"],(0,s["default"])(t,[{key:"printPagination",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],e=this.model.getPages(this.totalNumber);return 6>=e?_.range(1,e+1):0>=t-3?[].concat((0,o["default"])(_.range(1,5)),["...",e]):t+3>e?[1,"..."].concat((0,o["default"])(_.range(e-3,e+1))):t-3>0&&e>=t+3?[1,"...",t-1,t,t+1,"...",e]:void 0}},{key:"next",value:function(){this.model.getOffset()+1<=this.model.getPages(this.totalNumber)?this.goToPage(this.model.getOffset()+1):console.log("Cannot go next")}},{key:"previous",value:function(){this.model.getOffset()-1>0?this.goToPage(this.model.getOffset()-1):console.log("Cannot go previous")}},{key:"goToPage",value:function(t){this.model.setOffset(t),this.cb({model:this.model})}},{key:"more",value:function(){this.next()}}]),t}(),f={bindings:{list:"@",model:"=",limits:"<",cb:"&",totalNumber:"="},controller:c,controllerAs:"vm",require:{listCtrl:"^ttmdTable"},template:n(48)};e["default"]=function(t){t.component("ttmdPagination",f)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function i(t,e,n){function i(t){var e=t.listType,n=t.offset,i=t.limits,r=t.total,o=t.breakpoint,u=t.forceMobile;this.listType=e||"",this.offset=n||1,this.limits=i||null,this.total=r||null,this.forceMobile=u||null,this.breakpoint=o||null,this.limit=this.getLimit(),this.pages=this.getPages(r),this.forceDesktop=!1}return i.$inject=["_ref"],i.prototype.getPages=function(t){return t?t%this.getLimit()>0?Math.floor(t/this.getLimit())+1:Math.floor(t/this.getLimit()):void 0},i.prototype.setOffset=function(t){this.offset=t},i.prototype.getOffset=function(){return this.offset},i.prototype.getLimit=function(){var t=void 0;return t=this.forceMobile?n.limits.mobile:this.goMobile()?n.limits.mobile:n.limits.desktop,this.limits?this.limits[t]||e.getLimits(t):e.getLimits(t)},i.prototype.goMobile=function(){if(this.forceMobile)return!0;if(this.forceDesktop)return!1;if(this.breakpoint)return!t("gt-"+this.breakpoint);if(e.isForceMobile())return!0;var n=e.getMobile();return!t(n)},i};n.$inject=["$mdMedia","ttMdTable","TableConstant"],e["default"]=function(t){t.factory("PaginationModel",n)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(){(0,o["default"])(this,t)}return(0,a["default"])(t,[{key:"getExcludedKeys",value:function(){return this.ListCtrl.exclude}},{key:"getPipes",value:function(){return this.ListCtrl.getPipes()}}]),t}(),s={bindings:{item:"="},transclude:!0,require:{ItemCtrl:"^ttmdTableItem",ListCtrl:"^^ttmdTable"},replace:!0,controller:l,controllerAs:"vm",template:n(49)};e["default"]=function(t){t.component("ttmdDesktopItem",s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(36),n(70)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(73)["default"](t),n(71)["default"](t),n(75)["default"](t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){n(37),n(74)["default"](t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(){(0,o["default"])(this,t)}return(0,a["default"])(t,[{key:"getExcludedKeys",value:function(){return this.ListCtrl.exclude}},{key:"getPipes",value:function(){return this.ListCtrl.getPipes()}}]),t}(),s={bindings:{item:"=",headers:"<"},transclude:!0,require:{ItemCtrl:"^ttmdTableItem",ListCtrl:"^^ttmdTable"},replace:!0,controller:l,controllerAs:"vm",template:n(50)};e["default"]=function(t){t.component("ttmdMobileItem",s)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(e){(0,o["default"])(this,t),this.ttMdTable=e}return t.$inject=["ttMdTable"],(0,a["default"])(t,[{key:"getSelectedItem",value:function(){return this.item}}]),t}(),s={bindings:{item:"=",headers:"<",hasTransclude:"<"},transclude:!0,replace:!0,require:{listCtrl:"^ttmdTable"},controller:l,controllerAs:"vm",template:n(51)};e["default"]=function(t){t.component("ttmdTableItem",s)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t.animation(".fadeleft",["$animateCss",function(t){return{enter:function(e){var n=angular.element(e).width();return t(e,{from:{opacity:0,marginLeft:"-"+n+"px"},to:{opacity:1,marginLeft:"0"},duration:.4})},leave:function(e){var n=angular.element(e).width();return t(e,{from:{opacity:1,marginLeft:0},to:{opacity:0,marginLeft:"-"+n+"px"},duration:.4})}}}])}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),u=n(2),a=i(u),l=function(){function t(e,n,i,r){(0,o["default"])(this,t),this.$transclude=n,this.isDetailShown=!1,this.$log=i,this.$parse=r;var u={listType:this.type,offset:1,limits:this.limits,total:this.totalNumber,breakpoint:this.breakpoint,forceMobile:this.forceMobile};this.model=new e(u)}return t.$inject=["PaginationModel","$transclude","$log","$parse"],(0,a["default"])(t,[{key:"hasTransclude",value:function(t){return this.$transclude.isSlotFilled(t)}},{key:"getLimitTo",value:function(){return this.totalNumber?this.model.getLimit():_.size(this.items)}},{key:"getOrderBy",value:function(){return this.sort?_.first(this.sort):""}},{key:"goMobile",value:function(){return this.model.goMobile()}},{key:"updateList",value:function(t){var e=t.listType,n=t.getOffset(),i=t.getLimit(),r={limit:i,offset:n,listType:e};this.onPageChange({payload:r})}},{key:"showDetail",value:function(t,e){return e.stopPropagation(),this.hasTransclude("details")?(this.onRowClick({payload:t}),void this.toggleDetail()):void this.$log.debug("ttmd-table component: ttmd-detail tag is not defined in your html")}},{key:"getPipes",value:function(){return this.pipes?this.pipes:[]}},{key:"toggleDetail",value:function(t){t?this.isDetailShown=t:this.isDetailShown=!this.isDetailShown}},{key:"shouldHighlightRow",value:function(t){return this.highlightRow?this.highlightRow(t):!1}}]),t}(),s={bindings:{toolbar:"<",headers:"<",forceMobile:"<",limits:"<",sort:"<",exclude:"<",items:"=",totalNumber:"<",highlightRow:"<",pipes:"<",type:"@",breakpoint:"@",onPageChange:"&",onRowClick:"&"},transclude:{actions:"?ttmdActions",details:"?ttmdDetail"},controller:l,controllerAs:"vm",template:n(52)};e["default"]=function(t){t.component("ttmdTable",s)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t.value("TableConstant",{limits:{mobile:"mobile",desktop:"desktop"}})}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),o=i(r);e["default"]=function(t){t.filter("exclude",function(){return function(t,e){var n=e||[""],i=(0,o["default"])(t);return i.reduce(function(e,i){return n.indexOf(i)>-1?e:(e[i]=t[i],e)},{})}}),t.filter("pipes",["$filter",function(t){return function(e,n){return(0,o["default"])(n).reduce(function(e,i){var r=void 0,o=void 0,u=void 0,a=void 0,l=void 0;return r=i,(o=n[r].targets)?(o.forEach(function(i){u=e[i],a=n[r].format,l=a&&""!==a?t(r)(u,a):t(r)(u),l&&(e[i]=l)}),e):e},e)}}])}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(){function t(t){return s.some(function(e){return e===t})}function e(t){var e=(0,c["default"])(t).sort(),n=a.sort();return 1===e.length?n.indexOf(e[0])>-1:_.isEqual(e,n)}function n(t){f=(0,l["default"])({},f,{forceMobile:t})}function i(e){if(!t(e))throw new Error("ttMdTable: setMobile() --> Cannot set mobile as: ",e);f=(0,l["default"])({},f,{breakpoint:e})}function r(t){if(!e(t))throw new Error("ttMdTable: setPagination() --> Cannot set pagination as: ",(0,u["default"])(null,3,t));f=(0,l["default"])({},f,{limits:t})}var o={forceMobile:!1,breakpoint:"xs",limits:{desktop:8,mobile:3}},a=["desktop","mobile"],s=["xs","sm","md","lg"],f={};return{setConfig:function(t){t&&(t.forceMobile&&n(t.forceMobile),t.breakpoint&&i(t.breakpoint),t.limits&&r(t.limits))},$get:function(){return{isForceMobile:function(){return f.forceMobile?f.forceMobile:o.forceMobile},getMobile:function(){return f.breakpoint?"gt-"+f.breakpoint:"gt-"+o.breakpoint},getLimits:function(t){return f.limits?f.limits[t]||o.limits[t]:o.limits[t]}}}}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(82),u=i(o),a=n(83),l=i(a),s=n(21),c=i(s);e["default"]=function(t){t.provider("ttMdTable",r)}},function(t,e,n){t.exports={"default":n(86),__esModule:!0}},function(t,e,n){t.exports={"default":n(87),__esModule:!0}},function(t,e,n){t.exports={"default":n(88),__esModule:!0}},function(t,e,n){t.exports={"default":n(89),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(81),o=i(r);e["default"]=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o["default"])(t)}},function(t,e,n){n(120),n(116),t.exports=n(3).Array.from},function(t,e,n){var i=n(3),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},function(t,e,n){n(117),t.exports=n(3).Object.assign},function(t,e,n){n(118);var i=n(3).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){n(119),t.exports=n(3).Object.keys},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(29),r=n(30),o=n(113);t.exports=function(t){return function(e,n,u){var a,l=i(e),s=r(l.length),c=o(u,s);if(t&&n!=n){for(;s>c;)if(a=l[c++],a!=a)return!0}else for(;s>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(22),r=n(4)("toStringTag"),o="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){"use strict";var i=n(8),r=n(18);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){t.exports=n(7).document&&document.documentElement},function(t,e,n){t.exports=!n(5)&&!n(10)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(16),r=n(4)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){var i=n(9);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(o){var u=t["return"];throw void 0!==u&&i(u.call(t)),o}}},function(t,e,n){"use strict";var i=n(104),r=n(18),o=n(27),u={};n(12)(u,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(u,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var i=n(102),r=n(6),o=n(111),u=n(12),a=n(11),l=n(16),s=n(99),c=n(27),f=n(107),d=n(4)("iterator"),m=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",g="values",h=function(){return this};t.exports=function(t,e,n,b,y,x,_){s(n,e,b);var M,O,w,k=function(t){if(!m&&t in C)return C[t];switch(t){case v:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},P=e+" Iterator",j=y==g,T=!1,C=t.prototype,S=C[d]||C[p]||y&&C[y],A=S||k(y),I=y?j?k("entries"):A:void 0,$="Array"==e?C.entries||S:S;if($&&(w=f($.call(new t)),w!==Object.prototype&&(c(w,P,!0),i||a(w,d)||u(w,d,h))),j&&S&&S.name!==g&&(T=!0,A=function(){return S.call(this)}),i&&!_||!m&&!T&&C[d]||u(C,d,A),l[e]=A,l[P]=h,y)if(M={values:j?A:k(g),keys:x?A:k(v),entries:I},_)for(O in M)O in C||o(C,O,M[O]);else r(r.P+r.F*(m||T),e,M);return M}},function(t,e,n){var i=n(4)("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],u=o[i]();u.next=function(){return{done:n=!0}},o[i]=function(){return u},t(o)}catch(a){}return n}},function(t,e){t.exports=!0},function(t,e,n){"use strict";var i=n(17),r=n(106),o=n(109),u=n(13),a=n(26),l=Object.assign;t.exports=!l||n(10)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=u(t),l=arguments.length,s=1,c=r.f,f=o.f;l>s;)for(var d,m=a(arguments[s++]),p=c?i(m).concat(c(m)):i(m),v=p.length,g=0;v>g;)f.call(m,d=p[g++])&&(n[d]=m[d]);return n}:l},function(t,e,n){var i=n(9),r=n(105),o=n(25),u=n(19)("IE_PROTO"),a=function(){},l="prototype",s=function(){var t,e=n(24)("iframe"),i=o.length,r=">";for(e.style.display="none",n(95).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+r),t.close(),s=t.F;i--;)delete s[l][o[i]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=i(t),n=new a,a[l]=null,n[u]=t):n=s(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(8),r=n(9),o=n(17);t.exports=n(5)?Object.defineProperties:function(t,e){r(t);for(var n,u=o(e),a=u.length,l=0;a>l;)i.f(t,n=u[l++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(11),r=n(13),o=n(19)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var i=n(11),r=n(29),o=n(92)(!1),u=n(19)("IE_PROTO");t.exports=function(t,e){var n,a=r(t),l=0,s=[];for(n in a)n!=u&&i(a,n)&&s.push(n);for(;e.length>l;)i(a,n=e[l++])&&(~o(s,n)||s.push(n));return s}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(6),r=n(3),o=n(10);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],u={};u[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",u)}},function(t,e,n){t.exports=n(12)},function(t,e,n){var i=n(20),r=n(14);t.exports=function(t){return function(e,n){var o,u,a=String(r(e)),l=i(n),s=a.length;return 0>l||l>=s?t?"":void 0:(o=a.charCodeAt(l),55296>o||o>56319||l+1===s||(u=a.charCodeAt(l+1))<56320||u>57343?t?a.charAt(l):o:t?a.slice(l,l+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,e,n){var i=n(20),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),0>t?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(15);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(93),r=n(4)("iterator"),o=n(16);t.exports=n(3).getIteratorMethod=function(t){return void 0!=t?t[r]||t["@@iterator"]||o[i(t)]:void 0}},function(t,e,n){"use strict";var i=n(23),r=n(6),o=n(13),u=n(98),a=n(97),l=n(30),s=n(94),c=n(115);r(r.S+r.F*!n(101)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,f,d=o(t),m="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,h=0,b=c(d);if(g&&(v=i(v,p>2?arguments[2]:void 0,2)),void 0==b||m==Array&&a(b))for(e=l(d.length),n=new m(e);e>h;h++)s(n,h,g?v(d[h],h):d[h]);else for(f=b.call(d),n=new m;!(r=f.next()).done;h++)s(n,h,g?u(f,v,[r.value,h],!0):r.value);return n.length=h,n}})},function(t,e,n){var i=n(6);i(i.S+i.F,"Object",{assign:n(103)})},function(t,e,n){var i=n(6);i(i.S+i.F*!n(5),"Object",{defineProperty:n(8).f})},function(t,e,n){var i=n(13),r=n(17);n(110)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){"use strict";var i=n(112)(!0);n(100)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length, | ||
{value:t,done:!1})})}]); | ||
//# sourceMappingURL=tt-ui-md-table.min.js.map |
{ | ||
"name": "tt-ui-md-table", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Angular Material Design Table Component", | ||
@@ -55,5 +55,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash": "4.3.0", | ||
"shortid": "^2.2.4" | ||
"lodash": "4.3.0" | ||
} | ||
} |
@@ -24,7 +24,42 @@ **v1.0.0** - Angular Material Design -- Table Component | ||
* Angular Material 1.0.2 | ||
* Angular Translate Support | ||
************************ | ||
#DEMO | ||
# About Adding your translation | ||
Inside libaray, use `{{ value | translate }}` to get the translations. | ||
If you do NOT need translation, you can just pass the string you want to display. | ||
If you do need translation, you can pass in the json path as when you use angular translation libaray. | ||
For Example: | ||
```json | ||
{ | ||
"title": { | ||
"greeting": "Hello!" | ||
} | ||
} | ||
``` | ||
```js | ||
<ttmd-table toolbar="{title: 'title.greeting'}"></ttmd-table> | ||
``` | ||
#### Add missing translations: | ||
In mobile view, there are two buttons needs your provide translations for other languages: | ||
```json | ||
{ | ||
"util": { | ||
"previous": "", | ||
"next": "" | ||
} | ||
} | ||
``` | ||
Default value for those are `Previous` & `Next` | ||
## Features | ||
@@ -165,3 +200,3 @@ | ||
toolbar="{ | ||
title: vm.$translate.instant('paymentComponent.allPendingBills'), | ||
title: 'paymentComponent.allPendingBills', | ||
icon: 'account_circle' | ||
@@ -171,3 +206,3 @@ }"> | ||
<ttmd-action | ||
text="vm.$translate.instant('paymentComponent.pay')" | ||
text="paymentComponent.pay" | ||
on-click="vm.pay(payload)" | ||
@@ -174,0 +209,0 @@ ></ttmd-action> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
874284
1
1643
370
- Removedshortid@^2.2.4
- Removednanoid@2.1.11(transitive)
- Removedshortid@2.2.16(transitive)