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

ngx-slimscroll

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-slimscroll - npm Package Compare versions

Comparing version 9.3.0 to 10.0.0

458

bundles/ngx-slimscroll.umd.js

@@ -7,2 +7,63 @@ (function (global, factory) {

var SlimScrollEvent = /** @class */ (function () {
function SlimScrollEvent(obj) {
this.type = obj.type;
this.y = obj && obj.y ? obj.y : 0;
this.percent = obj && obj.percent ? obj.percent : 0;
this.duration = obj && obj.duration ? obj.duration : 0;
this.easing = obj && obj.easing ? obj.easing : 'linear';
}
return SlimScrollEvent;
}());
var SLIMSCROLL_DEFAULTS = new core.InjectionToken('NGX_SLIMSCROLL_DEFAULTS');
var SlimScrollOptions = /** @class */ (function () {
function SlimScrollOptions(obj) {
this.position = obj && obj.position ? obj.position : 'right';
this.barBackground = obj && obj.barBackground ? obj.barBackground : '#343a40';
this.barOpacity = obj && obj.barOpacity ? obj.barOpacity : '1';
this.barWidth = obj && obj.barWidth ? obj.barWidth : '12';
this.barBorderRadius = obj && obj.barBorderRadius ? obj.barBorderRadius : '5';
this.barMargin = obj && obj.barMargin ? obj.barMargin : '0 0 0 0';
this.gridBackground = obj && obj.gridBackground ? obj.gridBackground : '#adb5bd';
this.gridOpacity = obj && obj.gridOpacity ? obj.gridOpacity : '1';
this.gridWidth = obj && obj.gridWidth ? obj.gridWidth : '8';
this.gridBorderRadius = obj && obj.gridBorderRadius ? obj.gridBorderRadius : '10';
this.gridMargin = obj && obj.gridMargin ? obj.gridMargin : '0 0 0 0';
this.alwaysVisible = obj && typeof obj.alwaysVisible !== 'undefined' ? obj.alwaysVisible : true;
this.visibleTimeout = obj && obj.visibleTimeout ? obj.visibleTimeout : 1000;
this.alwaysPreventDefaultScroll =
obj && typeof obj.alwaysPreventDefaultScroll !== 'undefined' ? obj.alwaysPreventDefaultScroll : true;
}
SlimScrollOptions.prototype.merge = function (obj) {
var result = new SlimScrollOptions();
result.position = obj && obj.position ? obj.position : this.position;
result.barBackground = obj && obj.barBackground ? obj.barBackground : this.barBackground;
result.barOpacity = obj && obj.barOpacity ? obj.barOpacity : this.barOpacity;
result.barWidth = obj && obj.barWidth ? obj.barWidth : this.barWidth;
result.barBorderRadius = obj && obj.barBorderRadius ? obj.barBorderRadius : this.barBorderRadius;
result.barMargin = obj && obj.barMargin ? obj.barMargin : this.barMargin;
result.gridBackground = obj && obj.gridBackground ? obj.gridBackground : this.gridBackground;
result.gridOpacity = obj && obj.gridOpacity ? obj.gridOpacity : this.gridOpacity;
result.gridWidth = obj && obj.gridWidth ? obj.gridWidth : this.gridWidth;
result.gridBorderRadius = obj && obj.gridBorderRadius ? obj.gridBorderRadius : this.gridBorderRadius;
result.gridMargin = obj && obj.gridMargin ? obj.gridMargin : this.gridMargin;
result.alwaysVisible = obj && typeof obj.alwaysVisible !== 'undefined' ? obj.alwaysVisible : this.alwaysVisible;
result.visibleTimeout = obj && obj.visibleTimeout ? obj.visibleTimeout : this.visibleTimeout;
result.alwaysPreventDefaultScroll =
obj && typeof obj.alwaysPreventDefaultScroll !== 'undefined' ? obj.alwaysPreventDefaultScroll : true;
return result;
};
return SlimScrollOptions;
}());
var SlimScrollState = /** @class */ (function () {
function SlimScrollState(obj) {
this.scrollPosition = obj && obj.scrollPosition ? obj.scrollPosition : 0;
this.isScrollAtStart = obj && typeof obj.isScrollAtStart !== 'undefined' ? obj.isScrollAtStart : true;
this.isScrollAtEnd = obj && typeof obj.isScrollAtEnd !== 'undefined' ? obj.isScrollAtEnd : false;
}
return SlimScrollState;
}());
/*! *****************************************************************************

@@ -23,10 +84,10 @@ Copyright (c) Microsoft Corporation.

/* 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 (b.hasOwnProperty(p))
d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {

@@ -37,8 +98,9 @@ extendStatics(d, b);

}
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];
}

@@ -49,7 +111,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")

@@ -62,23 +124,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); }

@@ -88,69 +161,123 @@ 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, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
for (var p in m)
if (p !== "default" && !exports.hasOwnProperty(p))
__createBinding(exports, 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;
}
function __spread() {

@@ -161,5 +288,5 @@ for (var ar = [], i = 0; i < arguments.length; i++)

}
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++)

@@ -169,20 +296,26 @@ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)

return r;
};
}
;
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) {

@@ -193,28 +326,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 (Object.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) {

@@ -226,3 +370,2 @@ if (!privateMap.has(receiver)) {

}
function __classPrivateFieldSet(receiver, privateMap, value) {

@@ -236,63 +379,2 @@ if (!privateMap.has(receiver)) {

var SlimScrollEvent = /** @class */ (function () {
function SlimScrollEvent(obj) {
this.type = obj.type;
this.y = obj && obj.y ? obj.y : 0;
this.percent = obj && obj.percent ? obj.percent : 0;
this.duration = obj && obj.duration ? obj.duration : 0;
this.easing = obj && obj.easing ? obj.easing : 'linear';
}
return SlimScrollEvent;
}());
var SLIMSCROLL_DEFAULTS = new core.InjectionToken('NGX_SLIMSCROLL_DEFAULTS');
var SlimScrollOptions = /** @class */ (function () {
function SlimScrollOptions(obj) {
this.position = obj && obj.position ? obj.position : 'right';
this.barBackground = obj && obj.barBackground ? obj.barBackground : '#343a40';
this.barOpacity = obj && obj.barOpacity ? obj.barOpacity : '1';
this.barWidth = obj && obj.barWidth ? obj.barWidth : '12';
this.barBorderRadius = obj && obj.barBorderRadius ? obj.barBorderRadius : '5';
this.barMargin = obj && obj.barMargin ? obj.barMargin : '0 0 0 0';
this.gridBackground = obj && obj.gridBackground ? obj.gridBackground : '#adb5bd';
this.gridOpacity = obj && obj.gridOpacity ? obj.gridOpacity : '1';
this.gridWidth = obj && obj.gridWidth ? obj.gridWidth : '8';
this.gridBorderRadius = obj && obj.gridBorderRadius ? obj.gridBorderRadius : '10';
this.gridMargin = obj && obj.gridMargin ? obj.gridMargin : '0 0 0 0';
this.alwaysVisible = obj && typeof obj.alwaysVisible !== 'undefined' ? obj.alwaysVisible : true;
this.visibleTimeout = obj && obj.visibleTimeout ? obj.visibleTimeout : 1000;
this.alwaysPreventDefaultScroll =
obj && typeof obj.alwaysPreventDefaultScroll !== 'undefined' ? obj.alwaysPreventDefaultScroll : true;
}
SlimScrollOptions.prototype.merge = function (obj) {
var result = new SlimScrollOptions();
result.position = obj && obj.position ? obj.position : this.position;
result.barBackground = obj && obj.barBackground ? obj.barBackground : this.barBackground;
result.barOpacity = obj && obj.barOpacity ? obj.barOpacity : this.barOpacity;
result.barWidth = obj && obj.barWidth ? obj.barWidth : this.barWidth;
result.barBorderRadius = obj && obj.barBorderRadius ? obj.barBorderRadius : this.barBorderRadius;
result.barMargin = obj && obj.barMargin ? obj.barMargin : this.barMargin;
result.gridBackground = obj && obj.gridBackground ? obj.gridBackground : this.gridBackground;
result.gridOpacity = obj && obj.gridOpacity ? obj.gridOpacity : this.gridOpacity;
result.gridWidth = obj && obj.gridWidth ? obj.gridWidth : this.gridWidth;
result.gridBorderRadius = obj && obj.gridBorderRadius ? obj.gridBorderRadius : this.gridBorderRadius;
result.gridMargin = obj && obj.gridMargin ? obj.gridMargin : this.gridMargin;
result.alwaysVisible = obj && typeof obj.alwaysVisible !== 'undefined' ? obj.alwaysVisible : this.alwaysVisible;
result.visibleTimeout = obj && obj.visibleTimeout ? obj.visibleTimeout : this.visibleTimeout;
result.alwaysPreventDefaultScroll =
obj && typeof obj.alwaysPreventDefaultScroll !== 'undefined' ? obj.alwaysPreventDefaultScroll : true;
return result;
};
return SlimScrollOptions;
}());
var SlimScrollState = /** @class */ (function () {
function SlimScrollState(obj) {
this.scrollPosition = obj && obj.scrollPosition ? obj.scrollPosition : 0;
this.isScrollAtStart = obj && typeof obj.isScrollAtStart !== 'undefined' ? obj.isScrollAtStart : true;
this.isScrollAtEnd = obj && typeof obj.isScrollAtEnd !== 'undefined' ? obj.isScrollAtEnd : false;
}
return SlimScrollState;
}());
var ɵ0 = function (t) { return t; }, ɵ1 = function (t) { return t * t; }, ɵ2 = function (t) { return t * (2 - t); }, ɵ3 = function (t) { return (t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t); }, ɵ4 = function (t) { return t * t * t; }, ɵ5 = function (t) { return --t * t * t + 1; }, ɵ6 = function (t) { return (t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1); }, ɵ7 = function (t) { return t * t * t * t; }, ɵ8 = function (t) { return 1 - --t * t * t * t; }, ɵ9 = function (t) { return (t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t); }, ɵ10 = function (t) { return t * t * t * t * t; }, ɵ11 = function (t) { return 1 + --t * t * t * t * t; }, ɵ12 = function (t) { return (t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t); };

@@ -685,3 +767,3 @@ var easing = {

SlimScrollDirective.prototype.onResize = function () {
var percent = __assign({}, this.current).percent;
var percent = Object.assign({}, this.current).percent;
this.destroy();

@@ -691,38 +773,24 @@ this.setup();

};
SlimScrollDirective.ctorParameters = function () { return [
{ type: core.ViewContainerRef, decorators: [{ type: core.Inject, args: [core.ViewContainerRef,] }] },
{ type: core.Renderer2, decorators: [{ type: core.Inject, args: [core.Renderer2,] }] },
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
{ type: undefined, decorators: [{ type: core.Inject, args: [SLIMSCROLL_DEFAULTS,] }, { type: core.Optional }] }
]; };
__decorate([
core.Input()
], SlimScrollDirective.prototype, "enabled", void 0);
__decorate([
core.Input()
], SlimScrollDirective.prototype, "options", void 0);
__decorate([
core.Input()
], SlimScrollDirective.prototype, "scrollEvents", void 0);
__decorate([
core.Output()
], SlimScrollDirective.prototype, "scrollChanged", void 0);
__decorate([
core.Output()
], SlimScrollDirective.prototype, "barVisibilityChange", void 0);
__decorate([
core.HostListener('window:resize', [])
], SlimScrollDirective.prototype, "onResize", null);
SlimScrollDirective = __decorate([
core.Directive({
selector: '[slimScroll]',
exportAs: 'slimScroll'
}),
__param(0, core.Inject(core.ViewContainerRef)),
__param(1, core.Inject(core.Renderer2)),
__param(2, core.Inject(common.DOCUMENT)),
__param(3, core.Inject(SLIMSCROLL_DEFAULTS)), __param(3, core.Optional())
], SlimScrollDirective);
return SlimScrollDirective;
}());
SlimScrollDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[slimScroll]',
exportAs: 'slimScroll'
},] }
];
SlimScrollDirective.ctorParameters = function () { return [
{ type: core.ViewContainerRef, decorators: [{ type: core.Inject, args: [core.ViewContainerRef,] }] },
{ type: core.Renderer2, decorators: [{ type: core.Inject, args: [core.Renderer2,] }] },
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
{ type: undefined, decorators: [{ type: core.Inject, args: [SLIMSCROLL_DEFAULTS,] }, { type: core.Optional }] }
]; };
SlimScrollDirective.propDecorators = {
enabled: [{ type: core.Input }],
options: [{ type: core.Input }],
scrollEvents: [{ type: core.Input }],
scrollChanged: [{ type: core.Output }],
barVisibilityChange: [{ type: core.Output }],
onResize: [{ type: core.HostListener, args: ['window:resize', [],] }]
};

@@ -732,15 +800,23 @@ var NgSlimScrollModule = /** @class */ (function () {

}
NgSlimScrollModule = __decorate([
core.NgModule({
declarations: [
SlimScrollDirective
],
exports: [
SlimScrollDirective
]
})
], NgSlimScrollModule);
return NgSlimScrollModule;
}());
NgSlimScrollModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [
SlimScrollDirective
],
exports: [
SlimScrollDirective
]
},] }
];
/*
* Public API Surface of ngx-slimscroll
*/
/**
* Generated bundle index. Do not edit.
*/
exports.NgSlimScrollModule = NgSlimScrollModule;

@@ -747,0 +823,0 @@ exports.SLIMSCROLL_DEFAULTS = SLIMSCROLL_DEFAULTS;

@@ -1,16 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-slimscroll",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],e):e((t=t||self)["ngx-slimscroll"]={},t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators)}(this,(function(t,e,r,i,o){"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 n=function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e,r,i){var o,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s}function a(t,e){return function(r,i){e(r,i,t)}}function l(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,o,n=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function h(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}var d=function(t){this.type=t.type,this.y=t&&t.y?t.y:0,this.percent=t&&t.percent?t.percent:0,this.duration=t&&t.duration?t.duration:0,this.easing=t&&t.easing?t.easing:"linear"},p=new e.InjectionToken("NGX_SLIMSCROLL_DEFAULTS"),u=function(){function t(t){this.position=t&&t.position?t.position:"right",this.barBackground=t&&t.barBackground?t.barBackground:"#343a40",this.barOpacity=t&&t.barOpacity?t.barOpacity:"1",this.barWidth=t&&t.barWidth?t.barWidth:"12",this.barBorderRadius=t&&t.barBorderRadius?t.barBorderRadius:"5",this.barMargin=t&&t.barMargin?t.barMargin:"0 0 0 0",this.gridBackground=t&&t.gridBackground?t.gridBackground:"#adb5bd",this.gridOpacity=t&&t.gridOpacity?t.gridOpacity:"1",this.gridWidth=t&&t.gridWidth?t.gridWidth:"8",this.gridBorderRadius=t&&t.gridBorderRadius?t.gridBorderRadius:"10",this.gridMargin=t&&t.gridMargin?t.gridMargin:"0 0 0 0",this.alwaysVisible=!t||void 0===t.alwaysVisible||t.alwaysVisible,this.visibleTimeout=t&&t.visibleTimeout?t.visibleTimeout:1e3,this.alwaysPreventDefaultScroll=!t||void 0===t.alwaysPreventDefaultScroll||t.alwaysPreventDefaultScroll}return t.prototype.merge=function(e){var r=new t;return r.position=e&&e.position?e.position:this.position,r.barBackground=e&&e.barBackground?e.barBackground:this.barBackground,r.barOpacity=e&&e.barOpacity?e.barOpacity:this.barOpacity,r.barWidth=e&&e.barWidth?e.barWidth:this.barWidth,r.barBorderRadius=e&&e.barBorderRadius?e.barBorderRadius:this.barBorderRadius,r.barMargin=e&&e.barMargin?e.barMargin:this.barMargin,r.gridBackground=e&&e.gridBackground?e.gridBackground:this.gridBackground,r.gridOpacity=e&&e.gridOpacity?e.gridOpacity:this.gridOpacity,r.gridWidth=e&&e.gridWidth?e.gridWidth:this.gridWidth,r.gridBorderRadius=e&&e.gridBorderRadius?e.gridBorderRadius:this.gridBorderRadius,r.gridMargin=e&&e.gridMargin?e.gridMargin:this.gridMargin,r.alwaysVisible=e&&void 0!==e.alwaysVisible?e.alwaysVisible:this.alwaysVisible,r.visibleTimeout=e&&e.visibleTimeout?e.visibleTimeout:this.visibleTimeout,r.alwaysPreventDefaultScroll=!e||void 0===e.alwaysPreventDefaultScroll||e.alwaysPreventDefaultScroll,r},t}(),c=function(t){this.scrollPosition=t&&t.scrollPosition?t.scrollPosition:0,this.isScrollAtStart=!t||void 0===t.isScrollAtStart||t.isScrollAtStart,this.isScrollAtEnd=!(!t||void 0===t.isScrollAtEnd)&&t.isScrollAtEnd},g=function(t){return t},y=function(t){return t*t},f=function(t){return t*(2-t)},b=function(t){return t<.5?2*t*t:(4-2*t)*t-1},m=function(t){return t*t*t},v=function(t){return--t*t*t+1},S=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},w=function(t){return t*t*t*t},T=function(t){return 1- --t*t*t*t},B=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},O=function(t){return t*t*t*t*t},C=function(t){return 1+--t*t*t*t*t},E=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},M={linear:g,inQuad:y,outQuad:f,inOutQuad:b,inCubic:m,outCubic:v,inOutCubic:S,inQuart:w,outQuart:T,inOutQuart:B,inQuint:O,outQuint:C,inOutQuint:E},H=function(){function t(t,r,i,o){this.viewContainer=t,this.renderer=r,this.document=i,this.optionsDefaults=o,this.enabled=!0,this.scrollChanged=new e.EventEmitter,this.barVisibilityChange=new e.EventEmitter,this.el=this.viewContainer.element.nativeElement,this.body=this.document.querySelector("body"),this.mutationThrottleTimeout=50}return t.prototype.ngOnInit=function(){!this.interactionSubscriptions&&this.enabled&&this.setup()},t.prototype.ngOnChanges=function(t){t.enabled&&(this.enabled?this.setup():this.destroy())},t.prototype.ngOnDestroy=function(){this.destroy()},t.prototype.setup=function(){var t=this;if(this.interactionSubscriptions=new i.Subscription,this.optionsDefaults?this.options=new u(this.optionsDefaults).merge(this.options):this.options=new u(this.options),this.setStyle(),this.wrapContainer(),this.initGrid(),this.initBar(),this.getBarHeight(),this.initWheel(),this.initDrag(),this.options.alwaysVisible||this.hideBarAndGrid(),MutationObserver&&(this.mutationObserver&&this.mutationObserver.disconnect(),this.mutationObserver=new MutationObserver((function(){t.mutationThrottleTimeout&&(clearTimeout(t.mutationThrottleTimeout),t.mutationThrottleTimeout=setTimeout(t.onMutation.bind(t),50))})),this.mutationObserver.observe(this.el,{subtree:!0,childList:!0})),this.scrollEvents&&this.scrollEvents instanceof e.EventEmitter){var r=this.scrollEvents.subscribe((function(e){return t.handleEvent(e)}));this.interactionSubscriptions.add(r)}},t.prototype.handleEvent=function(t){if("scrollToBottom"===t.type){var e=this.el.scrollHeight-this.el.clientHeight;this.scrollTo(e,t.duration,t.easing)}else if("scrollToTop"===t.type){e=0;this.scrollTo(e,t.duration,t.easing)}else if("scrollToPercent"===t.type&&t.percent>=0&&t.percent<=100){e=Math.round((this.el.scrollHeight-this.el.clientHeight)/100*t.percent);this.scrollTo(e,t.duration,t.easing)}else if("scrollTo"===t.type){var r=this.el.scrollHeight-this.el.clientHeight;(e=t.y<=r?t.y:r)>=0&&this.scrollTo(e,t.duration,t.easing)}else"recalculate"===t.type&&this.getBarHeight()},t.prototype.setStyle=function(){var t=this.el;this.renderer.setStyle(t,"overflow","hidden")},t.prototype.onMutation=function(){this.getBarHeight(),this.setBarTop()},t.prototype.wrapContainer=function(){this.wrapper=this.renderer.createElement("div");var t=this.wrapper,e=this.el;this.renderer.addClass(t,"slimscroll-wrapper"),this.renderer.setStyle(t,"position","relative"),this.renderer.setStyle(t,"overflow","hidden"),this.renderer.setStyle(t,"display","block"),this.renderer.setStyle(t,"margin",getComputedStyle(e).margin),this.renderer.setStyle(t,"width","100%"),this.renderer.setStyle(t,"height",getComputedStyle(e).height),this.renderer.insertBefore(e.parentNode,t,e),this.renderer.appendChild(t,e)},t.prototype.initGrid=function(){this.grid=this.renderer.createElement("div");var t=this.grid;this.renderer.addClass(t,"slimscroll-grid"),this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","0"),this.renderer.setStyle(t,"bottom","0"),this.renderer.setStyle(t,this.options.position,"0"),this.renderer.setStyle(t,"width",this.options.gridWidth+"px"),this.renderer.setStyle(t,"background",this.options.gridBackground),this.renderer.setStyle(t,"opacity",this.options.gridOpacity),this.renderer.setStyle(t,"display","block"),this.renderer.setStyle(t,"cursor","pointer"),this.renderer.setStyle(t,"z-index","99"),this.renderer.setStyle(t,"border-radius",this.options.gridBorderRadius+"px"),this.renderer.setStyle(t,"margin",this.options.gridMargin),this.renderer.appendChild(this.wrapper,t)},t.prototype.initBar=function(){this.bar=this.renderer.createElement("div");var t=this.bar;this.renderer.addClass(t,"slimscroll-bar"),this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","0"),this.renderer.setStyle(t,this.options.position,"0"),this.renderer.setStyle(t,"width",this.options.barWidth+"px"),this.renderer.setStyle(t,"background",this.options.barBackground),this.renderer.setStyle(t,"opacity",this.options.barOpacity),this.renderer.setStyle(t,"display","block"),this.renderer.setStyle(t,"cursor","pointer"),this.renderer.setStyle(t,"z-index","100"),this.renderer.setStyle(t,"border-radius",this.options.barBorderRadius+"px"),this.renderer.setStyle(t,"margin",this.options.barMargin),this.renderer.appendChild(this.wrapper,t),this.barVisibilityChange.emit(!0)},t.prototype.getBarHeight=function(){var t=this.el.offsetHeight,e=Math.max(t/this.el.scrollHeight*t,30)+"px",r=parseInt(e,10)===t?"none":"block";this.wrapper.offsetHeight!==t&&this.renderer.setStyle(this.wrapper,"height",t+"px"),this.renderer.setStyle(this.bar,"height",e),this.renderer.setStyle(this.bar,"display",r),this.renderer.setStyle(this.grid,"display",r),this.barVisibilityChange.emit("none"!==r)},t.prototype.scrollTo=function(t,e,r){var i=this,o=Date.now(),n=this.el.scrollTop,s=parseInt(this.el.style.paddingTop,10)||0,a=parseInt(this.el.style.paddingBottom,10)||0,l=function(){var h=Date.now(),d=Math.min(1,(h-o)/e),p=M[r](d);if(s>0||a>0){var u=null;s>0&&(u=-(p*(t-(u=-s))+u),i.renderer.setStyle(i.el,"padding-top",u+"px")),a>0&&(u=p*(t-(u=a))+u,i.renderer.setStyle(i.el,"padding-bottom",u+"px"))}else i.el.scrollTop=p*(t-n)+n;i.setBarTop(),i.saveCurrent(),i.updateScrollState(),d<1&&requestAnimationFrame(l)};e&&r?requestAnimationFrame(l):(this.el.scrollTop=t,this.setBarTop(),this.saveCurrent(),this.updateScrollState())},t.prototype.scrollContent=function(t,e,r){var i=this,o=t,n=this.el.offsetHeight-this.bar.offsetHeight,s=this.el.scrollHeight-this.el.offsetHeight,a=null;return e&&(((o=parseInt(getComputedStyle(this.bar).top,10)+20*t/100*this.bar.offsetHeight)<0||o>n)&&(a=o>n?o-n:o),o=Math.min(Math.max(o,0),n),o=t>0?Math.ceil(o):Math.floor(o),this.renderer.setStyle(this.bar,"top",o+"px")),o=parseInt(getComputedStyle(this.bar).top,10)/(this.el.offsetHeight-this.bar.offsetHeight)*s,this.el.scrollTop=o,this.showBarAndGrid(),this.options.alwaysVisible||(this.visibleTimeout&&clearTimeout(this.visibleTimeout),this.visibleTimeout=setTimeout((function(){i.hideBarAndGrid()}),this.options.visibleTimeout)),this.updateScrollState(),this.saveCurrent(),a},t.prototype.updateScrollState=function(){var t=0===this.el.scrollTop,e=this.el.scrollTop===this.el.scrollHeight-this.el.offsetHeight,r=Math.ceil(this.el.scrollTop),i=new c({scrollPosition:r,isScrollAtStart:t,isScrollAtEnd:e});this.scrollChanged.emit(i)},t.prototype.initWheel=function(){var t=this,e=i.fromEvent(this.el,"DOMMouseScroll"),r=i.fromEvent(this.el,"mousewheel"),o=i.merge.apply(void 0,h([e,r])).subscribe((function(e){var r=0;e.wheelDelta&&(r=-e.wheelDelta/120),e.detail&&(r=e.detail/3);var i=t.scrollContent(r,!0,!1);e.preventDefault&&(t.options.alwaysPreventDefaultScroll||null===i)&&e.preventDefault()}));this.interactionSubscriptions.add(o)},t.prototype.initDrag=function(){var t=this,e=this.bar,r=i.fromEvent(this.document.documentElement,"mousemove"),n=i.fromEvent(this.document.documentElement,"touchmove"),s=i.fromEvent(e,"mousedown"),a=i.fromEvent(this.el,"touchstart"),l=i.fromEvent(this.document.documentElement,"mouseup"),d=i.fromEvent(this.document.documentElement,"touchend"),p=s.pipe(o.mergeMap((function(i){return t.pageY=i.pageY,t.top=parseFloat(getComputedStyle(e).top),r.pipe(o.map((function(e){return e.preventDefault(),t.top+e.pageY-t.pageY})),o.takeUntil(l))}))),u=a.pipe(o.mergeMap((function(r){return t.pageY=r.targetTouches[0].pageY,t.top=-parseFloat(getComputedStyle(e).top),n.pipe(o.map((function(e){return-(t.top+e.targetTouches[0].pageY-t.pageY)})),o.takeUntil(d))}))),c=i.merge.apply(void 0,h([p,u])).subscribe((function(e){t.body.addEventListener("selectstart",t.preventDefaultEvent,!1),t.renderer.setStyle(t.body,"touch-action","pan-y"),t.renderer.setStyle(t.body,"user-select","none"),t.renderer.setStyle(t.bar,"top",e+"px");var r=t.scrollContent(0,!0,!1),i=t.el.offsetHeight-t.bar.offsetHeight;r&&r<0&&-r<=i?t.renderer.setStyle(t.el,"paddingTop",-r+"px"):r&&r>0&&r<=i&&t.renderer.setStyle(t.el,"paddingBottom",r+"px")})),g=i.merge.apply(void 0,h([l,d])).subscribe((function(){t.body.removeEventListener("selectstart",t.preventDefaultEvent,!1);var e=parseInt(t.el.style.paddingTop,10),r=parseInt(t.el.style.paddingBottom,10);t.renderer.setStyle(t.body,"touch-action","unset"),t.renderer.setStyle(t.body,"user-select","default"),(e>0||r>0)&&t.scrollTo(0,300,"linear")}));this.interactionSubscriptions.add(c),this.interactionSubscriptions.add(g)},t.prototype.setBarTop=function(){var t=Math.max(this.el.offsetHeight/this.el.scrollHeight*this.el.offsetHeight,30),e=this.el.scrollHeight-this.el.clientHeight,r=parseInt(this.el.style.paddingBottom,10)||0,i=this.el.scrollTop/e;if(0===r){var o=Math.round((this.el.clientHeight-t)*i);o>0&&this.renderer.setStyle(this.bar,"top",o+"px")}},t.prototype.saveCurrent=function(){var t=this.el.scrollHeight-this.el.clientHeight,e=this.el.scrollTop/t;this.current={max:t,percent:e}},t.prototype.showBarAndGrid=function(){this.renderer.setStyle(this.grid,"background",this.options.gridBackground),this.renderer.setStyle(this.bar,"background",this.options.barBackground)},t.prototype.hideBarAndGrid=function(){this.renderer.setStyle(this.grid,"background","transparent"),this.renderer.setStyle(this.bar,"background","transparent")},t.prototype.preventDefaultEvent=function(t){t.preventDefault(),t.stopPropagation()},t.prototype.destroy=function(){if(this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.el.parentElement.classList.contains("slimscroll-wrapper")){var t=this.el.parentElement,e=t.querySelector(".slimscroll-bar");t.removeChild(e);var r=t.querySelector(".slimscroll-grid");t.removeChild(r),this.unwrap(t)}this.interactionSubscriptions&&this.interactionSubscriptions.unsubscribe()},t.prototype.unwrap=function(t){for(var e=document.createDocumentFragment();t.firstChild;){var r=t.removeChild(t.firstChild);e.appendChild(r)}t.parentNode.replaceChild(e,t)},t.prototype.onResize=function(){var t=n({},this.current).percent;this.destroy(),this.setup(),this.scrollTo(Math.round((this.el.scrollHeight-this.el.clientHeight)*t),null,null)},t.ctorParameters=function(){return[{type:e.ViewContainerRef,decorators:[{type:e.Inject,args:[e.ViewContainerRef]}]},{type:e.Renderer2,decorators:[{type:e.Inject,args:[e.Renderer2]}]},{type:void 0,decorators:[{type:e.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[p]},{type:e.Optional}]}]},s([e.Input()],t.prototype,"enabled",void 0),s([e.Input()],t.prototype,"options",void 0),s([e.Input()],t.prototype,"scrollEvents",void 0),s([e.Output()],t.prototype,"scrollChanged",void 0),s([e.Output()],t.prototype,"barVisibilityChange",void 0),s([e.HostListener("window:resize",[])],t.prototype,"onResize",null),t=s([e.Directive({selector:"[slimScroll]",exportAs:"slimScroll"}),a(0,e.Inject(e.ViewContainerRef)),a(1,e.Inject(e.Renderer2)),a(2,e.Inject(r.DOCUMENT)),a(3,e.Inject(p)),a(3,e.Optional())],t)}(),x=function(){function t(){}return t=s([e.NgModule({declarations:[H],exports:[H]})],t)}();t.NgSlimScrollModule=x,t.SLIMSCROLL_DEFAULTS=p,t.SlimScrollDirective=H,t.SlimScrollEvent=d,t.SlimScrollOptions=u,t.SlimScrollState=c,t.easing=M,t.ɵ0=g,t.ɵ1=y,t.ɵ10=O,t.ɵ11=C,t.ɵ12=E,t.ɵ2=f,t.ɵ3=b,t.ɵ4=m,t.ɵ5=v,t.ɵ6=S,t.ɵ7=w,t.ɵ8=T,t.ɵ9=B,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngx-slimscroll",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],e):e((t=t||self)["ngx-slimscroll"]={},t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators)}(this,(function(t,e,r,i,s){"use strict";var o=function(t){this.type=t.type,this.y=t&&t.y?t.y:0,this.percent=t&&t.percent?t.percent:0,this.duration=t&&t.duration?t.duration:0,this.easing=t&&t.easing?t.easing:"linear"},n=new e.InjectionToken("NGX_SLIMSCROLL_DEFAULTS"),a=function(){function t(t){this.position=t&&t.position?t.position:"right",this.barBackground=t&&t.barBackground?t.barBackground:"#343a40",this.barOpacity=t&&t.barOpacity?t.barOpacity:"1",this.barWidth=t&&t.barWidth?t.barWidth:"12",this.barBorderRadius=t&&t.barBorderRadius?t.barBorderRadius:"5",this.barMargin=t&&t.barMargin?t.barMargin:"0 0 0 0",this.gridBackground=t&&t.gridBackground?t.gridBackground:"#adb5bd",this.gridOpacity=t&&t.gridOpacity?t.gridOpacity:"1",this.gridWidth=t&&t.gridWidth?t.gridWidth:"8",this.gridBorderRadius=t&&t.gridBorderRadius?t.gridBorderRadius:"10",this.gridMargin=t&&t.gridMargin?t.gridMargin:"0 0 0 0",this.alwaysVisible=!t||void 0===t.alwaysVisible||t.alwaysVisible,this.visibleTimeout=t&&t.visibleTimeout?t.visibleTimeout:1e3,this.alwaysPreventDefaultScroll=!t||void 0===t.alwaysPreventDefaultScroll||t.alwaysPreventDefaultScroll}return t.prototype.merge=function(e){var r=new t;return r.position=e&&e.position?e.position:this.position,r.barBackground=e&&e.barBackground?e.barBackground:this.barBackground,r.barOpacity=e&&e.barOpacity?e.barOpacity:this.barOpacity,r.barWidth=e&&e.barWidth?e.barWidth:this.barWidth,r.barBorderRadius=e&&e.barBorderRadius?e.barBorderRadius:this.barBorderRadius,r.barMargin=e&&e.barMargin?e.barMargin:this.barMargin,r.gridBackground=e&&e.gridBackground?e.gridBackground:this.gridBackground,r.gridOpacity=e&&e.gridOpacity?e.gridOpacity:this.gridOpacity,r.gridWidth=e&&e.gridWidth?e.gridWidth:this.gridWidth,r.gridBorderRadius=e&&e.gridBorderRadius?e.gridBorderRadius:this.gridBorderRadius,r.gridMargin=e&&e.gridMargin?e.gridMargin:this.gridMargin,r.alwaysVisible=e&&void 0!==e.alwaysVisible?e.alwaysVisible:this.alwaysVisible,r.visibleTimeout=e&&e.visibleTimeout?e.visibleTimeout:this.visibleTimeout,r.alwaysPreventDefaultScroll=!e||void 0===e.alwaysPreventDefaultScroll||e.alwaysPreventDefaultScroll,r},t}(),l=function(t){this.scrollPosition=t&&t.scrollPosition?t.scrollPosition:0,this.isScrollAtStart=!t||void 0===t.isScrollAtStart||t.isScrollAtStart,this.isScrollAtEnd=!(!t||void 0===t.isScrollAtEnd)&&t.isScrollAtEnd};Object.create;function h(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,s,o=r.call(t),n=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)n.push(i.value)}catch(t){s={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return n}function d(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}Object.create;var p=function(t){return t},u=function(t){return t*t},c=function(t){return t*(2-t)},g=function(t){return t<.5?2*t*t:(4-2*t)*t-1},y=function(t){return t*t*t},b=function(t){return--t*t*t+1},f=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},m=function(t){return t*t*t*t},v=function(t){return 1- --t*t*t*t},S=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},w=function(t){return t*t*t*t*t},T=function(t){return 1+--t*t*t*t*t},B=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},C={linear:p,inQuad:u,outQuad:c,inOutQuad:g,inCubic:y,outCubic:b,inOutCubic:f,inQuart:m,outQuart:v,inOutQuart:S,inQuint:w,outQuint:T,inOutQuint:B},O=function(){function t(t,r,i,s){this.viewContainer=t,this.renderer=r,this.document=i,this.optionsDefaults=s,this.enabled=!0,this.scrollChanged=new e.EventEmitter,this.barVisibilityChange=new e.EventEmitter,this.el=this.viewContainer.element.nativeElement,this.body=this.document.querySelector("body"),this.mutationThrottleTimeout=50}return t.prototype.ngOnInit=function(){!this.interactionSubscriptions&&this.enabled&&this.setup()},t.prototype.ngOnChanges=function(t){t.enabled&&(this.enabled?this.setup():this.destroy())},t.prototype.ngOnDestroy=function(){this.destroy()},t.prototype.setup=function(){var t=this;if(this.interactionSubscriptions=new i.Subscription,this.optionsDefaults?this.options=new a(this.optionsDefaults).merge(this.options):this.options=new a(this.options),this.setStyle(),this.wrapContainer(),this.initGrid(),this.initBar(),this.getBarHeight(),this.initWheel(),this.initDrag(),this.options.alwaysVisible||this.hideBarAndGrid(),MutationObserver&&(this.mutationObserver&&this.mutationObserver.disconnect(),this.mutationObserver=new MutationObserver((function(){t.mutationThrottleTimeout&&(clearTimeout(t.mutationThrottleTimeout),t.mutationThrottleTimeout=setTimeout(t.onMutation.bind(t),50))})),this.mutationObserver.observe(this.el,{subtree:!0,childList:!0})),this.scrollEvents&&this.scrollEvents instanceof e.EventEmitter){var r=this.scrollEvents.subscribe((function(e){return t.handleEvent(e)}));this.interactionSubscriptions.add(r)}},t.prototype.handleEvent=function(t){if("scrollToBottom"===t.type){var e=this.el.scrollHeight-this.el.clientHeight;this.scrollTo(e,t.duration,t.easing)}else if("scrollToTop"===t.type){e=0;this.scrollTo(e,t.duration,t.easing)}else if("scrollToPercent"===t.type&&t.percent>=0&&t.percent<=100){e=Math.round((this.el.scrollHeight-this.el.clientHeight)/100*t.percent);this.scrollTo(e,t.duration,t.easing)}else if("scrollTo"===t.type){var r=this.el.scrollHeight-this.el.clientHeight;(e=t.y<=r?t.y:r)>=0&&this.scrollTo(e,t.duration,t.easing)}else"recalculate"===t.type&&this.getBarHeight()},t.prototype.setStyle=function(){var t=this.el;this.renderer.setStyle(t,"overflow","hidden")},t.prototype.onMutation=function(){this.getBarHeight(),this.setBarTop()},t.prototype.wrapContainer=function(){this.wrapper=this.renderer.createElement("div");var t=this.wrapper,e=this.el;this.renderer.addClass(t,"slimscroll-wrapper"),this.renderer.setStyle(t,"position","relative"),this.renderer.setStyle(t,"overflow","hidden"),this.renderer.setStyle(t,"display","block"),this.renderer.setStyle(t,"margin",getComputedStyle(e).margin),this.renderer.setStyle(t,"width","100%"),this.renderer.setStyle(t,"height",getComputedStyle(e).height),this.renderer.insertBefore(e.parentNode,t,e),this.renderer.appendChild(t,e)},t.prototype.initGrid=function(){this.grid=this.renderer.createElement("div");var t=this.grid;this.renderer.addClass(t,"slimscroll-grid"),this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","0"),this.renderer.setStyle(t,"bottom","0"),this.renderer.setStyle(t,this.options.position,"0"),this.renderer.setStyle(t,"width",this.options.gridWidth+"px"),this.renderer.setStyle(t,"background",this.options.gridBackground),this.renderer.setStyle(t,"opacity",this.options.gridOpacity),this.renderer.setStyle(t,"display","block"),this.renderer.setStyle(t,"cursor","pointer"),this.renderer.setStyle(t,"z-index","99"),this.renderer.setStyle(t,"border-radius",this.options.gridBorderRadius+"px"),this.renderer.setStyle(t,"margin",this.options.gridMargin),this.renderer.appendChild(this.wrapper,t)},t.prototype.initBar=function(){this.bar=this.renderer.createElement("div");var t=this.bar;this.renderer.addClass(t,"slimscroll-bar"),this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","0"),this.renderer.setStyle(t,this.options.position,"0"),this.renderer.setStyle(t,"width",this.options.barWidth+"px"),this.renderer.setStyle(t,"background",this.options.barBackground),this.renderer.setStyle(t,"opacity",this.options.barOpacity),this.renderer.setStyle(t,"display","block"),this.renderer.setStyle(t,"cursor","pointer"),this.renderer.setStyle(t,"z-index","100"),this.renderer.setStyle(t,"border-radius",this.options.barBorderRadius+"px"),this.renderer.setStyle(t,"margin",this.options.barMargin),this.renderer.appendChild(this.wrapper,t),this.barVisibilityChange.emit(!0)},t.prototype.getBarHeight=function(){var t=this.el.offsetHeight,e=Math.max(t/this.el.scrollHeight*t,30)+"px",r=parseInt(e,10)===t?"none":"block";this.wrapper.offsetHeight!==t&&this.renderer.setStyle(this.wrapper,"height",t+"px"),this.renderer.setStyle(this.bar,"height",e),this.renderer.setStyle(this.bar,"display",r),this.renderer.setStyle(this.grid,"display",r),this.barVisibilityChange.emit("none"!==r)},t.prototype.scrollTo=function(t,e,r){var i=this,s=Date.now(),o=this.el.scrollTop,n=parseInt(this.el.style.paddingTop,10)||0,a=parseInt(this.el.style.paddingBottom,10)||0,l=function(){var h=Date.now(),d=Math.min(1,(h-s)/e),p=C[r](d);if(n>0||a>0){var u=null;n>0&&(u=-(p*(t-(u=-n))+u),i.renderer.setStyle(i.el,"padding-top",u+"px")),a>0&&(u=p*(t-(u=a))+u,i.renderer.setStyle(i.el,"padding-bottom",u+"px"))}else i.el.scrollTop=p*(t-o)+o;i.setBarTop(),i.saveCurrent(),i.updateScrollState(),d<1&&requestAnimationFrame(l)};e&&r?requestAnimationFrame(l):(this.el.scrollTop=t,this.setBarTop(),this.saveCurrent(),this.updateScrollState())},t.prototype.scrollContent=function(t,e,r){var i=this,s=t,o=this.el.offsetHeight-this.bar.offsetHeight,n=this.el.scrollHeight-this.el.offsetHeight,a=null;return e&&(((s=parseInt(getComputedStyle(this.bar).top,10)+20*t/100*this.bar.offsetHeight)<0||s>o)&&(a=s>o?s-o:s),s=Math.min(Math.max(s,0),o),s=t>0?Math.ceil(s):Math.floor(s),this.renderer.setStyle(this.bar,"top",s+"px")),s=parseInt(getComputedStyle(this.bar).top,10)/(this.el.offsetHeight-this.bar.offsetHeight)*n,this.el.scrollTop=s,this.showBarAndGrid(),this.options.alwaysVisible||(this.visibleTimeout&&clearTimeout(this.visibleTimeout),this.visibleTimeout=setTimeout((function(){i.hideBarAndGrid()}),this.options.visibleTimeout)),this.updateScrollState(),this.saveCurrent(),a},t.prototype.updateScrollState=function(){var t=0===this.el.scrollTop,e=this.el.scrollTop===this.el.scrollHeight-this.el.offsetHeight,r=Math.ceil(this.el.scrollTop),i=new l({scrollPosition:r,isScrollAtStart:t,isScrollAtEnd:e});this.scrollChanged.emit(i)},t.prototype.initWheel=function(){var t=this,e=i.fromEvent(this.el,"DOMMouseScroll"),r=i.fromEvent(this.el,"mousewheel"),s=i.merge.apply(void 0,d([e,r])).subscribe((function(e){var r=0;e.wheelDelta&&(r=-e.wheelDelta/120),e.detail&&(r=e.detail/3);var i=t.scrollContent(r,!0,!1);e.preventDefault&&(t.options.alwaysPreventDefaultScroll||null===i)&&e.preventDefault()}));this.interactionSubscriptions.add(s)},t.prototype.initDrag=function(){var t=this,e=this.bar,r=i.fromEvent(this.document.documentElement,"mousemove"),o=i.fromEvent(this.document.documentElement,"touchmove"),n=i.fromEvent(e,"mousedown"),a=i.fromEvent(this.el,"touchstart"),l=i.fromEvent(this.document.documentElement,"mouseup"),h=i.fromEvent(this.document.documentElement,"touchend"),p=n.pipe(s.mergeMap((function(i){return t.pageY=i.pageY,t.top=parseFloat(getComputedStyle(e).top),r.pipe(s.map((function(e){return e.preventDefault(),t.top+e.pageY-t.pageY})),s.takeUntil(l))}))),u=a.pipe(s.mergeMap((function(r){return t.pageY=r.targetTouches[0].pageY,t.top=-parseFloat(getComputedStyle(e).top),o.pipe(s.map((function(e){return-(t.top+e.targetTouches[0].pageY-t.pageY)})),s.takeUntil(h))}))),c=i.merge.apply(void 0,d([p,u])).subscribe((function(e){t.body.addEventListener("selectstart",t.preventDefaultEvent,!1),t.renderer.setStyle(t.body,"touch-action","pan-y"),t.renderer.setStyle(t.body,"user-select","none"),t.renderer.setStyle(t.bar,"top",e+"px");var r=t.scrollContent(0,!0,!1),i=t.el.offsetHeight-t.bar.offsetHeight;r&&r<0&&-r<=i?t.renderer.setStyle(t.el,"paddingTop",-r+"px"):r&&r>0&&r<=i&&t.renderer.setStyle(t.el,"paddingBottom",r+"px")})),g=i.merge.apply(void 0,d([l,h])).subscribe((function(){t.body.removeEventListener("selectstart",t.preventDefaultEvent,!1);var e=parseInt(t.el.style.paddingTop,10),r=parseInt(t.el.style.paddingBottom,10);t.renderer.setStyle(t.body,"touch-action","unset"),t.renderer.setStyle(t.body,"user-select","default"),(e>0||r>0)&&t.scrollTo(0,300,"linear")}));this.interactionSubscriptions.add(c),this.interactionSubscriptions.add(g)},t.prototype.setBarTop=function(){var t=Math.max(this.el.offsetHeight/this.el.scrollHeight*this.el.offsetHeight,30),e=this.el.scrollHeight-this.el.clientHeight,r=parseInt(this.el.style.paddingBottom,10)||0,i=this.el.scrollTop/e;if(0===r){var s=Math.round((this.el.clientHeight-t)*i);s>0&&this.renderer.setStyle(this.bar,"top",s+"px")}},t.prototype.saveCurrent=function(){var t=this.el.scrollHeight-this.el.clientHeight,e=this.el.scrollTop/t;this.current={max:t,percent:e}},t.prototype.showBarAndGrid=function(){this.renderer.setStyle(this.grid,"background",this.options.gridBackground),this.renderer.setStyle(this.bar,"background",this.options.barBackground)},t.prototype.hideBarAndGrid=function(){this.renderer.setStyle(this.grid,"background","transparent"),this.renderer.setStyle(this.bar,"background","transparent")},t.prototype.preventDefaultEvent=function(t){t.preventDefault(),t.stopPropagation()},t.prototype.destroy=function(){if(this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.el.parentElement.classList.contains("slimscroll-wrapper")){var t=this.el.parentElement,e=t.querySelector(".slimscroll-bar");t.removeChild(e);var r=t.querySelector(".slimscroll-grid");t.removeChild(r),this.unwrap(t)}this.interactionSubscriptions&&this.interactionSubscriptions.unsubscribe()},t.prototype.unwrap=function(t){for(var e=document.createDocumentFragment();t.firstChild;){var r=t.removeChild(t.firstChild);e.appendChild(r)}t.parentNode.replaceChild(e,t)},t.prototype.onResize=function(){var t=Object.assign({},this.current).percent;this.destroy(),this.setup(),this.scrollTo(Math.round((this.el.scrollHeight-this.el.clientHeight)*t),null,null)},t}();O.decorators=[{type:e.Directive,args:[{selector:"[slimScroll]",exportAs:"slimScroll"}]}],O.ctorParameters=function(){return[{type:e.ViewContainerRef,decorators:[{type:e.Inject,args:[e.ViewContainerRef]}]},{type:e.Renderer2,decorators:[{type:e.Inject,args:[e.Renderer2]}]},{type:void 0,decorators:[{type:e.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[n]},{type:e.Optional}]}]},O.propDecorators={enabled:[{type:e.Input}],options:[{type:e.Input}],scrollEvents:[{type:e.Input}],scrollChanged:[{type:e.Output}],barVisibilityChange:[{type:e.Output}],onResize:[{type:e.HostListener,args:["window:resize",[]]}]};var E=function(){};E.decorators=[{type:e.NgModule,args:[{declarations:[O],exports:[O]}]}],t.NgSlimScrollModule=E,t.SLIMSCROLL_DEFAULTS=n,t.SlimScrollDirective=O,t.SlimScrollEvent=o,t.SlimScrollOptions=a,t.SlimScrollState=l,t.easing=C,t.ɵ0=p,t.ɵ1=u,t.ɵ10=w,t.ɵ11=T,t.ɵ12=B,t.ɵ2=c,t.ɵ3=g,t.ɵ4=y,t.ɵ5=b,t.ɵ6=f,t.ɵ7=m,t.ɵ8=v,t.ɵ9=S,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-slimscroll.umd.min.js.map

@@ -10,2 +10,2 @@ export class SlimScrollEvent {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpbXNjcm9sbC1ldmVudC5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zbGltc2Nyb2xsLyIsInNvdXJjZXMiOlsibGliL3NsaW1zY3JvbGwtZXZlbnQuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVUEsTUFBTSxPQUFPLGVBQWU7SUFTMUIsWUFBWSxHQUFzQjtRQUNoQyxJQUFJLENBQUMsSUFBSSxHQUFHLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDckIsSUFBSSxDQUFDLENBQUMsR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2xDLElBQUksQ0FBQyxPQUFPLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUNwRCxJQUFJLENBQUMsUUFBUSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDdkQsSUFBSSxDQUFDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDO0lBQzFELENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSVNsaW1TY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FkJyB8ICdvdXRRdWFkJyB8ICdpbk91dFF1YWQnIHwgJ2luQ3ViaWMnIHxcbiAgICAnb3V0Q3ViaWMnIHwgJ2luT3V0Q3ViaWMnIHwgJ2luUXVhcnQnIHwgJ291dFF1YXJ0JyB8ICdpbk91dFF1YXJ0JyB8XG4gICAgJ2luUXVpbnQnIHwgJ291dFF1aW50JyB8ICdpbk91dFF1aW50JztcblxuICBjb25zdHJ1Y3RvcihvYmo/OiBJU2xpbVNjcm9sbEV2ZW50KSB7XG4gICAgdGhpcy50eXBlID0gb2JqLnR5cGU7XG4gICAgdGhpcy55ID0gb2JqICYmIG9iai55ID8gb2JqLnkgOiAwO1xuICAgIHRoaXMucGVyY2VudCA9IG9iaiAmJiBvYmoucGVyY2VudCA/IG9iai5wZXJjZW50IDogMDtcbiAgICB0aGlzLmR1cmF0aW9uID0gb2JqICYmIG9iai5kdXJhdGlvbiA/IG9iai5kdXJhdGlvbiA6IDA7XG4gICAgdGhpcy5lYXNpbmcgPSBvYmogJiYgb2JqLmVhc2luZyA/IG9iai5lYXNpbmcgOiAnbGluZWFyJztcbiAgfVxufVxuIl19

@@ -41,2 +41,2 @@ import { InjectionToken } from '@angular/core';

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpbXNjcm9sbC1vcHRpb25zLmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXNsaW1zY3JvbGwvIiwic291cmNlcyI6WyJsaWIvc2xpbXNjcm9sbC1vcHRpb25zLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFtQi9DLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUF1QyxJQUFJLGNBQWMsQ0FBQyx5QkFBeUIsQ0FBQyxDQUFDO0FBRXJILE1BQU0sT0FBTyxpQkFBaUI7SUFnQjVCLFlBQV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IDA7XG4gICAgdGhpcy5pc1Njcm9sbEF0U3RhcnQgPSBvYmogJiYgdHlwZW9mIG9iai5pc1Njcm9sbEF0U3RhcnQgIT09ICd1bmRlZmluZWQnID8gb2JqLmlzU2Nyb2xsQXRTdGFydCA6IHRydWU7XG4gICAgdGhpcy5pc1Njcm9sbEF0RW5kID0gb2JqICYmIHR5cGVvZiBvYmouaXNTY3JvbGxBdEVuZCAhPT0gJ3VuZGVmaW5lZCcgPyBvYmouaXNTY3JvbGxBdEVuZCA6IGZhbHNlO1xuICB9XG59XG4iXX0=

@@ -1,17 +0,15 @@

import { __decorate } from "tslib";
import { NgModule } from '@angular/core';
import { SlimScrollDirective } from './slimscroll.directive';
let NgSlimScrollModule = class NgSlimScrollModule {
};
NgSlimScrollModule = __decorate([
NgModule({
declarations: [
SlimScrollDirective
],
exports: [
SlimScrollDirective
]
})
], NgSlimScrollModule);
export { NgSlimScrollModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpbXNjcm9sbC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc2xpbXNjcm9sbC8iLCJzb3VyY2VzIjpbImxpYi9zbGltc2Nyb2xsLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQVU3RCxJQUFhLGtCQUFrQixHQUEvQixNQUFhLGtCQUFrQjtDQUFJLENBQUE7QUFBdEIsa0JBQWtCO0lBUjlCLFFBQVEsQ0FBQztRQUNSLFlBQVksRUFBRTtZQUNaLG1CQUFtQjtTQUNwQjtRQUNELE9BQU8sRUFBRTtZQUNQLG1CQUFtQjtTQUNwQjtLQUNGLENBQUM7R0FDVyxrQkFBa0IsQ0FBSTtTQUF0QixrQkFBa0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgU2xpbVNjcm9sbERpcmVjdGl2ZSB9IGZyb20gJy4vc2xpbXNjcm9sbC5kaXJlY3RpdmUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBTbGltU2Nyb2xsRGlyZWN0aXZlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBTbGltU2Nyb2xsRGlyZWN0aXZlXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgTmdTbGltU2Nyb2xsTW9kdWxlIHsgfVxuIl19
export class NgSlimScrollModule {
}
NgSlimScrollModule.decorators = [
{ type: NgModule, args: [{
declarations: [
SlimScrollDirective
],
exports: [
SlimScrollDirective
]
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpbXNjcm9sbC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2xpbXNjcm9sbC9zcmMvbGliL3NsaW1zY3JvbGwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFVN0QsTUFBTSxPQUFPLGtCQUFrQjs7O1lBUjlCLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUU7b0JBQ1osbUJBQW1CO2lCQUNwQjtnQkFDRCxPQUFPLEVBQUU7b0JBQ1AsbUJBQW1CO2lCQUNwQjthQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFNsaW1TY3JvbGxEaXJlY3RpdmUgfSBmcm9tICcuL3NsaW1zY3JvbGwuZGlyZWN0aXZlJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgU2xpbVNjcm9sbERpcmVjdGl2ZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgU2xpbVNjcm9sbERpcmVjdGl2ZVxuICBdXG59KVxuZXhwb3J0IGNsYXNzIE5nU2xpbVNjcm9sbE1vZHVsZSB7IH1cbiJdfQ==

@@ -5,2 +5,2 @@ /**

export * from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNsaW1zY3JvbGwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc2xpbXNjcm9sbC8iLCJzb3VyY2VzIjpbIm5neC1zbGltc2Nyb2xsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNsaW1zY3JvbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2xpbXNjcm9sbC9zcmMvbmd4LXNsaW1zY3JvbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==

@@ -9,2 +9,2 @@ /*

export * from './lib/slimscroll.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zbGltc2Nyb2xsLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LXNsaW1zY3JvbGxcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zbGltc2Nyb2xsLWV2ZW50LmNsYXNzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NsaW1zY3JvbGwtb3B0aW9ucy5jbGFzcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zbGltc2Nyb2xsLXN0YXRlLmNsYXNzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NsaW1zY3JvbGwuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NsaW1zY3JvbGwubW9kdWxlJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zbGltc2Nyb2xsL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtc2xpbXNjcm9sbFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3NsaW1zY3JvbGwtZXZlbnQuY2xhc3MnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvc2xpbXNjcm9sbC1vcHRpb25zLmNsYXNzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NsaW1zY3JvbGwtc3RhdGUuY2xhc3MnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvc2xpbXNjcm9sbC5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvc2xpbXNjcm9sbC5tb2R1bGUnO1xuIl19

@@ -1,3 +0,2 @@

import { InjectionToken, EventEmitter, ViewContainerRef, Inject, Renderer2, Optional, Input, Output, HostListener, Directive, NgModule } from '@angular/core';
import { __decorate, __param } from 'tslib';
import { InjectionToken, EventEmitter, Directive, ViewContainerRef, Inject, Renderer2, Optional, Input, Output, HostListener, NgModule } from '@angular/core';
import { DOCUMENT } from '@angular/common';

@@ -81,3 +80,3 @@ import { Subscription, fromEvent, merge } from 'rxjs';

};
let SlimScrollDirective = class SlimScrollDirective {
class SlimScrollDirective {
constructor(viewContainer, renderer, document, optionsDefaults) {

@@ -453,3 +452,9 @@ this.viewContainer = viewContainer;

}
};
}
SlimScrollDirective.decorators = [
{ type: Directive, args: [{
selector: '[slimScroll]',
exportAs: 'slimScroll'
},] }
];
SlimScrollDirective.ctorParameters = () => [

@@ -461,44 +466,24 @@ { type: ViewContainerRef, decorators: [{ type: Inject, args: [ViewContainerRef,] }] },

];
__decorate([
Input()
], SlimScrollDirective.prototype, "enabled", void 0);
__decorate([
Input()
], SlimScrollDirective.prototype, "options", void 0);
__decorate([
Input()
], SlimScrollDirective.prototype, "scrollEvents", void 0);
__decorate([
Output()
], SlimScrollDirective.prototype, "scrollChanged", void 0);
__decorate([
Output()
], SlimScrollDirective.prototype, "barVisibilityChange", void 0);
__decorate([
HostListener('window:resize', [])
], SlimScrollDirective.prototype, "onResize", null);
SlimScrollDirective = __decorate([
Directive({
selector: '[slimScroll]',
exportAs: 'slimScroll'
}),
__param(0, Inject(ViewContainerRef)),
__param(1, Inject(Renderer2)),
__param(2, Inject(DOCUMENT)),
__param(3, Inject(SLIMSCROLL_DEFAULTS)), __param(3, Optional())
], SlimScrollDirective);
let NgSlimScrollModule = class NgSlimScrollModule {
SlimScrollDirective.propDecorators = {
enabled: [{ type: Input }],
options: [{ type: Input }],
scrollEvents: [{ type: Input }],
scrollChanged: [{ type: Output }],
barVisibilityChange: [{ type: Output }],
onResize: [{ type: HostListener, args: ['window:resize', [],] }]
};
NgSlimScrollModule = __decorate([
NgModule({
declarations: [
SlimScrollDirective
],
exports: [
SlimScrollDirective
]
})
], NgSlimScrollModule);
class NgSlimScrollModule {
}
NgSlimScrollModule.decorators = [
{ type: NgModule, args: [{
declarations: [
SlimScrollDirective
],
exports: [
SlimScrollDirective
]
},] }
];
/*

@@ -505,0 +490,0 @@ * Public API Surface of ngx-slimscroll

{
"name": "ngx-slimscroll",
"version": "9.3.0",
"version": "10.0.0",
"peerDependencies": {
"@angular/common": "^9.1.9",
"@angular/core": "^9.1.9"
"@angular/common": "~10.0.4",
"@angular/core": "~10.0.4"
},
"dependencies": {
"tslib": "^1.10.0"
"tslib": "^2.0.0"
},
"main": "bundles/ngx-slimscroll.umd.js",
"module": "fesm5/ngx-slimscroll.js",
"module": "fesm2015/ngx-slimscroll.js",
"es2015": "fesm2015/ngx-slimscroll.js",
"esm5": "esm5/ngx-slimscroll.js",
"esm2015": "esm2015/ngx-slimscroll.js",
"fesm5": "fesm5/ngx-slimscroll.js",
"fesm2015": "fesm2015/ngx-slimscroll.js",

@@ -18,0 +16,0 @@ "typings": "ngx-slimscroll.d.ts",

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 too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc