@bizy/core 20.2.5 → 20.2.6
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/fesm2022/bizy-core.mjs +4 -4
- package/fesm2022/bizy-core.mjs.map +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -7447,7 +7447,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
7447
7447
|
}] });
|
|
7448
7448
|
|
|
7449
7449
|
class BizyReloadDirective {
|
|
7450
|
-
|
|
7450
|
+
bizyReloadThreshold = 200;
|
|
7451
7451
|
bizyReload = new EventEmitter();
|
|
7452
7452
|
#startY = null;
|
|
7453
7453
|
#currentY = null;
|
|
@@ -7460,20 +7460,20 @@ class BizyReloadDirective {
|
|
|
7460
7460
|
}
|
|
7461
7461
|
this.#currentY = event.touches[0].clientY;
|
|
7462
7462
|
const deltaY = this.#currentY - this.#startY;
|
|
7463
|
-
if (deltaY > this.
|
|
7463
|
+
if (deltaY > this.bizyReloadThreshold) {
|
|
7464
7464
|
this.#startY = null;
|
|
7465
7465
|
this.bizyReload.emit();
|
|
7466
7466
|
}
|
|
7467
7467
|
}
|
|
7468
7468
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyReloadDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7469
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.5", type: BizyReloadDirective, isStandalone: true, selector: "[bizyReload]", inputs: {
|
|
7469
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.5", type: BizyReloadDirective, isStandalone: true, selector: "[bizyReload]", inputs: { bizyReloadThreshold: "bizyReloadThreshold" }, outputs: { bizyReload: "bizyReload" }, host: { listeners: { "touchstart": "onTouchStart($event)", "touchmove": "onTouchMove($event)" } }, ngImport: i0 });
|
|
7470
7470
|
}
|
|
7471
7471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyReloadDirective, decorators: [{
|
|
7472
7472
|
type: Directive,
|
|
7473
7473
|
args: [{
|
|
7474
7474
|
selector: '[bizyReload]'
|
|
7475
7475
|
}]
|
|
7476
|
-
}], propDecorators: {
|
|
7476
|
+
}], propDecorators: { bizyReloadThreshold: [{
|
|
7477
7477
|
type: Input
|
|
7478
7478
|
}], bizyReload: [{
|
|
7479
7479
|
type: Output
|