@egjs/ngx-infinitegrid 4.7.1 → 4.8.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.
@@ -3,14 +3,15 @@
3
3
  * Copyright (c) 2021-present NAVER Corp.
4
4
  * MIT license
5
5
  */
6
- import { AfterViewChecked, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
6
+ import { AfterViewChecked, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, NgZone } from '@angular/core';
7
7
  import { InfiniteGridFunction, InfiniteGridItem, InfiniteGridOptions, OnContentError, OnRenderComplete, OnRequestAppend, OnRequestPrepend, OnChangeScroll } from '@egjs/infinitegrid';
8
8
  import { NgxInfiniteGridInterface } from './ngx-infinitegrid.interface';
9
9
  import { NgxInfiniteGridProps } from './types';
10
10
  export declare class NgxInfiniteGridComponent extends NgxInfiniteGridInterface implements Required<InfiniteGridOptions>, NgxInfiniteGridProps, AfterViewInit, AfterViewChecked, OnChanges, OnDestroy {
11
- protected elementRef: ElementRef;
12
- private _platform;
13
- static GridClass: InfiniteGridFunction;
11
+ protected elementRef: ElementRef<HTMLElement>;
12
+ private _platformId;
13
+ private _ngZone;
14
+ static GridClass: InfiniteGridFunction | null;
14
15
  gridConstructor: NgxInfiniteGridProps['gridConstructor'];
15
16
  renderer: NgxInfiniteGridProps['renderer'];
16
17
  container: NgxInfiniteGridProps['container'];
@@ -52,11 +53,10 @@ export declare class NgxInfiniteGridComponent extends NgxInfiniteGridInterface i
52
53
  requestAppend: EventEmitter<OnRequestAppend>;
53
54
  requestPrepend: EventEmitter<OnRequestPrepend>;
54
55
  visibleItems: InfiniteGridItem[];
55
- _wrapperRef: ElementRef;
56
- _containerRef: ElementRef;
57
56
  private _renderer;
58
57
  private _isChange;
59
- constructor(elementRef: ElementRef, _platform: Object);
58
+ private _destroy$;
59
+ constructor(elementRef: ElementRef<HTMLElement>, _platformId: string, _ngZone: NgZone);
60
60
  ngOnInit(): void;
61
61
  ngOnChanges(): void;
62
62
  ngAfterViewInit(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egjs/ngx-infinitegrid",
3
- "version": "4.7.1",
3
+ "version": "4.8.1",
4
4
  "description": "An Angular component that can arrange items infinitely according to the type of grids",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "peerDependencies": {
21
- "@angular/common": "^11.2.14",
22
- "@angular/core": "^11.2.14"
21
+ "@angular/common": ">=11.0.0",
22
+ "@angular/core": ">=11.0.0"
23
23
  },
24
24
  "dependencies": {
25
- "@egjs/infinitegrid": "~4.7.1",
25
+ "@egjs/infinitegrid": "~4.8.1",
26
26
  "tslib": "^2.0.0"
27
27
  },
28
28
  "main": "bundles/egjs-ngx-infinitegrid.umd.js",
package/public-api.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export * from './lib/ngx-infinitegrid.service';
2
1
  export * from './lib/grids/ngx-masonry-infinitegrid.component';
3
2
  export * from './lib/ngx-infinitegrid.component';
4
3
  export * from './lib/ngx-infinitegrid.module';
@@ -1,13 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class NgxInfinitegridService {
4
- constructor() { }
5
- }
6
- NgxInfinitegridService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NgxInfinitegridService_Factory() { return new NgxInfinitegridService(); }, token: NgxInfinitegridService, providedIn: "root" });
7
- NgxInfinitegridService.decorators = [
8
- { type: Injectable, args: [{
9
- providedIn: 'root'
10
- },] }
11
- ];
12
- NgxInfinitegridService.ctorParameters = () => [];
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWluZmluaXRlZ3JpZC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWluZmluaXRlZ3JpZC9zcmMvbGliL25neC1pbmZpbml0ZWdyaWQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sc0JBQXNCO0lBRWpDLGdCQUFnQixDQUFDOzs7O1lBTGxCLFVBQVUsU0FBQztnQkFDVixVQUFVLEVBQUUsTUFBTTthQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgTmd4SW5maW5pdGVncmlkU2VydmljZSB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cbn1cbiJdfQ==
@@ -1,3 +0,0 @@
1
- export declare class NgxInfinitegridService {
2
- constructor();
3
- }