@ibragim-dev-org/ui-forge-library 1.4.33 → 1.4.35

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
- "version": "1.4.33",
7
+ "version": "1.4.35",
8
8
  "peerDependencies": {
9
9
  "@angular/common": "^21.1.0",
10
10
  "@angular/core": "^21.1.0"
@@ -257,31 +257,28 @@ declare class ContainerSizeDirective implements AfterViewInit, OnDestroy {
257
257
  }
258
258
 
259
259
  declare class StableScrollDirective implements AfterViewInit, OnDestroy {
260
- private readonly host;
261
- private readonly destroyRef;
262
260
  private el;
263
- private lastScrollHeight;
264
- /** Emit when user reaches top threshold */
265
- reachedTop: i0.OutputEmitterRef<void>;
266
- /** Emit when user reaches bottom threshold */
267
- reachedBottom: i0.OutputEmitterRef<void>;
268
- /** Top threshold in px or percentage (0–1). Default: 0 (exact top). */
261
+ private resizeObserver;
262
+ private destroy$;
263
+ private scrolling$;
264
+ private _isScrolling;
269
265
  $topThreshold: i0.InputSignal<number>;
270
- /** Bottom threshold in px or percentage (0–1). Default: 0 (exact bottom). */
271
266
  $bottomThreshold: i0.InputSignal<number>;
272
- constructor(host: ElementRef<HTMLElement>, destroyRef: DestroyRef);
273
- private scrolling$;
274
- private scrollEnd$;
275
- private isScrolling;
276
- private resizeObserver;
267
+ reachedTop: i0.OutputEmitterRef<void>;
268
+ reachedBottom: i0.OutputEmitterRef<void>;
269
+ private anchorElement;
270
+ private anchorOffset;
271
+ constructor(elRef: ElementRef<HTMLElement>);
277
272
  get scrolling(): boolean;
278
273
  ngAfterViewInit(): void;
279
274
  ngOnDestroy(): void;
280
- private onScroll;
281
- /** Call this BEFORE you change the data */
275
+ /** Call BEFORE data changes */
282
276
  captureBeforeChange(): void;
283
- /** Call this AFTER Angular renders new items */
277
+ /** Call AFTER render */
284
278
  restoreScrollPosition(): void;
279
+ private checkThresholds;
280
+ private captureAnchor;
281
+ private restoreAnchor;
285
282
  static ɵfac: i0.ɵɵFactoryDeclaration<StableScrollDirective, never>;
286
283
  static ɵdir: i0.ɵɵDirectiveDeclaration<StableScrollDirective, "[stableScroll]", never, { "$topThreshold": { "alias": "$topThreshold"; "required": false; "isSignal": true; }; "$bottomThreshold": { "alias": "$bottomThreshold"; "required": false; "isSignal": true; }; }, { "reachedTop": "reachedTop"; "reachedBottom": "reachedBottom"; }, never, never, true, never>;
287
284
  }