ngx-aur-mat-table 0.0.11 → 0.0.13
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/bundles/ngx-aur-mat-table.umd.js +409 -7
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/ColumnConfig.js +2 -0
- package/esm2015/lib/SelectionProvider.js +1 -1
- package/esm2015/lib/ngx-aur-mat-table.component.js +13 -6
- package/esm2015/lib/ngx-aur-mat-table.module.js +5 -3
- package/fesm2015/ngx-aur-mat-table.js +17 -8
- package/fesm2015/ngx-aur-mat-table.js.map +1 -1
- package/lib/{TableColumn.d.ts → ColumnConfig.d.ts} +1 -1
- package/lib/SelectionProvider.d.ts +5 -4
- package/lib/ngx-aur-mat-table.component.d.ts +16 -9
- package/lib/ngx-aur-mat-table.module.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/TableColumn.js +0 -2
|
@@ -34,6 +34,391 @@
|
|
|
34
34
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
35
35
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
36
36
|
|
|
37
|
+
/******************************************************************************
|
|
38
|
+
Copyright (c) Microsoft Corporation.
|
|
39
|
+
|
|
40
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
41
|
+
purpose with or without fee is hereby granted.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
44
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
45
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
46
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
47
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
48
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
49
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
50
|
+
***************************************************************************** */
|
|
51
|
+
/* global Reflect, Promise */
|
|
52
|
+
var extendStatics = function (d, b) {
|
|
53
|
+
extendStatics = Object.setPrototypeOf ||
|
|
54
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55
|
+
function (d, b) { for (var p in b)
|
|
56
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
57
|
+
d[p] = b[p]; };
|
|
58
|
+
return extendStatics(d, b);
|
|
59
|
+
};
|
|
60
|
+
function __extends(d, b) {
|
|
61
|
+
if (typeof b !== "function" && b !== null)
|
|
62
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
63
|
+
extendStatics(d, b);
|
|
64
|
+
function __() { this.constructor = d; }
|
|
65
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
66
|
+
}
|
|
67
|
+
var __assign = function () {
|
|
68
|
+
__assign = Object.assign || function __assign(t) {
|
|
69
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
70
|
+
s = arguments[i];
|
|
71
|
+
for (var p in s)
|
|
72
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
73
|
+
t[p] = s[p];
|
|
74
|
+
}
|
|
75
|
+
return t;
|
|
76
|
+
};
|
|
77
|
+
return __assign.apply(this, arguments);
|
|
78
|
+
};
|
|
79
|
+
function __rest(s, e) {
|
|
80
|
+
var t = {};
|
|
81
|
+
for (var p in s)
|
|
82
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
83
|
+
t[p] = s[p];
|
|
84
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
85
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
86
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
87
|
+
t[p[i]] = s[p[i]];
|
|
88
|
+
}
|
|
89
|
+
return t;
|
|
90
|
+
}
|
|
91
|
+
function __decorate(decorators, target, key, desc) {
|
|
92
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
94
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
95
|
+
else
|
|
96
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
97
|
+
if (d = decorators[i])
|
|
98
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
99
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
100
|
+
}
|
|
101
|
+
function __param(paramIndex, decorator) {
|
|
102
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
103
|
+
}
|
|
104
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
105
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
106
|
+
throw new TypeError("Function expected"); return f; }
|
|
107
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
108
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
109
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
110
|
+
var _, done = false;
|
|
111
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
112
|
+
var context = {};
|
|
113
|
+
for (var p in contextIn)
|
|
114
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
115
|
+
for (var p in contextIn.access)
|
|
116
|
+
context.access[p] = contextIn.access[p];
|
|
117
|
+
context.addInitializer = function (f) { if (done)
|
|
118
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
119
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
120
|
+
if (kind === "accessor") {
|
|
121
|
+
if (result === void 0)
|
|
122
|
+
continue;
|
|
123
|
+
if (result === null || typeof result !== "object")
|
|
124
|
+
throw new TypeError("Object expected");
|
|
125
|
+
if (_ = accept(result.get))
|
|
126
|
+
descriptor.get = _;
|
|
127
|
+
if (_ = accept(result.set))
|
|
128
|
+
descriptor.set = _;
|
|
129
|
+
if (_ = accept(result.init))
|
|
130
|
+
initializers.push(_);
|
|
131
|
+
}
|
|
132
|
+
else if (_ = accept(result)) {
|
|
133
|
+
if (kind === "field")
|
|
134
|
+
initializers.push(_);
|
|
135
|
+
else
|
|
136
|
+
descriptor[key] = _;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
if (target)
|
|
140
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
141
|
+
done = true;
|
|
142
|
+
}
|
|
143
|
+
;
|
|
144
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
145
|
+
var useValue = arguments.length > 2;
|
|
146
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
147
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
148
|
+
}
|
|
149
|
+
return useValue ? value : void 0;
|
|
150
|
+
}
|
|
151
|
+
;
|
|
152
|
+
function __propKey(x) {
|
|
153
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
154
|
+
}
|
|
155
|
+
;
|
|
156
|
+
function __setFunctionName(f, name, prefix) {
|
|
157
|
+
if (typeof name === "symbol")
|
|
158
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
159
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
160
|
+
}
|
|
161
|
+
;
|
|
162
|
+
function __metadata(metadataKey, metadataValue) {
|
|
163
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
164
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
165
|
+
}
|
|
166
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
167
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
168
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
169
|
+
function fulfilled(value) { try {
|
|
170
|
+
step(generator.next(value));
|
|
171
|
+
}
|
|
172
|
+
catch (e) {
|
|
173
|
+
reject(e);
|
|
174
|
+
} }
|
|
175
|
+
function rejected(value) { try {
|
|
176
|
+
step(generator["throw"](value));
|
|
177
|
+
}
|
|
178
|
+
catch (e) {
|
|
179
|
+
reject(e);
|
|
180
|
+
} }
|
|
181
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
182
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function __generator(thisArg, body) {
|
|
186
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
187
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
188
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
189
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
190
|
+
function step(op) {
|
|
191
|
+
if (f)
|
|
192
|
+
throw new TypeError("Generator is already executing.");
|
|
193
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
194
|
+
try {
|
|
195
|
+
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)
|
|
196
|
+
return t;
|
|
197
|
+
if (y = 0, t)
|
|
198
|
+
op = [op[0] & 2, t.value];
|
|
199
|
+
switch (op[0]) {
|
|
200
|
+
case 0:
|
|
201
|
+
case 1:
|
|
202
|
+
t = op;
|
|
203
|
+
break;
|
|
204
|
+
case 4:
|
|
205
|
+
_.label++;
|
|
206
|
+
return { value: op[1], done: false };
|
|
207
|
+
case 5:
|
|
208
|
+
_.label++;
|
|
209
|
+
y = op[1];
|
|
210
|
+
op = [0];
|
|
211
|
+
continue;
|
|
212
|
+
case 7:
|
|
213
|
+
op = _.ops.pop();
|
|
214
|
+
_.trys.pop();
|
|
215
|
+
continue;
|
|
216
|
+
default:
|
|
217
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
218
|
+
_ = 0;
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
222
|
+
_.label = op[1];
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
226
|
+
_.label = t[1];
|
|
227
|
+
t = op;
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
if (t && _.label < t[2]) {
|
|
231
|
+
_.label = t[2];
|
|
232
|
+
_.ops.push(op);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
if (t[2])
|
|
236
|
+
_.ops.pop();
|
|
237
|
+
_.trys.pop();
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
op = body.call(thisArg, _);
|
|
241
|
+
}
|
|
242
|
+
catch (e) {
|
|
243
|
+
op = [6, e];
|
|
244
|
+
y = 0;
|
|
245
|
+
}
|
|
246
|
+
finally {
|
|
247
|
+
f = t = 0;
|
|
248
|
+
}
|
|
249
|
+
if (op[0] & 5)
|
|
250
|
+
throw op[1];
|
|
251
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
255
|
+
if (k2 === undefined)
|
|
256
|
+
k2 = k;
|
|
257
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
258
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
259
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
260
|
+
}
|
|
261
|
+
Object.defineProperty(o, k2, desc);
|
|
262
|
+
}) : (function (o, m, k, k2) {
|
|
263
|
+
if (k2 === undefined)
|
|
264
|
+
k2 = k;
|
|
265
|
+
o[k2] = m[k];
|
|
266
|
+
});
|
|
267
|
+
function __exportStar(m, o) {
|
|
268
|
+
for (var p in m)
|
|
269
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
270
|
+
__createBinding(o, m, p);
|
|
271
|
+
}
|
|
272
|
+
function __values(o) {
|
|
273
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
274
|
+
if (m)
|
|
275
|
+
return m.call(o);
|
|
276
|
+
if (o && typeof o.length === "number")
|
|
277
|
+
return {
|
|
278
|
+
next: function () {
|
|
279
|
+
if (o && i >= o.length)
|
|
280
|
+
o = void 0;
|
|
281
|
+
return { value: o && o[i++], done: !o };
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
285
|
+
}
|
|
286
|
+
function __read(o, n) {
|
|
287
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
288
|
+
if (!m)
|
|
289
|
+
return o;
|
|
290
|
+
var i = m.call(o), r, ar = [], e;
|
|
291
|
+
try {
|
|
292
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
293
|
+
ar.push(r.value);
|
|
294
|
+
}
|
|
295
|
+
catch (error) {
|
|
296
|
+
e = { error: error };
|
|
297
|
+
}
|
|
298
|
+
finally {
|
|
299
|
+
try {
|
|
300
|
+
if (r && !r.done && (m = i["return"]))
|
|
301
|
+
m.call(i);
|
|
302
|
+
}
|
|
303
|
+
finally {
|
|
304
|
+
if (e)
|
|
305
|
+
throw e.error;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return ar;
|
|
309
|
+
}
|
|
310
|
+
/** @deprecated */
|
|
311
|
+
function __spread() {
|
|
312
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
313
|
+
ar = ar.concat(__read(arguments[i]));
|
|
314
|
+
return ar;
|
|
315
|
+
}
|
|
316
|
+
/** @deprecated */
|
|
317
|
+
function __spreadArrays() {
|
|
318
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
319
|
+
s += arguments[i].length;
|
|
320
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
321
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
322
|
+
r[k] = a[j];
|
|
323
|
+
return r;
|
|
324
|
+
}
|
|
325
|
+
function __spreadArray(to, from, pack) {
|
|
326
|
+
if (pack || arguments.length === 2)
|
|
327
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
328
|
+
if (ar || !(i in from)) {
|
|
329
|
+
if (!ar)
|
|
330
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
331
|
+
ar[i] = from[i];
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
335
|
+
}
|
|
336
|
+
function __await(v) {
|
|
337
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
338
|
+
}
|
|
339
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
340
|
+
if (!Symbol.asyncIterator)
|
|
341
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
342
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
343
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
344
|
+
function verb(n) { if (g[n])
|
|
345
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
346
|
+
function resume(n, v) { try {
|
|
347
|
+
step(g[n](v));
|
|
348
|
+
}
|
|
349
|
+
catch (e) {
|
|
350
|
+
settle(q[0][3], e);
|
|
351
|
+
} }
|
|
352
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
353
|
+
function fulfill(value) { resume("next", value); }
|
|
354
|
+
function reject(value) { resume("throw", value); }
|
|
355
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
356
|
+
resume(q[0][0], q[0][1]); }
|
|
357
|
+
}
|
|
358
|
+
function __asyncDelegator(o) {
|
|
359
|
+
var i, p;
|
|
360
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
361
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
362
|
+
}
|
|
363
|
+
function __asyncValues(o) {
|
|
364
|
+
if (!Symbol.asyncIterator)
|
|
365
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
366
|
+
var m = o[Symbol.asyncIterator], i;
|
|
367
|
+
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);
|
|
368
|
+
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); }); }; }
|
|
369
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
370
|
+
}
|
|
371
|
+
function __makeTemplateObject(cooked, raw) {
|
|
372
|
+
if (Object.defineProperty) {
|
|
373
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
cooked.raw = raw;
|
|
377
|
+
}
|
|
378
|
+
return cooked;
|
|
379
|
+
}
|
|
380
|
+
;
|
|
381
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
382
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
383
|
+
}) : function (o, v) {
|
|
384
|
+
o["default"] = v;
|
|
385
|
+
};
|
|
386
|
+
function __importStar(mod) {
|
|
387
|
+
if (mod && mod.__esModule)
|
|
388
|
+
return mod;
|
|
389
|
+
var result = {};
|
|
390
|
+
if (mod != null)
|
|
391
|
+
for (var k in mod)
|
|
392
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
393
|
+
__createBinding(result, mod, k);
|
|
394
|
+
__setModuleDefault(result, mod);
|
|
395
|
+
return result;
|
|
396
|
+
}
|
|
397
|
+
function __importDefault(mod) {
|
|
398
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
399
|
+
}
|
|
400
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
401
|
+
if (kind === "a" && !f)
|
|
402
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
403
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
404
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
405
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
406
|
+
}
|
|
407
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
408
|
+
if (kind === "m")
|
|
409
|
+
throw new TypeError("Private method is not writable");
|
|
410
|
+
if (kind === "a" && !f)
|
|
411
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
412
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
413
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
414
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
415
|
+
}
|
|
416
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
417
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
418
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
419
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
420
|
+
}
|
|
421
|
+
|
|
37
422
|
var SelectionProvider = /** @class */ (function () {
|
|
38
423
|
function SelectionProvider(ctx, columns, tableDataSource) {
|
|
39
424
|
this.COLUMN_NAME = 'tbl_selects';
|
|
@@ -112,6 +497,19 @@
|
|
|
112
497
|
}]
|
|
113
498
|
}] });
|
|
114
499
|
|
|
500
|
+
var RowSource = /** @class */ (function () {
|
|
501
|
+
function RowSource(srcVl) {
|
|
502
|
+
this.srcVl = srcVl;
|
|
503
|
+
}
|
|
504
|
+
return RowSource;
|
|
505
|
+
}());
|
|
506
|
+
var TableRow = /** @class */ (function (_super) {
|
|
507
|
+
__extends(TableRow, _super);
|
|
508
|
+
function TableRow() {
|
|
509
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
510
|
+
}
|
|
511
|
+
return TableRow;
|
|
512
|
+
}(RowSource));
|
|
115
513
|
var NgxAurMatTableComponent = /** @class */ (function () {
|
|
116
514
|
function NgxAurMatTableComponent() {
|
|
117
515
|
this.tableDataSource = new i2.MatTableDataSource([]);
|
|
@@ -119,7 +517,7 @@
|
|
|
119
517
|
this.isPageable = false;
|
|
120
518
|
this.isSortable = false;
|
|
121
519
|
this.isFilterable = false;
|
|
122
|
-
this.
|
|
520
|
+
this.columnConfigs = [];
|
|
123
521
|
this.paginationSizes = [5, 10, 15];
|
|
124
522
|
this.defaultPageSize = this.paginationSizes[1];
|
|
125
523
|
this.sort = new i0.EventEmitter();
|
|
@@ -138,7 +536,7 @@
|
|
|
138
536
|
configurable: true
|
|
139
537
|
});
|
|
140
538
|
NgxAurMatTableComponent.prototype.ngOnInit = function () {
|
|
141
|
-
this.displayedColumns = this.
|
|
539
|
+
this.displayedColumns = this.columnConfigs.map(function (tableColumn) { return tableColumn.name; });
|
|
142
540
|
if (this.rowActionable) {
|
|
143
541
|
this.rowActionsProvider = new RowActionProvider(this.rowActionable, this.displayedColumns);
|
|
144
542
|
}
|
|
@@ -163,7 +561,7 @@
|
|
|
163
561
|
NgxAurMatTableComponent.prototype.sortTable = function (sortParameters) {
|
|
164
562
|
// defining name of data property, to sort by, instead of column name
|
|
165
563
|
// @ts-ignore
|
|
166
|
-
sortParameters.active = this.
|
|
564
|
+
sortParameters.active = this.columnConfigs.find(function (column) { return column.name === sortParameters.active; }).dataKey;
|
|
167
565
|
this.sort.emit(sortParameters);
|
|
168
566
|
};
|
|
169
567
|
NgxAurMatTableComponent.prototype.emitRowAction = function (action, row, $event) {
|
|
@@ -179,7 +577,7 @@
|
|
|
179
577
|
return NgxAurMatTableComponent;
|
|
180
578
|
}());
|
|
181
579
|
NgxAurMatTableComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxAurMatTableComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
182
|
-
NgxAurMatTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NgxAurMatTableComponent, selector: "aur-mat-table", inputs: { isPageable: "isPageable", isSortable: "isSortable", isFilterable: "isFilterable",
|
|
580
|
+
NgxAurMatTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: NgxAurMatTableComponent, selector: "aur-mat-table", inputs: { isPageable: "isPageable", isSortable: "isSortable", isFilterable: "isFilterable", columnConfigs: "columnConfigs", paginationSizes: "paginationSizes", defaultPageSize: "defaultPageSize", rowActionable: "rowActionable", selectable: "selectable", tableData: "tableData" }, outputs: { sort: "sort", onRowAction: "onRowAction", selected: "selected", onSelect: "onSelect", onDeselect: "onDeselect", onRowClick: "onRowClick" }, viewQueries: [{ propertyName: "matPaginator", first: true, predicate: i7.MatPaginator, descendants: true }, { propertyName: "matSort", first: true, predicate: i6.MatSort, descendants: true, static: true }], ngImport: i0__namespace, template: "<ng-container>\r\n\r\n <!-- Filter -->\r\n <ng-container *ngIf=\"isFilterable\">\r\n <mat-form-field>\r\n <mat-label>Filter</mat-label>\r\n <input matInput (keyup)=\"applyFilter($event)\" placeholder=\"filter\">\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- Table -->\r\n <table mat-table [dataSource]=\"tableDataSource\" matSort (matSortChange)=\"sortTable($event)\">\r\n\r\n <!-- selection-column-->\r\n <ng-container [matColumnDef]=\"selectionProvider.COLUMN_NAME\" *ngIf=\"selectionProvider\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox (change)=\"$event ? masterToggle() : null\"\r\n [checked]=\"selectionProvider.selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selectionProvider.selection.hasValue() && !isAllSelected()\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selectionProvider.selection.toggle(row) : null\"\r\n [checked]=\"selectionProvider.selection.isSelected(row)\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- action column -->\r\n <ng-container *ngIf=\"rowActionsProvider\" [matColumnDef]=\"rowActionsProvider.COLUMN_NAME\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <button mat-icon-button\r\n (click)=\"emitRowAction(action.action, element, $event)\"\r\n [matTooltip]=\"action.tooltip? action.tooltip: ''\"\r\n *ngFor=\"let action of rowActionable.actions\">\r\n <mat-icon [style.color]=\"action.color\">\r\n {{action.icon}}\r\n </mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let tableColumn of columnConfigs\" [matColumnDef]=\"tableColumn.name\">\r\n\r\n <!-- if sortable column header -->\r\n <ng-container *ngIf=\"tableColumn.isSortable; else notSortable\">\r\n <th mat-header-cell *matHeaderCellDef [mat-sort-header]=\"tableColumn.name\"\r\n [arrowPosition]=\"tableColumn.position === 'right' ? 'before' : 'after'\">\r\n <ng-container *ngTemplateOutlet=\"headerValue\"></ng-container>\r\n </th>\r\n </ng-container>\r\n <!-- else not sortable -->\r\n <ng-template #notSortable>\r\n <th mat-header-cell *matHeaderCellDef\r\n [class.text-right]=\"tableColumn.position == 'right'\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"headerValue\"></ng-container>\r\n </th>\r\n </ng-template>\r\n\r\n <!-- header value-->\r\n <ng-template #headerValue>\r\n <mat-icon *ngIf=\"tableColumn.headerIcon\"\r\n [matTooltip]=\"tableColumn.headerTooltip? tableColumn.headerTooltip: ''\"\r\n [style.color]=\"tableColumn.headerIconColor\">{{tableColumn.headerIcon}}</mat-icon>\r\n <span *ngIf=\"!tableColumn.headerIcon || tableColumn.headerIconWithText\"\r\n [matTooltip]=\"tableColumn.headerTooltip? tableColumn.headerTooltip: ''\"\r\n >{{tableColumn.name}}</span>\r\n </ng-template>\r\n\r\n <!-- column data -->\r\n <td mat-cell *matCellDef=\"let element\" [class.text-right]=\"tableColumn.position == 'right'\">\r\n <mat-icon *ngIf=\"tableColumn.valueIcon \"\r\n [style.color]=\"tableColumn.valueIconColor? tableColumn.valueIconColor(element): null\"\r\n >\r\n {{tableColumn.valueIcon ? tableColumn.valueIcon(element) : 'X'}}\r\n </mat-icon>\r\n <span *ngIf=\"!tableColumn.valueIcon || tableColumn.valueIconWithText\">\r\n {{element | dataPropertyGetter: tableColumn.dataKey}}\r\n </span>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row (click)=\"onRowAction.emit(row)\" *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n\r\n <!-- Pagination -->\r\n <mat-paginator *ngIf=\"isPageable\"\r\n [pageSizeOptions]=\"paginationSizes\"\r\n [pageSize]=\"defaultPageSize\"\r\n showFirstLastButtons>\r\n </mat-paginator>\r\n</ng-container>\r\n", styles: ["table{width:100%}th,td{padding:10px!important}mat-form-field{width:40%}.text-right{text-align:right!important}\n"], components: [{ type: i1__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i2__namespace.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i3__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6__namespace.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "arrowPosition", "sortActionDescription", "disableClear", "mat-sort-header", "start"], exportAs: ["matSortHeader"] }, { type: i2__namespace.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i2__namespace.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { type: i7__namespace.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }], directives: [{ type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatLabel, selector: "mat-label" }, { type: i9__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i6__namespace.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortActive"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { type: i2__namespace.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i2__namespace.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i2__namespace.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i2__namespace.MatCellDef, selector: "[matCellDef]" }, { type: i2__namespace.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i8__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i2__namespace.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }], pipes: { "dataPropertyGetter": DataPropertyGetterPipe } });
|
|
183
581
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxAurMatTableComponent, decorators: [{
|
|
184
582
|
type: i0.Component,
|
|
185
583
|
args: [{
|
|
@@ -199,7 +597,7 @@
|
|
|
199
597
|
type: i0.Input
|
|
200
598
|
}], isFilterable: [{
|
|
201
599
|
type: i0.Input
|
|
202
|
-
}],
|
|
600
|
+
}], columnConfigs: [{
|
|
203
601
|
type: i0.Input
|
|
204
602
|
}], paginationSizes: [{
|
|
205
603
|
type: i0.Input
|
|
@@ -242,7 +640,8 @@
|
|
|
242
640
|
i6.MatSortModule,
|
|
243
641
|
i10.MatTooltipModule,
|
|
244
642
|
i3.MatCheckboxModule,
|
|
245
|
-
i1.MatFormFieldModule], exports: [NgxAurMatTableComponent
|
|
643
|
+
i1.MatFormFieldModule], exports: [NgxAurMatTableComponent,
|
|
644
|
+
DataPropertyGetterPipe] });
|
|
246
645
|
NgxAurMatTableModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxAurMatTableModule, imports: [[
|
|
247
646
|
platformBrowser.BrowserModule,
|
|
248
647
|
animations.BrowserAnimationsModule,
|
|
@@ -277,7 +676,8 @@
|
|
|
277
676
|
i1.MatFormFieldModule
|
|
278
677
|
],
|
|
279
678
|
exports: [
|
|
280
|
-
NgxAurMatTableComponent
|
|
679
|
+
NgxAurMatTableComponent,
|
|
680
|
+
DataPropertyGetterPipe
|
|
281
681
|
]
|
|
282
682
|
}]
|
|
283
683
|
}] });
|
|
@@ -293,6 +693,8 @@
|
|
|
293
693
|
exports.DataPropertyGetterPipe = DataPropertyGetterPipe;
|
|
294
694
|
exports.NgxAurMatTableComponent = NgxAurMatTableComponent;
|
|
295
695
|
exports.NgxAurMatTableModule = NgxAurMatTableModule;
|
|
696
|
+
exports.RowSource = RowSource;
|
|
697
|
+
exports.TableRow = TableRow;
|
|
296
698
|
|
|
297
699
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
298
700
|
|