diff --git a/config/deploy.js b/config/deploy.js index a14d026ae..ebdf75aff 100644 --- a/config/deploy.js +++ b/config/deploy.js @@ -4,8 +4,8 @@ var ghpages = require('gh-pages'); var dir = path.resolve(path.join(__dirname, '../', 'dist')); ghpages.publish(dir, { user: { - name: 'Austin McDaniel', - email: 'amcdaniel2@gmail.com' + name: 'Swimlane', + email: 'developer@swimlane.com' }, message: '(deploy): CI', logger: function(message) { diff --git a/package.json b/package.json index 00746fe18..9c4521b97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@swimlane/ngx-datatable", - "version": "11.1.7", + "version": "11.2.0", "description": "ngx-datatable is a Angular2+ table grid component for presenting large and complex data.", "main": "release/index.js", "typings": "release/index.d.ts", diff --git a/release/components/body/body-row.component.js b/release/components/body/body-row.component.js index b715c67ad..ecbb78069 100644 --- a/release/components/body/body-row.component.js +++ b/release/components/body/body-row.component.js @@ -172,7 +172,7 @@ var DataTableBodyRowComponent = /** @class */ (function () { if (val === void 0) { val = this.columns; } this._columns = val; var colsByPin = utils_1.columnsByPin(this._columns); - this._columnsByPin = utils_1.allColumnsByPinArr(this._columns); + this._columnsByPin = utils_1.columnsByPinArr(this._columns); this._columnGroupWidths = utils_1.columnGroupWidths(colsByPin, this._columns); }; __decorate([ diff --git a/release/components/body/body-row.component.js.map b/release/components/body/body-row.component.js.map index c55f6e89d..30f10556b 100644 --- a/release/components/body/body-row.component.js.map +++ b/release/components/body/body-row.component.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../build/components/body/body-row.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAGuB;AAEvB,qCAEqB;AACrB,2CAAiD;AACjD,uCAAgE;AA0BhE;IAuFE,mCACY,OAAwB,EACZ,eAAgC,EAC5C,EAAqB,EAC7B,OAAmB;QAHX,YAAO,GAAP,OAAO,CAAiB;QACZ,oBAAe,GAAf,eAAe,CAAiB;QAC5C,OAAE,GAAF,EAAE,CAAmB;QAnBvB,aAAQ,GA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,gBAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,eAAe,EAAE,8BAAuB,CAAC,MAAM;YAC/C,QAAQ,EAAE,mtBAmBT;SACF,CAAC;QA0FK,WAAA,eAAQ,EAAE,CAAA;yCADM,sBAAe;YACK,0BAAe;YACxC,wBAAiB;YACpB,iBAAU;OA3FZ,yBAAyB,CA0LrC;IAAD,gCAAC;CA1LD,AA0LC,IAAA;AA1LY,8DAAyB","file":"body-row.component.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["../../../build/components/body/body-row.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAGuB;AAEvB,qCAEqB;AACrB,2CAAiD;AACjD,uCAAgE;AA0BhE;IAuFE,mCACY,OAAwB,EACZ,eAAgC,EAC5C,EAAqB,EAC7B,OAAmB;QAHX,YAAO,GAAP,OAAO,CAAiB;QACZ,oBAAe,GAAf,eAAe,CAAiB;QAC5C,OAAE,GAAF,EAAE,CAAmB;QAnBvB,aAAQ,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAQ3D,iBAAY,GAAG;YACb,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,EAAE;SACV,CAAC;QASA,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9C,CAAC;IA5FQ,sBAAI,8CAAO;aAKpB;YACE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;aAPQ,UAAY,GAAU;YAC7B,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;YACpB,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAC/B,CAAC;;;OAAA;IAMQ,sBAAI,iDAAU;aAWvB;YACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;QAC1B,CAAC;aAbQ,UAAe,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E;;+DAAmB;IAClB;QAAR,YAAK,EAAE;;+DAAe;IACd;QAAR,YAAK,EAAE;;0DAAU;IACT;QAAR,YAAK,EAAE;;4DAAY;IACX;QAAR,YAAK,EAAE;;iEAAqB;IACpB;QAAR,YAAK,EAAE;;+DAAkB;IACjB;QAAR,YAAK,EAAE;;mEAAmB;IAG3B;QADC,YAAK,EAAE;;;4DAIP;IAID;QADC,kBAAW,CAAC,OAAO,CAAC;;;6DAoBpB;IAGQ;QADR,kBAAW,CAAC,iBAAiB,CAAC;QAC9B,YAAK,EAAE;;gEAAmB;IAG3B;QADC,kBAAW,CAAC,gBAAgB,CAAC;;;uEAG7B;IAES;QAAT,aAAM,EAAE;kCAAW,mBAAY;+DAA2B;IA0E3D;QADC,mBAAY,CAAC,SAAS,EAAE,CAAC,QAAQ,CAAC,CAAC;;;;8DAuBnC;IAGD;QADC,mBAAY,CAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,CAAC;;;;iEAQtC;IAjLU,yBAAyB;QAxBrC,gBAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,eAAe,EAAE,8BAAuB,CAAC,MAAM;YAC/C,QAAQ,EAAE,mtBAmBT;SACF,CAAC;QA0FK,WAAA,eAAQ,EAAE,CAAA;yCADM,sBAAe;YACK,0BAAe;YACxC,wBAAiB;YACpB,iBAAU;OA3FZ,yBAAyB,CA0LrC;IAAD,gCAAC;CA1LD,AA0LC,IAAA;AA1LY,8DAAyB","file":"body-row.component.js","sourceRoot":""} \ No newline at end of file diff --git a/release/components/body/body.component.d.ts b/release/components/body/body.component.d.ts index d0c979632..96b8685fa 100644 --- a/release/components/body/body.component.d.ts +++ b/release/components/body/body.component.d.ts @@ -8,7 +8,7 @@ export declare class DataTableBodyComponent implements OnInit, OnDestroy { scrollbarH: boolean; loadingIndicator: boolean; externalPaging: boolean; - rowHeight: number; + rowHeight: number | ((row: any) => number); offsetX: number; emptyMessage: string; selectionType: SelectionType; diff --git a/release/components/body/body.component.js b/release/components/body/body.component.js index 9610274b7..f2d97a784 100644 --- a/release/components/body/body.component.js +++ b/release/components/body/body.component.js @@ -305,12 +305,15 @@ var DataTableBodyComponent = /** @class */ (function () { * Get the row height */ DataTableBodyComponent.prototype.getRowHeight = function (row) { - var rowHeight = this.rowHeight; + var height; // if its a function return it if (typeof this.rowHeight === 'function') { - rowHeight = this.rowHeight(row); + height = this.rowHeight(row); } - return rowHeight; + else { + height = this.rowHeight; + } + return height; }; /** * @param group the group with all rows @@ -577,7 +580,7 @@ var DataTableBodyComponent = /** @class */ (function () { ], DataTableBodyComponent.prototype, "externalPaging", void 0); __decorate([ core_1.Input(), - __metadata("design:type", Number) + __metadata("design:type", Object) ], DataTableBodyComponent.prototype, "rowHeight", void 0); __decorate([ core_1.Input(), diff --git a/release/components/body/body.component.js.map b/release/components/body/body.component.js.map index 11be6eb4a..3e5a84962 100644 --- a/release/components/body/body.component.js.map +++ b/release/components/body/body.component.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../build/components/body/body.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAGuB;AACvB,qCAA2F;AAC3F,qCAA4C;AAC5C,2DAAyD;AAqFzD;IA+IE;;OAEG;IACH,gCAAoB,EAAqB;QAAzC,iBAWC;QAXmB,OAAE,GAAF,EAAE,CAAmB;QAxIhC,aAAQ,GAAU,EAAE,CAAC;QAsFpB,WAAM,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAC/C,SAAI,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAC7C,aAAQ,GAAsB,IAAI,mBAAY,EAAE,CAAC;QACjD,WAAM,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAC/C,iBAAY,GAAsB,IAAI,mBAAY,EAAE,CAAC;QACrD,mBAAc,GAAG,IAAI,mBAAY,CAAkC,KAAK,CAAC,CAAC;QAwBpF,oBAAe,GAAmB,IAAI,sBAAc,EAAE,CAAC;QACvD,SAAI,GAAU,EAAE,CAAC;QACjB,YAAO,GAAW,CA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AAR,YAAK,EAAE;;4DAAe;IACd;QAAR,YAAK,EAAE;;+DAAkB;IACjB;QAAR,YAAK,EAAE;;yEAAgC;IAC/B;QAAR,YAAK,EAAE;;8DAAoB;IACnB;QAAR,YAAK,EAAE;;+DAAqB;IACpB;QAAR,YAAK,EAAE;;kEAAyB;IAExB;QAAR,YAAK,EAAE;;;0DAGP;IAMQ;QAAR,YAAK,EAAE;;;sDAIP;IAMQ;QAAR,YAAK,EAAE;;;yDAIP;IAMQ;QAAR,YAAK,EAAE;;;wDAGP;IAMQ;QAAR,YAAK,EAAE;;;0DAGP;IAOD;QADC,kBAAW,CAAC,aAAa,CAAC;;;2DAO1B;IAID;QAFC,YAAK,EAAE;QACP,kBAAW,CAAC,cAAc,CAAC;;;4DAS3B;IAMS;QAAT,aAAM,EAAE;kCAAS,mBAAY;0DAA2B;IAC/C;QAAT,aAAM,EAAE;kCAAO,mBAAY;wDAA2B;IAC7C;QAAT,aAAM,EAAE;kCAAW,mBAAY;4DAA2B;IACjD;QAAT,aAAM,EAAE;kCAAS,mBAAY;0DAA2B;IAC/C;QAAT,aAAM,EAAE;kCAAe,mBAAY;gEAA2B;IACrD;QAAT,aAAM,EAAE;;kEAA2E;IAEtD;QAA7B,gBAAS,CAAC,sCAAiB,CAAC;kCAAW,sCAAiB;4DAAC;IAvG/C,sBAAsB;QAlFlC,gBAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,44FA0ET;YACD,eAAe,EAAE,8BAAuB,CAAC,MAAM;YAC/C,IAAI,EAAE;gBACJ,KAAK,EAAE,gBAAgB;aACxB;SACF,CAAC;yCAmJwB,wBAAiB;OAlJ9B,sBAAsB,CAmmBlC;IAAD,6BAAC;CAnmBD,AAmmBC,IAAA;AAnmBY,wDAAsB","file":"body.component.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["../../../build/components/body/body.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAGuB;AACvB,qCAA2F;AA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,EAAE;kCAAS,mBAAY;0DAA2B;IAC/C;QAAT,aAAM,EAAE;kCAAe,mBAAY;gEAA2B;IACrD;QAAT,aAAM,EAAE;;kEAA2E;IAEtD;QAA7B,gBAAS,CAAC,sCAAiB,CAAC;kCAAW,sCAAiB;4DAAC;IAvG/C,sBAAsB;QAlFlC,gBAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,44FA0ET;YACD,eAAe,EAAE,8BAAuB,CAAC,MAAM;YAC/C,IAAI,EAAE;gBACJ,KAAK,EAAE,gBAAgB;aACxB;SACF,CAAC;yCAmJwB,wBAAiB;OAlJ9B,sBAAsB,CAqmBlC;IAAD,6BAAC;CArmBD,AAqmBC,IAAA;AArmBY,wDAAsB","file":"body.component.js","sourceRoot":""} \ No newline at end of file diff --git a/release/components/footer/pager.component.js b/release/components/footer/pager.component.js index 83262ac8d..14fc3507c 100644 --- a/release/components/footer/pager.component.js +++ b/release/components/footer/pager.component.js @@ -143,7 +143,7 @@ var DataTablePagerComponent = /** @class */ (function () { DataTablePagerComponent = __decorate([ core_1.Component({ selector: 'datatable-pager', - template: "\n \n ", + template: "\n \n ", host: { class: 'datatable-pager' }, diff --git a/release/components/footer/pager.component.js.map b/release/components/footer/pager.component.js.map index f0e18a7e5..45cf4efcd 100644 --- a/release/components/footer/pager.component.js.map +++ b/release/components/footer/pager.component.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../build/components/footer/pager.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAEuB;AAmDvB;IAjDA;QA2FY,WAAM,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAEzD,WAAM,GAAW,CAAC,CAAC;QACnB,UAAK,GAAW,CAAC,CAAC;QAClB,UAAK,GAAW,CAAC,CAAC;IA6DpB,CAAC;IAnGC,sBAAI,yCAAI;aAKR;YACE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;aAPD,UAAS,GAAW;YAClB,IAAI,CAAC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AC;gBACvD,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;YAC5B,CAAC;QACH,CAAC;QAED,GAAG,CAAC,CAAC,IAAI,GAAG,GAAG,SAAS,EAAE,GAAG,IAAI,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC;YAChD,KAAK,CAAC,IAAI,CAAC;gBACT,MAAM,EAAE,GAAG;gBACX,IAAI,EAAe,GAAG;aACvB,CAAC,CAAC;QACL,CAAC;QAED,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAvGQ;QAAR,YAAK,EAAE;;uEAA4B;IAC3B;QAAR,YAAK,EAAE;;wEAA6B;IAC5B;QAAR,YAAK,EAAE;;sEAA2B;IAC1B;QAAR,YAAK,EAAE;;kEAAuB;IAG/B;QADC,YAAK,EAAE;;;uDAIP;IAOD;QADC,YAAK,EAAE;;;wDAIP;IAOD;QADC,YAAK,EAAE;;;uDAIP;IAWS;QAAT,aAAM,EAAE;kCAAS,mBAAY;2DAA2B;IA1C9C,uBAAuB;QAjDnC,gBAAS,CAAC;YACT,QAAQ,EAAE,iBAAiB;YAC3B,QAAQ,EAAE,4oCAyCT;YACD,IAAI,EAAE;gBACJ,KAAK,EAAE,iBAAiB;aACzB;YACD,eAAe,EAAE,8BAAuB,CAAC,MAAM;SAChD,CAAC;OACW,uBAAuB,CA2GnC;IAAD,8BAAC;CA3GD,AA2GC,IAAA;AA3GY,0DAAuB","file":"pager.component.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["../../../build/components/footer/pager.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAEuB;AA6DvB;IA3DA;QAqGY,WAAM,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAEzD,WAAM,GAAW,CAAC,CAAC;QACnB,UAAK,GAAW,CAAC,CAAC;QAClB,UAAK,GAAW,CAAC,CAAC;IA6DpB,CAAC;IAnGC,sBAAI,yCAAI;aAKR;YACE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;aA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GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBACvD,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;YAC5B,CAAC;QACH,CAAC;QAED,GAAG,CAAC,CAAC,IAAI,GAAG,GAAG,SAAS,EAAE,GAAG,IAAI,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC;YAChD,KAAK,CAAC,IAAI,CAAC;gBACT,MAAM,EAAE,GAAG;gBACX,IAAI,EAAe,GAAG;aACvB,CAAC,CAAC;QACL,CAAC;QAED,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAvGQ;QAAR,YAAK,EAAE;;uEAA4B;IAC3B;QAAR,YAAK,EAAE;;wEAA6B;IAC5B;QAAR,YAAK,EAAE;;sEAA2B;IAC1B;QAAR,YAAK,EAAE;;kEAAuB;IAG/B;QADC,YAAK,EAAE;;;uDAIP;IAOD;QADC,YAAK,EAAE;;;wDAIP;IAOD;QADC,YAAK,EAAE;;;uDAIP;IAWS;QAAT,aAAM,EAAE;kCAAS,mBAAY;2DAA2B;IA1C9C,uBAAuB;QA3DnC,gBAAS,CAAC;YACT,QAAQ,EAAE,iBAAiB;YAC3B,QAAQ,EAAE,i/CAmDT;YACD,IAAI,EAAE;gBACJ,KAAK,EAAE,iBAAiB;aACzB;YACD,eAAe,EAAE,8BAAuB,CAAC,MAAM;SAChD,CAAC;OACW,uBAAuB,CA2GnC;IAAD,8BAAC;CA3GD,AA2GC,IAAA;AA3GY,0DAAuB","file":"pager.component.js","sourceRoot":""} \ No newline at end of file diff --git a/release/components/footer/pager.component.metadata.json b/release/components/footer/pager.component.metadata.json index d701982de..47ad1c3b1 100644 --- a/release/components/footer/pager.component.metadata.json +++ b/release/components/footer/pager.component.metadata.json @@ -1 +1 @@ -[{"__symbolic":"module","version":3,"metadata":{"DataTablePagerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-pager","template":"\n \n ","host":{"class":"datatable-pager"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"}}]}],"members":{"pagerLeftArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerRightArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerPreviousIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerNextIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"count":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"canPrevious":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"prevPage":[{"__symbolic":"method"}],"nextPage":[{"__symbolic":"method"}],"selectPage":[{"__symbolic":"method"}],"calcPages":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DataTablePagerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-pager","template":"\n \n ","host":{"class":"datatable-pager"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"}}]}],"members":{"pagerLeftArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerRightArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerPreviousIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerNextIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"count":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"canPrevious":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"prevPage":[{"__symbolic":"method"}],"nextPage":[{"__symbolic":"method"}],"selectPage":[{"__symbolic":"method"}],"calcPages":[{"__symbolic":"method"}]}}}}] \ No newline at end of file +[{"__symbolic":"module","version":3,"metadata":{"DataTablePagerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-pager","template":"\n \n ","host":{"class":"datatable-pager"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"}}]}],"members":{"pagerLeftArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerRightArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerPreviousIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerNextIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"count":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"canPrevious":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"prevPage":[{"__symbolic":"method"}],"nextPage":[{"__symbolic":"method"}],"selectPage":[{"__symbolic":"method"}],"calcPages":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DataTablePagerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-pager","template":"\n \n ","host":{"class":"datatable-pager"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"}}]}],"members":{"pagerLeftArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerRightArrowIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerPreviousIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pagerNextIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"count":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"canPrevious":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"prevPage":[{"__symbolic":"method"}],"nextPage":[{"__symbolic":"method"}],"selectPage":[{"__symbolic":"method"}],"calcPages":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/release/index.css b/release/index.css index 997fd0683..492033dab 100644 --- a/release/index.css +++ b/release/index.css @@ -1,5 +1,5 @@ /** - * angular2-data-table v"11.1.7" (https://github.com/swimlane/angular2-data-table) + * angular2-data-table v"11.2.0" (https://github.com/swimlane/angular2-data-table) * Copyright 2016 * Licensed under MIT */ diff --git a/release/index.js b/release/index.js index 75f6d2090..7403dbed9 100644 --- a/release/index.js +++ b/release/index.js @@ -1,5 +1,5 @@ /** - * angular2-data-table v"11.1.7" (https://github.com/swimlane/angular2-data-table) + * angular2-data-table v"11.2.0" (https://github.com/swimlane/angular2-data-table) * Copyright 2016 * Licensed under MIT */ @@ -12,7 +12,7 @@ exports["ngxDatatable"] = factory(require("@angular/common"), require("@angular/core"), require("@angular/platform-browser"), require("rxjs/BehaviorSubject"), require("rxjs/observable/fromEvent"), require("rxjs/operators")); else root["ngxDatatable"] = factory(root["@angular/common"], root["@angular/core"], root["@angular/platform-browser"], root["rxjs/BehaviorSubject"], root["rxjs/observable/fromEvent"], root["rxjs/operators"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE__angular_common__, __WEBPACK_EXTERNAL_MODULE__angular_core__, __WEBPACK_EXTERNAL_MODULE__angular_platform_browser__, __WEBPACK_EXTERNAL_MODULE_rxjs_BehaviorSubject__, __WEBPACK_EXTERNAL_MODULE_rxjs_observable_fromEvent__, __WEBPACK_EXTERNAL_MODULE_rxjs_operators__) { +})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__angular_common__, __WEBPACK_EXTERNAL_MODULE__angular_core__, __WEBPACK_EXTERNAL_MODULE__angular_platform_browser__, __WEBPACK_EXTERNAL_MODULE_rxjs_BehaviorSubject__, __WEBPACK_EXTERNAL_MODULE_rxjs_observable_fromEvent__, __WEBPACK_EXTERNAL_MODULE_rxjs_operators__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -80,10 +80,10 @@ return /******/ (function(modules) { // webpackBootstrap /************************************************************************/ /******/ ({ -/***/ "./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{\"sourceMap\":true}!./src/components/datatable.component.scss": +/***/ "./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/components/datatable.component.scss": /***/ (function(module, exports, __webpack_require__) { -exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(undefined); +exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(false); // imports @@ -1058,7 +1058,7 @@ var DataTableBodyRowComponent = /** @class */ (function () { if (val === void 0) { val = this.columns; } this._columns = val; var colsByPin = utils_1.columnsByPin(this._columns); - this._columnsByPin = utils_1.allColumnsByPinArr(this._columns); + this._columnsByPin = utils_1.columnsByPinArr(this._columns); this._columnGroupWidths = utils_1.columnGroupWidths(colsByPin, this._columns); }; __decorate([ @@ -1465,12 +1465,15 @@ var DataTableBodyComponent = /** @class */ (function () { * Get the row height */ DataTableBodyComponent.prototype.getRowHeight = function (row) { - var rowHeight = this.rowHeight; + var height; // if its a function return it if (typeof this.rowHeight === 'function') { - rowHeight = this.rowHeight(row); + height = this.rowHeight(row); } - return rowHeight; + else { + height = this.rowHeight; + } + return height; }; /** * @param group the group with all rows @@ -1737,7 +1740,7 @@ var DataTableBodyComponent = /** @class */ (function () { ], DataTableBodyComponent.prototype, "externalPaging", void 0); __decorate([ core_1.Input(), - __metadata("design:type", Number) + __metadata("design:type", Object) ], DataTableBodyComponent.prototype, "rowHeight", void 0); __decorate([ core_1.Input(), @@ -2434,7 +2437,7 @@ __export(__webpack_require__("./src/components/columns/column-cell.directive.ts" /***/ (function(module, exports, __webpack_require__) { - var result = __webpack_require__("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{\"sourceMap\":true}!./src/components/datatable.component.scss"); + var result = __webpack_require__("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/components/datatable.component.scss"); if (typeof result === "string") { module.exports = result; @@ -3913,7 +3916,7 @@ var DataTablePagerComponent = /** @class */ (function () { DataTablePagerComponent = __decorate([ core_1.Component({ selector: 'datatable-pager', - template: "\n \n ", + template: "\n \n ", host: { class: 'datatable-pager' }, @@ -5971,16 +5974,6 @@ function columnsByPinArr(val) { return colsByPinArr; } exports.columnsByPinArr = columnsByPinArr; -function allColumnsByPinArr(val) { - var colsByPinArr = []; - var colsByPin = columnsByPin(val); - var colsTest = []; - colsByPinArr.push({ type: 'left', columns: colsByPin['left'] }); - colsByPinArr.push({ type: 'center', columns: colsByPin['center'] }); - colsByPinArr.push({ type: 'right', columns: colsByPin['right'] }); - return colsByPinArr; -} -exports.allColumnsByPinArr = allColumnsByPinArr; /***/ }), diff --git a/release/index.min.js b/release/index.min.js index 4f733b0d8..20ad50053 100644 --- a/release/index.min.js +++ b/release/index.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs/BehaviorSubject"),require("rxjs/observable/fromEvent"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngxDatatable",["@angular/common","@angular/core","@angular/platform-browser","rxjs/BehaviorSubject","rxjs/observable/fromEvent","rxjs/operators"],t):"object"==typeof exports?exports.ngxDatatable=t(require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs/BehaviorSubject"),require("rxjs/observable/fromEvent"),require("rxjs/operators")):e.ngxDatatable=t(e["@angular/common"],e["@angular/core"],e["@angular/platform-browser"],e["rxjs/BehaviorSubject"],e["rxjs/observable/fromEvent"],e["rxjs/operators"])}(this,function(e,t,n,o,r,i){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./src/index.ts")}({'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/components/datatable.component.scss':function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([e.i,".ngx-datatable {\n display: block;\n overflow: hidden;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n -webkit-transform: translate3d(0, 0, 0);\n /**\n * Vertical Scrolling Adjustments\n */\n /**\n * Horizontal Scrolling Adjustments\n */\n /**\n * Fixed Header Height Adjustments\n */\n /**\n * Fixed row height adjustments\n */\n /**\n * Shared Styles\n */\n /**\n * Header Styles\n */\n /**\n * Body Styles\n */\n /**\n * Footer Styles\n */ }\n .ngx-datatable [hidden] {\n display: none !important; }\n .ngx-datatable *, .ngx-datatable *:before, .ngx-datatable *:after {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; }\n .ngx-datatable.scroll-vertical .datatable-body {\n overflow-y: auto; }\n .ngx-datatable.scroll-vertical .datatable-body .datatable-row-wrapper {\n position: absolute; }\n .ngx-datatable.scroll-horz .datatable-body {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch; }\n .ngx-datatable.fixed-header .datatable-header .datatable-header-inner {\n white-space: nowrap; }\n .ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n .ngx-datatable.fixed-row .datatable-scroll {\n white-space: nowrap; }\n .ngx-datatable.fixed-row .datatable-scroll .datatable-body-row {\n white-space: nowrap; }\n .ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .ngx-datatable .datatable-body-row,\n .ngx-datatable .datatable-row-center,\n .ngx-datatable .datatable-header-inner {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-flow: row;\n -o-flex-flow: row;\n flex-flow: row; }\n .ngx-datatable .datatable-body-cell,\n .ngx-datatable .datatable-header-cell {\n overflow-x: hidden;\n vertical-align: top;\n display: inline-block;\n line-height: 1.625; }\n .ngx-datatable .datatable-body-cell:focus,\n .ngx-datatable .datatable-header-cell:focus {\n outline: none; }\n .ngx-datatable .datatable-row-left,\n .ngx-datatable .datatable-row-right {\n z-index: 9; }\n .ngx-datatable .datatable-row-left,\n .ngx-datatable .datatable-row-center,\n .ngx-datatable .datatable-row-group,\n .ngx-datatable .datatable-row-right {\n position: relative; }\n .ngx-datatable .datatable-header {\n display: block;\n overflow: hidden; }\n .ngx-datatable .datatable-header .datatable-header-inner {\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n -webkit-align-items: stretch; }\n .ngx-datatable .datatable-header .datatable-header-cell {\n position: relative;\n display: inline-block; }\n .ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper {\n cursor: pointer; }\n .ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper {\n cursor: move; }\n .ngx-datatable .datatable-header .datatable-header-cell .sort-btn {\n line-height: 100%;\n vertical-align: middle;\n display: inline-block;\n cursor: pointer; }\n .ngx-datatable .datatable-header .datatable-header-cell .resize-handle, .ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable {\n display: inline-block;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 5px;\n padding: 0 4px;\n visibility: hidden; }\n .ngx-datatable .datatable-header .datatable-header-cell .resize-handle {\n cursor: ew-resize; }\n .ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle {\n visibility: visible; }\n .ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable {\n visibility: visible; }\n .ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap {\n height: inherit; }\n .ngx-datatable .datatable-body {\n position: relative;\n z-index: 10;\n display: block; }\n .ngx-datatable .datatable-body .datatable-scroll {\n display: inline-block; }\n .ngx-datatable .datatable-body .datatable-row-detail {\n overflow-y: hidden; }\n .ngx-datatable .datatable-body .datatable-row-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column; }\n .ngx-datatable .datatable-body .datatable-body-row {\n outline: none; }\n .ngx-datatable .datatable-body .datatable-body-row > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex; }\n .ngx-datatable .datatable-footer {\n display: block;\n width: 100%; }\n .ngx-datatable .datatable-footer .datatable-footer-inner {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%; }\n .ngx-datatable .datatable-footer .selected-count .page-count {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 40%;\n flex: 1 1 40%; }\n .ngx-datatable .datatable-footer .selected-count .datatable-pager {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 60%;\n flex: 1 1 60%; }\n .ngx-datatable .datatable-footer .page-count {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 20%;\n flex: 1 1 20%; }\n .ngx-datatable .datatable-footer .datatable-pager {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 80%;\n flex: 1 1 80%;\n text-align: right; }\n .ngx-datatable .datatable-footer .datatable-pager .pager,\n .ngx-datatable .datatable-footer .datatable-pager .pager li {\n padding: 0;\n margin: 0;\n display: inline-block;\n list-style: none; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li, .ngx-datatable .datatable-footer .datatable-pager .pager li a {\n outline: none; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li a {\n cursor: pointer;\n display: inline-block; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a {\n cursor: not-allowed; }\n",""])},"./node_modules/css-loader/lib/css-base.js":function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(o),i=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[n].concat(i).concat([r]).join("\n")}return[n].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=n(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/utils/index.ts"),a=n("./src/types/index.ts"),l=(n("./src/events.ts"),function(){function e(e,t){this.cd=t,this.activate=new i.EventEmitter,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex},this._element=e.nativeElement}return Object.defineProperty(e.prototype,"group",{get:function(){return this._group},set:function(e){this._group=e,this.cellContext.group=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowHeight",{get:function(){return this._rowHeight},set:function(e){this._rowHeight=e,this.cellContext.rowHeight=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.cellContext.isSelected=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){this._expanded=e,this.cellContext.expanded=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.cellContext.rowIndex=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this._row},set:function(e){this._row=e,this.cellContext.row=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorts",{get:function(){return this._sorts},set:function(e){this._sorts=e,this.calcSortDir=this.calcSortDir(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCssClasses",{get:function(){var e="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)e+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){var t=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof t)e+=t;else if("object"==typeof t)for(var n=0,o=Object.keys(t);n]+(>|$)/g,""):e},o([i.Input(),r("design:type",Object)],e.prototype,"displayCheck",void 0),o([i.Input(),r("design:type",Object),r("design:paramtypes",[Object])],e.prototype,"group",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"rowHeight",null),o([i.Input(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),o([i.Input(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],e.prototype,"expanded",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"rowIndex",null),o([i.Input(),r("design:type",Object),r("design:paramtypes",[Object])],e.prototype,"column",null),o([i.Input(),r("design:type",Object),r("design:paramtypes",[Object])],e.prototype,"row",null),o([i.Input(),r("design:type",Array),r("design:paramtypes",[Array])],e.prototype,"sorts",null),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"activate",void 0),o([i.ViewChild("cellTemplate",{read:i.ViewContainerRef}),r("design:type",i.ViewContainerRef)],e.prototype,"cellTemplate",void 0),o([i.HostBinding("class"),r("design:type",Object),r("design:paramtypes",[])],e.prototype,"columnCssClasses",null),o([i.HostBinding("style.width.px"),r("design:type",Number),r("design:paramtypes",[])],e.prototype,"width",null),o([i.HostBinding("style.height"),r("design:type",Object),r("design:paramtypes",[])],e.prototype,"height",null),o([i.HostListener("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"onFocus",null),o([i.HostListener("blur"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"onBlur",null),o([i.HostListener("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onClick",null),o([i.HostListener("dblclick",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onDblClick",null),o([i.HostListener("keydown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onKeyDown",null),e=o([i.Component({selector:"datatable-body-cell",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'\n
\n \n \n \n \n \n \n \n
\n '}),r("design:paramtypes",[i.ElementRef,i.ChangeDetectorRef])],e)}());t.DataTableBodyCellComponent=l},"./src/components/body/body-group-header-template.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-group-header-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DatatableGroupHeaderTemplateDirective=s},"./src/components/body/body-group-header.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/body/body-group-header-template.directive.ts"),a=function(){function e(){this.rowHeight=0,this.toggle=new i.EventEmitter}return e.prototype.toggleExpandGroup=function(e){this.toggle.emit({type:"group",value:e})},e.prototype.expandAllGroups=function(){this.toggle.emit({type:"all",value:!0})},e.prototype.collapseAllGroups=function(){this.toggle.emit({type:"all",value:!1})},o([i.Input(),r("design:type",Object)],e.prototype,"rowHeight",void 0),o([i.Input(),i.ContentChild(s.DatatableGroupHeaderTemplateDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"template",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"toggle",void 0),e=o([i.Directive({selector:"ngx-datatable-group-header"})],e)}();t.DatatableGroupHeaderDirective=a},"./src/components/body/body-row-wrapper.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=(n("./src/events.ts"),function(){function e(e,t){this.cd=e,this.differs=t,this.rowContextmenu=new i.EventEmitter(!1),this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this._expanded=!1,this.rowDiffer=t.find({}).create()}return Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.rowContext.rowIndex=e,this.groupContext.rowIndex=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){this._expanded=e,this.groupContext.expanded=e,this.rowContext.expanded=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())},e.prototype.onContextmenu=function(e){this.rowContextmenu.emit({event:e,row:this.row})},e.prototype.getGroupHeaderStyle=function(e){var t={};return t.transform="translate3d("+this.offsetX+"px, 0px, 0px)",t["backface-visibility"]="hidden",t.width=this.innerWidth,t},o([i.Input(),r("design:type",Number)],e.prototype,"innerWidth",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"rowDetail",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"groupHeader",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"offsetX",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"detailRowHeight",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"row",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"groupedRows",void 0),o([i.Output(),r("design:type",Object)],e.prototype,"rowContextmenu",void 0),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"rowIndex",null),o([i.Input(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],e.prototype,"expanded",null),o([i.HostListener("contextmenu",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onContextmenu",null),e=o([i.Component({selector:"datatable-row-wrapper",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'\n
\n \n \n
\n \n \n \n \n \n \n ',host:{class:"datatable-row-wrapper"}}),r("design:paramtypes",[i.ChangeDetectorRef,i.KeyValueDiffers])],e)}());t.DataTableRowWrapperComponent=s},"./src/components/body/body-row.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/utils/index.ts"),l=n("./src/services/index.ts"),c=(n("./src/events.ts"),function(){function e(e,t,n,o){this.differs=e,this.scrollbarHelper=t,this.cd=n,this.activate=new s.EventEmitter,this._groupStyles={left:{},center:{},right:{}},this._element=o.nativeElement,this._rowDiffer=e.find({}).create()}return Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.recalculateColumns(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(e){if(this._columns){var t=a.columnsByPin(this._columns);this._columnGroupWidths=a.columnGroupWidths(t,t)}this._innerWidth=e,this.recalculateColumns(),this.buildStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.buildStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){var e="datatable-body-row";if(this.isSelected&&(e+=" active"),this.rowIndex%2!=0&&(e+=" datatable-row-odd"),this.rowIndex%2==0&&(e+=" datatable-row-even"),this.rowClass){var t=this.rowClass(this.row);if("string"==typeof t)e+=" "+t;else if("object"==typeof t)for(var n=0,o=Object.keys(t);n\n \n \n \n '}),i(1,s.SkipSelf()),r("design:paramtypes",[s.KeyValueDiffers,l.ScrollbarHelper,s.ChangeDetectorRef,s.ElementRef])],e)}());t.DataTableBodyRowComponent=c},"./src/components/body/body.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/utils/index.ts"),a=(n("./src/types/index.ts"),n("./src/components/body/scroller.component.ts")),l=function(){function e(e){var t=this;this.cd=e,this.selected=[],this.scroll=new i.EventEmitter,this.page=new i.EventEmitter,this.activate=new i.EventEmitter,this.select=new i.EventEmitter,this.detailToggle=new i.EventEmitter,this.rowContextmenu=new i.EventEmitter(!1),this.rowHeightsCache=new s.RowHeightCache,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new Map,this.rowExpansions=new Map,this.getDetailRowHeight=function(e,n){if(!t.rowDetail)return 0;var o=t.rowDetail.rowHeight;return"function"==typeof o?o(e,n):o},this.rowTrackingFn=function(e,t){var n=this.getRowIndex(t);return this.trackByProp?n+"-"+this.trackByProp:n}.bind(this)}return Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(e){this._pageSize=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e,this.rowExpansions.clear(),this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e;var t=s.columnsByPin(e);this.columnGroupWidths=s.columnGroupWidths(t,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rowCount},set:function(e){this._rowCount=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bodyWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bodyHeight",{get:function(){return this._bodyHeight},set:function(e){this.scrollbarV?this._bodyHeight=e+"px":this._bodyHeight="auto",this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectEnabled",{get:function(){return!!this.selectionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){if(this.scrollbarV&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(function(t){var n=t.type,o=t.value;"row"===n&&e.toggleRowExpansion(o),"all"===n&&e.toggleAllRows(o),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(function(t){var n=t.type,o=t.value;"group"===n&&e.toggleRowExpansion(o),"all"===n&&e.toggleAllRows(o),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.rowDetail&&this.listener.unsubscribe(),this.groupHeader&&this.listener.unsubscribe()},e.prototype.updateOffsetY=function(e){if(this.scroller){if(this.scrollbarV&&e){var t=this.pageSize*e;e=this.rowHeightsCache.query(t-1)}this.scroller.setOffset(e||0)}},e.prototype.onBodyScroll=function(e){var t=e.scrollYPos,n=e.scrollXPos;this.offsetY===t&&this.offsetX===n||this.scroll.emit({offsetY:t,offsetX:n}),this.offsetY=t,this.offsetX=n,this.updateIndexes(),this.updatePage(e.direction),this.updateRows()},e.prototype.updatePage=function(e){var t=this.indexes.first/this.pageSize;"up"===e?t=Math.ceil(t):"down"===e&&(t=Math.floor(t)),void 0===e||isNaN(t)||this.page.emit({offset:t})},e.prototype.updateRows=function(){var e=this.indexes,t=e.first,n=e.last,o=t,r=0,i=[];if(this.rowIndexes.clear(),this.groupedRows){for(1===this.groupedRows.length&&this.groupedRows[0].value.length;o\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',changeDetection:i.ChangeDetectionStrategy.OnPush,host:{class:"datatable-body"}}),r("design:paramtypes",[i.ChangeDetectorRef])],e)}();t.DataTableBodyComponent=l},"./src/components/body/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/body/body.component.ts")),o(n("./src/components/body/body-cell.component.ts")),o(n("./src/components/body/body-row.component.ts")),o(n("./src/components/body/progress-bar.component.ts")),o(n("./src/components/body/scroller.component.ts")),o(n("./src/components/body/body-row-wrapper.component.ts")),o(n("./src/components/body/selection.component.ts")),o(n("./src/components/body/body-group-header.directive.ts")),o(n("./src/components/body/body-group-header-template.directive.ts"))},"./src/components/body/progress-bar.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("@angular/core"),i=function(){function e(){}return e=o([r.Component({selector:"datatable-progress",template:'\n
\n
\n
\n
\n
\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}();t.ProgressBarComponent=i},"./src/components/body/scroller.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e,t,n){this.ngZone=e,this.renderer=n,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new i.EventEmitter,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this.element=t.nativeElement}return e.prototype.ngOnInit=function(){var e=this;if(this.scrollbarV||this.scrollbarH){var t=this.renderer;this.parentElement=t.parentNode(t.parentNode(this.element)),this.ngZone.runOutsideAngular(function(){e.parentElement.addEventListener("scroll",e.onScrolled.bind(e))})}},e.prototype.ngOnDestroy=function(){(this.scrollbarV||this.scrollbarH)&&this.parentElement.removeEventListener("scroll",this.onScrolled.bind(this))},e.prototype.setOffset=function(e){this.parentElement&&(this.parentElement.scrollTop=e)},e.prototype.onScrolled=function(e){var t=this,n=e.currentTarget;requestAnimationFrame(function(){t.scrollYPos=n.scrollTop,t.scrollXPos=n.scrollLeft,t.updateOffset()})},e.prototype.updateOffset=function(){var e;this.scrollYPosthis.prevScrollYPos&&(e="up"),this.scroll.emit({direction:e,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos},o([i.Input(),r("design:type",Boolean)],e.prototype,"scrollbarV",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"scrollbarH",void 0),o([i.HostBinding("style.height.px"),i.Input(),r("design:type",Number)],e.prototype,"scrollHeight",void 0),o([i.HostBinding("style.width.px"),i.Input(),r("design:type",Number)],e.prototype,"scrollWidth",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"scroll",void 0),e=o([i.Component({selector:"datatable-scroller",template:"\n \n ",host:{class:"datatable-scroll"},changeDetection:i.ChangeDetectionStrategy.OnPush}),r("design:paramtypes",[i.NgZone,i.ElementRef,i.Renderer2])],e)}();t.ScrollerComponent=s},"./src/components/body/selection.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/utils/index.ts"),a=n("./src/types/index.ts"),l=function(){function e(){this.activate=new i.EventEmitter,this.select=new i.EventEmitter}return e.prototype.selectRow=function(e,t,n){if(this.selectEnabled){var o=this.selectionType===a.SelectionType.checkbox,r=this.selectionType===a.SelectionType.multi,i=this.selectionType===a.SelectionType.multiClick,l=[];l=r||o||i?e.shiftKey?s.selectRowsBetween([],this.rows,t,this.prevIndex,this.getRowSelectedIdx.bind(this)):e.ctrlKey||e.metaKey||i||o?s.selectRows(this.selected.slice(),n,this.getRowSelectedIdx.bind(this)):s.selectRows([],n,this.getRowSelectedIdx.bind(this)):s.selectRows([],n,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(l=l.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),(c=this.selected).push.apply(c,l),this.prevIndex=t,this.select.emit({selected:l});var c}},e.prototype.onActivate=function(e,t){var n=e.type,o=e.event,r=e.row,i=this.selectionType===a.SelectionType.checkbox;!i&&("click"===n||"dblclick"===n)||i&&"checkbox"===n?this.selectRow(o,t,r):"keydown"===n&&(o.keyCode===s.Keys.return?this.selectRow(o,t,r):this.onKeyboardFocus(e)),this.activate.emit(e)},e.prototype.onKeyboardFocus=function(e){var t=e.event.keyCode;if(t===s.Keys.up||t===s.Keys.down||t===s.Keys.right||t===s.Keys.left){var n=this.selectionType===a.SelectionType.cell;e.cellElement&&n?n&&this.focusCell(e.cellElement,e.rowElement,t,e.cellIndex):this.focusRow(e.rowElement,t)}},e.prototype.focusRow=function(e,t){var n=this.getPrevNextRow(e,t);n&&n.focus()},e.prototype.getPrevNextRow=function(e,t){var n=e.parentElement;if(n){var o=void 0;if(t===s.Keys.up?o=n.previousElementSibling:t===s.Keys.down&&(o=n.nextElementSibling),o&&o.children.length)return o.children[0]}},e.prototype.focusCell=function(e,t,n,o){var r;if(n===s.Keys.left)r=e.previousElementSibling;else if(n===s.Keys.right)r=e.nextElementSibling;else if(n===s.Keys.up||n===s.Keys.down){var i=this.getPrevNextRow(t,n);if(i){var a=i.getElementsByClassName("datatable-body-cell");a.length&&(r=a[o])}}r&&r.focus()},e.prototype.getRowSelected=function(e){return this.getRowSelectedIdx(e,this.selected)>-1},e.prototype.getRowSelectedIdx=function(e,t){var n=this;if(!t||!t.length)return-1;var o=this.rowIdentity(e);return t.findIndex(function(e){return n.rowIdentity(e)===o})},o([i.Input(),r("design:type",Array)],e.prototype,"rows",void 0),o([i.Input(),r("design:type",Array)],e.prototype,"selected",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"selectEnabled",void 0),o([i.Input(),r("design:type",String)],e.prototype,"selectionType",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"rowIdentity",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"selectCheck",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"activate",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"select",void 0),e=o([i.Component({selector:"datatable-selection",template:"\n \n ",changeDetection:i.ChangeDetectionStrategy.OnPush})],e)}();t.DataTableSelectionComponent=l},"./src/components/columns/column-cell.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-cell-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DataTableColumnCellDirective=s},"./src/components/columns/column-header.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-header-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DataTableColumnHeaderDirective=s},"./src/components/columns/column.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/columns/column-header.directive.ts"),a=n("./src/components/columns/column-cell.directive.ts"),l=function(){function e(){}return o([i.Input(),r("design:type",String)],e.prototype,"name",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"prop",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"frozenLeft",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"frozenRight",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"flexGrow",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"resizeable",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"comparator",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"pipe",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"sortable",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"draggable",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"canAutoResize",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"minWidth",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"width",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"maxWidth",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"checkboxable",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"headerCheckboxable",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"headerClass",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"cellClass",void 0),o([i.Input(),i.ContentChild(a.DataTableColumnCellDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"cellTemplate",void 0),o([i.Input(),i.ContentChild(s.DataTableColumnHeaderDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"headerTemplate",void 0),e=o([i.Directive({selector:"ngx-datatable-column"})],e)}();t.DataTableColumnDirective=l},"./src/components/columns/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/columns/column.directive.ts")),o(n("./src/components/columns/column-header.directive.ts")),o(n("./src/components/columns/column-cell.directive.ts"))},"./src/components/datatable.component.scss":function(e,t,n){var o=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/components/datatable.component.scss');e.exports="string"==typeof o?o:o.toString()},"./src/components/datatable.component.ts":function(e,t,n){"use strict";var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("@angular/core"),l=n("./src/utils/index.ts"),c=n("./src/services/index.ts"),p=n("./src/types/index.ts"),u=n("./src/components/body/index.ts"),d=n("./src/components/body/body-group-header.directive.ts"),h=n("./src/components/columns/index.ts"),f=n("./src/components/row-detail/index.ts"),g=n("./src/components/footer/index.ts"),y=n("./src/components/header/index.ts"),m=n("rxjs/BehaviorSubject"),b=function(){function e(e,t,n,o,r){this.scrollbarHelper=e,this.dimensionsHelper=t,this.cd=n,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=p.ColumnMode.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.sortType=p.SortType.single,this.sorts=[],this.cssClasses={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.rowIdentity=function(e){return e},this.groupExpansionDefault=!1,this.selectAllRowsOnPage=!1,this.virtualization=!0,this.scroll=new a.EventEmitter,this.activate=new a.EventEmitter,this.select=new a.EventEmitter,this.sort=new a.EventEmitter,this.page=new a.EventEmitter,this.reorder=new a.EventEmitter,this.resize=new a.EventEmitter,this.tableContextmenu=new a.EventEmitter(!1),this.rowCount=0,this._offsetX=new m.BehaviorSubject(0),this._count=0,this._offset=0,this.element=o.nativeElement,this.rowDiffer=r.find({}).create()}return Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e,e&&(this._internalRows=e.slice()),this.externalSorting||(this._internalRows=l.sortRows(this._internalRows,this._internalColumns,this.sorts)),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupRowsBy",{get:function(){return this._groupRowsBy},set:function(e){e&&(this._groupRowsBy=e,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){e&&(this._internalColumns=e.slice(),l.setColumnDefaults(this._internalColumns),this.recalculateColumns()),this._columns=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.recalculate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count=e,this.recalculate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFixedHeader",{get:function(){var e=this.headerHeight;return"string"!=typeof e||"auto"!==e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFixedRow",{get:function(){var e=this.rowHeight;return"string"!=typeof e||"auto"!==e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVertScroll",{get:function(){return this.scrollbarV},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHorScroll",{get:function(){return this.scrollbarH},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelectable",{get:function(){return void 0!==this.selectionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckboxSelection",{get:function(){return this.selectionType===p.SelectionType.checkbox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCellSelection",{get:function(){return this.selectionType===p.SelectionType.cell},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSingleSelection",{get:function(){return this.selectionType===p.SelectionType.single},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMultiSelection",{get:function(){return this.selectionType===p.SelectionType.multi},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMultiClickSelection",{get:function(){return this.selectionType===p.SelectionType.multiClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{get:function(){return this._columnTemplates},set:function(e){this._columnTemplates=e,this.translateColumns(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allRowsSelected",{get:function(){var e=this.rows&&this.selected&&this.selected.length===this.rows.length;if(this.selectAllRowsOnPage){var t=this.bodyComponent.indexes,n=t.last-t.first;e=this.selected.length===n}return this.selected&&this.rows&&0!==this.rows.length&&e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.recalculate()},e.prototype.ngAfterViewInit=function(){var e=this;this.externalSorting||(this._internalRows=l.sortRows(this._internalRows,this._internalColumns,this.sorts)),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(function(){e.recalculate(),e.externalPaging&&e.scrollbarV&&e.page.emit({count:e.count,pageSize:e.pageSize,limit:e.limit,offset:0})})},e.prototype.ngAfterContentInit=function(){var e=this;this.columnTemplates.changes.subscribe(function(t){return e.translateColumns(t)})},e.prototype.translateColumns=function(e){if(e){var t=e.toArray();t.length&&(this._internalColumns=l.translateTemplates(t),l.setColumnDefaults(this._internalColumns),this.recalculateColumns(),this.cd.markForCheck())}},e.prototype.groupArrayBy=function(e,t){var n=new Map,o=0;e.forEach(function(e){var r=e[t];n.has(r)?n.get(r).push(e):n.set(r,[e]),o++});return Array.from(n,function(e){return function(e,t){return{key:e,value:t}}(e[0],e[1])})},e.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=this.rows.slice():this._internalRows=l.sortRows(this._internalRows,this._internalColumns,this.sorts),this.recalculatePages(),this.cd.markForCheck())},e.prototype.recalculate=function(){this.recalculateDims(),this.recalculateColumns()},e.prototype.onWindowResize=function(){this.recalculate()},e.prototype.recalculateColumns=function(e,t,n){if(void 0===e&&(e=this._internalColumns),void 0===t&&(t=-1),void 0===n&&(n=this.scrollbarH),e){var o=this._innerWidth;return this.scrollbarV&&(o-=this.scrollbarHelper.width),this.columnMode===p.ColumnMode.force?l.forceFillColumnWidths(e,o,t,n):this.columnMode===p.ColumnMode.flex&&l.adjustColumnWidths(e,o),e}},e.prototype.recalculateDims=function(){var e=this.dimensionsHelper.getDimensions(this.element);if(this._innerWidth=Math.floor(e.width),this.scrollbarV){var t=e.height;this.headerHeight&&(t-=this.headerHeight),this.footerHeight&&(t-=this.footerHeight),this.bodyHeight=t}this.recalculatePages()},e.prototype.recalculatePages=function(){this.pageSize=this.calcPageSize(),this.rowCount=this.calcRowCount()},e.prototype.onBodyPage=function(e){var t=e.offset;this.offset=t,this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset})},e.prototype.onBodyScroll=function(e){this._offsetX.next(e.offsetX),this.scroll.emit(e),this.cd.detectChanges()},e.prototype.onFooterPage=function(e){this.offset=e.page-1,this.bodyComponent.updateOffsetY(this.offset),this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}),this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}))},e.prototype.calcPageSize=function(e){if(void 0===e&&(e=this.rows),this.scrollbarV){var t=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(t,0)}return void 0!==this.limit?this.limit:e?e.length:0},e.prototype.calcRowCount=function(e){return void 0===e&&(e=this.rows),this.externalPaging?this.count:e?this.groupedRows?this.groupedRows.length:e.length:0},e.prototype.onColumnContextmenu=function(e){var t=e.event,n=e.column;this.tableContextmenu.emit({event:t,type:p.ContextmenuType.header,content:n})},e.prototype.onRowContextmenu=function(e){var t=e.event,n=e.row;this.tableContextmenu.emit({event:t,type:p.ContextmenuType.body,content:n})},e.prototype.onColumnResize=function(e){var t=e.column,n=e.newValue;if(void 0!==t){var r,i=this._internalColumns.map(function(e,i){return(e=o({},e)).$$id===t.$$id&&(r=i,e.width=n,e.$$oldWidth=n),e});this.recalculateColumns(i,r),this._internalColumns=i,this.resize.emit({column:t,newValue:n})}},e.prototype.onColumnReorder=function(e){var t=e.column,n=e.newValue,r=e.prevValue,i=this._internalColumns.map(function(e){return o({},e)}),s=i[n];i[n]=t,i[r]=s,this._internalColumns=i,this.reorder.emit({column:t,newValue:n,prevValue:r})},e.prototype.onColumnSort=function(e){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}));var t=e.sorts;!1===this.externalSorting&&(this._internalRows=l.sortRows(this._internalRows,this._internalColumns,t)),this.sorts=t,this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(e)},e.prototype.onHeaderSelect=function(e){if(this.selectAllRowsOnPage){var t=this.bodyComponent.indexes.first,n=this.bodyComponent.indexes.last,o=this.selected.length===n-t;this.selected=[],o||(r=this.selected).push.apply(r,this._internalRows.slice(t,n))}else{o=this.selected.length===this.rows.length;this.selected=[],o||(i=this.selected).push.apply(i,this.rows)}this.select.emit({selected:this.selected});var r,i},e.prototype.onBodySelect=function(e){this.select.emit(e)},r([a.Input(),i("design:type",Object),i("design:paramtypes",[Object])],e.prototype,"rows",null),r([a.Input(),i("design:type",String),i("design:paramtypes",[String])],e.prototype,"groupRowsBy",null),r([a.Input(),i("design:type",Array)],e.prototype,"groupedRows",void 0),r([a.Input(),i("design:type",Array),i("design:paramtypes",[Array])],e.prototype,"columns",null),r([a.Input(),i("design:type",Array)],e.prototype,"selected",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"scrollbarV",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"scrollbarH",void 0),r([a.Input(),i("design:type",Number)],e.prototype,"rowHeight",void 0),r([a.Input(),i("design:type",String)],e.prototype,"columnMode",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"headerHeight",void 0),r([a.Input(),i("design:type",Number)],e.prototype,"footerHeight",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"externalPaging",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"externalSorting",void 0),r([a.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"limit",null),r([a.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"count",null),r([a.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"offset",null),r([a.Input(),i("design:type",Boolean)],e.prototype,"loadingIndicator",void 0),r([a.Input(),i("design:type",String)],e.prototype,"selectionType",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"reorderable",void 0),r([a.Input(),i("design:type",String)],e.prototype,"sortType",void 0),r([a.Input(),i("design:type",Array)],e.prototype,"sorts",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"cssClasses",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"messages",void 0),r([a.Input(),i("design:type",Function)],e.prototype,"rowIdentity",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"rowClass",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"selectCheck",void 0),r([a.Input(),i("design:type",Function)],e.prototype,"displayCheck",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"groupExpansionDefault",void 0),r([a.Input(),i("design:type",String)],e.prototype,"trackByProp",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"selectAllRowsOnPage",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"virtualization",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"scroll",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"activate",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"select",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"sort",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"page",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"reorder",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"resize",void 0),r([a.Output(),i("design:type",Object)],e.prototype,"tableContextmenu",void 0),r([a.HostBinding("class.fixed-header"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isFixedHeader",null),r([a.HostBinding("class.fixed-row"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isFixedRow",null),r([a.HostBinding("class.scroll-vertical"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isVertScroll",null),r([a.HostBinding("class.scroll-horz"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isHorScroll",null),r([a.HostBinding("class.selectable"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isSelectable",null),r([a.HostBinding("class.checkbox-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isCheckboxSelection",null),r([a.HostBinding("class.cell-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isCellSelection",null),r([a.HostBinding("class.single-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isSingleSelection",null),r([a.HostBinding("class.multi-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isMultiSelection",null),r([a.HostBinding("class.multi-click-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isMultiClickSelection",null),r([a.ContentChildren(h.DataTableColumnDirective),i("design:type",a.QueryList),i("design:paramtypes",[a.QueryList])],e.prototype,"columnTemplates",null),r([a.ContentChild(f.DatatableRowDetailDirective),i("design:type",f.DatatableRowDetailDirective)],e.prototype,"rowDetail",void 0),r([a.ContentChild(d.DatatableGroupHeaderDirective),i("design:type",d.DatatableGroupHeaderDirective)],e.prototype,"groupHeader",void 0),r([a.ContentChild(g.DatatableFooterDirective),i("design:type",g.DatatableFooterDirective)],e.prototype,"footer",void 0),r([a.ViewChild(u.DataTableBodyComponent),i("design:type",u.DataTableBodyComponent)],e.prototype,"bodyComponent",void 0),r([a.ViewChild(y.DataTableHeaderComponent),i("design:type",y.DataTableHeaderComponent)],e.prototype,"headerComponent",void 0),r([a.HostListener("window:resize"),l.throttleable(5),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=r([a.Component({selector:"ngx-datatable",template:'\n \n \n \n \n \n \n \n \n ',changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None,styles:[n("./src/components/datatable.component.scss")],host:{class:"ngx-datatable"}}),s(0,a.SkipSelf()),s(1,a.SkipSelf()),i("design:paramtypes",[c.ScrollbarHelper,c.DimensionsHelper,a.ChangeDetectorRef,a.ElementRef,a.KeyValueDiffers])],e)}();t.DatatableComponent=b},"./src/components/footer/footer-template.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-footer-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DataTableFooterTemplateDirective=s},"./src/components/footer/footer.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(){this.selectedCount=0,this.page=new i.EventEmitter}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.rowCount/this.pageSize>1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"curPage",{get:function(){return this.offset+1},enumerable:!0,configurable:!0}),o([i.Input(),r("design:type",Number)],e.prototype,"footerHeight",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"rowCount",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"pageSize",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"offset",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerLeftArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerRightArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerPreviousIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerNextIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"totalMessage",void 0),o([i.Input(),r("design:type",i.TemplateRef)],e.prototype,"footerTemplate",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"selectedCount",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"selectedMessage",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"page",void 0),e=o([i.Component({selector:"datatable-footer",template:'\n \n \n \n
\n \n {{selectedCount.toLocaleString()}} {{selectedMessage}} / \n \n {{rowCount.toLocaleString()}} {{totalMessage}}\n
\n \n \n \n ',host:{class:"datatable-footer"},changeDetection:i.ChangeDetectionStrategy.OnPush})],e)}();t.DataTableFooterComponent=s},"./src/components/footer/footer.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/footer/footer-template.directive.ts"),a=function(){function e(){}return o([i.Input(),r("design:type",Number)],e.prototype,"footerHeight",void 0),o([i.Input(),r("design:type",String)],e.prototype,"totalMessage",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"selectedMessage",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerLeftArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerRightArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerPreviousIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerNextIcon",void 0),o([i.Input(),i.ContentChild(s.DataTableFooterTemplateDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"template",void 0),e=o([i.Directive({selector:"ngx-datatable-footer"})],e)}();t.DatatableFooterDirective=a},"./src/components/footer/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/footer/footer.component.ts")),o(n("./src/components/footer/pager.component.ts")),o(n("./src/components/footer/footer.directive.ts")),o(n("./src/components/footer/footer-template.directive.ts"))},"./src/components/footer/pager.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(){this.change=new i.EventEmitter,this._count=0,this._page=1,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this._page},set:function(e){this._page=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalPages",{get:function(){var e=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(e||0,1)},enumerable:!0,configurable:!0}),e.prototype.canPrevious=function(){return this.page>1},e.prototype.canNext=function(){return this.page0&&e<=this.totalPages&&e!==this.page&&(this.page=e,this.change.emit({page:e}))},e.prototype.calcPages=function(e){var t=[],n=1,o=this.totalPages,r=5this.totalPages&&(n=Math.max(this.totalPages-5+1,1),o=this.totalPages));for(var i=n;i<=o;i++)t.push({number:i,text:i});return t},o([i.Input(),r("design:type",String)],e.prototype,"pagerLeftArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerRightArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerPreviousIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerNextIcon",void 0),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"size",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"count",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"page",null),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"change",void 0),e=o([i.Component({selector:"datatable-pager",template:'\n
    \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n \n \n {{pg.text}}\n \n \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
\n ',host:{class:"datatable-pager"},changeDetection:i.ChangeDetectionStrategy.OnPush})],e)}();t.DataTablePagerComponent=s},"./src/components/header/header-cell.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/types/index.ts"),a=n("./src/utils/index.ts"),l=(n("./src/events.ts"),function(){function e(e){this.cd=e,this.sort=new i.EventEmitter,this.select=new i.EventEmitter,this.columnContextmenu=new i.EventEmitter(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}return Object.defineProperty(e.prototype,"allRowsSelected",{get:function(){return this._allRowsSelected},set:function(e){this._allRowsSelected=e,this.cellContext.allRowsSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorts",{get:function(){return this._sorts},set:function(e){this._sorts=e,this.sortDir=this.calcSortDir(e),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCssClasses",{get:function(){var e="datatable-header-cell";if(this.column.sortable&&(e+=" sortable"),this.column.resizeable&&(e+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)e+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){var t=this.column.headerClass({column:this.column});if("string"==typeof t)e+=t;else if("object"==typeof t)for(var n=0,o=Object.keys(t);n\n \n \n \n \n \n \n \n \n \n \n \n \n ',host:{class:"datatable-header-cell"},changeDetection:i.ChangeDetectionStrategy.OnPush}),r("design:paramtypes",[i.ChangeDetectorRef])],e)}());t.DataTableHeaderCellComponent=l},"./src/components/header/header.component.ts":function(e,t,n){"use strict";var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/types/index.ts"),l=n("./src/utils/index.ts"),c=function(){function e(e){this.cd=e,this.sort=new s.EventEmitter,this.reorder=new s.EventEmitter,this.resize=new s.EventEmitter,this.select=new s.EventEmitter,this.columnContextmenu=new s.EventEmitter(!1),this._styleByGroup={left:{},center:{},right:{}}}return Object.defineProperty(e.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(e){if(this._innerWidth=e,this._columns){var t=l.columnsByPin(this._columns);this._columnGroupWidths=l.columnGroupWidths(t,this._columns),this.setStylesByGroup()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerHeight",{get:function(){return this._headerHeight},set:function(e){this._headerHeight="auto"!==e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e;var t=l.columnsByPin(e);this._columnsByPin=l.columnsByPinArr(e),this._columnGroupWidths=l.columnGroupWidths(t,e),this.setStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.setStylesByGroup()},enumerable:!0,configurable:!0}),e.prototype.onLongPressStart=function(e){var t=e.event;e.model.dragging=!0,this.dragEventTarget=t},e.prototype.onLongPressEnd=function(e){var t=e.event,n=e.model;this.dragEventTarget=t,setTimeout(function(){n.dragging=!1},5)},Object.defineProperty(e.prototype,"headerWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),e.prototype.trackByGroups=function(e,t){return t.type},e.prototype.columnTrackingFn=function(e,t){return t.$$id},e.prototype.onColumnResized=function(e,t){e<=t.minWidth?e=t.minWidth:e>=t.maxWidth&&(e=t.maxWidth),this.resize.emit({column:t,prevValue:t.width,newValue:e})},e.prototype.onColumnReordered=function(e){var t=e.prevIndex,n=e.newIndex,o=e.model;this.reorder.emit({column:o,prevValue:t,newValue:n})},e.prototype.onSort=function(e){var t=e.column,n=e.prevValue,o=e.newValue;if(!t.dragging){var r=this.calcNewSorts(t,n,o);this.sort.emit({sorts:r,column:t,prevValue:n,newValue:o})}},e.prototype.calcNewSorts=function(e,t,n){var r=0;this.sorts||(this.sorts=[]);var i=this.sorts.map(function(t,n){return(t=o({},t)).prop===e.prop&&(r=n),t});return void 0===n?i.splice(r,1):t?i[r].dir=n:(this.sortType===a.SortType.single&&i.splice(0,this.sorts.length),i.push({dir:n,prop:e.prop})),i},e.prototype.setStylesByGroup=function(){this._styleByGroup.left=this.calcStylesByGroup("left"),this._styleByGroup.center=this.calcStylesByGroup("center"),this._styleByGroup.right=this.calcStylesByGroup("right"),this.cd.detectChanges()},e.prototype.calcStylesByGroup=function(e){var t=this._columnGroupWidths,n=this.offsetX,o={width:t[e]+"px"};if("center"===e)l.translateXY(o,-1*n,0);else if("right"===e){var r=-1*(t.total-this.innerWidth);l.translateXY(o,r,0)}return o},r([s.Input(),i("design:type",Object)],e.prototype,"sortAscendingIcon",void 0),r([s.Input(),i("design:type",Object)],e.prototype,"sortDescendingIcon",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"scrollbarH",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"dealsWithGroup",void 0),r([s.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"innerWidth",null),r([s.Input(),i("design:type",Array)],e.prototype,"sorts",void 0),r([s.Input(),i("design:type",String)],e.prototype,"sortType",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"allRowsSelected",void 0),r([s.Input(),i("design:type",String)],e.prototype,"selectionType",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"reorderable",void 0),r([s.HostBinding("style.height"),s.Input(),i("design:type",Object),i("design:paramtypes",[Object])],e.prototype,"headerHeight",null),r([s.Input(),i("design:type",Array),i("design:paramtypes",[Array])],e.prototype,"columns",null),r([s.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"offsetX",null),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"sort",void 0),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"reorder",void 0),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"resize",void 0),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"select",void 0),r([s.Output(),i("design:type",Object)],e.prototype,"columnContextmenu",void 0),r([s.HostBinding("style.width"),i("design:type",String),i("design:paramtypes",[])],e.prototype,"headerWidth",null),e=r([s.Component({selector:"datatable-header",template:'\n \n \n \n \n \n \n ',host:{class:"datatable-header"},changeDetection:s.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[s.ChangeDetectorRef])],e)}();t.DataTableHeaderComponent=c},"./src/components/header/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/header/header.component.ts")),o(n("./src/components/header/header-cell.component.ts"))},"./src/components/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/datatable.component.ts")),o(n("./src/components/header/index.ts")),o(n("./src/components/body/index.ts")),o(n("./src/components/footer/index.ts")),o(n("./src/components/columns/index.ts")),o(n("./src/components/row-detail/index.ts"))},"./src/components/row-detail/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/row-detail/row-detail.directive.ts")),o(n("./src/components/row-detail/row-detail-template.directive.ts"))},"./src/components/row-detail/row-detail-template.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-row-detail-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DatatableRowDetailTemplateDirective=s},"./src/components/row-detail/row-detail.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/row-detail/row-detail-template.directive.ts"),a=function(){function e(){this.rowHeight=0,this.toggle=new i.EventEmitter}return e.prototype.toggleExpandRow=function(e){this.toggle.emit({type:"row",value:e})},e.prototype.expandAllRows=function(){this.toggle.emit({type:"all",value:!0})},e.prototype.collapseAllRows=function(){this.toggle.emit({type:"all",value:!1})},o([i.Input(),r("design:type",Object)],e.prototype,"rowHeight",void 0),o([i.Input(),i.ContentChild(s.DatatableRowDetailTemplateDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"template",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"toggle",void 0),e=o([i.Directive({selector:"ngx-datatable-row-detail"})],e)}();t.DatatableRowDetailDirective=a},"./src/datatable.module.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("@angular/core"),i=n("@angular/common"),s=n("./src/components/index.ts"),a=n("./src/directives/index.ts"),l=n("./src/services/index.ts"),c=function(){function e(){}return e=o([r.NgModule({imports:[i.CommonModule],providers:[l.ScrollbarHelper,l.DimensionsHelper],declarations:[s.DataTableFooterTemplateDirective,a.VisibilityDirective,a.DraggableDirective,a.ResizeableDirective,a.OrderableDirective,a.LongPressDirective,s.ScrollerComponent,s.DatatableComponent,s.DataTableColumnDirective,s.DataTableHeaderComponent,s.DataTableHeaderCellComponent,s.DataTableBodyComponent,s.DataTableFooterComponent,s.DataTablePagerComponent,s.ProgressBarComponent,s.DataTableBodyRowComponent,s.DataTableRowWrapperComponent,s.DatatableRowDetailDirective,s.DatatableGroupHeaderDirective,s.DatatableRowDetailTemplateDirective,s.DataTableBodyCellComponent,s.DataTableSelectionComponent,s.DataTableColumnHeaderDirective,s.DataTableColumnCellDirective,s.DatatableFooterDirective,s.DatatableGroupHeaderTemplateDirective],exports:[s.DatatableComponent,s.DatatableRowDetailDirective,s.DatatableGroupHeaderDirective,s.DatatableRowDetailTemplateDirective,s.DataTableColumnDirective,s.DataTableColumnHeaderDirective,s.DataTableColumnCellDirective,s.DataTableFooterTemplateDirective,s.DatatableFooterDirective,s.DataTablePagerComponent,s.DatatableGroupHeaderTemplateDirective]})],e)}();t.NgxDatatableModule=c},"./src/directives/draggable.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("rxjs/operators"),a=n("rxjs/observable/fromEvent"),l=function(){function e(e){this.dragX=!0,this.dragY=!0,this.dragStart=new i.EventEmitter,this.dragging=new i.EventEmitter,this.dragEnd=new i.EventEmitter,this.isDragging=!1,this.element=e.nativeElement}return e.prototype.ngOnChanges=function(e){e.dragEventTarget&&e.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(e.dragEventTarget.currentValue)},e.prototype.ngOnDestroy=function(){this._destroySubscription()},e.prototype.onMouseup=function(e){this.isDragging&&(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:e,element:this.element,model:this.dragModel})))},e.prototype.onMousedown=function(e){var t=this;if(e.target.classList.contains("draggable")&&(this.dragX||this.dragY)){e.preventDefault(),this.isDragging=!0;var n={x:e.clientX,y:e.clientY},o=a.fromEvent(document,"mouseup");this.subscription=o.subscribe(function(e){return t.onMouseup(e)});var r=a.fromEvent(document,"mousemove").pipe(s.takeUntil(o)).subscribe(function(e){return t.move(e,n)});this.subscription.add(r),this.dragStart.emit({event:e,element:this.element,model:this.dragModel})}},e.prototype.move=function(e,t){if(this.isDragging){var n=e.clientX-t.x,o=e.clientY-t.y;this.dragX&&(this.element.style.left=n+"px"),this.dragY&&(this.element.style.top=o+"px"),this.element.classList.add("dragging"),this.dragging.emit({event:e,element:this.element,model:this.dragModel})}},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},o([i.Input(),r("design:type",Object)],e.prototype,"dragEventTarget",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"dragModel",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"dragX",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"dragY",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"dragStart",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"dragging",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"dragEnd",void 0),e=o([i.Directive({selector:"[draggable]"}),r("design:paramtypes",[i.ElementRef])],e)}();t.DraggableDirective=l},"./src/directives/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/directives/draggable.directive.ts")),o(n("./src/directives/long-press.directive.ts")),o(n("./src/directives/orderable.directive.ts")),o(n("./src/directives/resizeable.directive.ts")),o(n("./src/directives/visibility.directive.ts"))},"./src/directives/long-press.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("rxjs/operators"),a=n("rxjs/observable/fromEvent"),l=(n("./src/events.ts"),function(){function e(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new i.EventEmitter,this.longPressing=new i.EventEmitter,this.longPressEnd=new i.EventEmitter,this.mouseX=0,this.mouseY=0}return Object.defineProperty(e.prototype,"press",{get:function(){return this.pressing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLongPress",{get:function(){return this.isLongPressing},enumerable:!0,configurable:!0}),e.prototype.onMouseDown=function(e){var t=this;if(1===e.which&&this.pressEnabled){if(!e.target.classList.contains("resize-handle")){this.mouseX=e.clientX,this.mouseY=e.clientY,this.pressing=!0,this.isLongPressing=!1;var n=a.fromEvent(document,"mouseup");this.subscription=n.subscribe(function(e){return t.onMouseup()}),this.timeout=setTimeout(function(){t.isLongPressing=!0,t.longPressStart.emit({event:e,model:t.pressModel}),t.subscription.add(a.fromEvent(document,"mousemove").pipe(s.takeUntil(n)).subscribe(function(e){return t.onMouseMove(e)})),t.loop(e)},this.duration),this.loop(e)}}},e.prototype.onMouseMove=function(e){if(this.pressing&&!this.isLongPressing){var t=Math.abs(e.clientX-this.mouseX)>10,n=Math.abs(e.clientY-this.mouseY)>10;(t||n)&&this.endPress()}},e.prototype.loop=function(e){var t=this;this.isLongPressing&&(this.timeout=setTimeout(function(){t.longPressing.emit({event:e,model:t.pressModel}),t.loop(e)},50))},e.prototype.endPress=function(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})},e.prototype.onMouseup=function(){this.endPress()},e.prototype.ngOnDestroy=function(){this._destroySubscription()},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},o([i.Input(),r("design:type",Boolean)],e.prototype,"pressEnabled",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"pressModel",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"duration",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"longPressStart",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"longPressing",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"longPressEnd",void 0),o([i.HostBinding("class.press"),r("design:type",Boolean),r("design:paramtypes",[])],e.prototype,"press",null),o([i.HostBinding("class.longpress"),r("design:type",Boolean),r("design:paramtypes",[])],e.prototype,"isLongPress",null),o([i.HostListener("mousedown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onMouseDown",null),e=o([i.Directive({selector:"[long-press]"})],e)}());t.LongPressDirective=l},"./src/directives/orderable.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/directives/draggable.directive.ts"),l=n("@angular/platform-browser"),c=function(){function e(e,t){this.document=t,this.reorder=new s.EventEmitter,this.differ=e.find({}).create()}return e.prototype.ngAfterContentInit=function(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))},e.prototype.ngOnDestroy=function(){this.draggables.forEach(function(e){e.dragStart.unsubscribe(),e.dragEnd.unsubscribe()})},e.prototype.updateSubscriptions=function(){var e=this,t=this.differ.diff(this.createMapDiffs());if(t){var n=function(e){var t=e.previousValue;t&&(t.dragStart.unsubscribe(),t.dragEnd.unsubscribe())};t.forEachAddedItem(function(t){var o=t.currentValue,r=t.previousValue;n({previousValue:r}),o&&(o.dragStart.subscribe(e.onDragStart.bind(e)),o.dragEnd.subscribe(e.onDragEnd.bind(e)))}.bind(this)),t.forEachRemovedItem(n.bind(this))}},e.prototype.onDragStart=function(){this.positions={};for(var e=0,t=0,n=this.draggables.toArray();t=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=(n("./src/events.ts"),n("rxjs/operators")),a=n("rxjs/observable/fromEvent"),l=function(){function e(e,t){this.renderer=t,this.resizeEnabled=!0,this.resize=new i.EventEmitter,this.resizing=!1,this.element=e.nativeElement}return e.prototype.ngAfterViewInit=function(){var e=this.renderer,t=e.createElement("span");this.resizeEnabled?e.addClass(t,"resize-handle"):e.addClass(t,"resize-handle--not-resizable"),e.appendChild(this.element,t)},e.prototype.ngOnDestroy=function(){this._destroySubscription()},e.prototype.onMouseup=function(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))},e.prototype.onMousedown=function(e){var t=this,n=e.target.classList.contains("resize-handle"),o=this.element.clientWidth,r=e.screenX;if(n){e.stopPropagation(),this.resizing=!0;var i=a.fromEvent(document,"mouseup");this.subscription=i.subscribe(function(e){return t.onMouseup()});var l=a.fromEvent(document,"mousemove").pipe(s.takeUntil(i)).subscribe(function(e){return t.move(e,o,r)});this.subscription.add(l)}},e.prototype.move=function(e,t,n){var o=t+(e.screenX-n),r=!this.minWidth||o>=this.minWidth,i=!this.maxWidth||o<=this.maxWidth;r&&i&&(this.element.style.width=o+"px")},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},o([i.Input(),r("design:type",Boolean)],e.prototype,"resizeEnabled",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"minWidth",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"maxWidth",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"resize",void 0),o([i.HostListener("mousedown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onMousedown",null),e=o([i.Directive({selector:"[resizeable]",host:{"[class.resizeable]":"resizeEnabled"}}),r("design:paramtypes",[i.ElementRef,i.Renderer2])],e)}();t.ResizeableDirective=l},"./src/directives/visibility.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e,t){this.element=e,this.zone=t,this.isVisible=!1,this.visible=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.runCheck()},e.prototype.ngOnDestroy=function(){clearTimeout(this.timeout)},e.prototype.onVisibilityChange=function(){var e=this;this.zone.run(function(){e.isVisible=!0,e.visible.emit(!0)})},e.prototype.runCheck=function(){var e=this,t=function(){var n=e.element.nativeElement,o=n.offsetHeight,r=n.offsetWidth;o&&r?(clearTimeout(e.timeout),e.onVisibilityChange()):(clearTimeout(e.timeout),e.zone.runOutsideAngular(function(){e.timeout=setTimeout(function(){return t()},50)}))};this.timeout=setTimeout(function(){return t()})},o([i.HostBinding("class.visible"),r("design:type",Boolean)],e.prototype,"isVisible",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"visible",void 0),e=o([i.Directive({selector:"[visibilityObserver]"}),r("design:paramtypes",[i.ElementRef,i.NgZone])],e)}();t.VisibilityDirective=s},"./src/events.ts":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.MouseEvent=e.MouseEvent,t.KeyboardEvent=e.KeyboardEvent,t.Event=e.Event}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./src/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/datatable.module.ts")),o(n("./src/types/index.ts")),o(n("./src/components/index.ts")),o(n("./src/services/index.ts"))},"./src/services/dimensions-helper.service.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("@angular/core"),i=function(){function e(){}return e.prototype.getDimensions=function(e){return e.getBoundingClientRect()},e=o([r.Injectable()],e)}();t.DimensionsHelper=i},"./src/services/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/services/scrollbar-helper.service.ts")),o(n("./src/services/dimensions-helper.service.ts"))},"./src/services/scrollbar-helper.service.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("@angular/platform-browser"),l=function(){function e(e){this.document=e,this.width=this.getWidth()}return e.prototype.getWidth=function(){var e=this.document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",this.document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=this.document.createElement("div");n.style.width="100%",e.appendChild(n);var o=n.offsetWidth;return e.parentNode.removeChild(e),t-o},e=o([s.Injectable(),i(0,s.Inject(a.DOCUMENT)),r("design:paramtypes",[Object])],e)}();t.ScrollbarHelper=l},"./src/types/click.type.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.single="single",e.double="double"}(t.ClickType||(t.ClickType={}))},"./src/types/column-mode.type.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.standard="standard",e.flex="flex",e.force="force"}(t.ColumnMode||(t.ColumnMode={}))},"./src/types/contextmenu.type.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.header="header",e.body="body"}(t.ContextmenuType||(t.ContextmenuType={}))},"./src/types/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/types/column-mode.type.ts")),o(n("./src/types/sort.type.ts")),o(n("./src/types/sort-direction.type.ts")),o(n("./src/types/selection.type.ts")),o(n("./src/types/click.type.ts")),o(n("./src/types/contextmenu.type.ts"))},"./src/types/selection.type.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.single="single",e.multi="multi",e.multiClick="multiClick",e.cell="cell",e.checkbox="checkbox"}(t.SelectionType||(t.SelectionType={}))},"./src/types/sort-direction.type.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.asc="asc",e.desc="desc"}(t.SortDirection||(t.SortDirection={}))},"./src/types/sort.type.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.single="single",e.multi="multi"}(t.SortType||(t.SortType={}))},"./src/utils/camel-case.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=function(e){return e=e.replace(/[^a-zA-Z0-9 ]/g," "),e=e.replace(/([a-z](?=[A-Z]))/g,"$1 "),e=e.replace(/([^a-zA-Z0-9 ])|^[0-9]+/g,"").trim().toLowerCase(),e=e.replace(/([ 0-9]+)([a-zA-Z])/g,function(e,t,n){return t.trim()+n.toUpperCase()})},t.deCamelCase=function(e){return e.replace(/([A-Z])/g,function(e){return" "+e}).replace(/^./,function(e){return e.toUpperCase()})}},"./src/utils/column-helper.ts":function(e,t,n){"use strict";function o(e){return null===e||void 0===e}Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/utils/camel-case.ts"),i=n("./src/utils/id.ts"),s=n("./src/utils/column-prop-getters.ts");t.setColumnDefaults=function(e){if(e)for(var t=0,n=e;t=t;for(var f=0,g=s;fy.maxWidth?(y.width=y.maxWidth,h.push(y)):y.width=m}y.width=Math.max(0,y.width)}d=t-(u=r(e)),function(e,t){for(var n=0,o=h;n0&&0!==s.length)}},"./src/utils/prefixes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("./src/utils/camel-case.ts"),r={},i="undefined"!=typeof document?document.createElement("div").style:void 0,s=function(){var e="undefined"!=typeof window?window.getComputedStyle(document.documentElement,""):void 0,t=void 0!==e?Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/):null,n=null!==t?t[1]:void 0,o=void 0!==n?"WebKit|Moz|MS|O".match(new RegExp("("+n+")","i"))[1]:void 0;return o?{dom:o,lowercase:n,css:"-"+n+"-",js:n[0].toUpperCase()+n.substr(1)}:void 0}();t.getVendorPrefixedName=function(e){var t=o.camelCase(e);return r[t]||(void 0!==s&&void 0!==i[s.css+e]?r[t]=s.css+e:void 0!==i[e]&&(r[t]=e)),r[t]}},"./src/utils/row-height-cache.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.treeArray=[]}return e.prototype.clearCache=function(){this.treeArray=[]},e.prototype.initCache=function(e){var t=e.rows,n=e.rowHeight,o=e.detailRowHeight,r=e.externalVirtual,i=e.rowCount,s=e.rowIndexes,a=e.rowExpansions,l="function"==typeof n,c="function"==typeof o;if(!l&&isNaN(n))throw new Error("Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: ("+n+") when 'scrollbarV' is enabled.");if(!c&&isNaN(o))throw new Error("Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: ("+o+") when 'scrollbarV' is enabled.");var p=r?i:t.length;this.treeArray=new Array(p);for(u=0;u=0;)t+=this.treeArray[e],e=(e&e+1)-1;return t},e.prototype.queryBetween=function(e,t){return this.query(t)-this.query(e-1)},e.prototype.calcRowIndex=function(e){if(!this.treeArray.length)return 0;for(var t=-1,n=this.treeArray.length,o=Math.pow(2,n.toString(2).length-1);0!==o;o>>=1){var r=t+o;r=this.treeArray[r]&&(e-=this.treeArray[r],t=r)}return t+1},e}();t.RowHeightCache=o},"./src/utils/selection.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectRows=function(e,t,n){var o=n(t,e);return o>-1?e.splice(o,1):e.push(t),e},t.selectRowsBetween=function(e,t,n,o,r){for(var i=n=n||!i&&s>=o&&s<=n)&&s>=l.start&&s<=l.end&&e.push(a)}return e}},"./src/utils/sort.ts":function(e,t,n){"use strict";function o(e,t){if(null!==e&&void 0!==e||(e=0),null!==t&&void 0!==t||(t=0),e instanceof Date&&t instanceof Date){if(et)return 1}else if(isNaN(parseFloat(e))||!isFinite(e)||isNaN(parseFloat(t))||!isFinite(t)){if(e=String(e),t=String(t),e.toLowerCase()t.toLowerCase())return 1}else{if(parseFloat(e)parseFloat(t))return 1}return 0}Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/types/index.ts"),i=n("./src/utils/column-prop-getters.ts");t.nextSortDir=function(e,t){return e===r.SortType.single?t===r.SortDirection.asc?r.SortDirection.desc:r.SortDirection.asc:t?t===r.SortDirection.asc?r.SortDirection.desc:void r.SortDirection.desc:r.SortDirection.asc},t.orderByComparator=o,t.sortRows=function(e,t,n){if(!e)return[];if(!n||!n.length||!t)return e.slice();var s=new Map;e.forEach(function(e,t){return s.set(e,t)});var a=e.slice(),l=t.reduce(function(e,t){return t.comparator&&"function"==typeof t.comparator&&(e[t.prop]=t.comparator),e},{}),c=n.map(function(e){var t=e.prop;return{prop:t,dir:e.dir,valueGetter:i.getterForProp(t),compareFn:l[t]||o}});return a.sort(function(e,t){for(var n=0,o=c;n div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex; }\n .ngx-datatable .datatable-footer {\n display: block;\n width: 100%; }\n .ngx-datatable .datatable-footer .datatable-footer-inner {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%; }\n .ngx-datatable .datatable-footer .selected-count .page-count {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 40%;\n flex: 1 1 40%; }\n .ngx-datatable .datatable-footer .selected-count .datatable-pager {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 60%;\n flex: 1 1 60%; }\n .ngx-datatable .datatable-footer .page-count {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 20%;\n flex: 1 1 20%; }\n .ngx-datatable .datatable-footer .datatable-pager {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 80%;\n flex: 1 1 80%;\n text-align: right; }\n .ngx-datatable .datatable-footer .datatable-pager .pager,\n .ngx-datatable .datatable-footer .datatable-pager .pager li {\n padding: 0;\n margin: 0;\n display: inline-block;\n list-style: none; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li, .ngx-datatable .datatable-footer .datatable-pager .pager li a {\n outline: none; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li a {\n cursor: pointer;\n display: inline-block; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a {\n cursor: not-allowed; }\n",""])},"./node_modules/css-loader/lib/css-base.js":function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(s=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[n].concat(i).concat([r]).join("\n")}var s;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/utils/index.ts"),a=n("./src/types/index.ts"),l=(n("./src/events.ts"),function(){function e(e,t){this.cd=t,this.activate=new i.EventEmitter,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex},this._element=e.nativeElement}return Object.defineProperty(e.prototype,"group",{get:function(){return this._group},set:function(e){this._group=e,this.cellContext.group=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowHeight",{get:function(){return this._rowHeight},set:function(e){this._rowHeight=e,this.cellContext.rowHeight=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.cellContext.isSelected=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){this._expanded=e,this.cellContext.expanded=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.cellContext.rowIndex=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this._row},set:function(e){this._row=e,this.cellContext.row=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorts",{get:function(){return this._sorts},set:function(e){this._sorts=e,this.calcSortDir=this.calcSortDir(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCssClasses",{get:function(){var e="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)e+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){var t=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof t)e+=t;else if("object"==typeof t)for(var n=0,o=Object.keys(t);n]+(>|$)/g,""):e},o([i.Input(),r("design:type",Object)],e.prototype,"displayCheck",void 0),o([i.Input(),r("design:type",Object),r("design:paramtypes",[Object])],e.prototype,"group",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"rowHeight",null),o([i.Input(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),o([i.Input(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],e.prototype,"expanded",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"rowIndex",null),o([i.Input(),r("design:type",Object),r("design:paramtypes",[Object])],e.prototype,"column",null),o([i.Input(),r("design:type",Object),r("design:paramtypes",[Object])],e.prototype,"row",null),o([i.Input(),r("design:type",Array),r("design:paramtypes",[Array])],e.prototype,"sorts",null),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"activate",void 0),o([i.ViewChild("cellTemplate",{read:i.ViewContainerRef}),r("design:type",i.ViewContainerRef)],e.prototype,"cellTemplate",void 0),o([i.HostBinding("class"),r("design:type",Object),r("design:paramtypes",[])],e.prototype,"columnCssClasses",null),o([i.HostBinding("style.width.px"),r("design:type",Number),r("design:paramtypes",[])],e.prototype,"width",null),o([i.HostBinding("style.height"),r("design:type",Object),r("design:paramtypes",[])],e.prototype,"height",null),o([i.HostListener("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"onFocus",null),o([i.HostListener("blur"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"onBlur",null),o([i.HostListener("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onClick",null),o([i.HostListener("dblclick",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onDblClick",null),o([i.HostListener("keydown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onKeyDown",null),e=o([i.Component({selector:"datatable-body-cell",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'\n
\n \n \n \n \n \n \n \n
\n '}),r("design:paramtypes",[i.ElementRef,i.ChangeDetectorRef])],e)}());t.DataTableBodyCellComponent=l},"./src/components/body/body-group-header-template.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-group-header-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DatatableGroupHeaderTemplateDirective=s},"./src/components/body/body-group-header.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/body/body-group-header-template.directive.ts"),a=function(){function e(){this.rowHeight=0,this.toggle=new i.EventEmitter}return e.prototype.toggleExpandGroup=function(e){this.toggle.emit({type:"group",value:e})},e.prototype.expandAllGroups=function(){this.toggle.emit({type:"all",value:!0})},e.prototype.collapseAllGroups=function(){this.toggle.emit({type:"all",value:!1})},o([i.Input(),r("design:type",Object)],e.prototype,"rowHeight",void 0),o([i.Input(),i.ContentChild(s.DatatableGroupHeaderTemplateDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"template",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"toggle",void 0),e=o([i.Directive({selector:"ngx-datatable-group-header"})],e)}();t.DatatableGroupHeaderDirective=a},"./src/components/body/body-row-wrapper.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=(n("./src/events.ts"),function(){function e(e,t){this.cd=e,this.differs=t,this.rowContextmenu=new i.EventEmitter(!1),this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this._expanded=!1,this.rowDiffer=t.find({}).create()}return Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.rowContext.rowIndex=e,this.groupContext.rowIndex=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){this._expanded=e,this.groupContext.expanded=e,this.rowContext.expanded=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())},e.prototype.onContextmenu=function(e){this.rowContextmenu.emit({event:e,row:this.row})},e.prototype.getGroupHeaderStyle=function(e){var t={};return t.transform="translate3d("+this.offsetX+"px, 0px, 0px)",t["backface-visibility"]="hidden",t.width=this.innerWidth,t},o([i.Input(),r("design:type",Number)],e.prototype,"innerWidth",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"rowDetail",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"groupHeader",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"offsetX",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"detailRowHeight",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"row",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"groupedRows",void 0),o([i.Output(),r("design:type",Object)],e.prototype,"rowContextmenu",void 0),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"rowIndex",null),o([i.Input(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],e.prototype,"expanded",null),o([i.HostListener("contextmenu",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onContextmenu",null),e=o([i.Component({selector:"datatable-row-wrapper",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'\n
\n \n \n
\n \n \n \n \n \n \n ',host:{class:"datatable-row-wrapper"}}),r("design:paramtypes",[i.ChangeDetectorRef,i.KeyValueDiffers])],e)}());t.DataTableRowWrapperComponent=s},"./src/components/body/body-row.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/utils/index.ts"),l=n("./src/services/index.ts"),c=(n("./src/events.ts"),function(){function e(e,t,n,o){this.differs=e,this.scrollbarHelper=t,this.cd=n,this.activate=new s.EventEmitter,this._groupStyles={left:{},center:{},right:{}},this._element=o.nativeElement,this._rowDiffer=e.find({}).create()}return Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.recalculateColumns(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(e){if(this._columns){var t=a.columnsByPin(this._columns);this._columnGroupWidths=a.columnGroupWidths(t,t)}this._innerWidth=e,this.recalculateColumns(),this.buildStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.buildStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){var e="datatable-body-row";if(this.isSelected&&(e+=" active"),this.rowIndex%2!=0&&(e+=" datatable-row-odd"),this.rowIndex%2==0&&(e+=" datatable-row-even"),this.rowClass){var t=this.rowClass(this.row);if("string"==typeof t)e+=" "+t;else if("object"==typeof t)for(var n=0,o=Object.keys(t);n\n \n \n \n '}),i(1,s.SkipSelf()),r("design:paramtypes",[s.KeyValueDiffers,l.ScrollbarHelper,s.ChangeDetectorRef,s.ElementRef])],e)}());t.DataTableBodyRowComponent=c},"./src/components/body/body.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/utils/index.ts"),a=(n("./src/types/index.ts"),n("./src/components/body/scroller.component.ts")),l=function(){function e(e){var t=this;this.cd=e,this.selected=[],this.scroll=new i.EventEmitter,this.page=new i.EventEmitter,this.activate=new i.EventEmitter,this.select=new i.EventEmitter,this.detailToggle=new i.EventEmitter,this.rowContextmenu=new i.EventEmitter(!1),this.rowHeightsCache=new s.RowHeightCache,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new Map,this.rowExpansions=new Map,this.getDetailRowHeight=function(e,n){if(!t.rowDetail)return 0;var o=t.rowDetail.rowHeight;return"function"==typeof o?o(e,n):o},this.rowTrackingFn=function(e,t){var n=this.getRowIndex(t);return this.trackByProp?n+"-"+this.trackByProp:n}.bind(this)}return Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(e){this._pageSize=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e,this.rowExpansions.clear(),this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e;var t=s.columnsByPin(e);this.columnGroupWidths=s.columnGroupWidths(t,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rowCount},set:function(e){this._rowCount=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bodyWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bodyHeight",{get:function(){return this._bodyHeight},set:function(e){this.scrollbarV?this._bodyHeight=e+"px":this._bodyHeight="auto",this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectEnabled",{get:function(){return!!this.selectionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){if(this.scrollbarV&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(function(t){var n=t.type,o=t.value;"row"===n&&e.toggleRowExpansion(o),"all"===n&&e.toggleAllRows(o),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(function(t){var n=t.type,o=t.value;"group"===n&&e.toggleRowExpansion(o),"all"===n&&e.toggleAllRows(o),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.rowDetail&&this.listener.unsubscribe(),this.groupHeader&&this.listener.unsubscribe()},e.prototype.updateOffsetY=function(e){if(this.scroller){if(this.scrollbarV&&e){var t=this.pageSize*e;e=this.rowHeightsCache.query(t-1)}this.scroller.setOffset(e||0)}},e.prototype.onBodyScroll=function(e){var t=e.scrollYPos,n=e.scrollXPos;this.offsetY===t&&this.offsetX===n||this.scroll.emit({offsetY:t,offsetX:n}),this.offsetY=t,this.offsetX=n,this.updateIndexes(),this.updatePage(e.direction),this.updateRows()},e.prototype.updatePage=function(e){var t=this.indexes.first/this.pageSize;"up"===e?t=Math.ceil(t):"down"===e&&(t=Math.floor(t)),void 0===e||isNaN(t)||this.page.emit({offset:t})},e.prototype.updateRows=function(){var e=this.indexes,t=e.first,n=e.last,o=t,r=0,i=[];if(this.rowIndexes.clear(),this.groupedRows){for(1===this.groupedRows.length&&this.groupedRows[0].value.length;o\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',changeDetection:i.ChangeDetectionStrategy.OnPush,host:{class:"datatable-body"}}),r("design:paramtypes",[i.ChangeDetectorRef])],e)}();t.DataTableBodyComponent=l},"./src/components/body/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/body/body.component.ts")),o(n("./src/components/body/body-cell.component.ts")),o(n("./src/components/body/body-row.component.ts")),o(n("./src/components/body/progress-bar.component.ts")),o(n("./src/components/body/scroller.component.ts")),o(n("./src/components/body/body-row-wrapper.component.ts")),o(n("./src/components/body/selection.component.ts")),o(n("./src/components/body/body-group-header.directive.ts")),o(n("./src/components/body/body-group-header-template.directive.ts"))},"./src/components/body/progress-bar.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("@angular/core"),i=function(){function e(){}return e=o([r.Component({selector:"datatable-progress",template:'\n
\n
\n
\n
\n
\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}();t.ProgressBarComponent=i},"./src/components/body/scroller.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e,t,n){this.ngZone=e,this.renderer=n,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new i.EventEmitter,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this.element=t.nativeElement}return e.prototype.ngOnInit=function(){var e=this;if(this.scrollbarV||this.scrollbarH){var t=this.renderer;this.parentElement=t.parentNode(t.parentNode(this.element)),this.ngZone.runOutsideAngular(function(){e.parentElement.addEventListener("scroll",e.onScrolled.bind(e))})}},e.prototype.ngOnDestroy=function(){(this.scrollbarV||this.scrollbarH)&&this.parentElement.removeEventListener("scroll",this.onScrolled.bind(this))},e.prototype.setOffset=function(e){this.parentElement&&(this.parentElement.scrollTop=e)},e.prototype.onScrolled=function(e){var t=this,n=e.currentTarget;requestAnimationFrame(function(){t.scrollYPos=n.scrollTop,t.scrollXPos=n.scrollLeft,t.updateOffset()})},e.prototype.updateOffset=function(){var e;this.scrollYPosthis.prevScrollYPos&&(e="up"),this.scroll.emit({direction:e,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos},o([i.Input(),r("design:type",Boolean)],e.prototype,"scrollbarV",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"scrollbarH",void 0),o([i.HostBinding("style.height.px"),i.Input(),r("design:type",Number)],e.prototype,"scrollHeight",void 0),o([i.HostBinding("style.width.px"),i.Input(),r("design:type",Number)],e.prototype,"scrollWidth",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"scroll",void 0),e=o([i.Component({selector:"datatable-scroller",template:"\n \n ",host:{class:"datatable-scroll"},changeDetection:i.ChangeDetectionStrategy.OnPush}),r("design:paramtypes",[i.NgZone,i.ElementRef,i.Renderer2])],e)}();t.ScrollerComponent=s},"./src/components/body/selection.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/utils/index.ts"),a=n("./src/types/index.ts"),l=function(){function e(){this.activate=new i.EventEmitter,this.select=new i.EventEmitter}return e.prototype.selectRow=function(e,t,n){if(this.selectEnabled){var o,r=this.selectionType===a.SelectionType.checkbox,i=this.selectionType===a.SelectionType.multi,l=this.selectionType===a.SelectionType.multiClick,c=[];c=i||r||l?e.shiftKey?s.selectRowsBetween([],this.rows,t,this.prevIndex,this.getRowSelectedIdx.bind(this)):e.ctrlKey||e.metaKey||l||r?s.selectRows(this.selected.slice(),n,this.getRowSelectedIdx.bind(this)):s.selectRows([],n,this.getRowSelectedIdx.bind(this)):s.selectRows([],n,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(c=c.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),(o=this.selected).push.apply(o,c),this.prevIndex=t,this.select.emit({selected:c})}},e.prototype.onActivate=function(e,t){var n=e.type,o=e.event,r=e.row,i=this.selectionType===a.SelectionType.checkbox;!i&&("click"===n||"dblclick"===n)||i&&"checkbox"===n?this.selectRow(o,t,r):"keydown"===n&&(o.keyCode===s.Keys.return?this.selectRow(o,t,r):this.onKeyboardFocus(e)),this.activate.emit(e)},e.prototype.onKeyboardFocus=function(e){var t=e.event.keyCode;if(t===s.Keys.up||t===s.Keys.down||t===s.Keys.right||t===s.Keys.left){var n=this.selectionType===a.SelectionType.cell;e.cellElement&&n?n&&this.focusCell(e.cellElement,e.rowElement,t,e.cellIndex):this.focusRow(e.rowElement,t)}},e.prototype.focusRow=function(e,t){var n=this.getPrevNextRow(e,t);n&&n.focus()},e.prototype.getPrevNextRow=function(e,t){var n=e.parentElement;if(n){var o=void 0;if(t===s.Keys.up?o=n.previousElementSibling:t===s.Keys.down&&(o=n.nextElementSibling),o&&o.children.length)return o.children[0]}},e.prototype.focusCell=function(e,t,n,o){var r;if(n===s.Keys.left)r=e.previousElementSibling;else if(n===s.Keys.right)r=e.nextElementSibling;else if(n===s.Keys.up||n===s.Keys.down){var i=this.getPrevNextRow(t,n);if(i){var a=i.getElementsByClassName("datatable-body-cell");a.length&&(r=a[o])}}r&&r.focus()},e.prototype.getRowSelected=function(e){return this.getRowSelectedIdx(e,this.selected)>-1},e.prototype.getRowSelectedIdx=function(e,t){var n=this;if(!t||!t.length)return-1;var o=this.rowIdentity(e);return t.findIndex(function(e){return n.rowIdentity(e)===o})},o([i.Input(),r("design:type",Array)],e.prototype,"rows",void 0),o([i.Input(),r("design:type",Array)],e.prototype,"selected",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"selectEnabled",void 0),o([i.Input(),r("design:type",String)],e.prototype,"selectionType",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"rowIdentity",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"selectCheck",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"activate",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"select",void 0),e=o([i.Component({selector:"datatable-selection",template:"\n \n ",changeDetection:i.ChangeDetectionStrategy.OnPush})],e)}();t.DataTableSelectionComponent=l},"./src/components/columns/column-cell.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-cell-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DataTableColumnCellDirective=s},"./src/components/columns/column-header.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-header-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DataTableColumnHeaderDirective=s},"./src/components/columns/column.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/columns/column-header.directive.ts"),a=n("./src/components/columns/column-cell.directive.ts"),l=function(){function e(){}return o([i.Input(),r("design:type",String)],e.prototype,"name",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"prop",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"frozenLeft",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"frozenRight",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"flexGrow",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"resizeable",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"comparator",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"pipe",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"sortable",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"draggable",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"canAutoResize",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"minWidth",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"width",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"maxWidth",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"checkboxable",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"headerCheckboxable",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"headerClass",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"cellClass",void 0),o([i.Input(),i.ContentChild(a.DataTableColumnCellDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"cellTemplate",void 0),o([i.Input(),i.ContentChild(s.DataTableColumnHeaderDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"headerTemplate",void 0),e=o([i.Directive({selector:"ngx-datatable-column"})],e)}();t.DataTableColumnDirective=l},"./src/components/columns/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/columns/column.directive.ts")),o(n("./src/components/columns/column-header.directive.ts")),o(n("./src/components/columns/column-cell.directive.ts"))},"./src/components/datatable.component.scss":function(e,t,n){var o=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/components/datatable.component.scss");e.exports="string"==typeof o?o:o.toString()},"./src/components/datatable.component.ts":function(e,t,n){"use strict";var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("@angular/core"),l=n("./src/utils/index.ts"),c=n("./src/services/index.ts"),p=n("./src/types/index.ts"),u=n("./src/components/body/index.ts"),d=n("./src/components/body/body-group-header.directive.ts"),h=n("./src/components/columns/index.ts"),f=n("./src/components/row-detail/index.ts"),g=n("./src/components/footer/index.ts"),y=n("./src/components/header/index.ts"),m=n("rxjs/BehaviorSubject"),b=function(){function e(e,t,n,o,r){this.scrollbarHelper=e,this.dimensionsHelper=t,this.cd=n,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=p.ColumnMode.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.sortType=p.SortType.single,this.sorts=[],this.cssClasses={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.rowIdentity=function(e){return e},this.groupExpansionDefault=!1,this.selectAllRowsOnPage=!1,this.virtualization=!0,this.scroll=new a.EventEmitter,this.activate=new a.EventEmitter,this.select=new a.EventEmitter,this.sort=new a.EventEmitter,this.page=new a.EventEmitter,this.reorder=new a.EventEmitter,this.resize=new a.EventEmitter,this.tableContextmenu=new a.EventEmitter(!1),this.rowCount=0,this._offsetX=new m.BehaviorSubject(0),this._count=0,this._offset=0,this.element=o.nativeElement,this.rowDiffer=r.find({}).create()}return Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e,e&&(this._internalRows=e.slice()),this.externalSorting||(this._internalRows=l.sortRows(this._internalRows,this._internalColumns,this.sorts)),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupRowsBy",{get:function(){return this._groupRowsBy},set:function(e){e&&(this._groupRowsBy=e,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){e&&(this._internalColumns=e.slice(),l.setColumnDefaults(this._internalColumns),this.recalculateColumns()),this._columns=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.recalculate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count=e,this.recalculate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFixedHeader",{get:function(){var e=this.headerHeight;return"string"!=typeof e||"auto"!==e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFixedRow",{get:function(){var e=this.rowHeight;return"string"!=typeof e||"auto"!==e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVertScroll",{get:function(){return this.scrollbarV},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHorScroll",{get:function(){return this.scrollbarH},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelectable",{get:function(){return void 0!==this.selectionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckboxSelection",{get:function(){return this.selectionType===p.SelectionType.checkbox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCellSelection",{get:function(){return this.selectionType===p.SelectionType.cell},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSingleSelection",{get:function(){return this.selectionType===p.SelectionType.single},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMultiSelection",{get:function(){return this.selectionType===p.SelectionType.multi},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMultiClickSelection",{get:function(){return this.selectionType===p.SelectionType.multiClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnTemplates",{get:function(){return this._columnTemplates},set:function(e){this._columnTemplates=e,this.translateColumns(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allRowsSelected",{get:function(){var e=this.rows&&this.selected&&this.selected.length===this.rows.length;if(this.selectAllRowsOnPage){var t=this.bodyComponent.indexes,n=t.last-t.first;e=this.selected.length===n}return this.selected&&this.rows&&0!==this.rows.length&&e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.recalculate()},e.prototype.ngAfterViewInit=function(){var e=this;this.externalSorting||(this._internalRows=l.sortRows(this._internalRows,this._internalColumns,this.sorts)),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(function(){e.recalculate(),e.externalPaging&&e.scrollbarV&&e.page.emit({count:e.count,pageSize:e.pageSize,limit:e.limit,offset:0})})},e.prototype.ngAfterContentInit=function(){var e=this;this.columnTemplates.changes.subscribe(function(t){return e.translateColumns(t)})},e.prototype.translateColumns=function(e){if(e){var t=e.toArray();t.length&&(this._internalColumns=l.translateTemplates(t),l.setColumnDefaults(this._internalColumns),this.recalculateColumns(),this.cd.markForCheck())}},e.prototype.groupArrayBy=function(e,t){var n=new Map;e.forEach(function(e){var o=e[t];n.has(o)?n.get(o).push(e):n.set(o,[e]),0});return Array.from(n,function(e){return t=e[0],n=e[1],{key:t,value:n};var t,n})},e.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=this.rows.slice():this._internalRows=l.sortRows(this._internalRows,this._internalColumns,this.sorts),this.recalculatePages(),this.cd.markForCheck())},e.prototype.recalculate=function(){this.recalculateDims(),this.recalculateColumns()},e.prototype.onWindowResize=function(){this.recalculate()},e.prototype.recalculateColumns=function(e,t,n){if(void 0===e&&(e=this._internalColumns),void 0===t&&(t=-1),void 0===n&&(n=this.scrollbarH),e){var o=this._innerWidth;return this.scrollbarV&&(o-=this.scrollbarHelper.width),this.columnMode===p.ColumnMode.force?l.forceFillColumnWidths(e,o,t,n):this.columnMode===p.ColumnMode.flex&&l.adjustColumnWidths(e,o),e}},e.prototype.recalculateDims=function(){var e=this.dimensionsHelper.getDimensions(this.element);if(this._innerWidth=Math.floor(e.width),this.scrollbarV){var t=e.height;this.headerHeight&&(t-=this.headerHeight),this.footerHeight&&(t-=this.footerHeight),this.bodyHeight=t}this.recalculatePages()},e.prototype.recalculatePages=function(){this.pageSize=this.calcPageSize(),this.rowCount=this.calcRowCount()},e.prototype.onBodyPage=function(e){var t=e.offset;this.offset=t,this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset})},e.prototype.onBodyScroll=function(e){this._offsetX.next(e.offsetX),this.scroll.emit(e),this.cd.detectChanges()},e.prototype.onFooterPage=function(e){this.offset=e.page-1,this.bodyComponent.updateOffsetY(this.offset),this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}),this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}))},e.prototype.calcPageSize=function(e){if(void 0===e&&(e=this.rows),this.scrollbarV){var t=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(t,0)}return void 0!==this.limit?this.limit:e?e.length:0},e.prototype.calcRowCount=function(e){return void 0===e&&(e=this.rows),this.externalPaging?this.count:e?this.groupedRows?this.groupedRows.length:e.length:0},e.prototype.onColumnContextmenu=function(e){var t=e.event,n=e.column;this.tableContextmenu.emit({event:t,type:p.ContextmenuType.header,content:n})},e.prototype.onRowContextmenu=function(e){var t=e.event,n=e.row;this.tableContextmenu.emit({event:t,type:p.ContextmenuType.body,content:n})},e.prototype.onColumnResize=function(e){var t=e.column,n=e.newValue;if(void 0!==t){var r,i=this._internalColumns.map(function(e,i){return(e=o({},e)).$$id===t.$$id&&(r=i,e.width=n,e.$$oldWidth=n),e});this.recalculateColumns(i,r),this._internalColumns=i,this.resize.emit({column:t,newValue:n})}},e.prototype.onColumnReorder=function(e){var t=e.column,n=e.newValue,r=e.prevValue,i=this._internalColumns.map(function(e){return o({},e)}),s=i[n];i[n]=t,i[r]=s,this._internalColumns=i,this.reorder.emit({column:t,newValue:n,prevValue:r})},e.prototype.onColumnSort=function(e){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}));var t=e.sorts;!1===this.externalSorting&&(this._internalRows=l.sortRows(this._internalRows,this._internalColumns,t)),this.sorts=t,this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(e)},e.prototype.onHeaderSelect=function(e){if(this.selectAllRowsOnPage){var t=this.bodyComponent.indexes.first,n=this.bodyComponent.indexes.last,o=this.selected.length===n-t;this.selected=[],o||(r=this.selected).push.apply(r,this._internalRows.slice(t,n))}else{o=this.selected.length===this.rows.length;this.selected=[],o||(i=this.selected).push.apply(i,this.rows)}var r,i;this.select.emit({selected:this.selected})},e.prototype.onBodySelect=function(e){this.select.emit(e)},r([a.Input(),i("design:type",Object),i("design:paramtypes",[Object])],e.prototype,"rows",null),r([a.Input(),i("design:type",String),i("design:paramtypes",[String])],e.prototype,"groupRowsBy",null),r([a.Input(),i("design:type",Array)],e.prototype,"groupedRows",void 0),r([a.Input(),i("design:type",Array),i("design:paramtypes",[Array])],e.prototype,"columns",null),r([a.Input(),i("design:type",Array)],e.prototype,"selected",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"scrollbarV",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"scrollbarH",void 0),r([a.Input(),i("design:type",Number)],e.prototype,"rowHeight",void 0),r([a.Input(),i("design:type",String)],e.prototype,"columnMode",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"headerHeight",void 0),r([a.Input(),i("design:type",Number)],e.prototype,"footerHeight",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"externalPaging",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"externalSorting",void 0),r([a.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"limit",null),r([a.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"count",null),r([a.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"offset",null),r([a.Input(),i("design:type",Boolean)],e.prototype,"loadingIndicator",void 0),r([a.Input(),i("design:type",String)],e.prototype,"selectionType",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"reorderable",void 0),r([a.Input(),i("design:type",String)],e.prototype,"sortType",void 0),r([a.Input(),i("design:type",Array)],e.prototype,"sorts",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"cssClasses",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"messages",void 0),r([a.Input(),i("design:type",Function)],e.prototype,"rowIdentity",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"rowClass",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"selectCheck",void 0),r([a.Input(),i("design:type",Function)],e.prototype,"displayCheck",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"groupExpansionDefault",void 0),r([a.Input(),i("design:type",String)],e.prototype,"trackByProp",void 0),r([a.Input(),i("design:type",Object)],e.prototype,"selectAllRowsOnPage",void 0),r([a.Input(),i("design:type",Boolean)],e.prototype,"virtualization",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"scroll",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"activate",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"select",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"sort",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"page",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"reorder",void 0),r([a.Output(),i("design:type",a.EventEmitter)],e.prototype,"resize",void 0),r([a.Output(),i("design:type",Object)],e.prototype,"tableContextmenu",void 0),r([a.HostBinding("class.fixed-header"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isFixedHeader",null),r([a.HostBinding("class.fixed-row"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isFixedRow",null),r([a.HostBinding("class.scroll-vertical"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isVertScroll",null),r([a.HostBinding("class.scroll-horz"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isHorScroll",null),r([a.HostBinding("class.selectable"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isSelectable",null),r([a.HostBinding("class.checkbox-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isCheckboxSelection",null),r([a.HostBinding("class.cell-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isCellSelection",null),r([a.HostBinding("class.single-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isSingleSelection",null),r([a.HostBinding("class.multi-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isMultiSelection",null),r([a.HostBinding("class.multi-click-selection"),i("design:type",Boolean),i("design:paramtypes",[])],e.prototype,"isMultiClickSelection",null),r([a.ContentChildren(h.DataTableColumnDirective),i("design:type",a.QueryList),i("design:paramtypes",[a.QueryList])],e.prototype,"columnTemplates",null),r([a.ContentChild(f.DatatableRowDetailDirective),i("design:type",f.DatatableRowDetailDirective)],e.prototype,"rowDetail",void 0),r([a.ContentChild(d.DatatableGroupHeaderDirective),i("design:type",d.DatatableGroupHeaderDirective)],e.prototype,"groupHeader",void 0),r([a.ContentChild(g.DatatableFooterDirective),i("design:type",g.DatatableFooterDirective)],e.prototype,"footer",void 0),r([a.ViewChild(u.DataTableBodyComponent),i("design:type",u.DataTableBodyComponent)],e.prototype,"bodyComponent",void 0),r([a.ViewChild(y.DataTableHeaderComponent),i("design:type",y.DataTableHeaderComponent)],e.prototype,"headerComponent",void 0),r([a.HostListener("window:resize"),l.throttleable(5),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=r([a.Component({selector:"ngx-datatable",template:'\n \n \n \n \n \n \n \n \n ',changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None,styles:[n("./src/components/datatable.component.scss")],host:{class:"ngx-datatable"}}),s(0,a.SkipSelf()),s(1,a.SkipSelf()),i("design:paramtypes",[c.ScrollbarHelper,c.DimensionsHelper,a.ChangeDetectorRef,a.ElementRef,a.KeyValueDiffers])],e)}();t.DatatableComponent=b},"./src/components/footer/footer-template.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-footer-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DataTableFooterTemplateDirective=s},"./src/components/footer/footer.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(){this.selectedCount=0,this.page=new i.EventEmitter}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.rowCount/this.pageSize>1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"curPage",{get:function(){return this.offset+1},enumerable:!0,configurable:!0}),o([i.Input(),r("design:type",Number)],e.prototype,"footerHeight",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"rowCount",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"pageSize",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"offset",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerLeftArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerRightArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerPreviousIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerNextIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"totalMessage",void 0),o([i.Input(),r("design:type",i.TemplateRef)],e.prototype,"footerTemplate",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"selectedCount",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"selectedMessage",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"page",void 0),e=o([i.Component({selector:"datatable-footer",template:'\n \n \n \n
\n \n {{selectedCount.toLocaleString()}} {{selectedMessage}} / \n \n {{rowCount.toLocaleString()}} {{totalMessage}}\n
\n \n \n \n ',host:{class:"datatable-footer"},changeDetection:i.ChangeDetectionStrategy.OnPush})],e)}();t.DataTableFooterComponent=s},"./src/components/footer/footer.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/footer/footer-template.directive.ts"),a=function(){function e(){}return o([i.Input(),r("design:type",Number)],e.prototype,"footerHeight",void 0),o([i.Input(),r("design:type",String)],e.prototype,"totalMessage",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"selectedMessage",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerLeftArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerRightArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerPreviousIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerNextIcon",void 0),o([i.Input(),i.ContentChild(s.DataTableFooterTemplateDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"template",void 0),e=o([i.Directive({selector:"ngx-datatable-footer"})],e)}();t.DatatableFooterDirective=a},"./src/components/footer/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/footer/footer.component.ts")),o(n("./src/components/footer/pager.component.ts")),o(n("./src/components/footer/footer.directive.ts")),o(n("./src/components/footer/footer-template.directive.ts"))},"./src/components/footer/pager.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(){this.change=new i.EventEmitter,this._count=0,this._page=1,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this._page},set:function(e){this._page=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalPages",{get:function(){var e=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(e||0,1)},enumerable:!0,configurable:!0}),e.prototype.canPrevious=function(){return this.page>1},e.prototype.canNext=function(){return this.page0&&e<=this.totalPages&&e!==this.page&&(this.page=e,this.change.emit({page:e}))},e.prototype.calcPages=function(e){var t=[],n=1,o=this.totalPages,r=5this.totalPages&&(n=Math.max(this.totalPages-5+1,1),o=this.totalPages));for(var i=n;i<=o;i++)t.push({number:i,text:i});return t},o([i.Input(),r("design:type",String)],e.prototype,"pagerLeftArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerRightArrowIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerPreviousIcon",void 0),o([i.Input(),r("design:type",String)],e.prototype,"pagerNextIcon",void 0),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"size",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"count",null),o([i.Input(),r("design:type",Number),r("design:paramtypes",[Number])],e.prototype,"page",null),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"change",void 0),e=o([i.Component({selector:"datatable-pager",template:'\n
    \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n \n \n {{pg.text}}\n \n \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
\n ',host:{class:"datatable-pager"},changeDetection:i.ChangeDetectionStrategy.OnPush})],e)}();t.DataTablePagerComponent=s},"./src/components/header/header-cell.component.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/types/index.ts"),a=n("./src/utils/index.ts"),l=(n("./src/events.ts"),function(){function e(e){this.cd=e,this.sort=new i.EventEmitter,this.select=new i.EventEmitter,this.columnContextmenu=new i.EventEmitter(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}return Object.defineProperty(e.prototype,"allRowsSelected",{get:function(){return this._allRowsSelected},set:function(e){this._allRowsSelected=e,this.cellContext.allRowsSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorts",{get:function(){return this._sorts},set:function(e){this._sorts=e,this.sortDir=this.calcSortDir(e),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCssClasses",{get:function(){var e="datatable-header-cell";if(this.column.sortable&&(e+=" sortable"),this.column.resizeable&&(e+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)e+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){var t=this.column.headerClass({column:this.column});if("string"==typeof t)e+=t;else if("object"==typeof t)for(var n=0,o=Object.keys(t);n\n \n \n \n \n \n \n \n \n \n \n \n \n ',host:{class:"datatable-header-cell"},changeDetection:i.ChangeDetectionStrategy.OnPush}),r("design:paramtypes",[i.ChangeDetectorRef])],e)}());t.DataTableHeaderCellComponent=l},"./src/components/header/header.component.ts":function(e,t,n){"use strict";var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/types/index.ts"),l=n("./src/utils/index.ts"),c=function(){function e(e){this.cd=e,this.sort=new s.EventEmitter,this.reorder=new s.EventEmitter,this.resize=new s.EventEmitter,this.select=new s.EventEmitter,this.columnContextmenu=new s.EventEmitter(!1),this._styleByGroup={left:{},center:{},right:{}}}return Object.defineProperty(e.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(e){if(this._innerWidth=e,this._columns){var t=l.columnsByPin(this._columns);this._columnGroupWidths=l.columnGroupWidths(t,this._columns),this.setStylesByGroup()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerHeight",{get:function(){return this._headerHeight},set:function(e){this._headerHeight="auto"!==e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e;var t=l.columnsByPin(e);this._columnsByPin=l.columnsByPinArr(e),this._columnGroupWidths=l.columnGroupWidths(t,e),this.setStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.setStylesByGroup()},enumerable:!0,configurable:!0}),e.prototype.onLongPressStart=function(e){var t=e.event;e.model.dragging=!0,this.dragEventTarget=t},e.prototype.onLongPressEnd=function(e){var t=e.event,n=e.model;this.dragEventTarget=t,setTimeout(function(){n.dragging=!1},5)},Object.defineProperty(e.prototype,"headerWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),e.prototype.trackByGroups=function(e,t){return t.type},e.prototype.columnTrackingFn=function(e,t){return t.$$id},e.prototype.onColumnResized=function(e,t){e<=t.minWidth?e=t.minWidth:e>=t.maxWidth&&(e=t.maxWidth),this.resize.emit({column:t,prevValue:t.width,newValue:e})},e.prototype.onColumnReordered=function(e){var t=e.prevIndex,n=e.newIndex,o=e.model;this.reorder.emit({column:o,prevValue:t,newValue:n})},e.prototype.onSort=function(e){var t=e.column,n=e.prevValue,o=e.newValue;if(!t.dragging){var r=this.calcNewSorts(t,n,o);this.sort.emit({sorts:r,column:t,prevValue:n,newValue:o})}},e.prototype.calcNewSorts=function(e,t,n){var r=0;this.sorts||(this.sorts=[]);var i=this.sorts.map(function(t,n){return(t=o({},t)).prop===e.prop&&(r=n),t});return void 0===n?i.splice(r,1):t?i[r].dir=n:(this.sortType===a.SortType.single&&i.splice(0,this.sorts.length),i.push({dir:n,prop:e.prop})),i},e.prototype.setStylesByGroup=function(){this._styleByGroup.left=this.calcStylesByGroup("left"),this._styleByGroup.center=this.calcStylesByGroup("center"),this._styleByGroup.right=this.calcStylesByGroup("right"),this.cd.detectChanges()},e.prototype.calcStylesByGroup=function(e){var t=this._columnGroupWidths,n=this.offsetX,o={width:t[e]+"px"};if("center"===e)l.translateXY(o,-1*n,0);else if("right"===e){var r=-1*(t.total-this.innerWidth);l.translateXY(o,r,0)}return o},r([s.Input(),i("design:type",Object)],e.prototype,"sortAscendingIcon",void 0),r([s.Input(),i("design:type",Object)],e.prototype,"sortDescendingIcon",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"scrollbarH",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"dealsWithGroup",void 0),r([s.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"innerWidth",null),r([s.Input(),i("design:type",Array)],e.prototype,"sorts",void 0),r([s.Input(),i("design:type",String)],e.prototype,"sortType",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"allRowsSelected",void 0),r([s.Input(),i("design:type",String)],e.prototype,"selectionType",void 0),r([s.Input(),i("design:type",Boolean)],e.prototype,"reorderable",void 0),r([s.HostBinding("style.height"),s.Input(),i("design:type",Object),i("design:paramtypes",[Object])],e.prototype,"headerHeight",null),r([s.Input(),i("design:type",Array),i("design:paramtypes",[Array])],e.prototype,"columns",null),r([s.Input(),i("design:type",Number),i("design:paramtypes",[Number])],e.prototype,"offsetX",null),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"sort",void 0),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"reorder",void 0),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"resize",void 0),r([s.Output(),i("design:type",s.EventEmitter)],e.prototype,"select",void 0),r([s.Output(),i("design:type",Object)],e.prototype,"columnContextmenu",void 0),r([s.HostBinding("style.width"),i("design:type",String),i("design:paramtypes",[])],e.prototype,"headerWidth",null),e=r([s.Component({selector:"datatable-header",template:'\n \n \n \n \n \n \n ',host:{class:"datatable-header"},changeDetection:s.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[s.ChangeDetectorRef])],e)}();t.DataTableHeaderComponent=c},"./src/components/header/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/header/header.component.ts")),o(n("./src/components/header/header-cell.component.ts"))},"./src/components/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/datatable.component.ts")),o(n("./src/components/header/index.ts")),o(n("./src/components/body/index.ts")),o(n("./src/components/footer/index.ts")),o(n("./src/components/columns/index.ts")),o(n("./src/components/row-detail/index.ts"))},"./src/components/row-detail/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/components/row-detail/row-detail.directive.ts")),o(n("./src/components/row-detail/row-detail-template.directive.ts"))},"./src/components/row-detail/row-detail-template.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e){this.template=e}return e=o([i.Directive({selector:"[ngx-datatable-row-detail-template]"}),r("design:paramtypes",[i.TemplateRef])],e)}();t.DatatableRowDetailTemplateDirective=s},"./src/components/row-detail/row-detail.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("./src/components/row-detail/row-detail-template.directive.ts"),a=function(){function e(){this.rowHeight=0,this.toggle=new i.EventEmitter}return e.prototype.toggleExpandRow=function(e){this.toggle.emit({type:"row",value:e})},e.prototype.expandAllRows=function(){this.toggle.emit({type:"all",value:!0})},e.prototype.collapseAllRows=function(){this.toggle.emit({type:"all",value:!1})},o([i.Input(),r("design:type",Object)],e.prototype,"rowHeight",void 0),o([i.Input(),i.ContentChild(s.DatatableRowDetailTemplateDirective,{read:i.TemplateRef}),r("design:type",i.TemplateRef)],e.prototype,"template",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"toggle",void 0),e=o([i.Directive({selector:"ngx-datatable-row-detail"})],e)}();t.DatatableRowDetailDirective=a},"./src/datatable.module.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("@angular/core"),i=n("@angular/common"),s=n("./src/components/index.ts"),a=n("./src/directives/index.ts"),l=n("./src/services/index.ts"),c=function(){function e(){}return e=o([r.NgModule({imports:[i.CommonModule],providers:[l.ScrollbarHelper,l.DimensionsHelper],declarations:[s.DataTableFooterTemplateDirective,a.VisibilityDirective,a.DraggableDirective,a.ResizeableDirective,a.OrderableDirective,a.LongPressDirective,s.ScrollerComponent,s.DatatableComponent,s.DataTableColumnDirective,s.DataTableHeaderComponent,s.DataTableHeaderCellComponent,s.DataTableBodyComponent,s.DataTableFooterComponent,s.DataTablePagerComponent,s.ProgressBarComponent,s.DataTableBodyRowComponent,s.DataTableRowWrapperComponent,s.DatatableRowDetailDirective,s.DatatableGroupHeaderDirective,s.DatatableRowDetailTemplateDirective,s.DataTableBodyCellComponent,s.DataTableSelectionComponent,s.DataTableColumnHeaderDirective,s.DataTableColumnCellDirective,s.DatatableFooterDirective,s.DatatableGroupHeaderTemplateDirective],exports:[s.DatatableComponent,s.DatatableRowDetailDirective,s.DatatableGroupHeaderDirective,s.DatatableRowDetailTemplateDirective,s.DataTableColumnDirective,s.DataTableColumnHeaderDirective,s.DataTableColumnCellDirective,s.DataTableFooterTemplateDirective,s.DatatableFooterDirective,s.DataTablePagerComponent,s.DatatableGroupHeaderTemplateDirective]})],e)}();t.NgxDatatableModule=c},"./src/directives/draggable.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("rxjs/operators"),a=n("rxjs/observable/fromEvent"),l=function(){function e(e){this.dragX=!0,this.dragY=!0,this.dragStart=new i.EventEmitter,this.dragging=new i.EventEmitter,this.dragEnd=new i.EventEmitter,this.isDragging=!1,this.element=e.nativeElement}return e.prototype.ngOnChanges=function(e){e.dragEventTarget&&e.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(e.dragEventTarget.currentValue)},e.prototype.ngOnDestroy=function(){this._destroySubscription()},e.prototype.onMouseup=function(e){this.isDragging&&(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:e,element:this.element,model:this.dragModel})))},e.prototype.onMousedown=function(e){var t=this;if(e.target.classList.contains("draggable")&&(this.dragX||this.dragY)){e.preventDefault(),this.isDragging=!0;var n={x:e.clientX,y:e.clientY},o=a.fromEvent(document,"mouseup");this.subscription=o.subscribe(function(e){return t.onMouseup(e)});var r=a.fromEvent(document,"mousemove").pipe(s.takeUntil(o)).subscribe(function(e){return t.move(e,n)});this.subscription.add(r),this.dragStart.emit({event:e,element:this.element,model:this.dragModel})}},e.prototype.move=function(e,t){if(this.isDragging){var n=e.clientX-t.x,o=e.clientY-t.y;this.dragX&&(this.element.style.left=n+"px"),this.dragY&&(this.element.style.top=o+"px"),this.element.classList.add("dragging"),this.dragging.emit({event:e,element:this.element,model:this.dragModel})}},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},o([i.Input(),r("design:type",Object)],e.prototype,"dragEventTarget",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"dragModel",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"dragX",void 0),o([i.Input(),r("design:type",Boolean)],e.prototype,"dragY",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"dragStart",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"dragging",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"dragEnd",void 0),e=o([i.Directive({selector:"[draggable]"}),r("design:paramtypes",[i.ElementRef])],e)}();t.DraggableDirective=l},"./src/directives/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/directives/draggable.directive.ts")),o(n("./src/directives/long-press.directive.ts")),o(n("./src/directives/orderable.directive.ts")),o(n("./src/directives/resizeable.directive.ts")),o(n("./src/directives/visibility.directive.ts"))},"./src/directives/long-press.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=n("rxjs/operators"),a=n("rxjs/observable/fromEvent"),l=(n("./src/events.ts"),function(){function e(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new i.EventEmitter,this.longPressing=new i.EventEmitter,this.longPressEnd=new i.EventEmitter,this.mouseX=0,this.mouseY=0}return Object.defineProperty(e.prototype,"press",{get:function(){return this.pressing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLongPress",{get:function(){return this.isLongPressing},enumerable:!0,configurable:!0}),e.prototype.onMouseDown=function(e){var t=this;if(1===e.which&&this.pressEnabled&&!e.target.classList.contains("resize-handle")){this.mouseX=e.clientX,this.mouseY=e.clientY,this.pressing=!0,this.isLongPressing=!1;var n=a.fromEvent(document,"mouseup");this.subscription=n.subscribe(function(e){return t.onMouseup()}),this.timeout=setTimeout(function(){t.isLongPressing=!0,t.longPressStart.emit({event:e,model:t.pressModel}),t.subscription.add(a.fromEvent(document,"mousemove").pipe(s.takeUntil(n)).subscribe(function(e){return t.onMouseMove(e)})),t.loop(e)},this.duration),this.loop(e)}},e.prototype.onMouseMove=function(e){if(this.pressing&&!this.isLongPressing){var t=Math.abs(e.clientX-this.mouseX)>10,n=Math.abs(e.clientY-this.mouseY)>10;(t||n)&&this.endPress()}},e.prototype.loop=function(e){var t=this;this.isLongPressing&&(this.timeout=setTimeout(function(){t.longPressing.emit({event:e,model:t.pressModel}),t.loop(e)},50))},e.prototype.endPress=function(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})},e.prototype.onMouseup=function(){this.endPress()},e.prototype.ngOnDestroy=function(){this._destroySubscription()},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},o([i.Input(),r("design:type",Boolean)],e.prototype,"pressEnabled",void 0),o([i.Input(),r("design:type",Object)],e.prototype,"pressModel",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"duration",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"longPressStart",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"longPressing",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"longPressEnd",void 0),o([i.HostBinding("class.press"),r("design:type",Boolean),r("design:paramtypes",[])],e.prototype,"press",null),o([i.HostBinding("class.longpress"),r("design:type",Boolean),r("design:paramtypes",[])],e.prototype,"isLongPress",null),o([i.HostListener("mousedown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onMouseDown",null),e=o([i.Directive({selector:"[long-press]"})],e)}());t.LongPressDirective=l},"./src/directives/orderable.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/directives/draggable.directive.ts"),l=n("@angular/platform-browser"),c=function(){function e(e,t){this.document=t,this.reorder=new s.EventEmitter,this.differ=e.find({}).create()}return e.prototype.ngAfterContentInit=function(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))},e.prototype.ngOnDestroy=function(){this.draggables.forEach(function(e){e.dragStart.unsubscribe(),e.dragEnd.unsubscribe()})},e.prototype.updateSubscriptions=function(){var e=this,t=this.differ.diff(this.createMapDiffs());if(t){var n=function(e){var t=e.previousValue;t&&(t.dragStart.unsubscribe(),t.dragEnd.unsubscribe())};t.forEachAddedItem(function(t){var o=t.currentValue,r=t.previousValue;n({previousValue:r}),o&&(o.dragStart.subscribe(e.onDragStart.bind(e)),o.dragEnd.subscribe(e.onDragEnd.bind(e)))}.bind(this)),t.forEachRemovedItem(n.bind(this))}},e.prototype.onDragStart=function(){this.positions={};for(var e=0,t=0,n=this.draggables.toArray();t=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=(n("./src/events.ts"),n("rxjs/operators")),a=n("rxjs/observable/fromEvent"),l=function(){function e(e,t){this.renderer=t,this.resizeEnabled=!0,this.resize=new i.EventEmitter,this.resizing=!1,this.element=e.nativeElement}return e.prototype.ngAfterViewInit=function(){var e=this.renderer,t=e.createElement("span");this.resizeEnabled?e.addClass(t,"resize-handle"):e.addClass(t,"resize-handle--not-resizable"),e.appendChild(this.element,t)},e.prototype.ngOnDestroy=function(){this._destroySubscription()},e.prototype.onMouseup=function(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))},e.prototype.onMousedown=function(e){var t=this,n=e.target.classList.contains("resize-handle"),o=this.element.clientWidth,r=e.screenX;if(n){e.stopPropagation(),this.resizing=!0;var i=a.fromEvent(document,"mouseup");this.subscription=i.subscribe(function(e){return t.onMouseup()});var l=a.fromEvent(document,"mousemove").pipe(s.takeUntil(i)).subscribe(function(e){return t.move(e,o,r)});this.subscription.add(l)}},e.prototype.move=function(e,t,n){var o=t+(e.screenX-n),r=!this.minWidth||o>=this.minWidth,i=!this.maxWidth||o<=this.maxWidth;r&&i&&(this.element.style.width=o+"px")},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},o([i.Input(),r("design:type",Boolean)],e.prototype,"resizeEnabled",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"minWidth",void 0),o([i.Input(),r("design:type",Number)],e.prototype,"maxWidth",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"resize",void 0),o([i.HostListener("mousedown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],e.prototype,"onMousedown",null),e=o([i.Directive({selector:"[resizeable]",host:{"[class.resizeable]":"resizeEnabled"}}),r("design:paramtypes",[i.ElementRef,i.Renderer2])],e)}();t.ResizeableDirective=l},"./src/directives/visibility.directive.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("@angular/core"),s=function(){function e(e,t){this.element=e,this.zone=t,this.isVisible=!1,this.visible=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.runCheck()},e.prototype.ngOnDestroy=function(){clearTimeout(this.timeout)},e.prototype.onVisibilityChange=function(){var e=this;this.zone.run(function(){e.isVisible=!0,e.visible.emit(!0)})},e.prototype.runCheck=function(){var e=this,t=function(){var n=e.element.nativeElement,o=n.offsetHeight,r=n.offsetWidth;o&&r?(clearTimeout(e.timeout),e.onVisibilityChange()):(clearTimeout(e.timeout),e.zone.runOutsideAngular(function(){e.timeout=setTimeout(function(){return t()},50)}))};this.timeout=setTimeout(function(){return t()})},o([i.HostBinding("class.visible"),r("design:type",Boolean)],e.prototype,"isVisible",void 0),o([i.Output(),r("design:type",i.EventEmitter)],e.prototype,"visible",void 0),e=o([i.Directive({selector:"[visibilityObserver]"}),r("design:paramtypes",[i.ElementRef,i.NgZone])],e)}();t.VisibilityDirective=s},"./src/events.ts":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.MouseEvent=e.MouseEvent,t.KeyboardEvent=e.KeyboardEvent,t.Event=e.Event}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./src/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/datatable.module.ts")),o(n("./src/types/index.ts")),o(n("./src/components/index.ts")),o(n("./src/services/index.ts"))},"./src/services/dimensions-helper.service.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("@angular/core"),i=function(){function e(){}return e.prototype.getDimensions=function(e){return e.getBoundingClientRect()},e=o([r.Injectable()],e)}();t.DimensionsHelper=i},"./src/services/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/services/scrollbar-helper.service.ts")),o(n("./src/services/dimensions-helper.service.ts"))},"./src/services/scrollbar-helper.service.ts":function(e,t,n){"use strict";var o=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("@angular/core"),a=n("@angular/platform-browser"),l=function(){function e(e){this.document=e,this.width=this.getWidth()}return e.prototype.getWidth=function(){var e=this.document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",this.document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=this.document.createElement("div");n.style.width="100%",e.appendChild(n);var o=n.offsetWidth;return e.parentNode.removeChild(e),t-o},e=o([s.Injectable(),i(0,s.Inject(a.DOCUMENT)),r("design:paramtypes",[Object])],e)}();t.ScrollbarHelper=l},"./src/types/click.type.ts":function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),(o=t.ClickType||(t.ClickType={})).single="single",o.double="double"},"./src/types/column-mode.type.ts":function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),(o=t.ColumnMode||(t.ColumnMode={})).standard="standard",o.flex="flex",o.force="force"},"./src/types/contextmenu.type.ts":function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),(o=t.ContextmenuType||(t.ContextmenuType={})).header="header",o.body="body"},"./src/types/index.ts":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("./src/types/column-mode.type.ts")),o(n("./src/types/sort.type.ts")),o(n("./src/types/sort-direction.type.ts")),o(n("./src/types/selection.type.ts")),o(n("./src/types/click.type.ts")),o(n("./src/types/contextmenu.type.ts"))},"./src/types/selection.type.ts":function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),(o=t.SelectionType||(t.SelectionType={})).single="single",o.multi="multi",o.multiClick="multiClick",o.cell="cell",o.checkbox="checkbox"},"./src/types/sort-direction.type.ts":function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),(o=t.SortDirection||(t.SortDirection={})).asc="asc",o.desc="desc"},"./src/types/sort.type.ts":function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),(o=t.SortType||(t.SortType={})).single="single",o.multi="multi"},"./src/utils/camel-case.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=function(e){return e=(e=(e=(e=e.replace(/[^a-zA-Z0-9 ]/g," ")).replace(/([a-z](?=[A-Z]))/g,"$1 ")).replace(/([^a-zA-Z0-9 ])|^[0-9]+/g,"").trim().toLowerCase()).replace(/([ 0-9]+)([a-zA-Z])/g,function(e,t,n){return t.trim()+n.toUpperCase()})},t.deCamelCase=function(e){return e.replace(/([A-Z])/g,function(e){return" "+e}).replace(/^./,function(e){return e.toUpperCase()})}},"./src/utils/column-helper.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("./src/utils/camel-case.ts"),r=n("./src/utils/id.ts"),i=n("./src/utils/column-prop-getters.ts");function s(e){return null==e}t.setColumnDefaults=function(e){if(e)for(var t=0,n=e;t=t;for(var g=0,y=a;gm.maxWidth?(m.width=m.maxWidth,f.push(m)):m.width=b}m.width=Math.max(0,m.width)}h=t-(d=s(e)),i(a,f)}while(h>0&&0!==a.length)}},"./src/utils/prefixes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i,s,a=n("./src/utils/camel-case.ts"),l={},c="undefined"!=typeof document?document.createElement("div").style:void 0,p=(o="undefined"!=typeof window?window.getComputedStyle(document.documentElement,""):void 0,r=void 0!==o?Array.prototype.slice.call(o).join("").match(/-(moz|webkit|ms)-/):null,i=null!==r?r[1]:void 0,(s=void 0!==i?"WebKit|Moz|MS|O".match(new RegExp("("+i+")","i"))[1]:void 0)?{dom:s,lowercase:i,css:"-"+i+"-",js:i[0].toUpperCase()+i.substr(1)}:void 0);t.getVendorPrefixedName=function(e){var t=a.camelCase(e);return l[t]||(void 0!==p&&void 0!==c[p.css+e]?l[t]=p.css+e:void 0!==c[e]&&(l[t]=e)),l[t]}},"./src/utils/row-height-cache.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.treeArray=[]}return e.prototype.clearCache=function(){this.treeArray=[]},e.prototype.initCache=function(e){var t=e.rows,n=e.rowHeight,o=e.detailRowHeight,r=e.externalVirtual,i=e.rowCount,s=e.rowIndexes,a=e.rowExpansions,l="function"==typeof n,c="function"==typeof o;if(!l&&isNaN(n))throw new Error("Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: ("+n+") when 'scrollbarV' is enabled.");if(!c&&isNaN(o))throw new Error("Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: ("+o+") when 'scrollbarV' is enabled.");var p=r?i:t.length;this.treeArray=new Array(p);for(var u=0;u=0;)t+=this.treeArray[e],e=(e&e+1)-1;return t},e.prototype.queryBetween=function(e,t){return this.query(t)-this.query(e-1)},e.prototype.calcRowIndex=function(e){if(!this.treeArray.length)return 0;for(var t=-1,n=this.treeArray.length,o=Math.pow(2,n.toString(2).length-1);0!==o;o>>=1){var r=t+o;r=this.treeArray[r]&&(e-=this.treeArray[r],t=r)}return t+1},e}();t.RowHeightCache=o},"./src/utils/selection.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectRows=function(e,t,n){var o=n(t,e);return o>-1?e.splice(o,1):e.push(t),e},t.selectRowsBetween=function(e,t,n,o,r){for(var i=n=n||!i&&s>=o&&s<=n)&&s>=l.start&&s<=l.end&&e.push(a)}return e}},"./src/utils/sort.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("./src/types/index.ts"),r=n("./src/utils/column-prop-getters.ts");function i(e,t){if(null==e&&(e=0),null==t&&(t=0),e instanceof Date&&t instanceof Date){if(et)return 1}else if(isNaN(parseFloat(e))||!isFinite(e)||isNaN(parseFloat(t))||!isFinite(t)){if(e=String(e),t=String(t),e.toLowerCase()t.toLowerCase())return 1}else{if(parseFloat(e)parseFloat(t))return 1}return 0}t.nextSortDir=function(e,t){return e===o.SortType.single?t===o.SortDirection.asc?o.SortDirection.desc:o.SortDirection.asc:t?t===o.SortDirection.asc?o.SortDirection.desc:void o.SortDirection.desc:o.SortDirection.asc},t.orderByComparator=i,t.sortRows=function(e,t,n){if(!e)return[];if(!n||!n.length||!t)return e.slice();var s=new Map;e.forEach(function(e,t){return s.set(e,t)});var a=e.slice(),l=t.reduce(function(e,t){return t.comparator&&"function"==typeof t.comparator&&(e[t.prop]=t.comparator),e},{}),c=n.map(function(e){var t=e.prop;return{prop:t,dir:e.dir,valueGetter:r.getterForProp(t),compareFn:l[t]||i}});return a.sort(function(e,t){for(var n=0,r=c;n