@egjs/ngx-infinitegrid 4.7.1-beta.0 → 4.8.0
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/README.md +18 -12
- package/bundles/egjs-ngx-infinitegrid.umd.js +659 -0
- package/bundles/egjs-ngx-infinitegrid.umd.js.map +1 -0
- package/bundles/egjs-ngx-infinitegrid.umd.min.js +2 -0
- package/bundles/egjs-ngx-infinitegrid.umd.min.js.map +1 -0
- package/egjs-ngx-infinitegrid.d.ts +9 -0
- package/egjs-ngx-infinitegrid.metadata.json +1 -0
- package/esm2015/egjs-ngx-infinitegrid.js +10 -0
- package/esm2015/lib/consts.js +25 -0
- package/esm2015/lib/grids/ngx-frame-infinitegrid.component.js +19 -0
- package/esm2015/lib/grids/ngx-justified-infinitegrid.component.js +21 -0
- package/esm2015/lib/grids/ngx-masonry-infinitegrid.component.js +22 -0
- package/esm2015/lib/grids/ngx-packing-infinitegrid.component.js +20 -0
- package/esm2015/lib/ngx-infinitegrid.component.js +184 -0
- package/esm2015/lib/ngx-infinitegrid.interface.js +13 -0
- package/esm2015/lib/ngx-infinitegrid.module.js +31 -0
- package/esm2015/lib/types.js +2 -0
- package/esm2015/public-api.js +7 -0
- package/fesm2015/egjs-ngx-infinitegrid.js +316 -0
- package/fesm2015/egjs-ngx-infinitegrid.js.map +1 -0
- package/lib/consts.d.ts +1 -0
- package/lib/grids/ngx-frame-infinitegrid.component.d.ts +8 -0
- package/lib/grids/ngx-justified-infinitegrid.component.d.ts +10 -0
- package/lib/grids/ngx-masonry-infinitegrid.component.d.ts +11 -0
- package/lib/grids/ngx-packing-infinitegrid.component.d.ts +9 -0
- package/lib/ngx-infinitegrid.component.d.ts +67 -0
- package/lib/ngx-infinitegrid.interface.d.ts +12 -0
- package/lib/ngx-infinitegrid.module.d.ts +2 -0
- package/lib/types.d.ts +19 -0
- package/package.json +14 -13
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NgxInfiniteGridComponent } from '../ngx-infinitegrid.component';
|
|
2
|
+
import { FrameInfiniteGrid as VanillaFrameInfiniteGrid, FrameInfiniteGridOptions } from "@egjs/infinitegrid";
|
|
3
|
+
export declare class NgxFrameInfiniteGridComponent extends NgxInfiniteGridComponent implements Required<FrameInfiniteGridOptions> {
|
|
4
|
+
frame: Required<FrameInfiniteGridOptions>['frame'];
|
|
5
|
+
useFrameFill: Required<FrameInfiniteGridOptions>['useFrameFill'];
|
|
6
|
+
rectSize: Required<FrameInfiniteGridOptions>['rectSize'];
|
|
7
|
+
static GridClass: typeof VanillaFrameInfiniteGrid;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgxInfiniteGridComponent } from '../ngx-infinitegrid.component';
|
|
2
|
+
import { JustifiedInfiniteGrid as VanillaJustifiedInfiniteGrid, JustifiedInfiniteGridOptions } from "@egjs/infinitegrid";
|
|
3
|
+
export declare class NgxJustifiedInfiniteGridComponent extends NgxInfiniteGridComponent implements Required<JustifiedInfiniteGridOptions> {
|
|
4
|
+
columnRange: Required<JustifiedInfiniteGridOptions>['columnRange'];
|
|
5
|
+
rowRange: Required<JustifiedInfiniteGridOptions>['rowRange'];
|
|
6
|
+
sizeRange: Required<JustifiedInfiniteGridOptions>['sizeRange'];
|
|
7
|
+
displayedRow: Required<JustifiedInfiniteGridOptions>['displayedRow'];
|
|
8
|
+
isCroppedSize: Required<JustifiedInfiniteGridOptions>['isCroppedSize'];
|
|
9
|
+
static GridClass: typeof VanillaJustifiedInfiniteGrid;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgxInfiniteGridComponent } from '../ngx-infinitegrid.component';
|
|
2
|
+
import { MasonryInfiniteGrid as VanillaMasonryInfiniteGrid, MasonryInfiniteGridOptions } from "@egjs/infinitegrid";
|
|
3
|
+
export declare class NgxMasonryInfiniteGridComponent extends NgxInfiniteGridComponent implements Required<MasonryInfiniteGridOptions> {
|
|
4
|
+
static GridClass: typeof VanillaMasonryInfiniteGrid;
|
|
5
|
+
column: Required<MasonryInfiniteGridOptions>['column'];
|
|
6
|
+
columnSize: Required<MasonryInfiniteGridOptions>['columnSize'];
|
|
7
|
+
columnSizeRatio: Required<MasonryInfiniteGridOptions>['columnSizeRatio'];
|
|
8
|
+
align: Required<MasonryInfiniteGridOptions>['align'];
|
|
9
|
+
columnCalculationThreshold: Required<MasonryInfiniteGridOptions>['columnCalculationThreshold'];
|
|
10
|
+
maxStretchColumnSize: Required<MasonryInfiniteGridOptions>['maxStretchColumnSize'];
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NgxInfiniteGridComponent } from '../ngx-infinitegrid.component';
|
|
2
|
+
import { PackingInfiniteGrid as VanillaPackingInfiniteGrid, PackingInfiniteGridOptions } from "@egjs/infinitegrid";
|
|
3
|
+
export declare class NgxPackingInfiniteGridComponent extends NgxInfiniteGridComponent implements Required<PackingInfiniteGridOptions> {
|
|
4
|
+
aspectRatio: Required<PackingInfiniteGridOptions>['aspectRatio'];
|
|
5
|
+
sizeWeight: Required<PackingInfiniteGridOptions>['sizeWeight'];
|
|
6
|
+
ratioWeight: Required<PackingInfiniteGridOptions>['ratioWeight'];
|
|
7
|
+
weightPriority: Required<PackingInfiniteGridOptions>['weightPriority'];
|
|
8
|
+
static GridClass: typeof VanillaPackingInfiniteGrid;
|
|
9
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* egjs-infinitegrid
|
|
3
|
+
* Copyright (c) 2021-present NAVER Corp.
|
|
4
|
+
* MIT license
|
|
5
|
+
*/
|
|
6
|
+
import { AfterViewChecked, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, NgZone } from '@angular/core';
|
|
7
|
+
import { InfiniteGridFunction, InfiniteGridItem, InfiniteGridOptions, OnContentError, OnRenderComplete, OnRequestAppend, OnRequestPrepend, OnChangeScroll } from '@egjs/infinitegrid';
|
|
8
|
+
import { NgxInfiniteGridInterface } from './ngx-infinitegrid.interface';
|
|
9
|
+
import { NgxInfiniteGridProps } from './types';
|
|
10
|
+
export declare class NgxInfiniteGridComponent extends NgxInfiniteGridInterface implements Required<InfiniteGridOptions>, NgxInfiniteGridProps, AfterViewInit, AfterViewChecked, OnChanges, OnDestroy {
|
|
11
|
+
protected elementRef: ElementRef<HTMLElement>;
|
|
12
|
+
private _platformId;
|
|
13
|
+
private _ngZone;
|
|
14
|
+
static GridClass: InfiniteGridFunction | null;
|
|
15
|
+
gridConstructor: NgxInfiniteGridProps['gridConstructor'];
|
|
16
|
+
renderer: NgxInfiniteGridProps['renderer'];
|
|
17
|
+
container: NgxInfiniteGridProps['container'];
|
|
18
|
+
containerTag: NgxInfiniteGridProps['containerTag'];
|
|
19
|
+
threshold: NgxInfiniteGridProps['threshold'];
|
|
20
|
+
useRecycle: NgxInfiniteGridProps['useRecycle'];
|
|
21
|
+
horizontal: NgxInfiniteGridProps['horizontal'];
|
|
22
|
+
percentage: NgxInfiniteGridProps['percentage'];
|
|
23
|
+
isEqualSize: NgxInfiniteGridProps['isEqualSize'];
|
|
24
|
+
isConstantSize: NgxInfiniteGridProps['isConstantSize'];
|
|
25
|
+
gap: NgxInfiniteGridProps['gap'];
|
|
26
|
+
attributePrefix: NgxInfiniteGridProps['attributePrefix'];
|
|
27
|
+
resizeDebounce: NgxInfiniteGridProps['resizeDebounce'];
|
|
28
|
+
maxResizeDebounce: NgxInfiniteGridProps['maxResizeDebounce'];
|
|
29
|
+
autoResize: NgxInfiniteGridProps['autoResize'];
|
|
30
|
+
useFit: NgxInfiniteGridProps['useFit'];
|
|
31
|
+
useTransform: NgxInfiniteGridProps['useTransform'];
|
|
32
|
+
renderOnPropertyChange: NgxInfiniteGridProps['renderOnPropertyChange'];
|
|
33
|
+
preserveUIOnDestroy: NgxInfiniteGridProps['preserveUIOnDestroy'];
|
|
34
|
+
defaultDirection: NgxInfiniteGridProps['defaultDirection'];
|
|
35
|
+
externalItemRenderer: NgxInfiniteGridProps['externalItemRenderer'];
|
|
36
|
+
externalContainerManager: NgxInfiniteGridProps['externalContainerManager'];
|
|
37
|
+
outlineLength: NgxInfiniteGridProps['outlineLength'];
|
|
38
|
+
outlineSize: NgxInfiniteGridProps['outlineSize'];
|
|
39
|
+
useRoundedSize: NgxInfiniteGridProps['useRoundedSize'];
|
|
40
|
+
useResizeObserver: NgxInfiniteGridProps['useResizeObserver'];
|
|
41
|
+
observeChildren: NgxInfiniteGridProps['observeChildren'];
|
|
42
|
+
scrollContainer: NgxInfiniteGridProps['scrollContainer'];
|
|
43
|
+
usePlaceholder: NgxInfiniteGridProps['useFirstRender'];
|
|
44
|
+
useLoading: NgxInfiniteGridProps['useLoading'];
|
|
45
|
+
status: NgxInfiniteGridProps['status'];
|
|
46
|
+
useFirstRender: NgxInfiniteGridProps['useFirstRender'];
|
|
47
|
+
items: NgxInfiniteGridProps['items'];
|
|
48
|
+
trackBy: NgxInfiniteGridProps['trackBy'];
|
|
49
|
+
groupBy: NgxInfiniteGridProps['groupBy'];
|
|
50
|
+
renderComplete: EventEmitter<OnRenderComplete>;
|
|
51
|
+
contentError: EventEmitter<OnContentError>;
|
|
52
|
+
changeScroll: EventEmitter<OnChangeScroll>;
|
|
53
|
+
requestAppend: EventEmitter<OnRequestAppend>;
|
|
54
|
+
requestPrepend: EventEmitter<OnRequestPrepend>;
|
|
55
|
+
visibleItems: InfiniteGridItem[];
|
|
56
|
+
private _renderer;
|
|
57
|
+
private _isChange;
|
|
58
|
+
private _destroy$;
|
|
59
|
+
constructor(elementRef: ElementRef<HTMLElement>, _platformId: string, _ngZone: NgZone);
|
|
60
|
+
ngOnInit(): void;
|
|
61
|
+
ngOnChanges(): void;
|
|
62
|
+
ngAfterViewInit(): void;
|
|
63
|
+
ngAfterViewChecked(): void;
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
private _getItemInfos;
|
|
66
|
+
private _updateVisibleChildren;
|
|
67
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* egjs-infinitegrid
|
|
3
|
+
* Copyright (c) 2021-present NAVER Corp.
|
|
4
|
+
* MIT license
|
|
5
|
+
*/
|
|
6
|
+
import VanillaInfiniteGrid, { InfiniteGridMethods } from '@egjs/infinitegrid';
|
|
7
|
+
import { NgxInfiniteGridComponent } from './ngx-infinitegrid.component';
|
|
8
|
+
export declare class NgxInfiniteGridInterface {
|
|
9
|
+
protected vanillaGrid: VanillaInfiniteGrid;
|
|
10
|
+
}
|
|
11
|
+
export interface NgxInfiniteGridInterface extends InfiniteGridMethods<NgxInfiniteGridComponent> {
|
|
12
|
+
}
|
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* egjs-infinitegrid
|
|
3
|
+
* Copyright (c) 2021-present NAVER Corp.
|
|
4
|
+
* MIT license
|
|
5
|
+
*/
|
|
6
|
+
import { EventEmitter } from "@angular/core";
|
|
7
|
+
import { InfiniteGridEvents, InfiniteGridOptions, InfiniteGridStatus } from "@egjs/infinitegrid";
|
|
8
|
+
export declare type NgxInfiniteGridEvents = {
|
|
9
|
+
[key in keyof InfiniteGridEvents]: EventEmitter<InfiniteGridEvents[key]>;
|
|
10
|
+
};
|
|
11
|
+
export interface NgxInfiniteGridProps extends NgxInfiniteGridEvents, Required<InfiniteGridOptions> {
|
|
12
|
+
usePlaceholder: boolean;
|
|
13
|
+
useLoading: boolean;
|
|
14
|
+
useFirstRender: boolean;
|
|
15
|
+
status: InfiniteGridStatus;
|
|
16
|
+
items: any[];
|
|
17
|
+
trackBy: (index: number, item: any) => any;
|
|
18
|
+
groupBy: (index: number, item: any) => any;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egjs/ngx-infinitegrid",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "An Angular component that can arrange items infinitely according to the type of grids",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,20 +16,21 @@
|
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/naver/egjs-infinitegrid/issues"
|
|
18
18
|
},
|
|
19
|
-
"files": [
|
|
20
|
-
"./*",
|
|
21
|
-
"esm2015/*",
|
|
22
|
-
"fesm2015/*",
|
|
23
|
-
"bundles/*",
|
|
24
|
-
"lib/*"
|
|
25
|
-
],
|
|
26
19
|
"license": "MIT",
|
|
27
20
|
"peerDependencies": {
|
|
28
|
-
"@angular/common": "
|
|
29
|
-
"@angular/core": "
|
|
21
|
+
"@angular/common": ">=11.0.0",
|
|
22
|
+
"@angular/core": ">=11.0.0"
|
|
30
23
|
},
|
|
31
24
|
"dependencies": {
|
|
32
|
-
"@egjs/infinitegrid": "~4.
|
|
25
|
+
"@egjs/infinitegrid": "~4.8.0",
|
|
33
26
|
"tslib": "^2.0.0"
|
|
34
|
-
}
|
|
35
|
-
|
|
27
|
+
},
|
|
28
|
+
"main": "bundles/egjs-ngx-infinitegrid.umd.js",
|
|
29
|
+
"module": "fesm2015/egjs-ngx-infinitegrid.js",
|
|
30
|
+
"es2015": "fesm2015/egjs-ngx-infinitegrid.js",
|
|
31
|
+
"esm2015": "esm2015/egjs-ngx-infinitegrid.js",
|
|
32
|
+
"fesm2015": "fesm2015/egjs-ngx-infinitegrid.js",
|
|
33
|
+
"typings": "egjs-ngx-infinitegrid.d.ts",
|
|
34
|
+
"metadata": "egjs-ngx-infinitegrid.metadata.json",
|
|
35
|
+
"sideEffects": false
|
|
36
|
+
}
|
package/public-api.d.ts
ADDED