ng-table-virtual-scroll
Advanced tools
Comparing version 1.3.5 to 1.3.6
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/scrolling'), require('rxjs/operators'), require('rxjs'), require('@angular/material/table')) : | ||
typeof define === 'function' && define.amd ? define('ng-table-virtual-scroll', ['exports', '@angular/core', '@angular/cdk/scrolling', 'rxjs/operators', 'rxjs', '@angular/material/table'], factory) : | ||
(global = global || self, factory(global['ng-table-virtual-scroll'] = {}, global.ng.core, global.ng.cdk.scrolling, global.rxjs.operators, global.rxjs, global.ng.material.table)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ng-table-virtual-scroll'] = {}, global.ng.core, global.ng.cdk.scrolling, global.rxjs.operators, global.rxjs, global.ng.material.table)); | ||
}(this, (function (exports, core, scrolling, operators, rxjs, table) { 'use strict'; | ||
@@ -22,11 +22,13 @@ | ||
/* global Reflect, Promise */ | ||
var extendStatics = function(d, b) { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) | ||
if (Object.prototype.hasOwnProperty.call(b, p)) | ||
d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
function __extends(d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -36,8 +38,9 @@ function __() { this.constructor = d; } | ||
} | ||
var __assign = function() { | ||
var __assign = function () { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
for (var p in s) | ||
if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
@@ -48,7 +51,7 @@ return t; | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
for (var p in s) | ||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
@@ -61,23 +64,34 @@ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
} | ||
function __decorate(decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") | ||
r = Reflect.decorate(decorators, target, key, desc); | ||
else | ||
for (var i = decorators.length - 1; i >= 0; i--) | ||
if (d = decorators[i]) | ||
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
} | ||
function __param(paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
return function (target, key) { decorator(target, key, paramIndex); }; | ||
} | ||
function __metadata(metadataKey, metadataValue) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") | ||
return Reflect.metadata(metadataKey, metadataValue); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function fulfilled(value) { try { | ||
step(generator.next(value)); | ||
} | ||
catch (e) { | ||
reject(e); | ||
} } | ||
function rejected(value) { try { | ||
step(generator["throw"](value)); | ||
} | ||
catch (e) { | ||
reject(e); | ||
} } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
@@ -87,69 +101,124 @@ step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
var _ = { label: 0, sent: function () { if (t[0] & 1) | ||
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
if (f) | ||
throw new TypeError("Generator is already executing."); | ||
while (_) | ||
try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) | ||
return t; | ||
if (y = 0, t) | ||
op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: | ||
case 1: | ||
t = op; | ||
break; | ||
case 4: | ||
_.label++; | ||
return { value: op[1], done: false }; | ||
case 5: | ||
_.label++; | ||
y = op[1]; | ||
op = [0]; | ||
continue; | ||
case 7: | ||
op = _.ops.pop(); | ||
_.trys.pop(); | ||
continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { | ||
_ = 0; | ||
continue; | ||
} | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { | ||
_.label = op[1]; | ||
break; | ||
} | ||
if (op[0] === 6 && _.label < t[1]) { | ||
_.label = t[1]; | ||
t = op; | ||
break; | ||
} | ||
if (t && _.label < t[2]) { | ||
_.label = t[2]; | ||
_.ops.push(op); | ||
break; | ||
} | ||
if (t[2]) | ||
_.ops.pop(); | ||
_.trys.pop(); | ||
continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
catch (e) { | ||
op = [6, e]; | ||
y = 0; | ||
} | ||
finally { | ||
f = t = 0; | ||
} | ||
if (op[0] & 5) | ||
throw op[1]; | ||
return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
function __createBinding(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var __createBinding = Object.create ? (function (o, m, k, k2) { | ||
if (k2 === undefined) | ||
k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } }); | ||
}) : (function (o, m, k, k2) { | ||
if (k2 === undefined) | ||
k2 = k; | ||
o[k2] = m[k]; | ||
}); | ||
function __exportStar(m, o) { | ||
for (var p in m) | ||
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) | ||
__createBinding(o, m, p); | ||
} | ||
function __exportStar(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
function __values(o) { | ||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | ||
if (m) return m.call(o); | ||
if (o && typeof o.length === "number") return { | ||
next: function () { | ||
if (o && i >= o.length) o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
if (m) | ||
return m.call(o); | ||
if (o && typeof o.length === "number") | ||
return { | ||
next: function () { | ||
if (o && i >= o.length) | ||
o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); | ||
} | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
if (!m) | ||
return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) | ||
ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
catch (error) { | ||
e = { error: error }; | ||
} | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
if (r && !r.done && (m = i["return"])) | ||
m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
finally { | ||
if (e) | ||
throw e.error; | ||
} | ||
} | ||
return ar; | ||
} | ||
/** @deprecated */ | ||
function __spread() { | ||
@@ -160,5 +229,6 @@ for (var ar = [], i = 0; i < arguments.length; i++) | ||
} | ||
/** @deprecated */ | ||
function __spreadArrays() { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) | ||
s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
@@ -168,20 +238,30 @@ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
return r; | ||
}; | ||
} | ||
function __spreadArray(to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
} | ||
function __await(v) { | ||
return this instanceof __await ? (this.v = v, this) : new __await(v); | ||
} | ||
function __asyncGenerator(thisArg, _arguments, generator) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
if (!Symbol.asyncIterator) | ||
throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
function verb(n) { if (g[n]) | ||
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
function resume(n, v) { try { | ||
step(g[n](v)); | ||
} | ||
catch (e) { | ||
settle(q[0][3], e); | ||
} } | ||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
function fulfill(value) { resume("next", value); } | ||
function reject(value) { resume("throw", value); } | ||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } | ||
function settle(f, v) { if (f(v), q.shift(), q.length) | ||
resume(q[0][0], q[0][1]); } | ||
} | ||
function __asyncDelegator(o) { | ||
@@ -192,28 +272,39 @@ var i, p; | ||
} | ||
function __asyncValues(o) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
if (!Symbol.asyncIterator) | ||
throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator], i; | ||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); | ||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } | ||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } | ||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); } | ||
} | ||
function __makeTemplateObject(cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
if (Object.defineProperty) { | ||
Object.defineProperty(cooked, "raw", { value: raw }); | ||
} | ||
else { | ||
cooked.raw = raw; | ||
} | ||
return cooked; | ||
} | ||
; | ||
var __setModuleDefault = Object.create ? (function (o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function (o, v) { | ||
o["default"] = v; | ||
}; | ||
function __importStar(mod) { | ||
if (mod && mod.__esModule) return mod; | ||
if (mod && mod.__esModule) | ||
return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result.default = mod; | ||
if (mod != null) | ||
for (var k in mod) | ||
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) | ||
__createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
} | ||
function __importDefault(mod) { | ||
return (mod && mod.__esModule) ? mod : { default: mod }; | ||
} | ||
function __classPrivateFieldGet(receiver, privateMap) { | ||
@@ -225,3 +316,2 @@ if (!privateMap.has(receiver)) { | ||
} | ||
function __classPrivateFieldSet(receiver, privateMap, value) { | ||
@@ -257,14 +347,14 @@ if (!privateMap.has(receiver)) { | ||
var filteredData = rxjs.combineLatest([dataStream, _filter]) | ||
.pipe(operators.map(function (_a) { | ||
var _b = __read(_a, 1), data = _b[0]; | ||
.pipe(operators.map(function (_b) { | ||
var _c = __read(_b, 1), data = _c[0]; | ||
return _this._filterData(data); | ||
})); | ||
var orderedData = rxjs.combineLatest([filteredData, sortChange]) | ||
.pipe(operators.map(function (_a) { | ||
var _b = __read(_a, 1), data = _b[0]; | ||
.pipe(operators.map(function (_b) { | ||
var _c = __read(_b, 1), data = _c[0]; | ||
return _this._orderData(data); | ||
})); | ||
var paginatedData = rxjs.combineLatest([orderedData, pageChange]) | ||
.pipe(operators.map(function (_a) { | ||
var _b = __read(_a, 1), data = _b[0]; | ||
.pipe(operators.map(function (_b) { | ||
var _c = __read(_b, 1), data = _c[0]; | ||
return _this._pageData(data); | ||
@@ -303,3 +393,3 @@ })); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -336,3 +426,3 @@ }); | ||
} | ||
this.viewport.scrollToOffset((index - 1) * this.rowHeight + this.headerHeight); | ||
this.viewport.scrollToOffset((index - 1) * this.rowHeight + this.headerHeight, behavior); | ||
}; | ||
@@ -371,7 +461,7 @@ FixedSizeTableVirtualScrollStrategy.prototype.setConfig = function (configs) { | ||
}; | ||
FixedSizeTableVirtualScrollStrategy = __decorate([ | ||
core.Injectable() | ||
], FixedSizeTableVirtualScrollStrategy); | ||
return FixedSizeTableVirtualScrollStrategy; | ||
}()); | ||
FixedSizeTableVirtualScrollStrategy.decorators = [ | ||
{ type: core.Injectable } | ||
]; | ||
@@ -394,3 +484,3 @@ function _tableVirtualScrollDirectiveStrategyFactory(tableDir) { | ||
this.zone = zone; | ||
this.alive = true; | ||
this.destroyed$ = new rxjs.Subject(); | ||
// tslint:disable-next-line:no-input-rename | ||
@@ -406,11 +496,7 @@ this.rowHeight = defaults.rowHeight; | ||
} | ||
TableItemSizeDirective_1 = TableItemSizeDirective; | ||
TableItemSizeDirective.prototype.ngOnDestroy = function () { | ||
this.alive = false; | ||
this.destroyed$.next(); | ||
this.destroyed$.complete(); | ||
this.dataSourceChanges.complete(); | ||
}; | ||
TableItemSizeDirective.prototype.isAlive = function () { | ||
var _this = this; | ||
return function () { return _this.alive; }; | ||
}; | ||
TableItemSizeDirective.prototype.isStickyEnabled = function () { | ||
@@ -430,7 +516,7 @@ return !!this.scrollStrategy.viewport && this.table['_headerRowDefs'] | ||
this.scrollStrategy.stickyChange | ||
.pipe(operators.filter(function () { return _this.isStickyEnabled(); }), operators.tap(function () { | ||
.pipe(operators.filter(function () { return _this.isStickyEnabled(); }), operators.delayWhen(function () { return !_this.stickyPositions ? rxjs.timer(0) : rxjs.of(); }), operators.tap(function () { | ||
if (!_this.stickyPositions) { | ||
_this.initStickyPositions(); | ||
} | ||
}), operators.takeWhile(this.isAlive())) | ||
}), operators.takeUntil(this.destroyed$)) | ||
.subscribe(function (stickyOffset) { | ||
@@ -446,10 +532,8 @@ _this.setSticky(stickyOffset); | ||
.dataToRender$ | ||
.pipe(operators.distinctUntilChanged(), operators.takeUntil(this.dataSourceChanges), operators.takeWhile(this.isAlive()), operators.tap(function (data) { return _this.scrollStrategy.dataLength = data.length; }), operators.switchMap(function (data) { | ||
return _this.scrollStrategy | ||
.renderedRangeStream | ||
.pipe(operators.map(function (_a) { | ||
var start = _a.start, end = _a.end; | ||
return typeof start !== 'number' || typeof end !== 'number' ? data : data.slice(start, end); | ||
})); | ||
})) | ||
.pipe(operators.distinctUntilChanged(), operators.takeUntil(this.dataSourceChanges), operators.takeUntil(this.destroyed$), operators.tap(function (data) { return _this.scrollStrategy.dataLength = data.length; }), operators.switchMap(function (data) { return _this.scrollStrategy | ||
.renderedRangeStream | ||
.pipe(operators.map(function (_a) { | ||
var start = _a.start, end = _a.end; | ||
return typeof start !== 'number' || typeof end !== 'number' ? data : data.slice(start, end); | ||
})); })) | ||
.subscribe(function (data) { | ||
@@ -506,39 +590,26 @@ _this.zone.run(function () { | ||
}; | ||
var TableItemSizeDirective_1; | ||
TableItemSizeDirective.ctorParameters = function () { return [ | ||
{ type: core.NgZone } | ||
]; }; | ||
__decorate([ | ||
core.Input('tvsItemSize') | ||
], TableItemSizeDirective.prototype, "rowHeight", void 0); | ||
__decorate([ | ||
core.Input() | ||
], TableItemSizeDirective.prototype, "headerEnabled", void 0); | ||
__decorate([ | ||
core.Input() | ||
], TableItemSizeDirective.prototype, "headerHeight", void 0); | ||
__decorate([ | ||
core.Input() | ||
], TableItemSizeDirective.prototype, "footerEnabled", void 0); | ||
__decorate([ | ||
core.Input() | ||
], TableItemSizeDirective.prototype, "footerHeight", void 0); | ||
__decorate([ | ||
core.Input() | ||
], TableItemSizeDirective.prototype, "bufferMultiplier", void 0); | ||
__decorate([ | ||
core.ContentChild(table.MatTable, { static: false }) | ||
], TableItemSizeDirective.prototype, "table", void 0); | ||
TableItemSizeDirective = TableItemSizeDirective_1 = __decorate([ | ||
core.Directive({ | ||
selector: 'cdk-virtual-scroll-viewport[tvsItemSize]', | ||
providers: [{ | ||
provide: scrolling.VIRTUAL_SCROLL_STRATEGY, | ||
useFactory: _tableVirtualScrollDirectiveStrategyFactory, | ||
deps: [core.forwardRef(function () { return TableItemSizeDirective_1; })] | ||
}] | ||
}) | ||
], TableItemSizeDirective); | ||
return TableItemSizeDirective; | ||
}()); | ||
TableItemSizeDirective.decorators = [ | ||
{ type: core.Directive, args: [{ | ||
selector: 'cdk-virtual-scroll-viewport[tvsItemSize]', | ||
providers: [{ | ||
provide: scrolling.VIRTUAL_SCROLL_STRATEGY, | ||
useFactory: _tableVirtualScrollDirectiveStrategyFactory, | ||
deps: [core.forwardRef(function () { return TableItemSizeDirective; })] | ||
}] | ||
},] } | ||
]; | ||
TableItemSizeDirective.ctorParameters = function () { return [ | ||
{ type: core.NgZone } | ||
]; }; | ||
TableItemSizeDirective.propDecorators = { | ||
rowHeight: [{ type: core.Input, args: ['tvsItemSize',] }], | ||
headerEnabled: [{ type: core.Input }], | ||
headerHeight: [{ type: core.Input }], | ||
footerEnabled: [{ type: core.Input }], | ||
footerHeight: [{ type: core.Input }], | ||
bufferMultiplier: [{ type: core.Input }], | ||
table: [{ type: core.ContentChild, args: [table.MatTable, { static: false },] }] | ||
}; | ||
@@ -548,12 +619,20 @@ var TableVirtualScrollModule = /** @class */ (function () { | ||
} | ||
TableVirtualScrollModule = __decorate([ | ||
core.NgModule({ | ||
declarations: [TableItemSizeDirective], | ||
imports: [], | ||
exports: [TableItemSizeDirective] | ||
}) | ||
], TableVirtualScrollModule); | ||
return TableVirtualScrollModule; | ||
}()); | ||
TableVirtualScrollModule.decorators = [ | ||
{ type: core.NgModule, args: [{ | ||
declarations: [TableItemSizeDirective], | ||
imports: [], | ||
exports: [TableItemSizeDirective] | ||
},] } | ||
]; | ||
/* | ||
* Public API Surface of ng-fixed-size-table-virtual-scroll | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
exports.FixedSizeTableVirtualScrollStrategy = FixedSizeTableVirtualScrollStrategy; | ||
@@ -560,0 +639,0 @@ exports.TableItemSizeDirective = TableItemSizeDirective; |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/scrolling"),require("rxjs/operators"),require("rxjs"),require("@angular/material/table")):"function"==typeof define&&define.amd?define("ng-table-virtual-scroll",["exports","@angular/core","@angular/cdk/scrolling","rxjs/operators","rxjs","@angular/material/table"],e):e((t=t||self)["ng-table-virtual-scroll"]={},t.ng.core,t.ng.cdk.scrolling,t.rxjs.operators,t.rxjs,t.ng.material.table)}(this,(function(t,e,i,r,n,o){"use strict"; | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/scrolling"),require("rxjs/operators"),require("rxjs"),require("@angular/material/table")):"function"==typeof define&&define.amd?define("ng-table-virtual-scroll",["exports","@angular/core","@angular/cdk/scrolling","rxjs/operators","rxjs","@angular/material/table"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["ng-table-virtual-scroll"]={},t.ng.core,t.ng.cdk.scrolling,t.rxjs.operators,t.rxjs,t.ng.material.table)}(this,(function(t,e,r,i,n,o){"use strict"; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function s(t,e,i,r){var n,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(o<3?n(a):o>3?n(e,i,a):n(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}function h(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e.prototype._updateChangeSubscription=function(){var t,e=this;this.initStreams();var i=this._sort,o=this._paginator,a=this._internalPageChanges,s=this._filter,c=this._renderData,l=i?n.merge(i.sortChange,i.initialized):n.of(null),u=o?n.merge(o.page,a,o.initialized):n.of(null),p=this._data,f=n.combineLatest([p,s]).pipe(r.map((function(t){var i=h(t,1)[0];return e._filterData(i)}))),d=n.combineLatest([f,l]).pipe(r.map((function(t){var i=h(t,1)[0];return e._orderData(i)}))),g=n.combineLatest([d,u]).pipe(r.map((function(t){var i=h(t,1)[0];return e._pageData(i)})));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=new n.Subscription,this._renderChangesSubscription.add(g.subscribe((function(t){return e.dataToRender$.next(t)}))),this._renderChangesSubscription.add(this.dataOfRange$.subscribe((function(t){return c.next(t)})))},e.prototype.initStreams=function(){this.streamsReady||(this.dataToRender$=new n.ReplaySubject(1),this.dataOfRange$=new n.ReplaySubject(1),this.streamsReady=!0)},e}(o.MatTableDataSource),l=function(){function t(){this.indexChange=new n.Subject,this.stickyChange=new n.Subject,this.renderedRangeStream=new n.BehaviorSubject({start:0,end:0}),this.scrolledIndexChange=this.indexChange.pipe(r.distinctUntilChanged()),this._dataLength=0}return Object.defineProperty(t.prototype,"dataLength",{get:function(){return this._dataLength},set:function(t){this._dataLength=t,this.onDataLengthChanged()},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){this.viewport=t,this.viewport.renderedRangeStream.subscribe(this.renderedRangeStream),this.onDataLengthChanged()},t.prototype.detach=function(){this.indexChange.complete(),this.stickyChange.complete(),this.renderedRangeStream.complete()},t.prototype.onContentScrolled=function(){this.updateContent()},t.prototype.onDataLengthChanged=function(){this.viewport&&this.viewport.setTotalContentSize(this.dataLength*this.rowHeight+this.headerHeight+this.footerHeight),this.updateContent()},t.prototype.onContentRendered=function(){},t.prototype.onRenderedOffsetChanged=function(){},t.prototype.scrollToIndex=function(t,e){this.viewport&&this.rowHeight&&this.viewport.scrollToOffset((t-1)*this.rowHeight+this.headerHeight)},t.prototype.setConfig=function(t){var e=t.rowHeight,i=t.headerHeight,r=t.footerHeight,n=t.bufferMultiplier;this.rowHeight===e&&this.headerHeight===i&&this.footerHeight===r&&this.bufferMultiplier===n||(this.rowHeight=e,this.headerHeight=i,this.footerHeight=r,this.bufferMultiplier=n,this.onDataLengthChanged())},t.prototype.updateContent=function(){if(this.viewport&&this.rowHeight){var t=this.viewport.measureScrollOffset(),e=Math.ceil(this.viewport.getViewportSize()/this.rowHeight),i=Math.max(t-this.headerHeight,0),r=Math.ceil(e*this.bufferMultiplier),n=Math.round(i/this.rowHeight),o=Math.max(0,n),a=Math.max(0,o-r),s=Math.min(this.dataLength,o+e+r),h=a*this.rowHeight;this.viewport.setRenderedContentOffset(h),this.viewport.setRenderedRange({start:a,end:s}),this.indexChange.next(o),this.stickyChange.next(h)}},t=s([e.Injectable()],t)}();function u(t){return t.scrollStrategy}var p=48,f=56,d=!0,g=48,y=!1,b=.7,v=function(){function t(t){this.zone=t,this.alive=!0,this.rowHeight=p,this.headerEnabled=d,this.headerHeight=f,this.footerEnabled=y,this.footerHeight=g,this.bufferMultiplier=b,this.scrollStrategy=new l,this.dataSourceChanges=new n.Subject}var a;return a=t,t.prototype.ngOnDestroy=function(){this.alive=!1,this.dataSourceChanges.complete()},t.prototype.isAlive=function(){var t=this;return function(){return t.alive}},t.prototype.isStickyEnabled=function(){return!!this.scrollStrategy.viewport&&this.table._headerRowDefs.map((function(t){return t.sticky})).reduce((function(t,e){return t&&e}),!0)},t.prototype.ngAfterContentInit=function(){var t=this,e=this.table._switchDataSource;this.table._switchDataSource=function(i){e.call(t.table,i),t.connectDataSource(i)},this.connectDataSource(this.table.dataSource),this.scrollStrategy.stickyChange.pipe(r.filter((function(){return t.isStickyEnabled()})),r.tap((function(){t.stickyPositions||t.initStickyPositions()})),r.takeWhile(this.isAlive())).subscribe((function(e){t.setSticky(e)}))},t.prototype.connectDataSource=function(t){var e=this;if(this.dataSourceChanges.next(),!(t instanceof c))throw new Error("[tvsItemSize] requires TableVirtualScrollDataSource be set as [dataSource] of [mat-table]");t.dataToRender$.pipe(r.distinctUntilChanged(),r.takeUntil(this.dataSourceChanges),r.takeWhile(this.isAlive()),r.tap((function(t){return e.scrollStrategy.dataLength=t.length})),r.switchMap((function(t){return e.scrollStrategy.renderedRangeStream.pipe(r.map((function(e){var i=e.start,r=e.end;return"number"!=typeof i||"number"!=typeof r?t:t.slice(i,r)})))}))).subscribe((function(i){e.zone.run((function(){t.dataOfRange$.next(i)}))}))},t.prototype.ngOnChanges=function(){var t={rowHeight:+this.rowHeight||p,headerHeight:this.headerEnabled?+this.headerHeight||f:0,footerHeight:this.footerEnabled?+this.footerHeight||g:0,bufferMultiplier:+this.bufferMultiplier||b};this.scrollStrategy.setConfig(t)},t.prototype.setSticky=function(t){var e=this;this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(".mat-header-row .mat-table-sticky").forEach((function(i){var r=i.parentElement,n=0;e.stickyPositions.has(r)&&(n=e.stickyPositions.get(r)),i.style.top=n-t+"px"})),this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(".mat-footer-row .mat-table-sticky").forEach((function(i){var r=i.parentElement,n=0;e.stickyPositions.has(r)&&(n=e.stickyPositions.get(r)),i.style.bottom=-n+t+"px"}))},t.prototype.initStickyPositions=function(){var t=this;this.stickyPositions=new Map,this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(".mat-header-row .mat-table-sticky").forEach((function(e){var i=e.parentElement;t.stickyPositions.has(i)||t.stickyPositions.set(i,i.offsetTop)}))},t.ctorParameters=function(){return[{type:e.NgZone}]},s([e.Input("tvsItemSize")],t.prototype,"rowHeight",void 0),s([e.Input()],t.prototype,"headerEnabled",void 0),s([e.Input()],t.prototype,"headerHeight",void 0),s([e.Input()],t.prototype,"footerEnabled",void 0),s([e.Input()],t.prototype,"footerHeight",void 0),s([e.Input()],t.prototype,"bufferMultiplier",void 0),s([e.ContentChild(o.MatTable,{static:!1})],t.prototype,"table",void 0),t=a=s([e.Directive({selector:"cdk-virtual-scroll-viewport[tvsItemSize]",providers:[{provide:i.VIRTUAL_SCROLL_STRATEGY,useFactory:u,deps:[e.forwardRef((function(){return a}))]}]})],t)}(),S=function(){function t(){}return t=s([e.NgModule({declarations:[v],imports:[],exports:[v]})],t)}();t.FixedSizeTableVirtualScrollStrategy=l,t.TableItemSizeDirective=v,t.TableVirtualScrollDataSource=c,t.TableVirtualScrollModule=S,t._tableVirtualScrollDirectiveStrategyFactory=u,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};Object.create;function s(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}Object.create;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype._updateChangeSubscription=function(){var t,e=this;this.initStreams();var r=this._sort,o=this._paginator,a=this._internalPageChanges,h=this._filter,c=this._renderData,l=r?n.merge(r.sortChange,r.initialized):n.of(null),u=o?n.merge(o.page,a,o.initialized):n.of(null),p=this._data,f=n.combineLatest([p,h]).pipe(i.map((function(t){var r=s(t,1)[0];return e._filterData(r)}))),d=n.combineLatest([f,l]).pipe(i.map((function(t){var r=s(t,1)[0];return e._orderData(r)}))),g=n.combineLatest([d,u]).pipe(i.map((function(t){var r=s(t,1)[0];return e._pageData(r)})));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=new n.Subscription,this._renderChangesSubscription.add(g.subscribe((function(t){return e.dataToRender$.next(t)}))),this._renderChangesSubscription.add(this.dataOfRange$.subscribe((function(t){return c.next(t)})))},e.prototype.initStreams=function(){this.streamsReady||(this.dataToRender$=new n.ReplaySubject(1),this.dataOfRange$=new n.ReplaySubject(1),this.streamsReady=!0)},e}(o.MatTableDataSource),c=function(){function t(){this.indexChange=new n.Subject,this.stickyChange=new n.Subject,this.renderedRangeStream=new n.BehaviorSubject({start:0,end:0}),this.scrolledIndexChange=this.indexChange.pipe(i.distinctUntilChanged()),this._dataLength=0}return Object.defineProperty(t.prototype,"dataLength",{get:function(){return this._dataLength},set:function(t){this._dataLength=t,this.onDataLengthChanged()},enumerable:!1,configurable:!0}),t.prototype.attach=function(t){this.viewport=t,this.viewport.renderedRangeStream.subscribe(this.renderedRangeStream),this.onDataLengthChanged()},t.prototype.detach=function(){this.indexChange.complete(),this.stickyChange.complete(),this.renderedRangeStream.complete()},t.prototype.onContentScrolled=function(){this.updateContent()},t.prototype.onDataLengthChanged=function(){this.viewport&&this.viewport.setTotalContentSize(this.dataLength*this.rowHeight+this.headerHeight+this.footerHeight),this.updateContent()},t.prototype.onContentRendered=function(){},t.prototype.onRenderedOffsetChanged=function(){},t.prototype.scrollToIndex=function(t,e){this.viewport&&this.rowHeight&&this.viewport.scrollToOffset((t-1)*this.rowHeight+this.headerHeight,e)},t.prototype.setConfig=function(t){var e=t.rowHeight,r=t.headerHeight,i=t.footerHeight,n=t.bufferMultiplier;this.rowHeight===e&&this.headerHeight===r&&this.footerHeight===i&&this.bufferMultiplier===n||(this.rowHeight=e,this.headerHeight=r,this.footerHeight=i,this.bufferMultiplier=n,this.onDataLengthChanged())},t.prototype.updateContent=function(){if(this.viewport&&this.rowHeight){var t=this.viewport.measureScrollOffset(),e=Math.ceil(this.viewport.getViewportSize()/this.rowHeight),r=Math.max(t-this.headerHeight,0),i=Math.ceil(e*this.bufferMultiplier),n=Math.round(r/this.rowHeight),o=Math.max(0,n),a=Math.max(0,o-i),s=Math.min(this.dataLength,o+e+i),h=a*this.rowHeight;this.viewport.setRenderedContentOffset(h),this.viewport.setRenderedRange({start:a,end:s}),this.indexChange.next(o),this.stickyChange.next(h)}},t}();function l(t){return t.scrollStrategy}c.decorators=[{type:e.Injectable}];var u=".mat-header-row .mat-table-sticky",p=48,f=56,d=!0,g=48,y=!1,b=.7,S=function(){function t(t){this.zone=t,this.destroyed$=new n.Subject,this.rowHeight=p,this.headerEnabled=d,this.headerHeight=f,this.footerEnabled=y,this.footerHeight=g,this.bufferMultiplier=b,this.scrollStrategy=new c,this.dataSourceChanges=new n.Subject}return t.prototype.ngOnDestroy=function(){this.destroyed$.next(),this.destroyed$.complete(),this.dataSourceChanges.complete()},t.prototype.isStickyEnabled=function(){return!!this.scrollStrategy.viewport&&this.table._headerRowDefs.map((function(t){return t.sticky})).reduce((function(t,e){return t&&e}),!0)},t.prototype.ngAfterContentInit=function(){var t=this,e=this.table._switchDataSource;this.table._switchDataSource=function(r){e.call(t.table,r),t.connectDataSource(r)},this.connectDataSource(this.table.dataSource),this.scrollStrategy.stickyChange.pipe(i.filter((function(){return t.isStickyEnabled()})),i.delayWhen((function(){return t.stickyPositions?n.of():n.timer(0)})),i.tap((function(){t.stickyPositions||t.initStickyPositions()})),i.takeUntil(this.destroyed$)).subscribe((function(e){t.setSticky(e)}))},t.prototype.connectDataSource=function(t){var e=this;if(this.dataSourceChanges.next(),!(t instanceof h))throw new Error("[tvsItemSize] requires TableVirtualScrollDataSource be set as [dataSource] of [mat-table]");t.dataToRender$.pipe(i.distinctUntilChanged(),i.takeUntil(this.dataSourceChanges),i.takeUntil(this.destroyed$),i.tap((function(t){return e.scrollStrategy.dataLength=t.length})),i.switchMap((function(t){return e.scrollStrategy.renderedRangeStream.pipe(i.map((function(e){var r=e.start,i=e.end;return"number"!=typeof r||"number"!=typeof i?t:t.slice(r,i)})))}))).subscribe((function(r){e.zone.run((function(){t.dataOfRange$.next(r)}))}))},t.prototype.ngOnChanges=function(){var t={rowHeight:+this.rowHeight||p,headerHeight:this.headerEnabled?+this.headerHeight||f:0,footerHeight:this.footerEnabled?+this.footerHeight||g:0,bufferMultiplier:+this.bufferMultiplier||b};this.scrollStrategy.setConfig(t)},t.prototype.setSticky=function(t){var e=this;this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(u).forEach((function(r){var i=r.parentElement,n=0;e.stickyPositions.has(i)&&(n=e.stickyPositions.get(i)),r.style.top=n-t+"px"})),this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(".mat-footer-row .mat-table-sticky").forEach((function(r){var i=r.parentElement,n=0;e.stickyPositions.has(i)&&(n=e.stickyPositions.get(i)),r.style.bottom=-n+t+"px"}))},t.prototype.initStickyPositions=function(){var t=this;this.stickyPositions=new Map,this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(u).forEach((function(e){var r=e.parentElement;t.stickyPositions.has(r)||t.stickyPositions.set(r,r.offsetTop)}))},t}();S.decorators=[{type:e.Directive,args:[{selector:"cdk-virtual-scroll-viewport[tvsItemSize]",providers:[{provide:r.VIRTUAL_SCROLL_STRATEGY,useFactory:l,deps:[e.forwardRef((function(){return S}))]}]}]}],S.ctorParameters=function(){return[{type:e.NgZone}]},S.propDecorators={rowHeight:[{type:e.Input,args:["tvsItemSize"]}],headerEnabled:[{type:e.Input}],headerHeight:[{type:e.Input}],footerEnabled:[{type:e.Input}],footerHeight:[{type:e.Input}],bufferMultiplier:[{type:e.Input}],table:[{type:e.ContentChild,args:[o.MatTable,{static:!1}]}]};var m=function(){};m.decorators=[{type:e.NgModule,args:[{declarations:[S],imports:[],exports:[S]}]}],t.FixedSizeTableVirtualScrollStrategy=c,t.TableItemSizeDirective=S,t.TableVirtualScrollDataSource=h,t.TableVirtualScrollModule=m,t._tableVirtualScrollDirectiveStrategyFactory=l,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ng-table-virtual-scroll.umd.min.js.map |
@@ -1,6 +0,5 @@ | ||
import { __decorate } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
import { distinctUntilChanged } from 'rxjs/operators'; | ||
import { BehaviorSubject, Subject } from 'rxjs'; | ||
let FixedSizeTableVirtualScrollStrategy = class FixedSizeTableVirtualScrollStrategy { | ||
export class FixedSizeTableVirtualScrollStrategy { | ||
constructor() { | ||
@@ -49,3 +48,3 @@ this.indexChange = new Subject(); | ||
} | ||
this.viewport.scrollToOffset((index - 1) * this.rowHeight + this.headerHeight); | ||
this.viewport.scrollToOffset((index - 1) * this.rowHeight + this.headerHeight, behavior); | ||
} | ||
@@ -84,7 +83,6 @@ setConfig(configs) { | ||
} | ||
}; | ||
FixedSizeTableVirtualScrollStrategy = __decorate([ | ||
Injectable() | ||
], FixedSizeTableVirtualScrollStrategy); | ||
export { FixedSizeTableVirtualScrollStrategy }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4ZWQtc2l6ZS10YWJsZS12aXJ0dWFsLXNjcm9sbC1zdHJhdGVneS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXRhYmxlLXZpcnR1YWwtc2Nyb2xsLyIsInNvdXJjZXMiOlsibGliL2ZpeGVkLXNpemUtdGFibGUtdmlydHVhbC1zY3JvbGwtc3RyYXRlZ3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFZaEQsSUFBYSxtQ0FBbUMsR0FBaEQsTUFBYSxtQ0FBbUM7SUFBaEQ7UUFLVSxnQkFBVyxHQUFHLElBQUksT0FBTyxFQUFVLENBQUM7UUFDckMsaUJBQVksR0FBRyxJQUFJLE9BQU8sRUFBVSxDQUFDO1FBSXJDLHdCQUFtQixHQUFHLElBQUksZUFBZSxDQUFZLEVBQUMsS0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cblxuICAgIGNvbnN0IHNraXAgPSBNYXRoLnJvdW5kKG9mZnNldCAvIHRoaXMucm93SGVpZ2h0KTtcbiAgICBjb25zdCBpbmRleCA9IE1hdGgubWF4KDAsIHNraXApO1xuICAgIGNvbnN0IHN0YXJ0ID0gTWF0aC5tYXgoMCwgaW5kZXggLSBidWZmZXIpO1xuICAgIGNvbnN0IGVuZCA9IE1hdGgubWluKHRoaXMuZGF0YUxlbmd0aCwgaW5kZXggKyBhbW91bnQgKyBidWZmZXIpO1xuICAgIGNvbnN0IHJlbmRlcmVkT2Zmc2V0ID0gc3RhcnQgKiB0aGlzLnJvd0hlaWdodDtcbiAgICB0aGlzLnZpZXdwb3J0LnNldFJlbmRlcmVkQ29udGVudE9mZnNldChyZW5kZXJlZE9mZnNldCk7XG4gICAgdGhpcy52aWV3cG9ydC5zZXRSZW5kZXJlZFJhbmdlKHtzdGFydCwgZW5kfSk7XG4gICAgdGhpcy5pbmRleENoYW5nZS5uZXh0KGluZGV4KTtcbiAgICB0aGlzLnN0aWNreUNoYW5nZS5uZXh0KHJlbmRlcmVkT2Zmc2V0KTtcbiAgfVxufVxuIl19 |
@@ -39,2 +39,2 @@ import { combineLatest, merge, of, ReplaySubject, Subscription } from 'rxjs'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtZGF0YS1zb3VyY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy10YWJsZS12aXJ0dWFsLXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi90YWJsZS1kYXRhLXNvdXJjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQW1CLGFBQWEsRUFBRSxLQUFLLEVBQWMsRUFBRSxFQUFFLGFBQWEsRUFBVyxZQUFZLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDbkgsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUF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kYXRhKSkpO1xuXG4gICAgdGhpcy5fcmVuZGVyQ2hhbmdlc1N1YnNjcmlwdGlvbj8udW5zdWJzY3JpYmUoKTtcbiAgICB0aGlzLl9yZW5kZXJDaGFuZ2VzU3Vic2NyaXB0aW9uID0gbmV3IFN1YnNjcmlwdGlvbigpO1xuICAgIHRoaXMuX3JlbmRlckNoYW5nZXNTdWJzY3JpcHRpb24uYWRkKFxuICAgICAgcGFnaW5hdGVkRGF0YS5zdWJzY3JpYmUoZGF0YSA9PiB0aGlzLmRhdGFUb1JlbmRlciQubmV4dChkYXRhKSlcbiAgICApO1xuICAgIHRoaXMuX3JlbmRlckNoYW5nZXNTdWJzY3JpcHRpb24uYWRkKFxuICAgICAgdGhpcy5kYXRhT2ZSYW5nZSQuc3Vic2NyaWJlKGRhdGEgPT4gX3JlbmRlckRhdGEubmV4dChkYXRhKSlcbiAgICApO1xuICB9XG5cbiAgcHJpdmF0ZSBpbml0U3RyZWFtcygpIHtcbiAgICBpZiAoIXRoaXMuc3RyZWFtc1JlYWR5KSB7XG4gICAgICB0aGlzLmRhdGFUb1JlbmRlciQgPSBuZXcgUmVwbGF5U3ViamVjdDxUW10+KDEpO1xuICAgICAgdGhpcy5kYXRhT2ZSYW5nZSQgPSBuZXcgUmVwbGF5U3ViamVjdDxUW10+KDEpO1xuICAgICAgdGhpcy5zdHJlYW1zUmVhZHkgPSB0cnVlO1xuICAgIH1cbiAgfVxufVxuIl19 |
@@ -1,10 +0,8 @@ | ||
var TableItemSizeDirective_1; | ||
import { __decorate } from "tslib"; | ||
import { AfterContentInit, ContentChild, Directive, forwardRef, Input, NgZone, OnChanges, OnDestroy } from '@angular/core'; | ||
import { ContentChild, Directive, forwardRef, Input, NgZone } from '@angular/core'; | ||
import { VIRTUAL_SCROLL_STRATEGY } from '@angular/cdk/scrolling'; | ||
import { distinctUntilChanged, filter, map, switchMap, takeUntil, takeWhile, tap } from 'rxjs/operators'; | ||
import { delayWhen, distinctUntilChanged, filter, map, switchMap, takeUntil, tap } from 'rxjs/operators'; | ||
import { TableVirtualScrollDataSource } from './table-data-source'; | ||
import { MatTable } from '@angular/material/table'; | ||
import { FixedSizeTableVirtualScrollStrategy } from './fixed-size-table-virtual-scroll-strategy'; | ||
import { Subject } from 'rxjs'; | ||
import { of, Subject, timer } from 'rxjs'; | ||
export function _tableVirtualScrollDirectiveStrategyFactory(tableDir) { | ||
@@ -23,6 +21,6 @@ return tableDir.scrollStrategy; | ||
}; | ||
let TableItemSizeDirective = TableItemSizeDirective_1 = class TableItemSizeDirective { | ||
export class TableItemSizeDirective { | ||
constructor(zone) { | ||
this.zone = zone; | ||
this.alive = true; | ||
this.destroyed$ = new Subject(); | ||
// tslint:disable-next-line:no-input-rename | ||
@@ -39,8 +37,6 @@ this.rowHeight = defaults.rowHeight; | ||
ngOnDestroy() { | ||
this.alive = false; | ||
this.destroyed$.next(); | ||
this.destroyed$.complete(); | ||
this.dataSourceChanges.complete(); | ||
} | ||
isAlive() { | ||
return () => this.alive; | ||
} | ||
isStickyEnabled() { | ||
@@ -59,7 +55,7 @@ return !!this.scrollStrategy.viewport && this.table['_headerRowDefs'] | ||
this.scrollStrategy.stickyChange | ||
.pipe(filter(() => this.isStickyEnabled()), tap(() => { | ||
.pipe(filter(() => this.isStickyEnabled()), delayWhen(() => !this.stickyPositions ? timer(0) : of()), tap(() => { | ||
if (!this.stickyPositions) { | ||
this.initStickyPositions(); | ||
} | ||
}), takeWhile(this.isAlive())) | ||
}), takeUntil(this.destroyed$)) | ||
.subscribe((stickyOffset) => { | ||
@@ -74,3 +70,3 @@ this.setSticky(stickyOffset); | ||
.dataToRender$ | ||
.pipe(distinctUntilChanged(), takeUntil(this.dataSourceChanges), takeWhile(this.isAlive()), tap(data => this.scrollStrategy.dataLength = data.length), switchMap(data => this.scrollStrategy | ||
.pipe(distinctUntilChanged(), takeUntil(this.dataSourceChanges), takeUntil(this.destroyed$), tap(data => this.scrollStrategy.dataLength = data.length), switchMap(data => this.scrollStrategy | ||
.renderedRangeStream | ||
@@ -127,38 +123,25 @@ .pipe(map(({ start, end }) => typeof start !== 'number' || typeof end !== 'number' ? data : data.slice(start, end))))) | ||
} | ||
}; | ||
} | ||
TableItemSizeDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: 'cdk-virtual-scroll-viewport[tvsItemSize]', | ||
providers: [{ | ||
provide: VIRTUAL_SCROLL_STRATEGY, | ||
useFactory: _tableVirtualScrollDirectiveStrategyFactory, | ||
deps: [forwardRef(() => TableItemSizeDirective)] | ||
}] | ||
},] } | ||
]; | ||
TableItemSizeDirective.ctorParameters = () => [ | ||
{ type: NgZone } | ||
]; | ||
__decorate([ | ||
Input('tvsItemSize') | ||
], TableItemSizeDirective.prototype, "rowHeight", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "headerEnabled", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "headerHeight", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "footerEnabled", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "footerHeight", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "bufferMultiplier", void 0); | ||
__decorate([ | ||
ContentChild(MatTable, { static: false }) | ||
], TableItemSizeDirective.prototype, "table", void 0); | ||
TableItemSizeDirective = TableItemSizeDirective_1 = __decorate([ | ||
Directive({ | ||
selector: 'cdk-virtual-scroll-viewport[tvsItemSize]', | ||
providers: [{ | ||
provide: VIRTUAL_SCROLL_STRATEGY, | ||
useFactory: _tableVirtualScrollDirectiveStrategyFactory, | ||
deps: [forwardRef(() => TableItemSizeDirective_1)] | ||
}] | ||
}) | ||
], TableItemSizeDirective); | ||
export { TableItemSizeDirective }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtaXRlbS1zaXplLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJu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dGVneS52aWV3cG9ydC5lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQucXVlcnlTZWxlY3RvckFsbChzdGlja3lGb290ZXJTZWxlY3RvcilcbiAgICAgIC5mb3JFYWNoKChlbDogSFRNTEVsZW1lbnQpID0+IHtcbiAgICAgICAgY29uc3QgcGFyZW50ID0gZWwucGFyZW50RWxlbWVudDtcbiAgICAgICAgbGV0IGJhc2VPZmZzZXQgPSAwO1xuICAgICAgICBpZiAodGhpcy5zdGlja3lQb3NpdGlvbnMuaGFzKHBhcmVudCkpIHtcbiAgICAgICAgICBiYXNlT2Zmc2V0ID0gdGhpcy5zdGlja3lQb3NpdGlvbnMuZ2V0KHBhcmVudCk7XG4gICAgICAgIH1cbiAgICAgICAgZWwuc3R5bGUuYm90dG9tID0gYCR7LWJhc2VPZmZzZXQgKyBvZmZzZXR9cHhgO1xuICAgICAgfSk7XG4gIH1cblxuICBwcml2YXRlIGluaXRTdGlja3lQb3NpdGlvbnMoKSB7XG4gICAgdGhpcy5zdGlja3lQb3NpdGlvbnMgPSBuZXcgTWFwPEhUTUxFbGVtZW50LCBudW1iZXI+KCk7XG4gICAgdGhpcy5zY3JvbGxTdHJhdGVneS52aWV3cG9ydC5lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQucXVlcnlTZWxlY3RvckFsbChzdGlja3lIZWFkZXJTZWxlY3RvcilcbiAgICAgIC5mb3JFYWNoKGVsID0+IHtcbiAgICAgICAgY29uc3QgcGFyZW50ID0gZWwucGFyZW50RWxlbWVudDtcbiAgICAgICAgaWYgKCF0aGlzLnN0aWNreVBvc2l0aW9ucy5oYXMocGFyZW50KSkge1xuICAgICAgICAgIHRoaXMuc3RpY2t5UG9zaXRpb25zLnNldChwYXJlbnQsIHBhcmVudC5vZmZzZXRUb3ApO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgfVxufVxuIl19 | ||
TableItemSizeDirective.propDecorators = { | ||
rowHeight: [{ type: Input, args: ['tvsItemSize',] }], | ||
headerEnabled: [{ type: Input }], | ||
headerHeight: [{ type: Input }], | ||
footerEnabled: [{ type: Input }], | ||
footerHeight: [{ type: Input }], | ||
bufferMultiplier: [{ type: Input }], | ||
table: [{ type: ContentChild, args: [MatTable, { static: false },] }] | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtaXRlbS1zaXplLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRhYmxlLXZpcnR1YWwtc2Nyb2xsL3NyYy9saWIvdGFibGUtaXRlbS1zaXplLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsWUFBWSxFQUNaLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBSyxFQUNMLE1BQU0sRUFHUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNqRSxPQUFPLEVBQUUsU0FBUyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN6RyxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNuRSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDbkQsT0FBTyxFQUFFLG1DQUFtQyxFQUFFLE1BQU0sNENBQTRDLENBQUM7QUFFakcsT0FBTyxFQUFFLEVBQUUsRUFBRSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRTFDLE1BQU0sVUFBVSwyQ0FBMkMsQ0FBQyxRQUFnQztJQUMxRixPQUFPLFFBQ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ICAgICAgdGFrZVVudGlsKHRoaXMuZGVzdHJveWVkJClcbiAgICAgIClcbiAgICAgIC5zdWJzY3JpYmUoKHN0aWNreU9mZnNldCkgPT4ge1xuICAgICAgICB0aGlzLnNldFN0aWNreShzdGlja3lPZmZzZXQpO1xuICAgICAgfSk7XG4gIH1cblxuICBjb25uZWN0RGF0YVNvdXJjZShkYXRhU291cmNlOiBhbnkpIHtcbiAgICB0aGlzLmRhdGFTb3VyY2VDaGFuZ2VzLm5leHQoKTtcbiAgICBpZiAoZGF0YVNvdXJjZSBpbnN0YW5jZW9mIFRhYmxlVmlydHVhbFNjcm9sbERhdGFTb3VyY2UpIHtcbiAgICAgIGRhdGFTb3VyY2VcbiAgICAgICAgLmRhdGFUb1JlbmRlciRcbiAgICAgICAgLnBpcGUoXG4gICAgICAgICAgZGlzdGluY3RVbnRpbENoYW5nZWQoKSxcbiAgICAgICAgICB0YWtlVW50aWwodGhpcy5kYXRhU291cmNlQ2hhbmdlcyksXG4gICAgICAgICAgdGFrZVVudGlsKHRoaXMuZGVzdHJveWVkJCksXG4gICAgICAgICAgdGFwKGRhdGEgPT4gdGhpcy5zY3JvbGxTdHJhdGVneS5kYXRhTGVuZ3RoID0gZGF0YS5sZW5ndGgpLFxuICAgICAgICAgIHN3aXRjaE1hcChkYXRhID0+XG4gICAgICAgICAgICB0aGlzLnNjcm9sbFN0cmF0ZWd5XG4gICAgICAgICAgICAgIC5yZW5kZXJlZFJhbmdlU3RyZWFtXG4gICAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgIG1hcCgoe1xuICAgICAgICAgICAgICAgICAgICAgICBzdGFydCxcbiAgICAgICAgICAgICAgICAgICAgICAgZW5kXG4gICAgICAgICAgICAgICAgICAgICB9KSA9PiB0eXBlb2Ygc3RhcnQgIT09ICdudW1iZXInIHx8IHR5cGVvZiBlbmQgIT09ICdudW1iZXInID8gZGF0YSA6IGRhdGEuc2xpY2Uoc3RhcnQsIGVuZCkpXG4gICAgICAgIC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udW1iZXI+KCk7XG4gICAgdGhpcy5zY3JvbGxTdHJhdGVneS52aWV3cG9ydC5lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQucXVlcnlTZWxlY3RvckFsbChzdGlja3lIZWFkZXJTZWxlY3RvcilcbiAgICAgIC5mb3JFYWNoKGVsID0+IHtcbiAgICAgICAgY29uc3QgcGFyZW50ID0gZWwucGFyZW50RWxlbWVudDtcbiAgICAgICAgaWYgKCF0aGlzLnN0aWNreVBvc2l0aW9ucy5oYXMocGFyZW50KSkge1xuICAgICAgICAgIHRoaXMuc3RpY2t5UG9zaXRpb25zLnNldChwYXJlbnQsIHBhcmVudC5vZmZzZXRUb3ApO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgfVxufVxuIl19 |
@@ -1,14 +0,12 @@ | ||
import { __decorate } from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
import { TableItemSizeDirective } from './table-item-size.directive'; | ||
let TableVirtualScrollModule = class TableVirtualScrollModule { | ||
}; | ||
TableVirtualScrollModule = __decorate([ | ||
NgModule({ | ||
declarations: [TableItemSizeDirective], | ||
imports: [], | ||
exports: [TableItemSizeDirective] | ||
}) | ||
], TableVirtualScrollModule); | ||
export { TableVirtualScrollModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtdmlydHVhbC1zY3JvbGwubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmctdGFibGUtdmlydHVhbC1zY3JvbGwvIiwic291cmNlcyI6WyJsaWIvdGFibGUtdmlydHVhbC1zY3JvbGwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBUXJFLElBQWEsd0JBQXdCLEdBQXJDLE1BQWEsd0JBQXdCO0NBQ3BDLENBQUE7QUFEWSx3QkFBd0I7SUFMcEMsUUFBUSxDQUFDO1FBQ1IsWUFBWSxFQUFFLENBQUMsc0JBQXNCLENBQUM7UUFDdEMsT0FBTyxFQUFFLEVBQUU7UUFDWCxPQUFPLEVBQUUsQ0FBQyxzQkFBc0IsQ0FBQztLQUNsQyxDQUFDO0dBQ1csd0JBQXdCLENBQ3BDO1NBRFksd0JBQXdCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFRhYmxlSXRlbVNpemVEaXJlY3RpdmUgfSBmcm9tICcuL3RhYmxlLWl0ZW0tc2l6ZS5kaXJlY3RpdmUnO1xuXG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1RhYmxlSXRlbVNpemVEaXJlY3RpdmVdLFxuICBpbXBvcnRzOiBbXSxcbiAgZXhwb3J0czogW1RhYmxlSXRlbVNpemVEaXJlY3RpdmVdXG59KVxuZXhwb3J0IGNsYXNzIFRhYmxlVmlydHVhbFNjcm9sbE1vZHVsZSB7XG59XG4iXX0= | ||
export class TableVirtualScrollModule { | ||
} | ||
TableVirtualScrollModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [TableItemSizeDirective], | ||
imports: [], | ||
exports: [TableItemSizeDirective] | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtdmlydHVhbC1zY3JvbGwubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctdGFibGUtdmlydHVhbC1zY3JvbGwvc3JjL2xpYi90YWJsZS12aXJ0dWFsLXNjcm9sbC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUF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lxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGFibGUtdmlydHVhbC1zY3JvbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uZy10YWJsZS12aXJ0dWFsLXNjcm9sbC9zcmMvbmctdGFibGUtdmlydHVhbC1zY3JvbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== |
@@ -8,2 +8,2 @@ /* | ||
export * from './lib/table-data-source'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXRhYmxlLXZpcnR1YWwtc2Nyb2xsLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLGdEQUFnRCxDQUFDO0FBQy9ELGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5nLWZpeGVkLXNpemUtdGFibGUtdmlydHVhbC1zY3JvbGxcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi90YWJsZS12aXJ0dWFsLXNjcm9sbC5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdGFibGUtaXRlbS1zaXplLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9maXhlZC1zaXplLXRhYmxlLXZpcnR1YWwtc2Nyb2xsLXN0cmF0ZWd5JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3RhYmxlLWRhdGEtc291cmNlJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25nLXRhYmxlLXZpcnR1YWwtc2Nyb2xsL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsZ0RBQWdELENBQUM7QUFDL0QsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgbmctZml4ZWQtc2l6ZS10YWJsZS12aXJ0dWFsLXNjcm9sbFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3RhYmxlLXZpcnR1YWwtc2Nyb2xsLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90YWJsZS1pdGVtLXNpemUuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ZpeGVkLXNpemUtdGFibGUtdmlydHVhbC1zY3JvbGwtc3RyYXRlZ3knO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdGFibGUtZGF0YS1zb3VyY2UnO1xuIl19 |
@@ -1,6 +0,5 @@ | ||
import { __decorate } from 'tslib'; | ||
import { Injectable, NgZone, Input, ContentChild, Directive, forwardRef, NgModule } from '@angular/core'; | ||
import { Injectable, Directive, forwardRef, NgZone, Input, ContentChild, NgModule } from '@angular/core'; | ||
import { VIRTUAL_SCROLL_STRATEGY } from '@angular/cdk/scrolling'; | ||
import { map, distinctUntilChanged, filter, tap, takeWhile, takeUntil, switchMap } from 'rxjs/operators'; | ||
import { merge, of, combineLatest, Subscription, ReplaySubject, Subject, BehaviorSubject } from 'rxjs'; | ||
import { map, distinctUntilChanged, filter, delayWhen, tap, takeUntil, switchMap } from 'rxjs/operators'; | ||
import { merge, of, combineLatest, Subscription, ReplaySubject, Subject, BehaviorSubject, timer } from 'rxjs'; | ||
import { MatTableDataSource, MatTable } from '@angular/material/table'; | ||
@@ -44,3 +43,3 @@ | ||
let FixedSizeTableVirtualScrollStrategy = class FixedSizeTableVirtualScrollStrategy { | ||
class FixedSizeTableVirtualScrollStrategy { | ||
constructor() { | ||
@@ -89,3 +88,3 @@ this.indexChange = new Subject(); | ||
} | ||
this.viewport.scrollToOffset((index - 1) * this.rowHeight + this.headerHeight); | ||
this.viewport.scrollToOffset((index - 1) * this.rowHeight + this.headerHeight, behavior); | ||
} | ||
@@ -124,8 +123,7 @@ setConfig(configs) { | ||
} | ||
}; | ||
FixedSizeTableVirtualScrollStrategy = __decorate([ | ||
Injectable() | ||
], FixedSizeTableVirtualScrollStrategy); | ||
} | ||
FixedSizeTableVirtualScrollStrategy.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
var TableItemSizeDirective_1; | ||
function _tableVirtualScrollDirectiveStrategyFactory(tableDir) { | ||
@@ -144,6 +142,6 @@ return tableDir.scrollStrategy; | ||
}; | ||
let TableItemSizeDirective = TableItemSizeDirective_1 = class TableItemSizeDirective { | ||
class TableItemSizeDirective { | ||
constructor(zone) { | ||
this.zone = zone; | ||
this.alive = true; | ||
this.destroyed$ = new Subject(); | ||
// tslint:disable-next-line:no-input-rename | ||
@@ -160,8 +158,6 @@ this.rowHeight = defaults.rowHeight; | ||
ngOnDestroy() { | ||
this.alive = false; | ||
this.destroyed$.next(); | ||
this.destroyed$.complete(); | ||
this.dataSourceChanges.complete(); | ||
} | ||
isAlive() { | ||
return () => this.alive; | ||
} | ||
isStickyEnabled() { | ||
@@ -180,7 +176,7 @@ return !!this.scrollStrategy.viewport && this.table['_headerRowDefs'] | ||
this.scrollStrategy.stickyChange | ||
.pipe(filter(() => this.isStickyEnabled()), tap(() => { | ||
.pipe(filter(() => this.isStickyEnabled()), delayWhen(() => !this.stickyPositions ? timer(0) : of()), tap(() => { | ||
if (!this.stickyPositions) { | ||
this.initStickyPositions(); | ||
} | ||
}), takeWhile(this.isAlive())) | ||
}), takeUntil(this.destroyed$)) | ||
.subscribe((stickyOffset) => { | ||
@@ -195,3 +191,3 @@ this.setSticky(stickyOffset); | ||
.dataToRender$ | ||
.pipe(distinctUntilChanged(), takeUntil(this.dataSourceChanges), takeWhile(this.isAlive()), tap(data => this.scrollStrategy.dataLength = data.length), switchMap(data => this.scrollStrategy | ||
.pipe(distinctUntilChanged(), takeUntil(this.dataSourceChanges), takeUntil(this.destroyed$), tap(data => this.scrollStrategy.dataLength = data.length), switchMap(data => this.scrollStrategy | ||
.renderedRangeStream | ||
@@ -248,48 +244,36 @@ .pipe(map(({ start, end }) => typeof start !== 'number' || typeof end !== 'number' ? data : data.slice(start, end))))) | ||
} | ||
}; | ||
} | ||
TableItemSizeDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: 'cdk-virtual-scroll-viewport[tvsItemSize]', | ||
providers: [{ | ||
provide: VIRTUAL_SCROLL_STRATEGY, | ||
useFactory: _tableVirtualScrollDirectiveStrategyFactory, | ||
deps: [forwardRef(() => TableItemSizeDirective)] | ||
}] | ||
},] } | ||
]; | ||
TableItemSizeDirective.ctorParameters = () => [ | ||
{ type: NgZone } | ||
]; | ||
__decorate([ | ||
Input('tvsItemSize') | ||
], TableItemSizeDirective.prototype, "rowHeight", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "headerEnabled", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "headerHeight", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "footerEnabled", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "footerHeight", void 0); | ||
__decorate([ | ||
Input() | ||
], TableItemSizeDirective.prototype, "bufferMultiplier", void 0); | ||
__decorate([ | ||
ContentChild(MatTable, { static: false }) | ||
], TableItemSizeDirective.prototype, "table", void 0); | ||
TableItemSizeDirective = TableItemSizeDirective_1 = __decorate([ | ||
Directive({ | ||
selector: 'cdk-virtual-scroll-viewport[tvsItemSize]', | ||
providers: [{ | ||
provide: VIRTUAL_SCROLL_STRATEGY, | ||
useFactory: _tableVirtualScrollDirectiveStrategyFactory, | ||
deps: [forwardRef(() => TableItemSizeDirective_1)] | ||
}] | ||
}) | ||
], TableItemSizeDirective); | ||
let TableVirtualScrollModule = class TableVirtualScrollModule { | ||
TableItemSizeDirective.propDecorators = { | ||
rowHeight: [{ type: Input, args: ['tvsItemSize',] }], | ||
headerEnabled: [{ type: Input }], | ||
headerHeight: [{ type: Input }], | ||
footerEnabled: [{ type: Input }], | ||
footerHeight: [{ type: Input }], | ||
bufferMultiplier: [{ type: Input }], | ||
table: [{ type: ContentChild, args: [MatTable, { static: false },] }] | ||
}; | ||
TableVirtualScrollModule = __decorate([ | ||
NgModule({ | ||
declarations: [TableItemSizeDirective], | ||
imports: [], | ||
exports: [TableItemSizeDirective] | ||
}) | ||
], TableVirtualScrollModule); | ||
class TableVirtualScrollModule { | ||
} | ||
TableVirtualScrollModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [TableItemSizeDirective], | ||
imports: [], | ||
exports: [TableItemSizeDirective] | ||
},] } | ||
]; | ||
/* | ||
@@ -296,0 +280,0 @@ * Public API Surface of ng-fixed-size-table-virtual-scroll |
@@ -8,9 +8,9 @@ import { AfterContentInit, NgZone, OnChanges, OnDestroy } from '@angular/core'; | ||
private zone; | ||
private alive; | ||
rowHeight: number; | ||
private destroyed$; | ||
rowHeight: string | number; | ||
headerEnabled: boolean; | ||
headerHeight: number; | ||
headerHeight: string | number; | ||
footerEnabled: boolean; | ||
footerHeight: number; | ||
bufferMultiplier: number; | ||
footerHeight: string | number; | ||
bufferMultiplier: string | number; | ||
table: MatTable<any>; | ||
@@ -22,3 +22,2 @@ scrollStrategy: FixedSizeTableVirtualScrollStrategy; | ||
ngOnDestroy(): void; | ||
private isAlive; | ||
private isStickyEnabled; | ||
@@ -28,4 +27,4 @@ ngAfterContentInit(): void; | ||
ngOnChanges(): void; | ||
setSticky(offset: any): void; | ||
setSticky(offset: number): void; | ||
private initStickyPositions; | ||
} |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"TableVirtualScrollModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TableItemSizeDirective"}],"imports":[],"exports":[{"__symbolic":"reference","name":"TableItemSizeDirective"}]}]}],"members":{}},"_tableVirtualScrollDirectiveStrategyFactory":{"__symbolic":"function","parameters":["tableDir"],"value":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"tableDir"},"member":"scrollStrategy"}},"TableItemSizeDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":25,"character":1},"arguments":[{"selector":"cdk-virtual-scroll-viewport[tvsItemSize]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"VIRTUAL_SCROLL_STRATEGY","line":28,"character":13},"useFactory":{"__symbolic":"reference","name":"_tableVirtualScrollDirectiveStrategyFactory"},"deps":[{"__symbolic":"reference","name":"TableItemSizeDirective"}]}]}]}],"members":{"rowHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3},"arguments":["tvsItemSize"]}]}],"headerEnabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"headerHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"footerEnabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"footerHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"bufferMultiplier":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"table":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":55,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/table","name":"MatTable","line":55,"character":16},{"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":64,"character":28}]}],"ngOnDestroy":[{"__symbolic":"method"}],"isAlive":[{"__symbolic":"method"}],"isStickyEnabled":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"connectDataSource":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"setSticky":[{"__symbolic":"method"}],"initStickyPositions":[{"__symbolic":"method"}]}},"TSVStrategyConfigs":{"__symbolic":"interface"},"FixedSizeTableVirtualScrollStrategy":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":13,"character":1}}],"members":{"attach":[{"__symbolic":"method"}],"detach":[{"__symbolic":"method"}],"onContentScrolled":[{"__symbolic":"method"}],"onDataLengthChanged":[{"__symbolic":"method"}],"onContentRendered":[{"__symbolic":"method"}],"onRenderedOffsetChanged":[{"__symbolic":"method"}],"scrollToIndex":[{"__symbolic":"method"}],"setConfig":[{"__symbolic":"method"}],"updateContent":[{"__symbolic":"method"}]}},"TableVirtualScrollDataSource":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"@angular/material/table","name":"MatTableDataSource","line":6,"character":53},"members":{"_updateChangeSubscription":[{"__symbolic":"method"}],"initStreams":[{"__symbolic":"method"}]}}},"origins":{"TableVirtualScrollModule":"./lib/table-virtual-scroll.module","_tableVirtualScrollDirectiveStrategyFactory":"./lib/table-item-size.directive","TableItemSizeDirective":"./lib/table-item-size.directive","TSVStrategyConfigs":"./lib/fixed-size-table-virtual-scroll-strategy","FixedSizeTableVirtualScrollStrategy":"./lib/fixed-size-table-virtual-scroll-strategy","TableVirtualScrollDataSource":"./lib/table-data-source"},"importAs":"ng-table-virtual-scroll"} | ||
{"__symbolic":"module","version":4,"metadata":{"TableVirtualScrollModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TableItemSizeDirective"}],"imports":[],"exports":[{"__symbolic":"reference","name":"TableItemSizeDirective"}]}]}],"members":{}},"_tableVirtualScrollDirectiveStrategyFactory":{"__symbolic":"function","parameters":["tableDir"],"value":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"tableDir"},"member":"scrollStrategy"}},"TableItemSizeDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":34,"character":1},"arguments":[{"selector":"cdk-virtual-scroll-viewport[tvsItemSize]","providers":[{"provide":{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"VIRTUAL_SCROLL_STRATEGY","line":37,"character":13},"useFactory":{"__symbolic":"reference","name":"_tableVirtualScrollDirectiveStrategyFactory"},"deps":[{"__symbolic":"reference","name":"TableItemSizeDirective"}]}]}]}],"members":{"rowHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3},"arguments":["tvsItemSize"]}]}],"headerEnabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"headerHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"footerEnabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"footerHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"bufferMultiplier":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"table":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":64,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/table","name":"MatTable","line":64,"character":16},{"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":73,"character":28}]}],"ngOnDestroy":[{"__symbolic":"method"}],"isStickyEnabled":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"connectDataSource":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"setSticky":[{"__symbolic":"method"}],"initStickyPositions":[{"__symbolic":"method"}]}},"TSVStrategyConfigs":{"__symbolic":"interface"},"FixedSizeTableVirtualScrollStrategy":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":13,"character":1}}],"members":{"attach":[{"__symbolic":"method"}],"detach":[{"__symbolic":"method"}],"onContentScrolled":[{"__symbolic":"method"}],"onDataLengthChanged":[{"__symbolic":"method"}],"onContentRendered":[{"__symbolic":"method"}],"onRenderedOffsetChanged":[{"__symbolic":"method"}],"scrollToIndex":[{"__symbolic":"method"}],"setConfig":[{"__symbolic":"method"}],"updateContent":[{"__symbolic":"method"}]}},"TableVirtualScrollDataSource":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"@angular/material/table","name":"MatTableDataSource","line":6,"character":53},"members":{"_updateChangeSubscription":[{"__symbolic":"method"}],"initStreams":[{"__symbolic":"method"}]}}},"origins":{"TableVirtualScrollModule":"./lib/table-virtual-scroll.module","_tableVirtualScrollDirectiveStrategyFactory":"./lib/table-item-size.directive","TableItemSizeDirective":"./lib/table-item-size.directive","TSVStrategyConfigs":"./lib/fixed-size-table-virtual-scroll-strategy","FixedSizeTableVirtualScrollStrategy":"./lib/fixed-size-table-virtual-scroll-strategy","TableVirtualScrollDataSource":"./lib/table-data-source"},"importAs":"ng-table-virtual-scroll"} |
{ | ||
"name": "ng-table-virtual-scroll", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Virtual scroll for for Angular Material Table", | ||
@@ -25,2 +25,5 @@ "homepage": "https://github.com/diprokon/ng-table-virtual-scroll", | ||
"license": "MIT", | ||
"dependencies": { | ||
"tslib": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
@@ -33,14 +36,9 @@ "@angular/common": ">=6.0.0", | ||
"main": "bundles/ng-table-virtual-scroll.umd.js", | ||
"module": "fesm5/ng-table-virtual-scroll.js", | ||
"module": "fesm2015/ng-table-virtual-scroll.js", | ||
"es2015": "fesm2015/ng-table-virtual-scroll.js", | ||
"esm5": "esm5/ng-table-virtual-scroll.js", | ||
"esm2015": "esm2015/ng-table-virtual-scroll.js", | ||
"fesm5": "fesm5/ng-table-virtual-scroll.js", | ||
"fesm2015": "fesm2015/ng-table-virtual-scroll.js", | ||
"typings": "ng-table-virtual-scroll.d.ts", | ||
"metadata": "ng-table-virtual-scroll.metadata.json", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^1.10.0" | ||
} | ||
} | ||
"sideEffects": false | ||
} |
@@ -45,3 +45,3 @@ # Virtual Scroll for Angular Material Table | ||
``` | ||
**Note: you need to install and configure [virtual scrolling](https://material.angular.io/cdk/scrolling) and [mat-table](https://material.angular.io/components/table) before. TableVirtualScroll only make work them together properly** | ||
**Note: you need to install and configure [virtual scrolling](https://material.angular.io/cdk/scrolling) and [mat-table](https://material.angular.io/components/table) before. TableVirtualScroll only make them work together properly** | ||
@@ -48,0 +48,0 @@ ### Configure the table |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212029
21
1298
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0