UNPKG

mat-vs-table

Version:

[![npm version](https://badge.fury.io/js/mat-vs-table.svg)](https://badge.fury.io/js/mat-vs-table) [![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)

16 lines (14 loc) 21.9 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/cdk/collections"),require("rxjs"),require("rxjs/operators"),require("@angular/cdk/table"),require("@angular/cdk/coercion"),require("@angular/common"),require("@angular/cdk/bidi"),require("@angular/cdk/scrolling"),require("@angular/cdk/platform")):"function"==typeof define&&define.amd?define("mat-vs-table",["exports","@angular/core","@angular/cdk/collections","rxjs","rxjs/operators","@angular/cdk/table","@angular/cdk/coercion","@angular/common","@angular/cdk/bidi","@angular/cdk/scrolling","@angular/cdk/platform"],t):t((e=e||self)["mat-vs-table"]={},e.ng.core,e.ng.cdk.collections,e.rxjs,e.rxjs.operators,e.ng.cdk.table,e.ng.cdk.coercion,e.ng.common,e.ng.cdk.bidi,e.ng.cdk.scrolling,e.ng.cdk.platform)}(this,(function(e,t,r,o,n,i,a,s,l,c,d){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};Object.create;function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}Object.create;var w=[[["caption"]],[["colgroup"],["col"]]];function p(e){return Error('Could not find column with id "'+e+'".')}function _(e){return Error('Duplicate column definition name provided: "'+e+'".')}function y(){return Error("There can only be one default row without a when predicate function.")}function m(e){return Error("Could not find a matching row definition for theprovided row data: "+JSON.stringify(e))}function R(){return Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.")}function g(){return Error("Provided data source did not match an array, Observable, or DataSource")}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(function(e,t){function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e)}(t.EmbeddedViewRef);var D=function(){function e(e,t,r,n,i,a,s,l,c){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=i,this._viewport=a,this.ngZone=s,this._platform=c,this._onDestroy=new o.Subject,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="mat-table-sticky",this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new o.BehaviorSubject({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(e.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(e){t.isDevMode()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+"."),this._trackByFn=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=a.coerceBooleanProperty(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!1,configurable:!0}),e.prototype.getSize=function(e,t){var r=t;if(!r.getBoundingClientRect)return 0;var o=r.getBoundingClientRect();return"horizontal"===e?o.width:o.height},e.prototype.measureRangeSize=function(e,t){if(e.start>=e.end)return 0;if(e.start<this._renderedRange.start||e.end>this._renderedRange.end)throw Error("Error: attempted to measure an item that isn't rendered.");for(var r=e.start-this._renderedRange.start,o=0,n=e.end-e.start;n--;)for(var i=this._rowOutlet.viewContainer.get(n+r),a=i?i.rootNodes.length:0;a--;)o+=this.getSize(t,i.rootNodes[a]);return o},e.prototype.ngOnInit=function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(t,r){return e.trackBy?e.trackBy(r.dataIndex,r.data):r}))},e.prototype.ngAfterContentChecked=function(){var e=this;if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw R();this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&(this._observeRenderChanges(),this._viewport.renderedRangeStream.pipe(n.takeUntil(this._onDestroy)).subscribe((function(t){e._renderedRange=t,e.ngZone.run((function(){return e.viewChange.next(e._renderedRange)})),e._onRenderedDataChange()})),this._viewport.attach(this)),this._checkStickyStates()},e.prototype._onRenderedDataChange=function(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this.renderRows())},e.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),r.isDataSource(this.dataSource)&&this.dataSource.disconnect(this)},e.prototype.renderRows=function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var r=this._rowOutlet.viewContainer;t.forEachOperation((function(t,o,n){if(null==t.previousIndex)e._insertRow(t.item,n);else if(null==n)r.remove(o);else{var i=r.get(o);r.move(i,n)}})),this._updateRowIndexContext(),t.forEachIdentityChange((function(e){r.get(e.currentIndex).context.$implicit=e.item.data})),this._updateNoDataRow(),this.updateStickyColumnStyles()}},e.prototype.addColumnDef=function(e){this._customColumnDefs.add(e)},e.prototype.removeColumnDef=function(e){this._customColumnDefs.delete(e)},e.prototype.addRowDef=function(e){this._customRowDefs.add(e)},e.prototype.removeRowDef=function(e){this._customRowDefs.delete(e)},e.prototype.addHeaderRowDef=function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0},e.prototype.removeHeaderRowDef=function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0},e.prototype.addFooterRowDef=function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0},e.prototype.removeFooterRowDef=function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0},e.prototype.updateStickyHeaderRowStyles=function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var r=this._headerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach((function(e){return e.resetStickyChanged()}))},e.prototype.updateStickyFooterRowStyles=function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var r=this._footerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach((function(e){return e.resetStickyChanged()}))},e.prototype.updateStickyColumnStyles=function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}(t,r,o),["left","right"]),t.forEach((function(t,r){e._addStickyColumnStyles([t],e._headerRowDefs[r])})),this._rowDefs.forEach((function(t){for(var o=[],n=0;n<r.length;n++)e._renderRows[n].rowDef===t&&o.push(r[n]);e._addStickyColumnStyles(o,t)})),o.forEach((function(t,r){e._addStickyColumnStyles([t],e._footerRowDefs[r])})),Array.from(this._columnDefsByName.values()).forEach((function(e){return e.resetStickyChanged()}))},e.prototype._getAllRenderRows=function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var r=0;r<this._renderedItems.length;r++){var o=this._renderedItems[r],n=this._getRenderRowsForData(o,r,t.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap);for(var i=0;i<n.length;i++){var a=n[i],s=this._cachedRenderRowsMap.get(a.data);s.has(a.rowDef)?s.get(a.rowDef).push(a):s.set(a.rowDef,[a]),e.push(a)}}return e},e.prototype._getRenderRowsForData=function(e,t,r){return this._getRowDefs(e,t).map((function(o){var n=r&&r.has(o)?r.get(o):[];if(n.length){var i=n.shift();return i.dataIndex=t,i}return{data:e,rowDef:o,dataIndex:t}}))},e.prototype._cacheColumnDefs=function(){var e=this;this._columnDefsByName.clear(),v(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach((function(t){if(e._columnDefsByName.has(t.name))throw _(t.name);e._columnDefsByName.set(t.name,t)}))},e.prototype._cacheRowDefs=function(){this._headerRowDefs=v(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=v(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=v(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter((function(e){return!e.when}));if(!this.multiTemplateDataRows&&e.length>1)throw y();this._defaultRowDef=e[0]},e.prototype._renderUpdatedColumns=function(){var e=function(e,t){return e||!!t.getColumnsDiff()};this._rowDefs.reduce(e,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(e,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(e,!1)&&this._forceRenderFooterRows()},e.prototype._switchDataSource=function(e){this._data=[],this._renderedItems=[],r.isDataSource(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e},e.prototype._observeRenderChanges=function(){var e=this;if(this.dataSource){var t;if(r.isDataSource(this.dataSource)?t=this.dataSource.connect(this):o.isObservable(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=o.of(this.dataSource)),void 0===t)throw g();this.dataStream=t,this._renderChangeSubscription=t.pipe(n.takeUntil(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}},e.prototype._forceRenderHeaderRows=function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(t,r){return e._renderRow(e._headerRowOutlet,t,r)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},e.prototype._forceRenderFooterRows=function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(t,r){return e._renderRow(e._footerRowOutlet,t,r)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},e.prototype._addStickyColumnStyles=function(e,t){var r=this,o=Array.from(t.columns||[]).map((function(e){var t=r._columnDefsByName.get(e);if(!t)throw p(e);return t})),n=o.map((function(e){return e.sticky})),i=o.map((function(e){return e.stickyEnd}));this._stickyStyler.updateStickyColumns(e,n,i)},e.prototype._getRenderedRows=function(e){for(var t=[],r=0;r<e.viewContainer.length;r++){var o=e.viewContainer.get(r);t.push(o.rootNodes[0])}return t},e.prototype._getRowDefs=function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter((function(r){return!r.when||r.when(t,e)}));else{var o=this._rowDefs.find((function(r){return r.when&&r.when(t,e)}))||this._defaultRowDef;o&&r.push(o)}if(!r.length)throw m(e);return r},e.prototype._insertRow=function(e,t){var r=e.rowDef,o={$implicit:e.data};this._renderRow(this._rowOutlet,r,t,o)},e.prototype._renderRow=function(e,t,r,o){var n,a;void 0===o&&(o={}),e.viewContainer.createEmbeddedView(t.template,o,r);try{for(var s=f(this._getCellTemplates(t)),l=s.next();!l.done;l=s.next()){var c=l.value;i.CdkCellOutlet.mostRecentCellOutlet&&i.CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(c,o)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(n)throw n.error}}this._changeDetectorRef.markForCheck()},e.prototype._updateRowIndexContext=function(){for(var e=this._rowOutlet.viewContainer,t=0,r=e.length;t<r;t++){var o=e.get(t).context;o.count=r,o.first=0===t,o.last=t===r-1,o.even=t%2==0,o.odd=!o.even,this.multiTemplateDataRows?(o.dataIndex=this._renderRows[t].dataIndex,o.renderIndex=t):o.index=this._renderRows[t].dataIndex}},e.prototype._getCellTemplates=function(e){var t=this;return e&&e.columns?Array.from(e.columns,(function(r){var o=t._columnDefsByName.get(r);if(!o)throw p(r);return e.extractCellTemplate(o)})):[]},e.prototype._applyNativeTableSections=function(){var e,t,r,o,n=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];try{for(var a=f(i),s=a.next();!s.done;s=a.next()){var l=s.value,c=this._document.createElement(l.tag);c.setAttribute("role","rowgroup");try{for(var d=(r=void 0,f(l.outlets)),u=d.next();!u.done;u=d.next()){var h=u.value;c.appendChild(h.elementRef.nativeElement)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}n.appendChild(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this._elementRef.nativeElement.appendChild(n)},e.prototype._forceRenderDataRows=function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()},e.prototype._checkStickyStates=function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&this.updateStickyColumnStyles()},e.prototype._setupStickyStyler=function(){var e=this,t=this._dir?this._dir.value:"ltr";this._stickyStyler=new i.StickyStyler(this._isNativeHtmlTable,this.stickyCssClass,t,this._platform.isBrowser),(this._dir?this._dir.change:o.of()).pipe(n.takeUntil(this._onDestroy)).subscribe((function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()}))},e.prototype._getOwnDefs=function(e){var t=this;return e.filter((function(e){return!e._table||e._table===t}))},e.prototype._updateNoDataRow=function(){if(this._noDataRow){var e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){var t=this._noDataRowOutlet.viewContainer;e?t.createEmbeddedView(this._noDataRow.templateRef):t.clear(),this._isShowingNoDataRow=e}}},e}();function v(e,t){return e.concat(Array.from(t))}D.ɵfac=function(e){return new(e||D)(t.ɵɵdirectiveInject(t.IterableDiffers),t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵinjectAttribute("role"),t.ɵɵdirectiveInject(l.Directionality,8),t.ɵɵdirectiveInject(c.CdkVirtualScrollViewport,4),t.ɵɵdirectiveInject(t.NgZone),t.ɵɵdirectiveInject(s.DOCUMENT),t.ɵɵdirectiveInject(d.Platform))},D.ɵcmp=t.ɵɵdefineComponent({type:D,selectors:[["mat-vs-table"],["table","mat-vs-table",""]],contentQueries:function(e,r,o){var n;(1&e&&(t.ɵɵcontentQuery(o,i.CdkNoDataRow,!0),t.ɵɵcontentQuery(o,i.CdkColumnDef,!0),t.ɵɵcontentQuery(o,i.CdkRowDef,!0),t.ɵɵcontentQuery(o,i.CdkHeaderRowDef,!0),t.ɵɵcontentQuery(o,i.CdkFooterRowDef,!0)),2&e)&&(t.ɵɵqueryRefresh(n=t.ɵɵloadQuery())&&(r._noDataRow=n.first),t.ɵɵqueryRefresh(n=t.ɵɵloadQuery())&&(r._contentColumnDefs=n),t.ɵɵqueryRefresh(n=t.ɵɵloadQuery())&&(r._contentRowDefs=n),t.ɵɵqueryRefresh(n=t.ɵɵloadQuery())&&(r._contentHeaderRowDefs=n),t.ɵɵqueryRefresh(n=t.ɵɵloadQuery())&&(r._contentFooterRowDefs=n))},viewQuery:function(e,r){var o;(1&e&&(t.ɵɵstaticViewQuery(i.DataRowOutlet,!0),t.ɵɵstaticViewQuery(i.HeaderRowOutlet,!0),t.ɵɵstaticViewQuery(i.FooterRowOutlet,!0),t.ɵɵstaticViewQuery(i.NoDataRowOutlet,!0)),2&e)&&(t.ɵɵqueryRefresh(o=t.ɵɵloadQuery())&&(r._rowOutlet=o.first),t.ɵɵqueryRefresh(o=t.ɵɵloadQuery())&&(r._headerRowOutlet=o.first),t.ɵɵqueryRefresh(o=t.ɵɵloadQuery())&&(r._footerRowOutlet=o.first),t.ɵɵqueryRefresh(o=t.ɵɵloadQuery())&&(r._noDataRowOutlet=o.first))},hostAttrs:[1,"mat-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["matVSTable"],features:[t.ɵɵProvidersFeature([{provide:i.CdkTable,useExisting:D},{provide:i.CDK_TABLE,useExisting:D}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,r){1&e&&(t.ɵɵprojectionDef(w),t.ɵɵprojection(0),t.ɵɵprojection(1,1),t.ɵɵelementContainer(2,0),t.ɵɵelementContainer(3,1),t.ɵɵelementContainer(4,2),t.ɵɵelementContainer(5,3))},directives:[i.HeaderRowOutlet,i.DataRowOutlet,i.NoDataRowOutlet,i.FooterRowOutlet],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-footer-row,mat-row{min-height:48px}mat-footer-row,mat-header-row,mat-row{-webkit-box-align:center;align-items:center;border-style:solid;border-width:0 0 1px;box-sizing:border-box;display:-webkit-box;display:flex}mat-footer-row:after,mat-header-row:after,mat-row:after{content:"";display:inline-block;min-height:inherit}mat-cell:first-of-type,mat-footer-cell:first-of-type,mat-header-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-footer-cell:last-of-type,mat-header-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type{padding-left:24px;padding-right:0}mat-cell,mat-footer-cell,mat-header-cell{-webkit-box-align:center;-webkit-box-flex:1;align-items:center;display:-webkit-box;display:flex;flex:1;min-height:inherit;overflow:hidden;word-wrap:break-word}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-footer-row,tr.mat-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}td.mat-cell,td.mat-footer-cell,th.mat-header-cell{border-bottom-style:solid;border-bottom-width:1px;padding:0}td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type,th.mat-header-cell:first-of-type{padding-left:24px}[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type,[dir=rtl] th.mat-header-cell:first-of-type{padding-left:0;padding-right:24px}td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type,th.mat-header-cell:last-of-type{padding-right:24px}[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type,[dir=rtl] th.mat-header-cell:last-of-type{padding-left:24px;padding-right:0}'],encapsulation:2});var S=function(){};S.ɵmod=t.ɵɵdefineNgModule({type:S}),S.ɵinj=t.ɵɵdefineInjector({factory:function(e){return new(e||S)},imports:[[s.CommonModule,i.CdkTableModule,c.ScrollingModule],c.ScrollingModule]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(S,{declarations:[D],imports:[s.CommonModule,i.CdkTableModule,c.ScrollingModule],exports:[D,c.ScrollingModule]}),e.MatVsTableComponent=D,e.MatVsTableModule=S,e.getTableDuplicateColumnNameError=_,e.getTableMissingMatchingRowDefError=m,e.getTableMissingRowDefsError=R,e.getTableMultipleDefaultRowDefsError=y,e.getTableUnknownColumnError=p,e.getTableUnknownDataSourceError=g,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=mat-vs-table.umd.min.js.map