@egjs/ngx-infinitegrid 3.2.5 → 4.1.2-beta.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 +111 -178
- package/bundles/egjs-ngx-infinitegrid.umd.js +587 -751
- package/bundles/egjs-ngx-infinitegrid.umd.js.map +1 -1
- package/bundles/egjs-ngx-infinitegrid.umd.min.js +12 -12
- package/bundles/egjs-ngx-infinitegrid.umd.min.js.map +1 -1
- package/egjs-ngx-infinitegrid.d.ts +5 -1
- package/egjs-ngx-infinitegrid.metadata.json +1 -1
- package/esm2015/egjs-ngx-infinitegrid.js +7 -7
- package/esm2015/lib/consts.js +20 -23
- 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 +20 -0
- package/esm2015/lib/grids/ngx-packing-infinitegrid.component.js +20 -0
- package/esm2015/lib/ngx-infinitegrid.component.js +135 -312
- package/esm2015/lib/ngx-infinitegrid.interface.js +10 -18
- package/esm2015/lib/ngx-infinitegrid.module.js +14 -21
- package/esm2015/lib/ngx-infinitegrid.service.js +5 -10
- package/esm2015/lib/types.js +2 -5
- package/esm2015/public-api.js +5 -13
- package/fesm2015/egjs-ngx-infinitegrid.js +215 -476
- package/fesm2015/egjs-ngx-infinitegrid.js.map +1 -1
- package/lib/consts.d.ts +1 -1
- 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 +9 -0
- package/lib/grids/ngx-packing-infinitegrid.component.d.ts +9 -0
- package/lib/ngx-infinitegrid.component.d.ts +58 -37
- package/lib/ngx-infinitegrid.interface.d.ts +9 -5
- package/lib/ngx-infinitegrid.service.d.ts +1 -1
- package/lib/types.d.ts +18 -4
- package/package.json +19 -16
- package/public-api.d.ts +1 -5
- package/esm2015/lib/ngx-framelayout.component.js +0 -28
- package/esm2015/lib/ngx-gridlayout.component.js +0 -28
- package/esm2015/lib/ngx-justifiedlayout.component.js +0 -28
- package/esm2015/lib/ngx-packinglayout.component.js +0 -28
- package/esm2015/lib/ngx-squarelayout.component.js +0 -28
- package/esm5/egjs-ngx-infinitegrid.js +0 -10
- package/esm5/lib/consts.js +0 -8
- package/esm5/lib/ngx-framelayout.component.js +0 -33
- package/esm5/lib/ngx-gridlayout.component.js +0 -33
- package/esm5/lib/ngx-infinitegrid.component.js +0 -385
- package/esm5/lib/ngx-infinitegrid.interface.js +0 -25
- package/esm5/lib/ngx-infinitegrid.module.js +0 -42
- package/esm5/lib/ngx-infinitegrid.service.js +0 -21
- package/esm5/lib/ngx-justifiedlayout.component.js +0 -33
- package/esm5/lib/ngx-packinglayout.component.js +0 -33
- package/esm5/lib/ngx-squarelayout.component.js +0 -33
- package/esm5/lib/types.js +0 -5
- package/esm5/public-api.js +0 -16
- package/fesm5/egjs-ngx-infinitegrid.js +0 -611
- package/fesm5/egjs-ngx-infinitegrid.js.map +0 -1
- package/lib/ngx-framelayout.component.d.ts +0 -5
- package/lib/ngx-gridlayout.component.d.ts +0 -5
- package/lib/ngx-justifiedlayout.component.d.ts +0 -5
- package/lib/ngx-packinglayout.component.d.ts +0 -5
- package/lib/ngx-squarelayout.component.d.ts +0 -5
|
@@ -1,813 +1,649 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@egjs/ngx-infinitegrid', ['exports', '@angular/core', '@
|
|
4
|
-
(global = global || self, factory((global.egjs = global.egjs || {}, global.egjs['ngx-infinitegrid'] = {}), global.ng.core, global.
|
|
5
|
-
}(this, function (exports,
|
|
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, i0, common, infinitegrid) { 'use strict';
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/*! *****************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
13
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
14
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
18
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
19
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
20
|
-
|
|
21
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
22
|
-
and limitations under the License.
|
|
23
|
-
***************************************************************************** */
|
|
24
|
-
/* global Reflect, Promise */
|
|
25
|
-
|
|
26
|
-
var extendStatics = function(d, b) {
|
|
27
|
-
extendStatics = Object.setPrototypeOf ||
|
|
28
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
29
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
30
|
-
return extendStatics(d, b);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
function __extends(d, b) {
|
|
34
|
-
extendStatics(d, b);
|
|
35
|
-
function __() { this.constructor = d; }
|
|
36
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var __assign = function() {
|
|
40
|
-
__assign = Object.assign || function __assign(t) {
|
|
41
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
42
|
-
s = arguments[i];
|
|
43
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
function __rest(s, e) {
|
|
51
|
-
var t = {};
|
|
52
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function __decorate(decorators, target, key, desc) {
|
|
63
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
64
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
66
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function __param(paramIndex, decorator) {
|
|
70
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function __metadata(metadataKey, metadataValue) {
|
|
74
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
78
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
79
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
80
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
81
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
82
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function __generator(thisArg, body) {
|
|
87
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
88
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
89
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
90
|
-
function step(op) {
|
|
91
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
92
|
-
while (_) try {
|
|
93
|
-
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) return t;
|
|
94
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
95
|
-
switch (op[0]) {
|
|
96
|
-
case 0: case 1: t = op; break;
|
|
97
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
98
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
99
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
100
|
-
default:
|
|
101
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
102
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
103
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
104
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
105
|
-
if (t[2]) _.ops.pop();
|
|
106
|
-
_.trys.pop(); continue;
|
|
107
|
-
}
|
|
108
|
-
op = body.call(thisArg, _);
|
|
109
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
110
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function __exportStar(m, exports) {
|
|
115
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function __values(o) {
|
|
119
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
120
|
-
if (m) return m.call(o);
|
|
121
|
-
return {
|
|
122
|
-
next: function () {
|
|
123
|
-
if (o && i >= o.length) o = void 0;
|
|
124
|
-
return { value: o && o[i++], done: !o };
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
function __read(o, n) {
|
|
130
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
131
|
-
if (!m) return o;
|
|
132
|
-
var i = m.call(o), r, ar = [], e;
|
|
133
|
-
try {
|
|
134
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
135
|
-
}
|
|
136
|
-
catch (error) { e = { error: error }; }
|
|
137
|
-
finally {
|
|
138
|
-
try {
|
|
139
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
140
|
-
}
|
|
141
|
-
finally { if (e) throw e.error; }
|
|
142
|
-
}
|
|
143
|
-
return ar;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
function __spread() {
|
|
147
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
148
|
-
ar = ar.concat(__read(arguments[i]));
|
|
149
|
-
return ar;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function __spreadArrays() {
|
|
153
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
154
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
155
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
156
|
-
r[k] = a[j];
|
|
157
|
-
return r;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
function __await(v) {
|
|
161
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
165
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
166
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
167
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
168
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
169
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
170
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
171
|
-
function fulfill(value) { resume("next", value); }
|
|
172
|
-
function reject(value) { resume("throw", value); }
|
|
173
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function __asyncDelegator(o) {
|
|
177
|
-
var i, p;
|
|
178
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
179
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
function __asyncValues(o) {
|
|
183
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
184
|
-
var m = o[Symbol.asyncIterator], i;
|
|
185
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
186
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
187
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function __makeTemplateObject(cooked, raw) {
|
|
191
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
192
|
-
return cooked;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
function __importStar(mod) {
|
|
196
|
-
if (mod && mod.__esModule) return mod;
|
|
197
|
-
var result = {};
|
|
198
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
199
|
-
result.default = mod;
|
|
200
|
-
return result;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function __importDefault(mod) {
|
|
204
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @fileoverview added by tsickle
|
|
209
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
210
|
-
*/
|
|
211
|
-
var NgxInfiniteGridService = /** @class */ (function () {
|
|
212
|
-
function NgxInfiniteGridService() {
|
|
7
|
+
var NgxInfinitegridService = /** @class */ (function () {
|
|
8
|
+
function NgxInfinitegridService() {
|
|
213
9
|
}
|
|
214
|
-
|
|
215
|
-
{ type: core.Injectable, args: [{
|
|
216
|
-
providedIn: 'root'
|
|
217
|
-
},] }
|
|
218
|
-
];
|
|
219
|
-
/** @nocollapse */
|
|
220
|
-
NgxInfiniteGridService.ctorParameters = function () { return []; };
|
|
221
|
-
/** @nocollapse */ NgxInfiniteGridService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgxInfiniteGridService_Factory() { return new NgxInfiniteGridService(); }, token: NgxInfiniteGridService, providedIn: "root" });
|
|
222
|
-
return NgxInfiniteGridService;
|
|
10
|
+
return NgxInfinitegridService;
|
|
223
11
|
}());
|
|
12
|
+
NgxInfinitegridService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NgxInfinitegridService_Factory() { return new NgxInfinitegridService(); }, token: NgxInfinitegridService, providedIn: "root" });
|
|
13
|
+
NgxInfinitegridService.decorators = [
|
|
14
|
+
{ type: i0.Injectable, args: [{
|
|
15
|
+
providedIn: 'root'
|
|
16
|
+
},] }
|
|
17
|
+
];
|
|
18
|
+
NgxInfinitegridService.ctorParameters = function () { return []; };
|
|
224
19
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
20
|
+
/*! *****************************************************************************
|
|
21
|
+
Copyright (c) Microsoft Corporation.
|
|
22
|
+
|
|
23
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
24
|
+
purpose with or without fee is hereby granted.
|
|
25
|
+
|
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
27
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
28
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
29
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
30
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
31
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
32
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
33
|
+
***************************************************************************** */
|
|
34
|
+
/* global Reflect, Promise */
|
|
35
|
+
var extendStatics = function (d, b) {
|
|
36
|
+
extendStatics = Object.setPrototypeOf ||
|
|
37
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
38
|
+
function (d, b) { for (var p in b)
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
40
|
+
d[p] = b[p]; };
|
|
41
|
+
return extendStatics(d, b);
|
|
42
|
+
};
|
|
43
|
+
function __extends(d, b) {
|
|
44
|
+
if (typeof b !== "function" && b !== null)
|
|
45
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
46
|
+
extendStatics(d, b);
|
|
47
|
+
function __() { this.constructor = d; }
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
}
|
|
50
|
+
var __assign = function () {
|
|
51
|
+
__assign = Object.assign || function __assign(t) {
|
|
52
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
53
|
+
s = arguments[i];
|
|
54
|
+
for (var p in s)
|
|
55
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
}
|
|
58
|
+
return t;
|
|
59
|
+
};
|
|
60
|
+
return __assign.apply(this, arguments);
|
|
61
|
+
};
|
|
62
|
+
function __rest(s, e) {
|
|
63
|
+
var t = {};
|
|
64
|
+
for (var p in s)
|
|
65
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
66
|
+
t[p] = s[p];
|
|
67
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
68
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
69
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
70
|
+
t[p[i]] = s[p[i]];
|
|
71
|
+
}
|
|
72
|
+
return t;
|
|
73
|
+
}
|
|
74
|
+
function __decorate(decorators, target, key, desc) {
|
|
75
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
76
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
77
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
78
|
+
else
|
|
79
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
80
|
+
if (d = decorators[i])
|
|
81
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
82
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
83
|
+
}
|
|
84
|
+
function __param(paramIndex, decorator) {
|
|
85
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
86
|
+
}
|
|
87
|
+
function __metadata(metadataKey, metadataValue) {
|
|
88
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
89
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
90
|
+
}
|
|
91
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
92
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
93
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
94
|
+
function fulfilled(value) { try {
|
|
95
|
+
step(generator.next(value));
|
|
96
|
+
}
|
|
97
|
+
catch (e) {
|
|
98
|
+
reject(e);
|
|
99
|
+
} }
|
|
100
|
+
function rejected(value) { try {
|
|
101
|
+
step(generator["throw"](value));
|
|
102
|
+
}
|
|
103
|
+
catch (e) {
|
|
104
|
+
reject(e);
|
|
105
|
+
} }
|
|
106
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
107
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function __generator(thisArg, body) {
|
|
111
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
112
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
113
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
114
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
115
|
+
function step(op) {
|
|
116
|
+
if (f)
|
|
117
|
+
throw new TypeError("Generator is already executing.");
|
|
118
|
+
while (_)
|
|
119
|
+
try {
|
|
120
|
+
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)
|
|
121
|
+
return t;
|
|
122
|
+
if (y = 0, t)
|
|
123
|
+
op = [op[0] & 2, t.value];
|
|
124
|
+
switch (op[0]) {
|
|
125
|
+
case 0:
|
|
126
|
+
case 1:
|
|
127
|
+
t = op;
|
|
128
|
+
break;
|
|
129
|
+
case 4:
|
|
130
|
+
_.label++;
|
|
131
|
+
return { value: op[1], done: false };
|
|
132
|
+
case 5:
|
|
133
|
+
_.label++;
|
|
134
|
+
y = op[1];
|
|
135
|
+
op = [0];
|
|
136
|
+
continue;
|
|
137
|
+
case 7:
|
|
138
|
+
op = _.ops.pop();
|
|
139
|
+
_.trys.pop();
|
|
140
|
+
continue;
|
|
141
|
+
default:
|
|
142
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
143
|
+
_ = 0;
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
147
|
+
_.label = op[1];
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
151
|
+
_.label = t[1];
|
|
152
|
+
t = op;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
if (t && _.label < t[2]) {
|
|
156
|
+
_.label = t[2];
|
|
157
|
+
_.ops.push(op);
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
if (t[2])
|
|
161
|
+
_.ops.pop();
|
|
162
|
+
_.trys.pop();
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
op = body.call(thisArg, _);
|
|
166
|
+
}
|
|
167
|
+
catch (e) {
|
|
168
|
+
op = [6, e];
|
|
169
|
+
y = 0;
|
|
170
|
+
}
|
|
171
|
+
finally {
|
|
172
|
+
f = t = 0;
|
|
173
|
+
}
|
|
174
|
+
if (op[0] & 5)
|
|
175
|
+
throw op[1];
|
|
176
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
180
|
+
if (k2 === undefined)
|
|
181
|
+
k2 = k;
|
|
182
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
183
|
+
}) : (function (o, m, k, k2) {
|
|
184
|
+
if (k2 === undefined)
|
|
185
|
+
k2 = k;
|
|
186
|
+
o[k2] = m[k];
|
|
187
|
+
});
|
|
188
|
+
function __exportStar(m, o) {
|
|
189
|
+
for (var p in m)
|
|
190
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
191
|
+
__createBinding(o, m, p);
|
|
192
|
+
}
|
|
193
|
+
function __values(o) {
|
|
194
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
195
|
+
if (m)
|
|
196
|
+
return m.call(o);
|
|
197
|
+
if (o && typeof o.length === "number")
|
|
198
|
+
return {
|
|
199
|
+
next: function () {
|
|
200
|
+
if (o && i >= o.length)
|
|
201
|
+
o = void 0;
|
|
202
|
+
return { value: o && o[i++], done: !o };
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
206
|
+
}
|
|
207
|
+
function __read(o, n) {
|
|
208
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
209
|
+
if (!m)
|
|
210
|
+
return o;
|
|
211
|
+
var i = m.call(o), r, ar = [], e;
|
|
212
|
+
try {
|
|
213
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
214
|
+
ar.push(r.value);
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
e = { error: error };
|
|
218
|
+
}
|
|
219
|
+
finally {
|
|
220
|
+
try {
|
|
221
|
+
if (r && !r.done && (m = i["return"]))
|
|
222
|
+
m.call(i);
|
|
223
|
+
}
|
|
224
|
+
finally {
|
|
225
|
+
if (e)
|
|
226
|
+
throw e.error;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return ar;
|
|
230
|
+
}
|
|
231
|
+
/** @deprecated */
|
|
232
|
+
function __spread() {
|
|
233
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
234
|
+
ar = ar.concat(__read(arguments[i]));
|
|
235
|
+
return ar;
|
|
236
|
+
}
|
|
237
|
+
/** @deprecated */
|
|
238
|
+
function __spreadArrays() {
|
|
239
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
240
|
+
s += arguments[i].length;
|
|
241
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
242
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
243
|
+
r[k] = a[j];
|
|
244
|
+
return r;
|
|
245
|
+
}
|
|
246
|
+
function __spreadArray(to, from, pack) {
|
|
247
|
+
if (pack || arguments.length === 2)
|
|
248
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
249
|
+
if (ar || !(i in from)) {
|
|
250
|
+
if (!ar)
|
|
251
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
252
|
+
ar[i] = from[i];
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
256
|
+
}
|
|
257
|
+
function __await(v) {
|
|
258
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
259
|
+
}
|
|
260
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
261
|
+
if (!Symbol.asyncIterator)
|
|
262
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
263
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
264
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
265
|
+
function verb(n) { if (g[n])
|
|
266
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
267
|
+
function resume(n, v) { try {
|
|
268
|
+
step(g[n](v));
|
|
269
|
+
}
|
|
270
|
+
catch (e) {
|
|
271
|
+
settle(q[0][3], e);
|
|
272
|
+
} }
|
|
273
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
274
|
+
function fulfill(value) { resume("next", value); }
|
|
275
|
+
function reject(value) { resume("throw", value); }
|
|
276
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
277
|
+
resume(q[0][0], q[0][1]); }
|
|
278
|
+
}
|
|
279
|
+
function __asyncDelegator(o) {
|
|
280
|
+
var i, p;
|
|
281
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
282
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
283
|
+
}
|
|
284
|
+
function __asyncValues(o) {
|
|
285
|
+
if (!Symbol.asyncIterator)
|
|
286
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
287
|
+
var m = o[Symbol.asyncIterator], i;
|
|
288
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
289
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
290
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
291
|
+
}
|
|
292
|
+
function __makeTemplateObject(cooked, raw) {
|
|
293
|
+
if (Object.defineProperty) {
|
|
294
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
cooked.raw = raw;
|
|
298
|
+
}
|
|
299
|
+
return cooked;
|
|
300
|
+
}
|
|
301
|
+
;
|
|
302
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
303
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
304
|
+
}) : function (o, v) {
|
|
305
|
+
o["default"] = v;
|
|
306
|
+
};
|
|
307
|
+
function __importStar(mod) {
|
|
308
|
+
if (mod && mod.__esModule)
|
|
309
|
+
return mod;
|
|
310
|
+
var result = {};
|
|
311
|
+
if (mod != null)
|
|
312
|
+
for (var k in mod)
|
|
313
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
314
|
+
__createBinding(result, mod, k);
|
|
315
|
+
__setModuleDefault(result, mod);
|
|
316
|
+
return result;
|
|
317
|
+
}
|
|
318
|
+
function __importDefault(mod) {
|
|
319
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
320
|
+
}
|
|
321
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
322
|
+
if (kind === "a" && !f)
|
|
323
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
324
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
325
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
326
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
327
|
+
}
|
|
328
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
329
|
+
if (kind === "m")
|
|
330
|
+
throw new TypeError("Private method is not writable");
|
|
331
|
+
if (kind === "a" && !f)
|
|
332
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
333
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
334
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
335
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
336
|
+
}
|
|
231
337
|
|
|
232
|
-
/**
|
|
233
|
-
* @fileoverview added by tsickle
|
|
234
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
235
|
-
*/
|
|
236
338
|
var NgxInfiniteGridInterface = /** @class */ (function () {
|
|
237
339
|
function NgxInfiniteGridInterface() {
|
|
238
340
|
}
|
|
239
|
-
__decorate([
|
|
240
|
-
NativeInfiniteGrid.withInfiniteGridMethods,
|
|
241
|
-
__metadata("design:type", NativeInfiniteGrid__default)
|
|
242
|
-
], NgxInfiniteGridInterface.prototype, "ig", void 0);
|
|
243
341
|
return NgxInfiniteGridInterface;
|
|
244
342
|
}());
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
* @protected
|
|
249
|
-
*/
|
|
250
|
-
NgxInfiniteGridInterface.prototype.ig;
|
|
251
|
-
}
|
|
252
|
-
// WARNING: interface has both a type and a value, skipping emit
|
|
343
|
+
__decorate([
|
|
344
|
+
infinitegrid.withInfiniteGridMethods
|
|
345
|
+
], NgxInfiniteGridInterface.prototype, "vanillaGrid", void 0);
|
|
253
346
|
|
|
254
|
-
|
|
255
|
-
* @fileoverview added by tsickle
|
|
256
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
257
|
-
*/
|
|
347
|
+
// @dynamic
|
|
258
348
|
var NgxInfiniteGridComponent = /** @class */ (function (_super) {
|
|
259
349
|
__extends(NgxInfiniteGridComponent, _super);
|
|
260
|
-
function NgxInfiniteGridComponent(
|
|
350
|
+
function NgxInfiniteGridComponent(elementRef, _detectorRef, _platform) {
|
|
261
351
|
var _this = _super.call(this) || this;
|
|
262
|
-
_this.
|
|
263
|
-
_this.
|
|
264
|
-
|
|
265
|
-
* @param {?} item
|
|
266
|
-
* @return {?}
|
|
267
|
-
*/
|
|
268
|
-
function (_, item) { return item.key; }));
|
|
269
|
-
_this.groupBy = ((/**
|
|
270
|
-
* @param {?} _
|
|
271
|
-
* @param {?} item
|
|
272
|
-
* @return {?}
|
|
273
|
-
*/
|
|
274
|
-
function (_, item) { return item.groupKey; }));
|
|
352
|
+
_this.elementRef = elementRef;
|
|
353
|
+
_this._detectorRef = _detectorRef;
|
|
354
|
+
_this._platform = _platform;
|
|
275
355
|
_this.items = [];
|
|
276
|
-
_this.
|
|
277
|
-
_this.
|
|
278
|
-
_this.options = {};
|
|
279
|
-
_this.layoutOptions = {};
|
|
280
|
-
_this.append = new core.EventEmitter();
|
|
281
|
-
_this.prepend = new core.EventEmitter();
|
|
282
|
-
_this.imageError = new core.EventEmitter();
|
|
283
|
-
_this.contentError = new core.EventEmitter();
|
|
284
|
-
// tslint:disable-next-line: no-output-native
|
|
285
|
-
_this.change = new core.EventEmitter();
|
|
286
|
-
_this.layoutComplete = new core.EventEmitter();
|
|
287
|
-
_this.visibleChange = new core.EventEmitter();
|
|
288
|
-
_this.render = new core.EventEmitter();
|
|
356
|
+
_this.trackBy = (function (_, item) { return item.key; });
|
|
357
|
+
_this.groupBy = (function (_, item) { return item.groupKey; });
|
|
289
358
|
_this.visibleItems = [];
|
|
290
|
-
_this.
|
|
291
|
-
_this.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
function (item) { return item.itemKey; }));
|
|
297
|
-
_this.nextFunction = (/**
|
|
298
|
-
* @return {?}
|
|
299
|
-
*/
|
|
300
|
-
function () { });
|
|
301
|
-
_this.setStatus = (/**
|
|
302
|
-
* @param {?} status
|
|
303
|
-
* @param {?=} applyScrollPos
|
|
304
|
-
* @param {?=} syncElements
|
|
305
|
-
* @return {?}
|
|
306
|
-
*/
|
|
307
|
-
function (status, applyScrollPos, syncElements) {
|
|
308
|
-
if (syncElements === void 0) { syncElements = _this.getElements(); }
|
|
309
|
-
_this.ig.setStatus(status, applyScrollPos, syncElements);
|
|
310
|
-
return _this;
|
|
311
|
-
});
|
|
359
|
+
_this._renderer = new infinitegrid.Renderer();
|
|
360
|
+
_this._isChange = false;
|
|
361
|
+
for (var name in infinitegrid.INFINITEGRID_EVENTS) {
|
|
362
|
+
var eventName = infinitegrid.INFINITEGRID_EVENTS[name];
|
|
363
|
+
_this[eventName] = new i0.EventEmitter();
|
|
364
|
+
}
|
|
312
365
|
return _this;
|
|
313
366
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
*/
|
|
317
|
-
NgxInfiniteGridComponent.prototype.ngOnInit = /**
|
|
318
|
-
* @return {?}
|
|
319
|
-
*/
|
|
320
|
-
function () {
|
|
321
|
-
/** @type {?} */
|
|
322
|
-
var groups = NativeInfiniteGrid.categorize(this.items);
|
|
323
|
-
if (this.status) {
|
|
324
|
-
var _a = this.status._infinite, startCursor = _a.startCursor, endCursor = _a.endCursor;
|
|
325
|
-
this.updateVisibleItems(NativeInfiniteGrid.ItemManager.pluck(groups.slice(startCursor, endCursor + 1), 'items').map((/**
|
|
326
|
-
* @param {?} item
|
|
327
|
-
* @return {?}
|
|
328
|
-
*/
|
|
329
|
-
function (item) { return item.data; })));
|
|
330
|
-
}
|
|
331
|
-
else if (this.useFirstRender) {
|
|
332
|
-
this.updateVisibleItems(this.items);
|
|
333
|
-
}
|
|
367
|
+
NgxInfiniteGridComponent.prototype.ngOnInit = function () {
|
|
368
|
+
this._updateVisibleChildren();
|
|
334
369
|
};
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
*/
|
|
339
|
-
NgxInfiniteGridComponent.prototype.ngOnChanges = /**
|
|
340
|
-
* @param {?} changes
|
|
341
|
-
* @return {?}
|
|
342
|
-
*/
|
|
343
|
-
function (changes) {
|
|
344
|
-
/** @type {?} */
|
|
345
|
-
var ig = this.ig;
|
|
346
|
-
if (!ig) {
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
/** @type {?} */
|
|
350
|
-
var result = ig.beforeSync(this.toItems());
|
|
351
|
-
this.layoutState = result === 'relayout' ? result : this.layoutState || result;
|
|
352
|
-
this.updateVisibleItems(this.getVisibleItems());
|
|
353
|
-
this.isChange = true;
|
|
354
|
-
if (changes.loading) {
|
|
355
|
-
ig.setLoadingBar({
|
|
356
|
-
append: this.loading,
|
|
357
|
-
prepend: this.loading,
|
|
358
|
-
});
|
|
359
|
-
}
|
|
370
|
+
NgxInfiniteGridComponent.prototype.ngOnChanges = function () {
|
|
371
|
+
this._isChange = true;
|
|
372
|
+
this._updateVisibleChildren();
|
|
360
373
|
};
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
* @return {?}
|
|
366
|
-
*/
|
|
367
|
-
function () {
|
|
368
|
-
if (!this.isChange) {
|
|
374
|
+
NgxInfiniteGridComponent.prototype.ngAfterViewInit = function () {
|
|
375
|
+
var _this = this;
|
|
376
|
+
var _a;
|
|
377
|
+
if (!common.isPlatformBrowser(this._platform)) {
|
|
369
378
|
return;
|
|
370
379
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
var
|
|
375
|
-
|
|
376
|
-
this
|
|
377
|
-
|
|
378
|
-
}
|
|
379
|
-
this.nextFunction();
|
|
380
|
-
this.nextFunction = (/**
|
|
381
|
-
* @return {?}
|
|
382
|
-
*/
|
|
383
|
-
function () { });
|
|
384
|
-
};
|
|
385
|
-
/**
|
|
386
|
-
* @return {?}
|
|
387
|
-
*/
|
|
388
|
-
NgxInfiniteGridComponent.prototype.ngAfterViewInit = /**
|
|
389
|
-
* @return {?}
|
|
390
|
-
*/
|
|
391
|
-
function () {
|
|
392
|
-
var _this = this;
|
|
393
|
-
/** @type {?} */
|
|
394
|
-
var ref = this.wrapperRef || this.elRef;
|
|
395
|
-
this.ig = new NativeInfiniteGrid__default(ref.nativeElement, __assign({}, this.options, { renderExternal: true })).on('render', (/**
|
|
396
|
-
* @param {?} __0
|
|
397
|
-
* @return {?}
|
|
398
|
-
*/
|
|
399
|
-
function (_a) {
|
|
400
|
-
var next = _a.next;
|
|
401
|
-
setTimeout((/**
|
|
402
|
-
* @return {?}
|
|
403
|
-
*/
|
|
404
|
-
function () {
|
|
405
|
-
_this.nextFunction = next;
|
|
406
|
-
_this.updateVisibleItems(_this.getVisibleItems());
|
|
407
|
-
_this.isChange = true;
|
|
408
|
-
}));
|
|
409
|
-
}));
|
|
410
|
-
/** @type {?} */
|
|
411
|
-
var ig = this.ig;
|
|
412
|
-
NativeInfiniteGrid.INFINITEGRID_EVENTS.forEach((/**
|
|
413
|
-
* @param {?} name
|
|
414
|
-
* @return {?}
|
|
415
|
-
*/
|
|
416
|
-
function (name) {
|
|
417
|
-
if (!_this[name]) {
|
|
418
|
-
return;
|
|
380
|
+
var GridClass = this.constructor.GridClass;
|
|
381
|
+
var defaultOptions = GridClass.defaultOptions;
|
|
382
|
+
var options = {};
|
|
383
|
+
var containerElement = (_a = this._containerRef) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
384
|
+
for (var name in defaultOptions) {
|
|
385
|
+
if (name in this && typeof this[name] !== "undefined") {
|
|
386
|
+
options[name] = this[name];
|
|
419
387
|
}
|
|
420
|
-
ig.on((/** @type {?} */ (name)), (/**
|
|
421
|
-
* @param {?} e
|
|
422
|
-
* @return {?}
|
|
423
|
-
*/
|
|
424
|
-
function (e) {
|
|
425
|
-
((/** @type {?} */ (_this)))[name].emit(__assign({}, e, { currentTarget: _this }));
|
|
426
|
-
}));
|
|
427
|
-
}));
|
|
428
|
-
ig.setLayout(this.layoutType, __assign({}, this.layoutOptions));
|
|
429
|
-
if (this.loading) {
|
|
430
|
-
ig.setLoadingBar({
|
|
431
|
-
prepend: this.loading,
|
|
432
|
-
append: this.loading,
|
|
433
|
-
});
|
|
434
388
|
}
|
|
435
|
-
if (
|
|
436
|
-
|
|
389
|
+
if (containerElement) {
|
|
390
|
+
options.container = containerElement;
|
|
437
391
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
392
|
+
options.renderer = this._renderer;
|
|
393
|
+
var wrapper = this._wrapperRef || this.elementRef;
|
|
394
|
+
var grid = new GridClass(wrapper.nativeElement, options);
|
|
395
|
+
var _loop_1 = function (name) {
|
|
396
|
+
var eventName = infinitegrid.INFINITEGRID_EVENTS[name];
|
|
397
|
+
grid.on(eventName, function (e) {
|
|
398
|
+
_this[eventName].emit(e);
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
for (var name in infinitegrid.INFINITEGRID_EVENTS) {
|
|
402
|
+
_loop_1(name);
|
|
441
403
|
}
|
|
404
|
+
this.vanillaGrid = grid;
|
|
405
|
+
this._renderer.on("requestUpdate", function () {
|
|
406
|
+
_this._isChange = true;
|
|
407
|
+
_this._updateVisibleChildren();
|
|
408
|
+
});
|
|
409
|
+
infinitegrid.mountRenderingItems(this._getItemInfos(), {
|
|
410
|
+
grid: grid,
|
|
411
|
+
useFirstRender: this.useFirstRender,
|
|
412
|
+
useLoading: this.useLoading,
|
|
413
|
+
usePlaceholder: this.usePlaceholder,
|
|
414
|
+
horizontal: this.horizontal,
|
|
415
|
+
status: this.status,
|
|
416
|
+
});
|
|
417
|
+
this._renderer.updated();
|
|
442
418
|
};
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
NgxInfiniteGridComponent.prototype.ngOnDestroy = /**
|
|
447
|
-
* @return {?}
|
|
448
|
-
*/
|
|
449
|
-
function () {
|
|
450
|
-
this.ig.destroy();
|
|
451
|
-
};
|
|
452
|
-
/**
|
|
453
|
-
* @private
|
|
454
|
-
* @return {?}
|
|
455
|
-
*/
|
|
456
|
-
NgxInfiniteGridComponent.prototype.getElements = /**
|
|
457
|
-
* @private
|
|
458
|
-
* @return {?}
|
|
459
|
-
*/
|
|
460
|
-
function () {
|
|
461
|
-
/** @type {?} */
|
|
462
|
-
var ref = this.containerRef || this.wrapperRef || this.elRef;
|
|
463
|
-
/** @type {?} */
|
|
464
|
-
var elements = [].slice.call(ref.nativeElement.children);
|
|
465
|
-
if (this.loading) {
|
|
466
|
-
return elements.filter((/**
|
|
467
|
-
* @param {?} el
|
|
468
|
-
* @return {?}
|
|
469
|
-
*/
|
|
470
|
-
function (el) {
|
|
471
|
-
return el.className.indexOf(NativeInfiniteGrid.IGNORE_CLASSNAME) < 0;
|
|
472
|
-
}));
|
|
419
|
+
NgxInfiniteGridComponent.prototype.ngAfterViewChecked = function () {
|
|
420
|
+
if (!this._isChange || !this.vanillaGrid) {
|
|
421
|
+
return;
|
|
473
422
|
}
|
|
474
|
-
|
|
423
|
+
this._isChange = false;
|
|
424
|
+
var GridClass = this.constructor.GridClass;
|
|
425
|
+
var propertyTypes = GridClass.propertyTypes;
|
|
426
|
+
var grid = this.vanillaGrid;
|
|
427
|
+
for (var name in propertyTypes) {
|
|
428
|
+
if (name in this) {
|
|
429
|
+
grid[name] = this[name];
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
this._renderer.updated();
|
|
475
433
|
};
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
*/
|
|
480
|
-
NgxInfiniteGridComponent.prototype.getVisibleItems = /**
|
|
481
|
-
* @private
|
|
482
|
-
* @return {?}
|
|
483
|
-
*/
|
|
484
|
-
function () {
|
|
485
|
-
return this.ig.getRenderingItems().map((/**
|
|
486
|
-
* @param {?} item
|
|
487
|
-
* @return {?}
|
|
488
|
-
*/
|
|
489
|
-
function (item) { return item.data; }));
|
|
434
|
+
NgxInfiniteGridComponent.prototype.ngOnDestroy = function () {
|
|
435
|
+
var _a;
|
|
436
|
+
(_a = this.vanillaGrid) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
490
437
|
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
* @return {?}
|
|
494
|
-
*/
|
|
495
|
-
NgxInfiniteGridComponent.prototype.toItems = /**
|
|
496
|
-
* @private
|
|
497
|
-
* @return {?}
|
|
498
|
-
*/
|
|
499
|
-
function () {
|
|
500
|
-
/** @type {?} */
|
|
501
|
-
var groupBy = this.groupBy;
|
|
502
|
-
/** @type {?} */
|
|
438
|
+
NgxInfiniteGridComponent.prototype._getItemInfos = function () {
|
|
439
|
+
var items = this.items;
|
|
503
440
|
var trackBy = this.trackBy;
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
data: item,
|
|
513
|
-
}); }));
|
|
514
|
-
};
|
|
515
|
-
/**
|
|
516
|
-
* @private
|
|
517
|
-
* @param {?} items
|
|
518
|
-
* @return {?}
|
|
519
|
-
*/
|
|
520
|
-
NgxInfiniteGridComponent.prototype.updateVisibleItems = /**
|
|
521
|
-
* @private
|
|
522
|
-
* @param {?} items
|
|
523
|
-
* @return {?}
|
|
524
|
-
*/
|
|
525
|
-
function (items) {
|
|
526
|
-
var _a = this.visibleDiffer.update(items), added = _a.added, changed = _a.changed, removed = _a.removed;
|
|
527
|
-
this.visibleItems = items;
|
|
528
|
-
if (added.length || changed.length || removed.length) {
|
|
529
|
-
this.visibleChange.emit(items);
|
|
530
|
-
}
|
|
441
|
+
var groupBy = this.groupBy;
|
|
442
|
+
return items.map(function (item, i) {
|
|
443
|
+
return {
|
|
444
|
+
groupKey: groupBy(i, item),
|
|
445
|
+
key: trackBy(i, item),
|
|
446
|
+
data: item,
|
|
447
|
+
};
|
|
448
|
+
});
|
|
531
449
|
};
|
|
532
|
-
NgxInfiniteGridComponent.
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
NgxInfiniteGridComponent.propDecorators = {
|
|
543
|
-
trackBy: [{ type: core.Input }],
|
|
544
|
-
groupBy: [{ type: core.Input }],
|
|
545
|
-
items: [{ type: core.Input }],
|
|
546
|
-
status: [{ type: core.Input }],
|
|
547
|
-
loading: [{ type: core.Input }],
|
|
548
|
-
useFirstRender: [{ type: core.Input }],
|
|
549
|
-
layoutType: [{ type: core.Input }],
|
|
550
|
-
options: [{ type: core.Input }],
|
|
551
|
-
layoutOptions: [{ type: core.Input }],
|
|
552
|
-
append: [{ type: core.Output }],
|
|
553
|
-
prepend: [{ type: core.Output }],
|
|
554
|
-
imageError: [{ type: core.Output }],
|
|
555
|
-
contentError: [{ type: core.Output }],
|
|
556
|
-
change: [{ type: core.Output }],
|
|
557
|
-
layoutComplete: [{ type: core.Output }],
|
|
558
|
-
visibleChange: [{ type: core.Output }],
|
|
559
|
-
render: [{ type: core.Output }],
|
|
560
|
-
wrapperRef: [{ type: core.ViewChild, args: ['wrapper', { static: false },] }],
|
|
561
|
-
containerRef: [{ type: core.ViewChild, args: ['container', { static: false },] }]
|
|
450
|
+
NgxInfiniteGridComponent.prototype._updateVisibleChildren = function () {
|
|
451
|
+
this.visibleItems = infinitegrid.getRenderingItems(this._getItemInfos(), {
|
|
452
|
+
grid: this.vanillaGrid,
|
|
453
|
+
useFirstRender: this.useFirstRender,
|
|
454
|
+
useLoading: this.useLoading,
|
|
455
|
+
usePlaceholder: this.usePlaceholder,
|
|
456
|
+
horizontal: this.horizontal,
|
|
457
|
+
status: this.status,
|
|
458
|
+
});
|
|
459
|
+
this._detectorRef.markForCheck();
|
|
562
460
|
};
|
|
563
461
|
return NgxInfiniteGridComponent;
|
|
564
462
|
}(NgxInfiniteGridInterface));
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* @type {?}
|
|
618
|
-
* @private
|
|
619
|
-
*/
|
|
620
|
-
NgxInfiniteGridComponent.prototype.visibleDiffer;
|
|
621
|
-
/**
|
|
622
|
-
* @type {?}
|
|
623
|
-
* @private
|
|
624
|
-
*/
|
|
625
|
-
NgxInfiniteGridComponent.prototype.nextFunction;
|
|
626
|
-
/** @type {?} */
|
|
627
|
-
NgxInfiniteGridComponent.prototype.setStatus;
|
|
628
|
-
/** @type {?} */
|
|
629
|
-
NgxInfiniteGridComponent.prototype.elRef;
|
|
630
|
-
}
|
|
463
|
+
NgxInfiniteGridComponent.decorators = [
|
|
464
|
+
{ type: i0.Component, args: [{
|
|
465
|
+
selector: 'ngx-infinite-grid, [NgxInfiniteGrid]',
|
|
466
|
+
template: '<slot></slot>',
|
|
467
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
468
|
+
styles: [':host { display: block }']
|
|
469
|
+
},] }
|
|
470
|
+
];
|
|
471
|
+
NgxInfiniteGridComponent.ctorParameters = function () { return [
|
|
472
|
+
{ type: i0.ElementRef },
|
|
473
|
+
{ type: i0.ChangeDetectorRef },
|
|
474
|
+
{ type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
|
|
475
|
+
]; };
|
|
476
|
+
NgxInfiniteGridComponent.propDecorators = {
|
|
477
|
+
gridConstructor: [{ type: i0.Input }],
|
|
478
|
+
renderer: [{ type: i0.Input }],
|
|
479
|
+
container: [{ type: i0.Input }],
|
|
480
|
+
containerTag: [{ type: i0.Input }],
|
|
481
|
+
threshold: [{ type: i0.Input }],
|
|
482
|
+
useRecycle: [{ type: i0.Input }],
|
|
483
|
+
horizontal: [{ type: i0.Input }],
|
|
484
|
+
percentage: [{ type: i0.Input }],
|
|
485
|
+
isEqualSize: [{ type: i0.Input }],
|
|
486
|
+
isConstantSize: [{ type: i0.Input }],
|
|
487
|
+
gap: [{ type: i0.Input }],
|
|
488
|
+
attributePrefix: [{ type: i0.Input }],
|
|
489
|
+
resizeDebounce: [{ type: i0.Input }],
|
|
490
|
+
maxResizeDebounce: [{ type: i0.Input }],
|
|
491
|
+
autoResize: [{ type: i0.Input }],
|
|
492
|
+
useFit: [{ type: i0.Input }],
|
|
493
|
+
useTransform: [{ type: i0.Input }],
|
|
494
|
+
renderOnPropertyChange: [{ type: i0.Input }],
|
|
495
|
+
preserveUIOnDestroy: [{ type: i0.Input }],
|
|
496
|
+
defaultDirection: [{ type: i0.Input }],
|
|
497
|
+
externalItemRenderer: [{ type: i0.Input }],
|
|
498
|
+
externalContainerManager: [{ type: i0.Input }],
|
|
499
|
+
usePlaceholder: [{ type: i0.Input }],
|
|
500
|
+
useLoading: [{ type: i0.Input }],
|
|
501
|
+
status: [{ type: i0.Input }],
|
|
502
|
+
useFirstRender: [{ type: i0.Input }],
|
|
503
|
+
items: [{ type: i0.Input }],
|
|
504
|
+
trackBy: [{ type: i0.Input }],
|
|
505
|
+
groupBy: [{ type: i0.Input }],
|
|
506
|
+
renderComplete: [{ type: i0.Output }],
|
|
507
|
+
contentError: [{ type: i0.Output }],
|
|
508
|
+
changeScroll: [{ type: i0.Output }],
|
|
509
|
+
requestAppend: [{ type: i0.Output }],
|
|
510
|
+
requestPrepend: [{ type: i0.Output }],
|
|
511
|
+
_wrapperRef: [{ type: i0.ViewChild, args: ['wrapperRef', { static: false },] }],
|
|
512
|
+
_containerRef: [{ type: i0.ViewChild, args: ['containerRef', { static: false },] }]
|
|
513
|
+
};
|
|
631
514
|
|
|
632
|
-
|
|
633
|
-
* @fileoverview added by tsickle
|
|
634
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
635
|
-
*/
|
|
636
|
-
var NgxGridLayoutComponent = /** @class */ (function (_super) {
|
|
637
|
-
__extends(NgxGridLayoutComponent, _super);
|
|
638
|
-
function NgxGridLayoutComponent() {
|
|
639
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
640
|
-
_this.layoutType = NativeInfiniteGrid.GridLayout;
|
|
641
|
-
return _this;
|
|
642
|
-
}
|
|
643
|
-
NgxGridLayoutComponent.decorators = [
|
|
644
|
-
{ type: core.Component, args: [{
|
|
645
|
-
selector: 'ngx-gridlayout, [NgxGridLayout]',
|
|
646
|
-
template: TEMPLATE
|
|
647
|
-
}] }
|
|
648
|
-
];
|
|
649
|
-
NgxGridLayoutComponent.propDecorators = {
|
|
650
|
-
layoutType: [{ type: core.Input }]
|
|
651
|
-
};
|
|
652
|
-
return NgxGridLayoutComponent;
|
|
653
|
-
}(NgxInfiniteGridComponent));
|
|
654
|
-
if (false) {
|
|
655
|
-
/** @type {?} */
|
|
656
|
-
NgxGridLayoutComponent.prototype.layoutType;
|
|
657
|
-
}
|
|
515
|
+
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";
|
|
658
516
|
|
|
659
|
-
/**
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
var NgxJustifiedLayoutComponent = /** @class */ (function (_super) {
|
|
664
|
-
__extends(NgxJustifiedLayoutComponent, _super);
|
|
665
|
-
function NgxJustifiedLayoutComponent() {
|
|
666
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
667
|
-
_this.layoutType = NativeInfiniteGrid.JustifiedLayout;
|
|
668
|
-
return _this;
|
|
517
|
+
var NgxMasonryInfiniteGridComponent = /** @class */ (function (_super) {
|
|
518
|
+
__extends(NgxMasonryInfiniteGridComponent, _super);
|
|
519
|
+
function NgxMasonryInfiniteGridComponent() {
|
|
520
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
669
521
|
}
|
|
670
|
-
|
|
671
|
-
{ type: core.Component, args: [{
|
|
672
|
-
selector: 'ngx-justifiedlayout, [NgxJustifiedLayout]',
|
|
673
|
-
template: TEMPLATE
|
|
674
|
-
}] }
|
|
675
|
-
];
|
|
676
|
-
NgxJustifiedLayoutComponent.propDecorators = {
|
|
677
|
-
layoutType: [{ type: core.Input }]
|
|
678
|
-
};
|
|
679
|
-
return NgxJustifiedLayoutComponent;
|
|
522
|
+
return NgxMasonryInfiniteGridComponent;
|
|
680
523
|
}(NgxInfiniteGridComponent));
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
524
|
+
NgxMasonryInfiniteGridComponent.GridClass = infinitegrid.MasonryInfiniteGrid;
|
|
525
|
+
NgxMasonryInfiniteGridComponent.decorators = [
|
|
526
|
+
{ type: i0.Component, args: [{
|
|
527
|
+
selector: 'ngx-masonry-infinite-grid, [NgxMasonryInfiniteGrid]',
|
|
528
|
+
template: TEMPLATE
|
|
529
|
+
},] }
|
|
530
|
+
];
|
|
531
|
+
NgxMasonryInfiniteGridComponent.propDecorators = {
|
|
532
|
+
column: [{ type: i0.Input }],
|
|
533
|
+
columnSize: [{ type: i0.Input }],
|
|
534
|
+
columnSizeRatio: [{ type: i0.Input }],
|
|
535
|
+
align: [{ type: i0.Input }]
|
|
536
|
+
};
|
|
685
537
|
|
|
686
|
-
/**
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
var NgxSquareLayoutComponent = /** @class */ (function (_super) {
|
|
691
|
-
__extends(NgxSquareLayoutComponent, _super);
|
|
692
|
-
function NgxSquareLayoutComponent() {
|
|
693
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
694
|
-
_this.layoutType = NativeInfiniteGrid.SquareLayout;
|
|
695
|
-
return _this;
|
|
538
|
+
var NgxJustifiedInfiniteGridComponent = /** @class */ (function (_super) {
|
|
539
|
+
__extends(NgxJustifiedInfiniteGridComponent, _super);
|
|
540
|
+
function NgxJustifiedInfiniteGridComponent() {
|
|
541
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
696
542
|
}
|
|
697
|
-
|
|
698
|
-
{ type: core.Component, args: [{
|
|
699
|
-
selector: 'ngx-squarelayout, [NgxSquareLayout]',
|
|
700
|
-
template: TEMPLATE
|
|
701
|
-
}] }
|
|
702
|
-
];
|
|
703
|
-
NgxSquareLayoutComponent.propDecorators = {
|
|
704
|
-
layoutType: [{ type: core.Input }]
|
|
705
|
-
};
|
|
706
|
-
return NgxSquareLayoutComponent;
|
|
543
|
+
return NgxJustifiedInfiniteGridComponent;
|
|
707
544
|
}(NgxInfiniteGridComponent));
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
545
|
+
NgxJustifiedInfiniteGridComponent.GridClass = infinitegrid.JustifiedInfiniteGrid;
|
|
546
|
+
NgxJustifiedInfiniteGridComponent.decorators = [
|
|
547
|
+
{ type: i0.Component, args: [{
|
|
548
|
+
selector: 'ngx-justified-infinite-grid, [NgxJustifiedInfiniteGrid]',
|
|
549
|
+
template: TEMPLATE
|
|
550
|
+
},] }
|
|
551
|
+
];
|
|
552
|
+
NgxJustifiedInfiniteGridComponent.propDecorators = {
|
|
553
|
+
columnRange: [{ type: i0.Input }],
|
|
554
|
+
rowRange: [{ type: i0.Input }],
|
|
555
|
+
sizeRange: [{ type: i0.Input }],
|
|
556
|
+
displayedRow: [{ type: i0.Input }],
|
|
557
|
+
isCroppedSize: [{ type: i0.Input }]
|
|
558
|
+
};
|
|
712
559
|
|
|
713
|
-
/**
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
var NgxFrameLayoutComponent = /** @class */ (function (_super) {
|
|
718
|
-
__extends(NgxFrameLayoutComponent, _super);
|
|
719
|
-
function NgxFrameLayoutComponent() {
|
|
720
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
721
|
-
_this.layoutType = NativeInfiniteGrid.FrameLayout;
|
|
722
|
-
return _this;
|
|
560
|
+
var NgxFrameInfiniteGridComponent = /** @class */ (function (_super) {
|
|
561
|
+
__extends(NgxFrameInfiniteGridComponent, _super);
|
|
562
|
+
function NgxFrameInfiniteGridComponent() {
|
|
563
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
723
564
|
}
|
|
724
|
-
|
|
725
|
-
{ type: core.Component, args: [{
|
|
726
|
-
selector: 'ngx-framelayout, [NgxFrameLayout]',
|
|
727
|
-
template: TEMPLATE
|
|
728
|
-
}] }
|
|
729
|
-
];
|
|
730
|
-
NgxFrameLayoutComponent.propDecorators = {
|
|
731
|
-
layoutType: [{ type: core.Input }]
|
|
732
|
-
};
|
|
733
|
-
return NgxFrameLayoutComponent;
|
|
565
|
+
return NgxFrameInfiniteGridComponent;
|
|
734
566
|
}(NgxInfiniteGridComponent));
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
567
|
+
NgxFrameInfiniteGridComponent.GridClass = infinitegrid.FrameInfiniteGrid;
|
|
568
|
+
NgxFrameInfiniteGridComponent.decorators = [
|
|
569
|
+
{ type: i0.Component, args: [{
|
|
570
|
+
selector: 'ngx-frame-infinite-grid, [NgxFrameInfiniteGrid]',
|
|
571
|
+
template: TEMPLATE
|
|
572
|
+
},] }
|
|
573
|
+
];
|
|
574
|
+
NgxFrameInfiniteGridComponent.propDecorators = {
|
|
575
|
+
frame: [{ type: i0.Input }],
|
|
576
|
+
useFrameFill: [{ type: i0.Input }],
|
|
577
|
+
rectSize: [{ type: i0.Input }]
|
|
578
|
+
};
|
|
739
579
|
|
|
740
|
-
/**
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
var NgxPackingLayoutComponent = /** @class */ (function (_super) {
|
|
745
|
-
__extends(NgxPackingLayoutComponent, _super);
|
|
746
|
-
function NgxPackingLayoutComponent() {
|
|
747
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
748
|
-
_this.layoutType = NativeInfiniteGrid.PackingLayout;
|
|
749
|
-
return _this;
|
|
580
|
+
var NgxPackingInfiniteGridComponent = /** @class */ (function (_super) {
|
|
581
|
+
__extends(NgxPackingInfiniteGridComponent, _super);
|
|
582
|
+
function NgxPackingInfiniteGridComponent() {
|
|
583
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
750
584
|
}
|
|
751
|
-
|
|
752
|
-
{ type: core.Component, args: [{
|
|
753
|
-
selector: 'ngx-packinglayout, [NgxPackingLayout]',
|
|
754
|
-
template: TEMPLATE
|
|
755
|
-
}] }
|
|
756
|
-
];
|
|
757
|
-
NgxPackingLayoutComponent.propDecorators = {
|
|
758
|
-
layoutType: [{ type: core.Input }]
|
|
759
|
-
};
|
|
760
|
-
return NgxPackingLayoutComponent;
|
|
585
|
+
return NgxPackingInfiniteGridComponent;
|
|
761
586
|
}(NgxInfiniteGridComponent));
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
587
|
+
NgxPackingInfiniteGridComponent.GridClass = infinitegrid.PackingInfiniteGrid;
|
|
588
|
+
NgxPackingInfiniteGridComponent.decorators = [
|
|
589
|
+
{ type: i0.Component, args: [{
|
|
590
|
+
selector: 'ngx-packing-infinite-grid, [NgxPackingInfiniteGrid]',
|
|
591
|
+
template: TEMPLATE
|
|
592
|
+
},] }
|
|
593
|
+
];
|
|
594
|
+
NgxPackingInfiniteGridComponent.propDecorators = {
|
|
595
|
+
aspectRatio: [{ type: i0.Input }],
|
|
596
|
+
sizeWeight: [{ type: i0.Input }],
|
|
597
|
+
ratioWeight: [{ type: i0.Input }],
|
|
598
|
+
weightPriority: [{ type: i0.Input }]
|
|
599
|
+
};
|
|
766
600
|
|
|
767
|
-
/**
|
|
768
|
-
* @fileoverview added by tsickle
|
|
769
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
770
|
-
*/
|
|
771
601
|
var NgxInfiniteGridModule = /** @class */ (function () {
|
|
772
602
|
function NgxInfiniteGridModule() {
|
|
773
603
|
}
|
|
774
|
-
NgxInfiniteGridModule.decorators = [
|
|
775
|
-
{ type: core.NgModule, args: [{
|
|
776
|
-
declarations: [
|
|
777
|
-
NgxInfiniteGridComponent,
|
|
778
|
-
NgxGridLayoutComponent,
|
|
779
|
-
NgxJustifiedLayoutComponent,
|
|
780
|
-
NgxSquareLayoutComponent,
|
|
781
|
-
NgxFrameLayoutComponent,
|
|
782
|
-
NgxPackingLayoutComponent,
|
|
783
|
-
],
|
|
784
|
-
imports: [
|
|
785
|
-
common.CommonModule,
|
|
786
|
-
],
|
|
787
|
-
exports: [
|
|
788
|
-
NgxInfiniteGridComponent,
|
|
789
|
-
NgxGridLayoutComponent,
|
|
790
|
-
NgxJustifiedLayoutComponent,
|
|
791
|
-
NgxSquareLayoutComponent,
|
|
792
|
-
NgxFrameLayoutComponent,
|
|
793
|
-
NgxPackingLayoutComponent,
|
|
794
|
-
],
|
|
795
|
-
},] }
|
|
796
|
-
];
|
|
797
604
|
return NgxInfiniteGridModule;
|
|
798
605
|
}());
|
|
606
|
+
NgxInfiniteGridModule.decorators = [
|
|
607
|
+
{ type: i0.NgModule, args: [{
|
|
608
|
+
declarations: [
|
|
609
|
+
NgxInfiniteGridComponent,
|
|
610
|
+
NgxMasonryInfiniteGridComponent,
|
|
611
|
+
NgxJustifiedInfiniteGridComponent,
|
|
612
|
+
NgxFrameInfiniteGridComponent,
|
|
613
|
+
NgxPackingInfiniteGridComponent,
|
|
614
|
+
],
|
|
615
|
+
imports: [
|
|
616
|
+
common.CommonModule,
|
|
617
|
+
],
|
|
618
|
+
exports: [
|
|
619
|
+
NgxInfiniteGridComponent,
|
|
620
|
+
NgxMasonryInfiniteGridComponent,
|
|
621
|
+
NgxJustifiedInfiniteGridComponent,
|
|
622
|
+
NgxFrameInfiniteGridComponent,
|
|
623
|
+
NgxPackingInfiniteGridComponent,
|
|
624
|
+
],
|
|
625
|
+
},] }
|
|
626
|
+
];
|
|
627
|
+
|
|
628
|
+
/*
|
|
629
|
+
* Public API Surface of ngx-infinitegrid
|
|
630
|
+
*/
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Generated bundle index. Do not edit.
|
|
634
|
+
*/
|
|
799
635
|
|
|
800
|
-
exports.NgxFrameLayoutComponent = NgxFrameLayoutComponent;
|
|
801
|
-
exports.NgxGridLayoutComponent = NgxGridLayoutComponent;
|
|
802
636
|
exports.NgxInfiniteGridComponent = NgxInfiniteGridComponent;
|
|
803
637
|
exports.NgxInfiniteGridModule = NgxInfiniteGridModule;
|
|
804
|
-
exports.
|
|
805
|
-
exports.
|
|
806
|
-
exports
|
|
807
|
-
exports
|
|
808
|
-
exports.ɵ
|
|
638
|
+
exports.NgxInfinitegridService = NgxInfinitegridService;
|
|
639
|
+
exports.NgxMasonryInfiniteGridComponent = NgxMasonryInfiniteGridComponent;
|
|
640
|
+
exports.ɵa = NgxInfiniteGridInterface;
|
|
641
|
+
exports.ɵb = TEMPLATE;
|
|
642
|
+
exports.ɵc = NgxJustifiedInfiniteGridComponent;
|
|
643
|
+
exports.ɵd = NgxFrameInfiniteGridComponent;
|
|
644
|
+
exports.ɵe = NgxPackingInfiniteGridComponent;
|
|
809
645
|
|
|
810
646
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
811
647
|
|
|
812
|
-
}));
|
|
648
|
+
})));
|
|
813
649
|
//# sourceMappingURL=egjs-ngx-infinitegrid.umd.js.map
|