@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.
- package/README.md +18 -12
- package/bundles/egjs-ngx-infinitegrid.umd.js +95 -122
- package/bundles/egjs-ngx-infinitegrid.umd.js.map +1 -1
- package/bundles/egjs-ngx-infinitegrid.umd.min.js +1 -1
- package/bundles/egjs-ngx-infinitegrid.umd.min.js.map +1 -1
- package/egjs-ngx-infinitegrid.metadata.json +1 -1
- package/esm2015/lib/ngx-infinitegrid.component.js +29 -21
- package/esm2015/public-api.js +1 -2
- package/fesm2015/egjs-ngx-infinitegrid.js +29 -33
- package/fesm2015/egjs-ngx-infinitegrid.js.map +1 -1
- package/lib/ngx-infinitegrid.component.d.ts +7 -7
- package/package.json +4 -4
- package/public-api.d.ts +0 -1
- package/esm2015/lib/ngx-infinitegrid.service.js +0 -13
- package/lib/ngx-infinitegrid.service.d.ts +0 -3
package/README.md
CHANGED
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
|
|
34
34
|
## ⚙️ Installation
|
|
35
35
|
```sh
|
|
36
|
-
npm install
|
|
36
|
+
npm install @egjs/ngx-infinitegrid
|
|
37
|
+
# Or if you're using yarn
|
|
38
|
+
yarn add @egjs/ngx-infinitegrid
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
## 🏃 Quick Start
|
|
@@ -54,22 +56,25 @@ import { NgModule } from '@angular/core';
|
|
|
54
56
|
providers: [],
|
|
55
57
|
bootstrap: [AppComponent]
|
|
56
58
|
})
|
|
57
|
-
export class AppModule {
|
|
59
|
+
export class AppModule {} /* Your app */
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
```html
|
|
61
|
-
<div
|
|
63
|
+
<div
|
|
64
|
+
NgxMasonryInfiniteGrid
|
|
62
65
|
class="container"
|
|
63
66
|
[gap]="5"
|
|
64
67
|
[items]="items"
|
|
65
68
|
[trackBy]="trackBy"
|
|
66
69
|
[groupBy]="groupBy"
|
|
67
70
|
(requestAppend)="onRequestAppend($event)"
|
|
68
|
-
*ngFor="let item of [0]; trackBy: randomTrackBy
|
|
71
|
+
*ngFor="let item of [0]; trackBy: randomTrackBy"
|
|
69
72
|
#ig
|
|
70
|
-
|
|
71
|
-
<div
|
|
72
|
-
|
|
73
|
+
>
|
|
74
|
+
<div
|
|
75
|
+
class="item"
|
|
76
|
+
*ngFor="let item of ig.visibleItems; trackBy: trackBy;"
|
|
77
|
+
></div>
|
|
73
78
|
</div>
|
|
74
79
|
```
|
|
75
80
|
|
|
@@ -79,10 +84,11 @@ import { OnRequestAppend } from '@egjs/infinitegrid';
|
|
|
79
84
|
|
|
80
85
|
@Component({
|
|
81
86
|
selector: 'app-root',
|
|
82
|
-
templateUrl: './app.component.html'
|
|
87
|
+
templateUrl: './app.component.html'
|
|
83
88
|
})
|
|
84
89
|
export class AppComponent {
|
|
85
90
|
items = this.getItems(0, 10);
|
|
91
|
+
|
|
86
92
|
getItems(nextGroupKey: number, count: number) {
|
|
87
93
|
const nextItems = [];
|
|
88
94
|
const nextKey = nextGroupKey * count;
|
|
@@ -92,19 +98,19 @@ export class AppComponent {
|
|
|
92
98
|
}
|
|
93
99
|
return nextItems;
|
|
94
100
|
}
|
|
101
|
+
|
|
95
102
|
groupBy(_: any, item: any) {
|
|
96
103
|
return item.groupKey;
|
|
97
104
|
}
|
|
105
|
+
|
|
98
106
|
trackBy(_: any, item: any) {
|
|
99
107
|
return item.key;
|
|
100
108
|
}
|
|
109
|
+
|
|
101
110
|
onRequestAppend(e: OnRequestAppend) {
|
|
102
111
|
const nextGroupKey = (+e.groupKey! || 0) + 1;
|
|
103
112
|
|
|
104
|
-
this.items = [
|
|
105
|
-
...this.items,
|
|
106
|
-
...this.getItems(nextGroupKey, 10),
|
|
107
|
-
];
|
|
113
|
+
this.items = [...this.items, ...this.getItems(nextGroupKey, 10)];
|
|
108
114
|
}
|
|
109
115
|
}
|
|
110
116
|
```
|
|
@@ -1,41 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@egjs/infinitegrid')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@egjs/ngx-infinitegrid', ['exports', '@angular/core', '@angular/common', '@egjs/infinitegrid'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.egjs = global.egjs || {}, global.egjs["ngx-infinitegrid"] = {}), global.ng.core, global.ng.common, global.infinitegrid));
|
|
5
|
-
})(this, (function (exports,
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
|
|
27
|
-
var NgxInfinitegridService = /** @class */ (function () {
|
|
28
|
-
function NgxInfinitegridService() {
|
|
29
|
-
}
|
|
30
|
-
return NgxInfinitegridService;
|
|
31
|
-
}());
|
|
32
|
-
NgxInfinitegridService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NgxInfinitegridService_Factory() { return new NgxInfinitegridService(); }, token: NgxInfinitegridService, providedIn: "root" });
|
|
33
|
-
NgxInfinitegridService.decorators = [
|
|
34
|
-
{ type: i0.Injectable, args: [{
|
|
35
|
-
providedIn: 'root'
|
|
36
|
-
},] }
|
|
37
|
-
];
|
|
38
|
-
NgxInfinitegridService.ctorParameters = function () { return []; };
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('@egjs/infinitegrid')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@egjs/ngx-infinitegrid', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators', '@egjs/infinitegrid'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.egjs = global.egjs || {}, global.egjs["ngx-infinitegrid"] = {}), global.ng.core, global.ng.common, global.rxjs, global.rxjs.operators, global.infinitegrid));
|
|
5
|
+
})(this, (function (exports, core, common, rxjs, operators, infinitegrid) { 'use strict';
|
|
39
6
|
|
|
40
7
|
/******************************************************************************
|
|
41
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -135,7 +102,7 @@
|
|
|
135
102
|
function step(op) {
|
|
136
103
|
if (f)
|
|
137
104
|
throw new TypeError("Generator is already executing.");
|
|
138
|
-
while (_)
|
|
105
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
139
106
|
try {
|
|
140
107
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
141
108
|
return t;
|
|
@@ -373,22 +340,23 @@
|
|
|
373
340
|
infinitegrid.withInfiniteGridMethods
|
|
374
341
|
], NgxInfiniteGridInterface.prototype, "vanillaGrid", void 0);
|
|
375
342
|
|
|
376
|
-
// @dynamic
|
|
377
343
|
var NgxInfiniteGridComponent = /** @class */ (function (_super) {
|
|
378
344
|
__extends(NgxInfiniteGridComponent, _super);
|
|
379
|
-
function NgxInfiniteGridComponent(elementRef,
|
|
345
|
+
function NgxInfiniteGridComponent(elementRef, _platformId, _ngZone) {
|
|
380
346
|
var _this = _super.call(this) || this;
|
|
381
347
|
_this.elementRef = elementRef;
|
|
382
|
-
_this.
|
|
348
|
+
_this._platformId = _platformId;
|
|
349
|
+
_this._ngZone = _ngZone;
|
|
383
350
|
_this.items = [];
|
|
384
351
|
_this.trackBy = (function (_, item) { return item.key; });
|
|
385
352
|
_this.groupBy = (function (_, item) { return item.groupKey; });
|
|
386
353
|
_this.visibleItems = [];
|
|
387
354
|
_this._renderer = new infinitegrid.Renderer();
|
|
388
355
|
_this._isChange = false;
|
|
356
|
+
_this._destroy$ = new rxjs.Subject();
|
|
389
357
|
for (var name in infinitegrid.INFINITEGRID_EVENTS) {
|
|
390
358
|
var eventName = infinitegrid.INFINITEGRID_EVENTS[name];
|
|
391
|
-
_this[eventName] = new
|
|
359
|
+
_this[eventName] = new core.EventEmitter();
|
|
392
360
|
}
|
|
393
361
|
return _this;
|
|
394
362
|
}
|
|
@@ -401,36 +369,41 @@
|
|
|
401
369
|
};
|
|
402
370
|
NgxInfiniteGridComponent.prototype.ngAfterViewInit = function () {
|
|
403
371
|
var _this = this;
|
|
404
|
-
|
|
405
|
-
if (!common.isPlatformBrowser(this._platform)) {
|
|
372
|
+
if (common.isPlatformServer(this._platformId)) {
|
|
406
373
|
return;
|
|
407
374
|
}
|
|
408
375
|
var GridClass = this.constructor.GridClass;
|
|
409
376
|
var defaultOptions = GridClass.defaultOptions;
|
|
410
377
|
var options = {};
|
|
411
|
-
var containerElement = (_a = this._containerRef) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
412
378
|
for (var name in defaultOptions) {
|
|
413
379
|
if (name in this && typeof this[name] !== "undefined") {
|
|
414
380
|
options[name] = this[name];
|
|
415
381
|
}
|
|
416
382
|
}
|
|
417
|
-
if (containerElement) {
|
|
418
|
-
options.container = containerElement;
|
|
419
|
-
}
|
|
420
383
|
options.renderer = this._renderer;
|
|
421
|
-
|
|
422
|
-
|
|
384
|
+
// The `InfiniteGrid` set ups `scroll` and `resize` events through `ScrollManager`
|
|
385
|
+
// and `ResizeWatcher`. These events force Angular to run change detection whenever
|
|
386
|
+
// dispatched; this happens too often.
|
|
387
|
+
var grid = this._ngZone.runOutsideAngular(function () { return new GridClass(_this.elementRef.nativeElement, options); });
|
|
423
388
|
var _loop_1 = function (name) {
|
|
424
389
|
var eventName = infinitegrid.INFINITEGRID_EVENTS[name];
|
|
425
|
-
|
|
426
|
-
|
|
390
|
+
rxjs.fromEvent(grid, eventName)
|
|
391
|
+
.pipe(operators.takeUntil(this_1._destroy$))
|
|
392
|
+
.subscribe(function (event) {
|
|
393
|
+
var emitter = _this[eventName];
|
|
394
|
+
if (emitter && emitter.observers.length > 0) {
|
|
395
|
+
_this._ngZone.run(function () { return emitter.emit(event); });
|
|
396
|
+
}
|
|
427
397
|
});
|
|
428
398
|
};
|
|
399
|
+
var this_1 = this;
|
|
429
400
|
for (var name in infinitegrid.INFINITEGRID_EVENTS) {
|
|
430
401
|
_loop_1(name);
|
|
431
402
|
}
|
|
432
403
|
this.vanillaGrid = grid;
|
|
433
|
-
this._renderer
|
|
404
|
+
rxjs.fromEvent(this._renderer, 'requestUpdate')
|
|
405
|
+
.pipe(operators.takeUntil(this._destroy$))
|
|
406
|
+
.subscribe(function () {
|
|
434
407
|
_this._isChange = true;
|
|
435
408
|
_this._updateVisibleChildren();
|
|
436
409
|
});
|
|
@@ -465,6 +438,7 @@
|
|
|
465
438
|
};
|
|
466
439
|
NgxInfiniteGridComponent.prototype.ngOnDestroy = function () {
|
|
467
440
|
var _a;
|
|
441
|
+
this._destroy$.next();
|
|
468
442
|
(_a = this.vanillaGrid) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
469
443
|
};
|
|
470
444
|
NgxInfiniteGridComponent.prototype._getItemInfos = function () {
|
|
@@ -491,60 +465,60 @@
|
|
|
491
465
|
};
|
|
492
466
|
return NgxInfiniteGridComponent;
|
|
493
467
|
}(NgxInfiniteGridInterface));
|
|
468
|
+
NgxInfiniteGridComponent.GridClass = null;
|
|
494
469
|
NgxInfiniteGridComponent.decorators = [
|
|
495
|
-
{ type:
|
|
470
|
+
{ type: core.Component, args: [{
|
|
496
471
|
selector: 'ngx-infinite-grid, [NgxInfiniteGrid]',
|
|
497
472
|
template: '<slot></slot>',
|
|
498
473
|
styles: [':host { display: block }']
|
|
499
474
|
},] }
|
|
500
475
|
];
|
|
501
476
|
NgxInfiniteGridComponent.ctorParameters = function () { return [
|
|
502
|
-
{ type:
|
|
503
|
-
{ type:
|
|
477
|
+
{ type: core.ElementRef },
|
|
478
|
+
{ type: String, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },
|
|
479
|
+
{ type: core.NgZone }
|
|
504
480
|
]; };
|
|
505
481
|
NgxInfiniteGridComponent.propDecorators = {
|
|
506
|
-
gridConstructor: [{ type:
|
|
507
|
-
renderer: [{ type:
|
|
508
|
-
container: [{ type:
|
|
509
|
-
containerTag: [{ type:
|
|
510
|
-
threshold: [{ type:
|
|
511
|
-
useRecycle: [{ type:
|
|
512
|
-
horizontal: [{ type:
|
|
513
|
-
percentage: [{ type:
|
|
514
|
-
isEqualSize: [{ type:
|
|
515
|
-
isConstantSize: [{ type:
|
|
516
|
-
gap: [{ type:
|
|
517
|
-
attributePrefix: [{ type:
|
|
518
|
-
resizeDebounce: [{ type:
|
|
519
|
-
maxResizeDebounce: [{ type:
|
|
520
|
-
autoResize: [{ type:
|
|
521
|
-
useFit: [{ type:
|
|
522
|
-
useTransform: [{ type:
|
|
523
|
-
renderOnPropertyChange: [{ type:
|
|
524
|
-
preserveUIOnDestroy: [{ type:
|
|
525
|
-
defaultDirection: [{ type:
|
|
526
|
-
externalItemRenderer: [{ type:
|
|
527
|
-
externalContainerManager: [{ type:
|
|
528
|
-
outlineLength: [{ type:
|
|
529
|
-
outlineSize: [{ type:
|
|
530
|
-
useRoundedSize: [{ type:
|
|
531
|
-
useResizeObserver: [{ type:
|
|
532
|
-
observeChildren: [{ type:
|
|
533
|
-
scrollContainer: [{ type:
|
|
534
|
-
usePlaceholder: [{ type:
|
|
535
|
-
useLoading: [{ type:
|
|
536
|
-
status: [{ type:
|
|
537
|
-
useFirstRender: [{ type:
|
|
538
|
-
items: [{ type:
|
|
539
|
-
trackBy: [{ type:
|
|
540
|
-
groupBy: [{ type:
|
|
541
|
-
renderComplete: [{ type:
|
|
542
|
-
contentError: [{ type:
|
|
543
|
-
changeScroll: [{ type:
|
|
544
|
-
requestAppend: [{ type:
|
|
545
|
-
requestPrepend: [{ type:
|
|
546
|
-
_wrapperRef: [{ type: i0.ViewChild, args: ['wrapperRef', { static: false },] }],
|
|
547
|
-
_containerRef: [{ type: i0.ViewChild, args: ['containerRef', { static: false },] }]
|
|
482
|
+
gridConstructor: [{ type: core.Input }],
|
|
483
|
+
renderer: [{ type: core.Input }],
|
|
484
|
+
container: [{ type: core.Input }],
|
|
485
|
+
containerTag: [{ type: core.Input }],
|
|
486
|
+
threshold: [{ type: core.Input }],
|
|
487
|
+
useRecycle: [{ type: core.Input }],
|
|
488
|
+
horizontal: [{ type: core.Input }],
|
|
489
|
+
percentage: [{ type: core.Input }],
|
|
490
|
+
isEqualSize: [{ type: core.Input }],
|
|
491
|
+
isConstantSize: [{ type: core.Input }],
|
|
492
|
+
gap: [{ type: core.Input }],
|
|
493
|
+
attributePrefix: [{ type: core.Input }],
|
|
494
|
+
resizeDebounce: [{ type: core.Input }],
|
|
495
|
+
maxResizeDebounce: [{ type: core.Input }],
|
|
496
|
+
autoResize: [{ type: core.Input }],
|
|
497
|
+
useFit: [{ type: core.Input }],
|
|
498
|
+
useTransform: [{ type: core.Input }],
|
|
499
|
+
renderOnPropertyChange: [{ type: core.Input }],
|
|
500
|
+
preserveUIOnDestroy: [{ type: core.Input }],
|
|
501
|
+
defaultDirection: [{ type: core.Input }],
|
|
502
|
+
externalItemRenderer: [{ type: core.Input }],
|
|
503
|
+
externalContainerManager: [{ type: core.Input }],
|
|
504
|
+
outlineLength: [{ type: core.Input }],
|
|
505
|
+
outlineSize: [{ type: core.Input }],
|
|
506
|
+
useRoundedSize: [{ type: core.Input }],
|
|
507
|
+
useResizeObserver: [{ type: core.Input }],
|
|
508
|
+
observeChildren: [{ type: core.Input }],
|
|
509
|
+
scrollContainer: [{ type: core.Input }],
|
|
510
|
+
usePlaceholder: [{ type: core.Input }],
|
|
511
|
+
useLoading: [{ type: core.Input }],
|
|
512
|
+
status: [{ type: core.Input }],
|
|
513
|
+
useFirstRender: [{ type: core.Input }],
|
|
514
|
+
items: [{ type: core.Input }],
|
|
515
|
+
trackBy: [{ type: core.Input }],
|
|
516
|
+
groupBy: [{ type: core.Input }],
|
|
517
|
+
renderComplete: [{ type: core.Output }],
|
|
518
|
+
contentError: [{ type: core.Output }],
|
|
519
|
+
changeScroll: [{ type: core.Output }],
|
|
520
|
+
requestAppend: [{ type: core.Output }],
|
|
521
|
+
requestPrepend: [{ type: core.Output }]
|
|
548
522
|
};
|
|
549
523
|
|
|
550
524
|
var TEMPLATE = "\n<ng-template #content><ng-content></ng-content></ng-template>\n\n<ng-template #viewer>\n <ng-template [ngIf]=\"container === true\" [ngIfElse]=\"noContainer\">\n <div #containerRef>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n </ng-template>\n <ng-template #noContainer>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-template>\n</ng-template>\n\n<ng-template [ngIf]=\"elementRef.nativeElement.tagName.indexOf('NGX-') === 0\" [ngIfElse]=\"noWrapper\">\n <div #wrapperRef>\n <ng-container *ngTemplateOutlet=\"viewer\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #noWrapper>\n <ng-container *ngTemplateOutlet=\"viewer\"></ng-container>\n</ng-template>\n";
|
|
@@ -558,18 +532,18 @@
|
|
|
558
532
|
}(NgxInfiniteGridComponent));
|
|
559
533
|
NgxMasonryInfiniteGridComponent.GridClass = infinitegrid.MasonryInfiniteGrid;
|
|
560
534
|
NgxMasonryInfiniteGridComponent.decorators = [
|
|
561
|
-
{ type:
|
|
535
|
+
{ type: core.Component, args: [{
|
|
562
536
|
selector: 'ngx-masonry-infinite-grid, [NgxMasonryInfiniteGrid]',
|
|
563
537
|
template: TEMPLATE
|
|
564
538
|
},] }
|
|
565
539
|
];
|
|
566
540
|
NgxMasonryInfiniteGridComponent.propDecorators = {
|
|
567
|
-
column: [{ type:
|
|
568
|
-
columnSize: [{ type:
|
|
569
|
-
columnSizeRatio: [{ type:
|
|
570
|
-
align: [{ type:
|
|
571
|
-
columnCalculationThreshold: [{ type:
|
|
572
|
-
maxStretchColumnSize: [{ type:
|
|
541
|
+
column: [{ type: core.Input }],
|
|
542
|
+
columnSize: [{ type: core.Input }],
|
|
543
|
+
columnSizeRatio: [{ type: core.Input }],
|
|
544
|
+
align: [{ type: core.Input }],
|
|
545
|
+
columnCalculationThreshold: [{ type: core.Input }],
|
|
546
|
+
maxStretchColumnSize: [{ type: core.Input }]
|
|
573
547
|
};
|
|
574
548
|
|
|
575
549
|
var NgxJustifiedInfiniteGridComponent = /** @class */ (function (_super) {
|
|
@@ -581,17 +555,17 @@
|
|
|
581
555
|
}(NgxInfiniteGridComponent));
|
|
582
556
|
NgxJustifiedInfiniteGridComponent.GridClass = infinitegrid.JustifiedInfiniteGrid;
|
|
583
557
|
NgxJustifiedInfiniteGridComponent.decorators = [
|
|
584
|
-
{ type:
|
|
558
|
+
{ type: core.Component, args: [{
|
|
585
559
|
selector: 'ngx-justified-infinite-grid, [NgxJustifiedInfiniteGrid]',
|
|
586
560
|
template: TEMPLATE
|
|
587
561
|
},] }
|
|
588
562
|
];
|
|
589
563
|
NgxJustifiedInfiniteGridComponent.propDecorators = {
|
|
590
|
-
columnRange: [{ type:
|
|
591
|
-
rowRange: [{ type:
|
|
592
|
-
sizeRange: [{ type:
|
|
593
|
-
displayedRow: [{ type:
|
|
594
|
-
isCroppedSize: [{ type:
|
|
564
|
+
columnRange: [{ type: core.Input }],
|
|
565
|
+
rowRange: [{ type: core.Input }],
|
|
566
|
+
sizeRange: [{ type: core.Input }],
|
|
567
|
+
displayedRow: [{ type: core.Input }],
|
|
568
|
+
isCroppedSize: [{ type: core.Input }]
|
|
595
569
|
};
|
|
596
570
|
|
|
597
571
|
var NgxFrameInfiniteGridComponent = /** @class */ (function (_super) {
|
|
@@ -603,15 +577,15 @@
|
|
|
603
577
|
}(NgxInfiniteGridComponent));
|
|
604
578
|
NgxFrameInfiniteGridComponent.GridClass = infinitegrid.FrameInfiniteGrid;
|
|
605
579
|
NgxFrameInfiniteGridComponent.decorators = [
|
|
606
|
-
{ type:
|
|
580
|
+
{ type: core.Component, args: [{
|
|
607
581
|
selector: 'ngx-frame-infinite-grid, [NgxFrameInfiniteGrid]',
|
|
608
582
|
template: TEMPLATE
|
|
609
583
|
},] }
|
|
610
584
|
];
|
|
611
585
|
NgxFrameInfiniteGridComponent.propDecorators = {
|
|
612
|
-
frame: [{ type:
|
|
613
|
-
useFrameFill: [{ type:
|
|
614
|
-
rectSize: [{ type:
|
|
586
|
+
frame: [{ type: core.Input }],
|
|
587
|
+
useFrameFill: [{ type: core.Input }],
|
|
588
|
+
rectSize: [{ type: core.Input }]
|
|
615
589
|
};
|
|
616
590
|
|
|
617
591
|
var NgxPackingInfiniteGridComponent = /** @class */ (function (_super) {
|
|
@@ -623,16 +597,16 @@
|
|
|
623
597
|
}(NgxInfiniteGridComponent));
|
|
624
598
|
NgxPackingInfiniteGridComponent.GridClass = infinitegrid.PackingInfiniteGrid;
|
|
625
599
|
NgxPackingInfiniteGridComponent.decorators = [
|
|
626
|
-
{ type:
|
|
600
|
+
{ type: core.Component, args: [{
|
|
627
601
|
selector: 'ngx-packing-infinite-grid, [NgxPackingInfiniteGrid]',
|
|
628
602
|
template: TEMPLATE
|
|
629
603
|
},] }
|
|
630
604
|
];
|
|
631
605
|
NgxPackingInfiniteGridComponent.propDecorators = {
|
|
632
|
-
aspectRatio: [{ type:
|
|
633
|
-
sizeWeight: [{ type:
|
|
634
|
-
ratioWeight: [{ type:
|
|
635
|
-
weightPriority: [{ type:
|
|
606
|
+
aspectRatio: [{ type: core.Input }],
|
|
607
|
+
sizeWeight: [{ type: core.Input }],
|
|
608
|
+
ratioWeight: [{ type: core.Input }],
|
|
609
|
+
weightPriority: [{ type: core.Input }]
|
|
636
610
|
};
|
|
637
611
|
|
|
638
612
|
var NgxInfiniteGridModule = /** @class */ (function () {
|
|
@@ -641,7 +615,7 @@
|
|
|
641
615
|
return NgxInfiniteGridModule;
|
|
642
616
|
}());
|
|
643
617
|
NgxInfiniteGridModule.decorators = [
|
|
644
|
-
{ type:
|
|
618
|
+
{ type: core.NgModule, args: [{
|
|
645
619
|
declarations: [
|
|
646
620
|
NgxInfiniteGridComponent,
|
|
647
621
|
NgxMasonryInfiniteGridComponent,
|
|
@@ -672,7 +646,6 @@
|
|
|
672
646
|
|
|
673
647
|
exports.NgxInfiniteGridComponent = NgxInfiniteGridComponent;
|
|
674
648
|
exports.NgxInfiniteGridModule = NgxInfiniteGridModule;
|
|
675
|
-
exports.NgxInfinitegridService = NgxInfinitegridService;
|
|
676
649
|
exports.NgxMasonryInfiniteGridComponent = NgxMasonryInfiniteGridComponent;
|
|
677
650
|
exports["ɵa"] = NgxInfiniteGridInterface;
|
|
678
651
|
exports["ɵb"] = TEMPLATE;
|