vscroll 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/vscroll.esm5.js +15 -19
- package/dist/bundles/vscroll.esm5.js.map +1 -1
- package/dist/bundles/vscroll.esm5.min.js +2 -2
- package/dist/bundles/vscroll.esm5.min.js.map +1 -1
- package/dist/bundles/vscroll.esm6.js +17 -19
- package/dist/bundles/vscroll.esm6.js.map +1 -1
- package/dist/bundles/vscroll.esm6.min.js +2 -2
- package/dist/bundles/vscroll.esm6.min.js.map +1 -1
- package/dist/bundles/vscroll.umd.js +16 -20
- package/dist/bundles/vscroll.umd.js.map +1 -1
- package/dist/bundles/vscroll.umd.min.js +2 -2
- package/dist/bundles/vscroll.umd.min.js.map +1 -1
- package/dist/esm2015/classes/adapter.js +15 -17
- package/dist/esm2015/classes/adapter.js.map +1 -1
- package/dist/esm2015/version.js +1 -1
- package/dist/esm2015/version.js.map +1 -1
- package/dist/esm5/classes/adapter.js +13 -17
- package/dist/esm5/classes/adapter.js.map +1 -1
- package/dist/esm5/version.js +1 -1
- package/dist/esm5/version.js.map +1 -1
- package/dist/typings/classes/adapter.d.ts +0 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* vscroll (https://github.com/dhilt/vscroll) FESM2015
|
|
3
|
-
* Version: 1.6.
|
|
3
|
+
* Version: 1.6.1 (2024-03-03T11:48:55.133Z)
|
|
4
4
|
* Author: Denis Hilt
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -362,7 +362,7 @@ const reactiveConfigStorage = new Map();
|
|
|
362
362
|
|
|
363
363
|
var core = {
|
|
364
364
|
name: 'vscroll',
|
|
365
|
-
version: '1.6.
|
|
365
|
+
version: '1.6.1'
|
|
366
366
|
};
|
|
367
367
|
|
|
368
368
|
const getBox = (id) => {
|
|
@@ -4379,15 +4379,6 @@ class Adapter {
|
|
|
4379
4379
|
get reloadId() {
|
|
4380
4380
|
return this.id + '.' + this.reloadCounter;
|
|
4381
4381
|
}
|
|
4382
|
-
shouldIgnorePausedMethod(method) {
|
|
4383
|
-
const methodName = method.name;
|
|
4384
|
-
return this.paused && !ALLOWED_METHODS_WHEN_PAUSED.includes(methodName);
|
|
4385
|
-
}
|
|
4386
|
-
getPausedMethodResult(method) {
|
|
4387
|
-
var _a, _b;
|
|
4388
|
-
(_b = (_a = this.logger) === null || _a === void 0 ? void 0 : _a.log) === null || _b === void 0 ? void 0 : _b.call(_a, () => 'scroller is paused: ' + method.name + ' method is ignored');
|
|
4389
|
-
return Promise.resolve(methodPausedResult);
|
|
4390
|
-
}
|
|
4391
4382
|
getPromisifiedMethod(method, args) {
|
|
4392
4383
|
return new Promise(resolve => {
|
|
4393
4384
|
if (this.relax$) {
|
|
@@ -4396,12 +4387,19 @@ class Adapter {
|
|
|
4396
4387
|
method.apply(this, args);
|
|
4397
4388
|
});
|
|
4398
4389
|
}
|
|
4399
|
-
getWorkflowRunnerMethod(method,
|
|
4400
|
-
return (...args) =>
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4390
|
+
getWorkflowRunnerMethod(method, name) {
|
|
4391
|
+
return (...args) => {
|
|
4392
|
+
var _a, _b, _c, _d;
|
|
4393
|
+
if (!this.relax$) {
|
|
4394
|
+
(_b = (_a = this.logger) === null || _a === void 0 ? void 0 : _a.log) === null || _b === void 0 ? void 0 : _b.call(_a, () => 'scroller is not initialized: ' + name + ' method is ignored');
|
|
4395
|
+
return Promise.resolve(methodPreResult);
|
|
4396
|
+
}
|
|
4397
|
+
if (this.paused && !ALLOWED_METHODS_WHEN_PAUSED.includes(name)) {
|
|
4398
|
+
(_d = (_c = this.logger) === null || _c === void 0 ? void 0 : _c.log) === null || _d === void 0 ? void 0 : _d.call(_c, () => 'scroller is paused: ' + name + ' method is ignored');
|
|
4399
|
+
return Promise.resolve(methodPausedResult);
|
|
4400
|
+
}
|
|
4401
|
+
return this.getPromisifiedMethod(method, args);
|
|
4402
|
+
};
|
|
4405
4403
|
}
|
|
4406
4404
|
constructor(context, getWorkflow, logger) {
|
|
4407
4405
|
this.source = {}; // for Reactive props
|
|
@@ -4517,13 +4515,13 @@ class Adapter {
|
|
|
4517
4515
|
// Adapter public context augmentation
|
|
4518
4516
|
adapterProps
|
|
4519
4517
|
.forEach((prop) => {
|
|
4520
|
-
const { name, type,
|
|
4518
|
+
const { name, type, permanent } = prop;
|
|
4521
4519
|
let value = this[name];
|
|
4522
4520
|
if (type === AdapterPropType.Function) {
|
|
4523
4521
|
value = value.bind(this);
|
|
4524
4522
|
}
|
|
4525
4523
|
else if (type === AdapterPropType.WorkflowRunner) {
|
|
4526
|
-
value = this.getWorkflowRunnerMethod(value,
|
|
4524
|
+
value = this.getWorkflowRunnerMethod(value, name);
|
|
4527
4525
|
}
|
|
4528
4526
|
else if (type === AdapterPropType.Reactive && reactivePropsStore[name]) {
|
|
4529
4527
|
value = context[name];
|