@swimlane/ngx-datatable 17.0.0 → 20.0.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 +0 -1
- package/assets/icons.css +39 -19
- package/bundles/swimlane-ngx-datatable.umd.js +1103 -1564
- package/bundles/swimlane-ngx-datatable.umd.js.map +1 -1
- package/esm2015/lib/components/body/body-cell.component.js +40 -86
- package/esm2015/lib/components/body/body-group-header-template.directive.js +8 -10
- package/esm2015/lib/components/body/body-group-header.directive.js +11 -19
- package/esm2015/lib/components/body/body-row-wrapper.component.js +32 -54
- package/esm2015/lib/components/body/body-row.component.js +38 -75
- package/esm2015/lib/components/body/body.component.js +61 -137
- package/esm2015/lib/components/body/progress-bar.component.js +10 -12
- package/esm2015/lib/components/body/scroller.component.js +21 -33
- package/esm2015/lib/components/body/selection.component.js +19 -35
- package/esm2015/lib/components/body/summary/summary-row.component.js +19 -29
- package/esm2015/lib/components/columns/column-cell.directive.js +6 -8
- package/esm2015/lib/components/columns/column-header.directive.js +6 -8
- package/esm2015/lib/components/columns/column.directive.js +36 -92
- package/esm2015/lib/components/columns/tree.directive.js +6 -8
- package/esm2015/lib/components/datatable.component.js +85 -214
- package/esm2015/lib/components/footer/footer-template.directive.js +6 -8
- package/esm2015/lib/components/footer/footer.component.js +28 -54
- package/esm2015/lib/components/footer/footer.directive.js +16 -34
- package/esm2015/lib/components/footer/pager.component.js +23 -39
- package/esm2015/lib/components/header/header-cell.component.js +45 -80
- package/esm2015/lib/components/header/header.component.js +43 -80
- package/esm2015/lib/components/row-detail/row-detail-template.directive.js +8 -10
- package/esm2015/lib/components/row-detail/row-detail.directive.js +11 -19
- package/esm2015/lib/directives/draggable.directive.js +16 -30
- package/esm2015/lib/directives/long-press.directive.js +16 -34
- package/esm2015/lib/directives/orderable.directive.js +12 -19
- package/esm2015/lib/directives/resizeable.directive.js +19 -29
- package/esm2015/lib/directives/visibility.directive.js +11 -15
- package/esm2015/lib/events.js +1 -1
- package/esm2015/lib/ngx-datatable.module.js +54 -57
- package/esm2015/lib/services/column-changes.service.js +6 -8
- package/esm2015/lib/services/dimensions-helper.service.js +6 -8
- package/esm2015/lib/services/scrollbar-helper.service.js +6 -9
- package/esm2015/lib/types/click.type.js +1 -1
- package/esm2015/lib/types/column-mode.type.js +1 -1
- package/esm2015/lib/types/contextmenu.type.js +1 -1
- package/esm2015/lib/types/selection.type.js +1 -1
- package/esm2015/lib/types/sort-direction.type.js +1 -1
- package/esm2015/lib/types/sort-prop-dir.type.js +2 -1
- package/esm2015/lib/types/sort.type.js +1 -1
- package/esm2015/lib/types/table-column.type.js +2 -1
- package/esm2015/lib/utils/camel-case.js +1 -1
- package/esm2015/lib/utils/column-helper.js +1 -1
- package/esm2015/lib/utils/column-prop-getters.js +1 -1
- package/esm2015/lib/utils/column.js +1 -1
- package/esm2015/lib/utils/elm-from-point.js +1 -1
- package/esm2015/lib/utils/id.js +1 -1
- package/esm2015/lib/utils/keys.js +1 -1
- package/esm2015/lib/utils/math.js +1 -1
- package/esm2015/lib/utils/prefixes.js +1 -1
- package/esm2015/lib/utils/row-height-cache.js +1 -1
- package/esm2015/lib/utils/selection.js +1 -1
- package/esm2015/lib/utils/sort.js +1 -1
- package/esm2015/lib/utils/throttle.js +1 -1
- package/esm2015/lib/utils/translate.js +1 -1
- package/esm2015/lib/utils/tree.js +1 -1
- package/esm2015/public-api.js +3 -1
- package/esm2015/swimlane-ngx-datatable.js +1 -1
- package/fesm2015/swimlane-ngx-datatable.js +682 -1248
- package/fesm2015/swimlane-ngx-datatable.js.map +1 -1
- package/lib/components/header/header-cell.component.d.ts +2 -0
- package/lib/components/header/header.component.d.ts +1 -0
- package/lib/utils/throttle.d.ts +1 -1
- package/package.json +10 -10
- package/swimlane-ngx-datatable.metadata.json +1 -1
- package/bundles/swimlane-ngx-datatable.umd.min.js +0 -16
- package/bundles/swimlane-ngx-datatable.umd.min.js.map +0 -1
- package/esm5/lib/components/body/body-cell.component.js +0 -438
- package/esm5/lib/components/body/body-group-header-template.directive.js +0 -18
- package/esm5/lib/components/body/body-group-header.directive.js +0 -67
- package/esm5/lib/components/body/body-row-wrapper.component.js +0 -114
- package/esm5/lib/components/body/body-row.component.js +0 -260
- package/esm5/lib/components/body/body.component.js +0 -775
- package/esm5/lib/components/body/progress-bar.component.js +0 -16
- package/esm5/lib/components/body/scroller.component.js +0 -97
- package/esm5/lib/components/body/selection.component.js +0 -159
- package/esm5/lib/components/body/summary/summary-row.component.js +0 -81
- package/esm5/lib/components/columns/column-cell.directive.js +0 -16
- package/esm5/lib/components/columns/column-header.directive.js +0 -16
- package/esm5/lib/components/columns/column.directive.js +0 -134
- package/esm5/lib/components/columns/tree.directive.js +0 -16
- package/esm5/lib/components/datatable.component.js +0 -1147
- package/esm5/lib/components/footer/footer-template.directive.js +0 -16
- package/esm5/lib/components/footer/footer.component.js +0 -74
- package/esm5/lib/components/footer/footer.directive.js +0 -47
- package/esm5/lib/components/footer/pager.component.js +0 -135
- package/esm5/lib/components/header/header-cell.component.js +0 -253
- package/esm5/lib/components/header/header.component.js +0 -317
- package/esm5/lib/components/row-detail/row-detail-template.directive.js +0 -18
- package/esm5/lib/components/row-detail/row-detail.directive.js +0 -68
- package/esm5/lib/directives/draggable.directive.js +0 -118
- package/esm5/lib/directives/long-press.directive.js +0 -132
- package/esm5/lib/directives/orderable.directive.js +0 -161
- package/esm5/lib/directives/resizeable.directive.js +0 -101
- package/esm5/lib/directives/visibility.directive.js +0 -69
- package/esm5/lib/events.js +0 -7
- package/esm5/lib/ngx-datatable.module.js +0 -103
- package/esm5/lib/services/column-changes.service.js +0 -28
- package/esm5/lib/services/dimensions-helper.service.js +0 -19
- package/esm5/lib/services/scrollbar-helper.service.js +0 -38
- package/esm5/lib/types/click.type.js +0 -6
- package/esm5/lib/types/column-mode.type.js +0 -7
- package/esm5/lib/types/contextmenu.type.js +0 -6
- package/esm5/lib/types/selection.type.js +0 -9
- package/esm5/lib/types/sort-direction.type.js +0 -6
- package/esm5/lib/types/sort-prop-dir.type.js +0 -1
- package/esm5/lib/types/sort.type.js +0 -6
- package/esm5/lib/types/table-column.type.js +0 -1
- package/esm5/lib/utils/camel-case.js +0 -28
- package/esm5/lib/utils/column-helper.js +0 -128
- package/esm5/lib/utils/column-prop-getters.js +0 -96
- package/esm5/lib/utils/column.js +0 -103
- package/esm5/lib/utils/elm-from-point.js +0 -38
- package/esm5/lib/utils/id.js +0 -8
- package/esm5/lib/utils/keys.js +0 -10
- package/esm5/lib/utils/math.js +0 -224
- package/esm5/lib/utils/prefixes.js +0 -40
- package/esm5/lib/utils/row-height-cache.js +0 -137
- package/esm5/lib/utils/selection.js +0 -40
- package/esm5/lib/utils/sort.js +0 -139
- package/esm5/lib/utils/throttle.js +0 -60
- package/esm5/lib/utils/translate.js +0 -25
- package/esm5/lib/utils/tree.js +0 -106
- package/esm5/public-api.js +0 -62
- package/esm5/swimlane-ngx-datatable.js +0 -5
- package/fesm5/swimlane-ngx-datatable.js +0 -6088
- package/fesm5/swimlane-ngx-datatable.js.map +0 -1
- package/lib/test/jasmine-matchers.d.ts +0 -12
|
@@ -1,223 +1,9 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('rxjs/operators')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@swimlane/ngx-datatable', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = global || self, factory((global.swimlane = global.swimlane || {}, global.swimlane['ngx-datatable'] = {}), global.ng.core, global.ng.common, global.rxjs, global.rxjs.operators));
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.swimlane = global.swimlane || {}, global.swimlane['ngx-datatable'] = {}), global.ng.core, global.ng.common, global.rxjs, global.rxjs.operators));
|
|
5
5
|
}(this, (function (exports, core, common, rxjs, operators) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
10
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
11
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
|
|
13
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
15
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
17
|
-
|
|
18
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
|
-
and limitations under the License.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
|
|
23
|
-
var extendStatics = function(d, b) {
|
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
extendStatics(d, b);
|
|
32
|
-
function __() { this.constructor = d; }
|
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var __assign = function() {
|
|
37
|
-
__assign = Object.assign || function __assign(t) {
|
|
38
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
39
|
-
s = arguments[i];
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
return __assign.apply(this, arguments);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
function __rest(s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
62
|
-
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;
|
|
63
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function __param(paramIndex, decorator) {
|
|
67
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function __metadata(metadataKey, metadataValue) {
|
|
71
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
75
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
76
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
77
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
78
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
79
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
80
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function __generator(thisArg, body) {
|
|
85
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
86
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
87
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
88
|
-
function step(op) {
|
|
89
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
90
|
-
while (_) try {
|
|
91
|
-
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;
|
|
92
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
93
|
-
switch (op[0]) {
|
|
94
|
-
case 0: case 1: t = op; break;
|
|
95
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
96
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
97
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
98
|
-
default:
|
|
99
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
100
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
101
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
102
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
103
|
-
if (t[2]) _.ops.pop();
|
|
104
|
-
_.trys.pop(); continue;
|
|
105
|
-
}
|
|
106
|
-
op = body.call(thisArg, _);
|
|
107
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
108
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function __exportStar(m, exports) {
|
|
113
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function __values(o) {
|
|
117
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
118
|
-
if (m) return m.call(o);
|
|
119
|
-
if (o && typeof o.length === "number") return {
|
|
120
|
-
next: function () {
|
|
121
|
-
if (o && i >= o.length) o = void 0;
|
|
122
|
-
return { value: o && o[i++], done: !o };
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function __read(o, n) {
|
|
129
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
130
|
-
if (!m) return o;
|
|
131
|
-
var i = m.call(o), r, ar = [], e;
|
|
132
|
-
try {
|
|
133
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
134
|
-
}
|
|
135
|
-
catch (error) { e = { error: error }; }
|
|
136
|
-
finally {
|
|
137
|
-
try {
|
|
138
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
139
|
-
}
|
|
140
|
-
finally { if (e) throw e.error; }
|
|
141
|
-
}
|
|
142
|
-
return ar;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function __spread() {
|
|
146
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
147
|
-
ar = ar.concat(__read(arguments[i]));
|
|
148
|
-
return ar;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function __spreadArrays() {
|
|
152
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
153
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
154
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
155
|
-
r[k] = a[j];
|
|
156
|
-
return r;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
function __await(v) {
|
|
160
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
164
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
165
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
166
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
167
|
-
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); }); }; }
|
|
168
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
169
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
170
|
-
function fulfill(value) { resume("next", value); }
|
|
171
|
-
function reject(value) { resume("throw", value); }
|
|
172
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function __asyncDelegator(o) {
|
|
176
|
-
var i, p;
|
|
177
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
178
|
-
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; }
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
function __asyncValues(o) {
|
|
182
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
183
|
-
var m = o[Symbol.asyncIterator], i;
|
|
184
|
-
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);
|
|
185
|
-
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); }); }; }
|
|
186
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
function __makeTemplateObject(cooked, raw) {
|
|
190
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
191
|
-
return cooked;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
function __importStar(mod) {
|
|
195
|
-
if (mod && mod.__esModule) return mod;
|
|
196
|
-
var result = {};
|
|
197
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
198
|
-
result.default = mod;
|
|
199
|
-
return result;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
function __importDefault(mod) {
|
|
203
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
|
207
|
-
if (!privateMap.has(receiver)) {
|
|
208
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
209
|
-
}
|
|
210
|
-
return privateMap.get(receiver);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
214
|
-
if (!privateMap.has(receiver)) {
|
|
215
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
216
|
-
}
|
|
217
|
-
privateMap.set(receiver, value);
|
|
218
|
-
return value;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
7
|
/**
|
|
222
8
|
* Gets the width of the scrollbar. Nesc for windows
|
|
223
9
|
* http://stackoverflow.com/a/13382873/888165
|
|
@@ -242,15 +28,14 @@
|
|
|
242
28
|
outer.parentNode.removeChild(outer);
|
|
243
29
|
return widthNoScroll - widthWithScroll;
|
|
244
30
|
};
|
|
245
|
-
ScrollbarHelper.ctorParameters = function () { return [
|
|
246
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
247
|
-
]; };
|
|
248
|
-
ScrollbarHelper = __decorate([
|
|
249
|
-
core.Injectable(),
|
|
250
|
-
__param(0, core.Inject(common.DOCUMENT))
|
|
251
|
-
], ScrollbarHelper);
|
|
252
31
|
return ScrollbarHelper;
|
|
253
32
|
}());
|
|
33
|
+
ScrollbarHelper.decorators = [
|
|
34
|
+
{ type: core.Injectable }
|
|
35
|
+
];
|
|
36
|
+
ScrollbarHelper.ctorParameters = function () { return [
|
|
37
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
38
|
+
]; };
|
|
254
39
|
|
|
255
40
|
/**
|
|
256
41
|
* Gets the width of the scrollbar. Nesc for windows
|
|
@@ -262,11 +47,11 @@
|
|
|
262
47
|
DimensionsHelper.prototype.getDimensions = function (element) {
|
|
263
48
|
return element.getBoundingClientRect();
|
|
264
49
|
};
|
|
265
|
-
DimensionsHelper = __decorate([
|
|
266
|
-
core.Injectable()
|
|
267
|
-
], DimensionsHelper);
|
|
268
50
|
return DimensionsHelper;
|
|
269
51
|
}());
|
|
52
|
+
DimensionsHelper.decorators = [
|
|
53
|
+
{ type: core.Injectable }
|
|
54
|
+
];
|
|
270
55
|
|
|
271
56
|
/**
|
|
272
57
|
* service to make DatatableComponent aware of changes to
|
|
@@ -280,30 +65,30 @@
|
|
|
280
65
|
get: function () {
|
|
281
66
|
return this.columnInputChanges.asObservable();
|
|
282
67
|
},
|
|
283
|
-
enumerable:
|
|
68
|
+
enumerable: false,
|
|
284
69
|
configurable: true
|
|
285
70
|
});
|
|
286
71
|
ColumnChangesService.prototype.onInputChange = function () {
|
|
287
72
|
this.columnInputChanges.next();
|
|
288
73
|
};
|
|
289
|
-
ColumnChangesService = __decorate([
|
|
290
|
-
core.Injectable()
|
|
291
|
-
], ColumnChangesService);
|
|
292
74
|
return ColumnChangesService;
|
|
293
75
|
}());
|
|
76
|
+
ColumnChangesService.decorators = [
|
|
77
|
+
{ type: core.Injectable }
|
|
78
|
+
];
|
|
294
79
|
|
|
295
80
|
var DataTableFooterTemplateDirective = /** @class */ (function () {
|
|
296
81
|
function DataTableFooterTemplateDirective(template) {
|
|
297
82
|
this.template = template;
|
|
298
83
|
}
|
|
299
|
-
DataTableFooterTemplateDirective.ctorParameters = function () { return [
|
|
300
|
-
{ type: core.TemplateRef }
|
|
301
|
-
]; };
|
|
302
|
-
DataTableFooterTemplateDirective = __decorate([
|
|
303
|
-
core.Directive({ selector: '[ngx-datatable-footer-template]' })
|
|
304
|
-
], DataTableFooterTemplateDirective);
|
|
305
84
|
return DataTableFooterTemplateDirective;
|
|
306
85
|
}());
|
|
86
|
+
DataTableFooterTemplateDirective.decorators = [
|
|
87
|
+
{ type: core.Directive, args: [{ selector: '[ngx-datatable-footer-template]' },] }
|
|
88
|
+
];
|
|
89
|
+
DataTableFooterTemplateDirective.ctorParameters = function () { return [
|
|
90
|
+
{ type: core.TemplateRef }
|
|
91
|
+
]; };
|
|
307
92
|
|
|
308
93
|
/**
|
|
309
94
|
* Visibility Observer Directive
|
|
@@ -355,21 +140,19 @@
|
|
|
355
140
|
};
|
|
356
141
|
this.timeout = setTimeout(function () { return check(); });
|
|
357
142
|
};
|
|
358
|
-
VisibilityDirective.ctorParameters = function () { return [
|
|
359
|
-
{ type: core.ElementRef },
|
|
360
|
-
{ type: core.NgZone }
|
|
361
|
-
]; };
|
|
362
|
-
__decorate([
|
|
363
|
-
core.HostBinding('class.visible')
|
|
364
|
-
], VisibilityDirective.prototype, "isVisible", void 0);
|
|
365
|
-
__decorate([
|
|
366
|
-
core.Output()
|
|
367
|
-
], VisibilityDirective.prototype, "visible", void 0);
|
|
368
|
-
VisibilityDirective = __decorate([
|
|
369
|
-
core.Directive({ selector: '[visibilityObserver]' })
|
|
370
|
-
], VisibilityDirective);
|
|
371
143
|
return VisibilityDirective;
|
|
372
144
|
}());
|
|
145
|
+
VisibilityDirective.decorators = [
|
|
146
|
+
{ type: core.Directive, args: [{ selector: '[visibilityObserver]' },] }
|
|
147
|
+
];
|
|
148
|
+
VisibilityDirective.ctorParameters = function () { return [
|
|
149
|
+
{ type: core.ElementRef },
|
|
150
|
+
{ type: core.NgZone }
|
|
151
|
+
]; };
|
|
152
|
+
VisibilityDirective.propDecorators = {
|
|
153
|
+
isVisible: [{ type: core.HostBinding, args: ['class.visible',] }],
|
|
154
|
+
visible: [{ type: core.Output }]
|
|
155
|
+
};
|
|
373
156
|
|
|
374
157
|
/**
|
|
375
158
|
* Draggable Directive for Angular2
|
|
@@ -454,35 +237,23 @@
|
|
|
454
237
|
this.subscription = undefined;
|
|
455
238
|
}
|
|
456
239
|
};
|
|
457
|
-
DraggableDirective.ctorParameters = function () { return [
|
|
458
|
-
{ type: core.ElementRef }
|
|
459
|
-
]; };
|
|
460
|
-
__decorate([
|
|
461
|
-
core.Input()
|
|
462
|
-
], DraggableDirective.prototype, "dragEventTarget", void 0);
|
|
463
|
-
__decorate([
|
|
464
|
-
core.Input()
|
|
465
|
-
], DraggableDirective.prototype, "dragModel", void 0);
|
|
466
|
-
__decorate([
|
|
467
|
-
core.Input()
|
|
468
|
-
], DraggableDirective.prototype, "dragX", void 0);
|
|
469
|
-
__decorate([
|
|
470
|
-
core.Input()
|
|
471
|
-
], DraggableDirective.prototype, "dragY", void 0);
|
|
472
|
-
__decorate([
|
|
473
|
-
core.Output()
|
|
474
|
-
], DraggableDirective.prototype, "dragStart", void 0);
|
|
475
|
-
__decorate([
|
|
476
|
-
core.Output()
|
|
477
|
-
], DraggableDirective.prototype, "dragging", void 0);
|
|
478
|
-
__decorate([
|
|
479
|
-
core.Output()
|
|
480
|
-
], DraggableDirective.prototype, "dragEnd", void 0);
|
|
481
|
-
DraggableDirective = __decorate([
|
|
482
|
-
core.Directive({ selector: '[draggable]' })
|
|
483
|
-
], DraggableDirective);
|
|
484
240
|
return DraggableDirective;
|
|
485
241
|
}());
|
|
242
|
+
DraggableDirective.decorators = [
|
|
243
|
+
{ type: core.Directive, args: [{ selector: '[draggable]' },] }
|
|
244
|
+
];
|
|
245
|
+
DraggableDirective.ctorParameters = function () { return [
|
|
246
|
+
{ type: core.ElementRef }
|
|
247
|
+
]; };
|
|
248
|
+
DraggableDirective.propDecorators = {
|
|
249
|
+
dragEventTarget: [{ type: core.Input }],
|
|
250
|
+
dragModel: [{ type: core.Input }],
|
|
251
|
+
dragX: [{ type: core.Input }],
|
|
252
|
+
dragY: [{ type: core.Input }],
|
|
253
|
+
dragStart: [{ type: core.Output }],
|
|
254
|
+
dragging: [{ type: core.Output }],
|
|
255
|
+
dragEnd: [{ type: core.Output }]
|
|
256
|
+
};
|
|
486
257
|
|
|
487
258
|
var ResizeableDirective = /** @class */ (function () {
|
|
488
259
|
function ResizeableDirective(element, renderer) {
|
|
@@ -550,35 +321,345 @@
|
|
|
550
321
|
this.subscription = undefined;
|
|
551
322
|
}
|
|
552
323
|
};
|
|
553
|
-
ResizeableDirective.ctorParameters = function () { return [
|
|
554
|
-
{ type: core.ElementRef },
|
|
555
|
-
{ type: core.Renderer2 }
|
|
556
|
-
]; };
|
|
557
|
-
__decorate([
|
|
558
|
-
core.Input()
|
|
559
|
-
], ResizeableDirective.prototype, "resizeEnabled", void 0);
|
|
560
|
-
__decorate([
|
|
561
|
-
core.Input()
|
|
562
|
-
], ResizeableDirective.prototype, "minWidth", void 0);
|
|
563
|
-
__decorate([
|
|
564
|
-
core.Input()
|
|
565
|
-
], ResizeableDirective.prototype, "maxWidth", void 0);
|
|
566
|
-
__decorate([
|
|
567
|
-
core.Output()
|
|
568
|
-
], ResizeableDirective.prototype, "resize", void 0);
|
|
569
|
-
__decorate([
|
|
570
|
-
core.HostListener('mousedown', ['$event'])
|
|
571
|
-
], ResizeableDirective.prototype, "onMousedown", null);
|
|
572
|
-
ResizeableDirective = __decorate([
|
|
573
|
-
core.Directive({
|
|
574
|
-
selector: '[resizeable]',
|
|
575
|
-
host: {
|
|
576
|
-
'[class.resizeable]': 'resizeEnabled'
|
|
577
|
-
}
|
|
578
|
-
})
|
|
579
|
-
], ResizeableDirective);
|
|
580
324
|
return ResizeableDirective;
|
|
581
325
|
}());
|
|
326
|
+
ResizeableDirective.decorators = [
|
|
327
|
+
{ type: core.Directive, args: [{
|
|
328
|
+
selector: '[resizeable]',
|
|
329
|
+
host: {
|
|
330
|
+
'[class.resizeable]': 'resizeEnabled'
|
|
331
|
+
}
|
|
332
|
+
},] }
|
|
333
|
+
];
|
|
334
|
+
ResizeableDirective.ctorParameters = function () { return [
|
|
335
|
+
{ type: core.ElementRef },
|
|
336
|
+
{ type: core.Renderer2 }
|
|
337
|
+
]; };
|
|
338
|
+
ResizeableDirective.propDecorators = {
|
|
339
|
+
resizeEnabled: [{ type: core.Input }],
|
|
340
|
+
minWidth: [{ type: core.Input }],
|
|
341
|
+
maxWidth: [{ type: core.Input }],
|
|
342
|
+
resize: [{ type: core.Output }],
|
|
343
|
+
onMousedown: [{ type: core.HostListener, args: ['mousedown', ['$event'],] }]
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
/*! *****************************************************************************
|
|
347
|
+
Copyright (c) Microsoft Corporation.
|
|
348
|
+
|
|
349
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
350
|
+
purpose with or without fee is hereby granted.
|
|
351
|
+
|
|
352
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
353
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
354
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
355
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
356
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
357
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
358
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
359
|
+
***************************************************************************** */
|
|
360
|
+
/* global Reflect, Promise */
|
|
361
|
+
var extendStatics = function (d, b) {
|
|
362
|
+
extendStatics = Object.setPrototypeOf ||
|
|
363
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
364
|
+
function (d, b) { for (var p in b)
|
|
365
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
366
|
+
d[p] = b[p]; };
|
|
367
|
+
return extendStatics(d, b);
|
|
368
|
+
};
|
|
369
|
+
function __extends(d, b) {
|
|
370
|
+
if (typeof b !== "function" && b !== null)
|
|
371
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
372
|
+
extendStatics(d, b);
|
|
373
|
+
function __() { this.constructor = d; }
|
|
374
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
375
|
+
}
|
|
376
|
+
var __assign = function () {
|
|
377
|
+
__assign = Object.assign || function __assign(t) {
|
|
378
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
379
|
+
s = arguments[i];
|
|
380
|
+
for (var p in s)
|
|
381
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
382
|
+
t[p] = s[p];
|
|
383
|
+
}
|
|
384
|
+
return t;
|
|
385
|
+
};
|
|
386
|
+
return __assign.apply(this, arguments);
|
|
387
|
+
};
|
|
388
|
+
function __rest(s, e) {
|
|
389
|
+
var t = {};
|
|
390
|
+
for (var p in s)
|
|
391
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
392
|
+
t[p] = s[p];
|
|
393
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
394
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
395
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
396
|
+
t[p[i]] = s[p[i]];
|
|
397
|
+
}
|
|
398
|
+
return t;
|
|
399
|
+
}
|
|
400
|
+
function __decorate(decorators, target, key, desc) {
|
|
401
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
402
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
403
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
404
|
+
else
|
|
405
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
406
|
+
if (d = decorators[i])
|
|
407
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
408
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
409
|
+
}
|
|
410
|
+
function __param(paramIndex, decorator) {
|
|
411
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
412
|
+
}
|
|
413
|
+
function __metadata(metadataKey, metadataValue) {
|
|
414
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
415
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
416
|
+
}
|
|
417
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
418
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
419
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
420
|
+
function fulfilled(value) { try {
|
|
421
|
+
step(generator.next(value));
|
|
422
|
+
}
|
|
423
|
+
catch (e) {
|
|
424
|
+
reject(e);
|
|
425
|
+
} }
|
|
426
|
+
function rejected(value) { try {
|
|
427
|
+
step(generator["throw"](value));
|
|
428
|
+
}
|
|
429
|
+
catch (e) {
|
|
430
|
+
reject(e);
|
|
431
|
+
} }
|
|
432
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
433
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
function __generator(thisArg, body) {
|
|
437
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
438
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
439
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
440
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
441
|
+
function step(op) {
|
|
442
|
+
if (f)
|
|
443
|
+
throw new TypeError("Generator is already executing.");
|
|
444
|
+
while (_)
|
|
445
|
+
try {
|
|
446
|
+
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)
|
|
447
|
+
return t;
|
|
448
|
+
if (y = 0, t)
|
|
449
|
+
op = [op[0] & 2, t.value];
|
|
450
|
+
switch (op[0]) {
|
|
451
|
+
case 0:
|
|
452
|
+
case 1:
|
|
453
|
+
t = op;
|
|
454
|
+
break;
|
|
455
|
+
case 4:
|
|
456
|
+
_.label++;
|
|
457
|
+
return { value: op[1], done: false };
|
|
458
|
+
case 5:
|
|
459
|
+
_.label++;
|
|
460
|
+
y = op[1];
|
|
461
|
+
op = [0];
|
|
462
|
+
continue;
|
|
463
|
+
case 7:
|
|
464
|
+
op = _.ops.pop();
|
|
465
|
+
_.trys.pop();
|
|
466
|
+
continue;
|
|
467
|
+
default:
|
|
468
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
469
|
+
_ = 0;
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
473
|
+
_.label = op[1];
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
477
|
+
_.label = t[1];
|
|
478
|
+
t = op;
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
if (t && _.label < t[2]) {
|
|
482
|
+
_.label = t[2];
|
|
483
|
+
_.ops.push(op);
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
if (t[2])
|
|
487
|
+
_.ops.pop();
|
|
488
|
+
_.trys.pop();
|
|
489
|
+
continue;
|
|
490
|
+
}
|
|
491
|
+
op = body.call(thisArg, _);
|
|
492
|
+
}
|
|
493
|
+
catch (e) {
|
|
494
|
+
op = [6, e];
|
|
495
|
+
y = 0;
|
|
496
|
+
}
|
|
497
|
+
finally {
|
|
498
|
+
f = t = 0;
|
|
499
|
+
}
|
|
500
|
+
if (op[0] & 5)
|
|
501
|
+
throw op[1];
|
|
502
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
506
|
+
if (k2 === undefined)
|
|
507
|
+
k2 = k;
|
|
508
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
509
|
+
}) : (function (o, m, k, k2) {
|
|
510
|
+
if (k2 === undefined)
|
|
511
|
+
k2 = k;
|
|
512
|
+
o[k2] = m[k];
|
|
513
|
+
});
|
|
514
|
+
function __exportStar(m, o) {
|
|
515
|
+
for (var p in m)
|
|
516
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
517
|
+
__createBinding(o, m, p);
|
|
518
|
+
}
|
|
519
|
+
function __values(o) {
|
|
520
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
521
|
+
if (m)
|
|
522
|
+
return m.call(o);
|
|
523
|
+
if (o && typeof o.length === "number")
|
|
524
|
+
return {
|
|
525
|
+
next: function () {
|
|
526
|
+
if (o && i >= o.length)
|
|
527
|
+
o = void 0;
|
|
528
|
+
return { value: o && o[i++], done: !o };
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
532
|
+
}
|
|
533
|
+
function __read(o, n) {
|
|
534
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
535
|
+
if (!m)
|
|
536
|
+
return o;
|
|
537
|
+
var i = m.call(o), r, ar = [], e;
|
|
538
|
+
try {
|
|
539
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
540
|
+
ar.push(r.value);
|
|
541
|
+
}
|
|
542
|
+
catch (error) {
|
|
543
|
+
e = { error: error };
|
|
544
|
+
}
|
|
545
|
+
finally {
|
|
546
|
+
try {
|
|
547
|
+
if (r && !r.done && (m = i["return"]))
|
|
548
|
+
m.call(i);
|
|
549
|
+
}
|
|
550
|
+
finally {
|
|
551
|
+
if (e)
|
|
552
|
+
throw e.error;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
return ar;
|
|
556
|
+
}
|
|
557
|
+
/** @deprecated */
|
|
558
|
+
function __spread() {
|
|
559
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
560
|
+
ar = ar.concat(__read(arguments[i]));
|
|
561
|
+
return ar;
|
|
562
|
+
}
|
|
563
|
+
/** @deprecated */
|
|
564
|
+
function __spreadArrays() {
|
|
565
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
566
|
+
s += arguments[i].length;
|
|
567
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
568
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
569
|
+
r[k] = a[j];
|
|
570
|
+
return r;
|
|
571
|
+
}
|
|
572
|
+
function __spreadArray(to, from, pack) {
|
|
573
|
+
if (pack || arguments.length === 2)
|
|
574
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
575
|
+
if (ar || !(i in from)) {
|
|
576
|
+
if (!ar)
|
|
577
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
578
|
+
ar[i] = from[i];
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
return to.concat(ar || from);
|
|
582
|
+
}
|
|
583
|
+
function __await(v) {
|
|
584
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
585
|
+
}
|
|
586
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
587
|
+
if (!Symbol.asyncIterator)
|
|
588
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
589
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
590
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
591
|
+
function verb(n) { if (g[n])
|
|
592
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
593
|
+
function resume(n, v) { try {
|
|
594
|
+
step(g[n](v));
|
|
595
|
+
}
|
|
596
|
+
catch (e) {
|
|
597
|
+
settle(q[0][3], e);
|
|
598
|
+
} }
|
|
599
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
600
|
+
function fulfill(value) { resume("next", value); }
|
|
601
|
+
function reject(value) { resume("throw", value); }
|
|
602
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
603
|
+
resume(q[0][0], q[0][1]); }
|
|
604
|
+
}
|
|
605
|
+
function __asyncDelegator(o) {
|
|
606
|
+
var i, p;
|
|
607
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
608
|
+
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; }
|
|
609
|
+
}
|
|
610
|
+
function __asyncValues(o) {
|
|
611
|
+
if (!Symbol.asyncIterator)
|
|
612
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
613
|
+
var m = o[Symbol.asyncIterator], i;
|
|
614
|
+
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);
|
|
615
|
+
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); }); }; }
|
|
616
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
617
|
+
}
|
|
618
|
+
function __makeTemplateObject(cooked, raw) {
|
|
619
|
+
if (Object.defineProperty) {
|
|
620
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
621
|
+
}
|
|
622
|
+
else {
|
|
623
|
+
cooked.raw = raw;
|
|
624
|
+
}
|
|
625
|
+
return cooked;
|
|
626
|
+
}
|
|
627
|
+
;
|
|
628
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
629
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
630
|
+
}) : function (o, v) {
|
|
631
|
+
o["default"] = v;
|
|
632
|
+
};
|
|
633
|
+
function __importStar(mod) {
|
|
634
|
+
if (mod && mod.__esModule)
|
|
635
|
+
return mod;
|
|
636
|
+
var result = {};
|
|
637
|
+
if (mod != null)
|
|
638
|
+
for (var k in mod)
|
|
639
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
640
|
+
__createBinding(result, mod, k);
|
|
641
|
+
__setModuleDefault(result, mod);
|
|
642
|
+
return result;
|
|
643
|
+
}
|
|
644
|
+
function __importDefault(mod) {
|
|
645
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
646
|
+
}
|
|
647
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
648
|
+
if (kind === "a" && !f)
|
|
649
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
650
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
651
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
652
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
653
|
+
}
|
|
654
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
655
|
+
if (kind === "m")
|
|
656
|
+
throw new TypeError("Private method is not writable");
|
|
657
|
+
if (kind === "a" && !f)
|
|
658
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
659
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
660
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
661
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
662
|
+
}
|
|
582
663
|
|
|
583
664
|
var OrderableDirective = /** @class */ (function () {
|
|
584
665
|
function OrderableDirective(differs, document) {
|
|
@@ -716,25 +797,20 @@
|
|
|
716
797
|
return acc;
|
|
717
798
|
}, {});
|
|
718
799
|
};
|
|
719
|
-
OrderableDirective.ctorParameters = function () { return [
|
|
720
|
-
{ type: core.KeyValueDiffers },
|
|
721
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
722
|
-
]; };
|
|
723
|
-
__decorate([
|
|
724
|
-
core.Output()
|
|
725
|
-
], OrderableDirective.prototype, "reorder", void 0);
|
|
726
|
-
__decorate([
|
|
727
|
-
core.Output()
|
|
728
|
-
], OrderableDirective.prototype, "targetChanged", void 0);
|
|
729
|
-
__decorate([
|
|
730
|
-
core.ContentChildren(DraggableDirective, { descendants: true })
|
|
731
|
-
], OrderableDirective.prototype, "draggables", void 0);
|
|
732
|
-
OrderableDirective = __decorate([
|
|
733
|
-
core.Directive({ selector: '[orderable]' }),
|
|
734
|
-
__param(1, core.Inject(common.DOCUMENT))
|
|
735
|
-
], OrderableDirective);
|
|
736
800
|
return OrderableDirective;
|
|
737
801
|
}());
|
|
802
|
+
OrderableDirective.decorators = [
|
|
803
|
+
{ type: core.Directive, args: [{ selector: '[orderable]' },] }
|
|
804
|
+
];
|
|
805
|
+
OrderableDirective.ctorParameters = function () { return [
|
|
806
|
+
{ type: core.KeyValueDiffers },
|
|
807
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
808
|
+
]; };
|
|
809
|
+
OrderableDirective.propDecorators = {
|
|
810
|
+
reorder: [{ type: core.Output }],
|
|
811
|
+
targetChanged: [{ type: core.Output }],
|
|
812
|
+
draggables: [{ type: core.ContentChildren, args: [DraggableDirective, { descendants: true },] }]
|
|
813
|
+
};
|
|
738
814
|
|
|
739
815
|
var LongPressDirective = /** @class */ (function () {
|
|
740
816
|
function LongPressDirective() {
|
|
@@ -750,14 +826,14 @@
|
|
|
750
826
|
get: function () {
|
|
751
827
|
return this.pressing;
|
|
752
828
|
},
|
|
753
|
-
enumerable:
|
|
829
|
+
enumerable: false,
|
|
754
830
|
configurable: true
|
|
755
831
|
});
|
|
756
832
|
Object.defineProperty(LongPressDirective.prototype, "isLongPress", {
|
|
757
833
|
get: function () {
|
|
758
834
|
return this.isLongPressing;
|
|
759
835
|
},
|
|
760
|
-
enumerable:
|
|
836
|
+
enumerable: false,
|
|
761
837
|
configurable: true
|
|
762
838
|
});
|
|
763
839
|
LongPressDirective.prototype.onMouseDown = function (event) {
|
|
@@ -830,38 +906,22 @@
|
|
|
830
906
|
this.subscription = undefined;
|
|
831
907
|
}
|
|
832
908
|
};
|
|
833
|
-
__decorate([
|
|
834
|
-
core.Input()
|
|
835
|
-
], LongPressDirective.prototype, "pressEnabled", void 0);
|
|
836
|
-
__decorate([
|
|
837
|
-
core.Input()
|
|
838
|
-
], LongPressDirective.prototype, "pressModel", void 0);
|
|
839
|
-
__decorate([
|
|
840
|
-
core.Input()
|
|
841
|
-
], LongPressDirective.prototype, "duration", void 0);
|
|
842
|
-
__decorate([
|
|
843
|
-
core.Output()
|
|
844
|
-
], LongPressDirective.prototype, "longPressStart", void 0);
|
|
845
|
-
__decorate([
|
|
846
|
-
core.Output()
|
|
847
|
-
], LongPressDirective.prototype, "longPressing", void 0);
|
|
848
|
-
__decorate([
|
|
849
|
-
core.Output()
|
|
850
|
-
], LongPressDirective.prototype, "longPressEnd", void 0);
|
|
851
|
-
__decorate([
|
|
852
|
-
core.HostBinding('class.press')
|
|
853
|
-
], LongPressDirective.prototype, "press", null);
|
|
854
|
-
__decorate([
|
|
855
|
-
core.HostBinding('class.longpress')
|
|
856
|
-
], LongPressDirective.prototype, "isLongPress", null);
|
|
857
|
-
__decorate([
|
|
858
|
-
core.HostListener('mousedown', ['$event'])
|
|
859
|
-
], LongPressDirective.prototype, "onMouseDown", null);
|
|
860
|
-
LongPressDirective = __decorate([
|
|
861
|
-
core.Directive({ selector: '[long-press]' })
|
|
862
|
-
], LongPressDirective);
|
|
863
909
|
return LongPressDirective;
|
|
864
910
|
}());
|
|
911
|
+
LongPressDirective.decorators = [
|
|
912
|
+
{ type: core.Directive, args: [{ selector: '[long-press]' },] }
|
|
913
|
+
];
|
|
914
|
+
LongPressDirective.propDecorators = {
|
|
915
|
+
pressEnabled: [{ type: core.Input }],
|
|
916
|
+
pressModel: [{ type: core.Input }],
|
|
917
|
+
duration: [{ type: core.Input }],
|
|
918
|
+
longPressStart: [{ type: core.Output }],
|
|
919
|
+
longPressing: [{ type: core.Output }],
|
|
920
|
+
longPressEnd: [{ type: core.Output }],
|
|
921
|
+
press: [{ type: core.HostBinding, args: ['class.press',] }],
|
|
922
|
+
isLongPress: [{ type: core.HostBinding, args: ['class.longpress',] }],
|
|
923
|
+
onMouseDown: [{ type: core.HostListener, args: ['mousedown', ['$event'],] }]
|
|
924
|
+
};
|
|
865
925
|
|
|
866
926
|
var ScrollerComponent = /** @class */ (function () {
|
|
867
927
|
function ScrollerComponent(ngZone, element, renderer) {
|
|
@@ -922,55 +982,45 @@
|
|
|
922
982
|
this.prevScrollYPos = this.scrollYPos;
|
|
923
983
|
this.prevScrollXPos = this.scrollXPos;
|
|
924
984
|
};
|
|
925
|
-
ScrollerComponent.ctorParameters = function () { return [
|
|
926
|
-
{ type: core.NgZone },
|
|
927
|
-
{ type: core.ElementRef },
|
|
928
|
-
{ type: core.Renderer2 }
|
|
929
|
-
]; };
|
|
930
|
-
__decorate([
|
|
931
|
-
core.Input()
|
|
932
|
-
], ScrollerComponent.prototype, "scrollbarV", void 0);
|
|
933
|
-
__decorate([
|
|
934
|
-
core.Input()
|
|
935
|
-
], ScrollerComponent.prototype, "scrollbarH", void 0);
|
|
936
|
-
__decorate([
|
|
937
|
-
core.HostBinding('style.height.px'),
|
|
938
|
-
core.Input()
|
|
939
|
-
], ScrollerComponent.prototype, "scrollHeight", void 0);
|
|
940
|
-
__decorate([
|
|
941
|
-
core.HostBinding('style.width.px'),
|
|
942
|
-
core.Input()
|
|
943
|
-
], ScrollerComponent.prototype, "scrollWidth", void 0);
|
|
944
|
-
__decorate([
|
|
945
|
-
core.Output()
|
|
946
|
-
], ScrollerComponent.prototype, "scroll", void 0);
|
|
947
|
-
ScrollerComponent = __decorate([
|
|
948
|
-
core.Component({
|
|
949
|
-
selector: 'datatable-scroller',
|
|
950
|
-
template: " <ng-content></ng-content> ",
|
|
951
|
-
host: {
|
|
952
|
-
class: 'datatable-scroll'
|
|
953
|
-
},
|
|
954
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
955
|
-
})
|
|
956
|
-
], ScrollerComponent);
|
|
957
985
|
return ScrollerComponent;
|
|
958
986
|
}());
|
|
987
|
+
ScrollerComponent.decorators = [
|
|
988
|
+
{ type: core.Component, args: [{
|
|
989
|
+
selector: 'datatable-scroller',
|
|
990
|
+
template: " <ng-content></ng-content> ",
|
|
991
|
+
host: {
|
|
992
|
+
class: 'datatable-scroll'
|
|
993
|
+
},
|
|
994
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
995
|
+
},] }
|
|
996
|
+
];
|
|
997
|
+
ScrollerComponent.ctorParameters = function () { return [
|
|
998
|
+
{ type: core.NgZone },
|
|
999
|
+
{ type: core.ElementRef },
|
|
1000
|
+
{ type: core.Renderer2 }
|
|
1001
|
+
]; };
|
|
1002
|
+
ScrollerComponent.propDecorators = {
|
|
1003
|
+
scrollbarV: [{ type: core.Input }],
|
|
1004
|
+
scrollbarH: [{ type: core.Input }],
|
|
1005
|
+
scrollHeight: [{ type: core.HostBinding, args: ['style.height.px',] }, { type: core.Input }],
|
|
1006
|
+
scrollWidth: [{ type: core.HostBinding, args: ['style.width.px',] }, { type: core.Input }],
|
|
1007
|
+
scroll: [{ type: core.Output }]
|
|
1008
|
+
};
|
|
959
1009
|
|
|
960
1010
|
var DatatableGroupHeaderTemplateDirective = /** @class */ (function () {
|
|
961
1011
|
function DatatableGroupHeaderTemplateDirective(template) {
|
|
962
1012
|
this.template = template;
|
|
963
1013
|
}
|
|
964
|
-
DatatableGroupHeaderTemplateDirective.ctorParameters = function () { return [
|
|
965
|
-
{ type: core.TemplateRef }
|
|
966
|
-
]; };
|
|
967
|
-
DatatableGroupHeaderTemplateDirective = __decorate([
|
|
968
|
-
core.Directive({
|
|
969
|
-
selector: '[ngx-datatable-group-header-template]'
|
|
970
|
-
})
|
|
971
|
-
], DatatableGroupHeaderTemplateDirective);
|
|
972
1014
|
return DatatableGroupHeaderTemplateDirective;
|
|
973
1015
|
}());
|
|
1016
|
+
DatatableGroupHeaderTemplateDirective.decorators = [
|
|
1017
|
+
{ type: core.Directive, args: [{
|
|
1018
|
+
selector: '[ngx-datatable-group-header-template]'
|
|
1019
|
+
},] }
|
|
1020
|
+
];
|
|
1021
|
+
DatatableGroupHeaderTemplateDirective.ctorParameters = function () { return [
|
|
1022
|
+
{ type: core.TemplateRef }
|
|
1023
|
+
]; };
|
|
974
1024
|
|
|
975
1025
|
var DatatableGroupHeaderDirective = /** @class */ (function () {
|
|
976
1026
|
function DatatableGroupHeaderDirective() {
|
|
@@ -987,7 +1037,7 @@
|
|
|
987
1037
|
get: function () {
|
|
988
1038
|
return this._templateInput || this._templateQuery;
|
|
989
1039
|
},
|
|
990
|
-
enumerable:
|
|
1040
|
+
enumerable: false,
|
|
991
1041
|
configurable: true
|
|
992
1042
|
});
|
|
993
1043
|
/**
|
|
@@ -1017,23 +1067,17 @@
|
|
|
1017
1067
|
value: false
|
|
1018
1068
|
});
|
|
1019
1069
|
};
|
|
1020
|
-
__decorate([
|
|
1021
|
-
core.Input()
|
|
1022
|
-
], DatatableGroupHeaderDirective.prototype, "rowHeight", void 0);
|
|
1023
|
-
__decorate([
|
|
1024
|
-
core.Input('template')
|
|
1025
|
-
], DatatableGroupHeaderDirective.prototype, "_templateInput", void 0);
|
|
1026
|
-
__decorate([
|
|
1027
|
-
core.ContentChild(DatatableGroupHeaderTemplateDirective, { read: core.TemplateRef, static: true })
|
|
1028
|
-
], DatatableGroupHeaderDirective.prototype, "_templateQuery", void 0);
|
|
1029
|
-
__decorate([
|
|
1030
|
-
core.Output()
|
|
1031
|
-
], DatatableGroupHeaderDirective.prototype, "toggle", void 0);
|
|
1032
|
-
DatatableGroupHeaderDirective = __decorate([
|
|
1033
|
-
core.Directive({ selector: 'ngx-datatable-group-header' })
|
|
1034
|
-
], DatatableGroupHeaderDirective);
|
|
1035
1070
|
return DatatableGroupHeaderDirective;
|
|
1036
1071
|
}());
|
|
1072
|
+
DatatableGroupHeaderDirective.decorators = [
|
|
1073
|
+
{ type: core.Directive, args: [{ selector: 'ngx-datatable-group-header' },] }
|
|
1074
|
+
];
|
|
1075
|
+
DatatableGroupHeaderDirective.propDecorators = {
|
|
1076
|
+
rowHeight: [{ type: core.Input }],
|
|
1077
|
+
_templateInput: [{ type: core.Input, args: ['template',] }],
|
|
1078
|
+
_templateQuery: [{ type: core.ContentChild, args: [DatatableGroupHeaderTemplateDirective, { read: core.TemplateRef, static: true },] }],
|
|
1079
|
+
toggle: [{ type: core.Output }]
|
|
1080
|
+
};
|
|
1037
1081
|
|
|
1038
1082
|
/**
|
|
1039
1083
|
* Always returns the empty string ''
|
|
@@ -1190,18 +1234,18 @@
|
|
|
1190
1234
|
for (var i = 0; i < l; i++) {
|
|
1191
1235
|
// link all TreeNode objects
|
|
1192
1236
|
node = nodeById[to(rows[i])];
|
|
1193
|
-
var
|
|
1237
|
+
var parent = 0;
|
|
1194
1238
|
var fromValue = from(node.row);
|
|
1195
1239
|
if (!!fromValue && uniqIDs.indexOf(fromValue) > -1) {
|
|
1196
|
-
|
|
1240
|
+
parent = fromValue;
|
|
1197
1241
|
}
|
|
1198
|
-
node.parent = nodeById[
|
|
1242
|
+
node.parent = nodeById[parent];
|
|
1199
1243
|
node.row['level'] = node.parent.row['level'] + 1;
|
|
1200
1244
|
node.parent.children.push(node);
|
|
1201
1245
|
}
|
|
1202
1246
|
var resolvedRows_1 = [];
|
|
1203
1247
|
nodeById[0].flatten(function () {
|
|
1204
|
-
resolvedRows_1 =
|
|
1248
|
+
resolvedRows_1 = __spreadArray(__spreadArray([], __read(resolvedRows_1)), [this.row]);
|
|
1205
1249
|
}, true);
|
|
1206
1250
|
return resolvedRows_1;
|
|
1207
1251
|
}
|
|
@@ -1395,14 +1439,14 @@
|
|
|
1395
1439
|
return result;
|
|
1396
1440
|
}
|
|
1397
1441
|
|
|
1398
|
-
|
|
1442
|
+
exports.ColumnMode = void 0;
|
|
1399
1443
|
(function (ColumnMode) {
|
|
1400
1444
|
ColumnMode["standard"] = "standard";
|
|
1401
1445
|
ColumnMode["flex"] = "flex";
|
|
1402
1446
|
ColumnMode["force"] = "force";
|
|
1403
1447
|
})(exports.ColumnMode || (exports.ColumnMode = {}));
|
|
1404
1448
|
|
|
1405
|
-
|
|
1449
|
+
exports.SelectionType = void 0;
|
|
1406
1450
|
(function (SelectionType) {
|
|
1407
1451
|
SelectionType["single"] = "single";
|
|
1408
1452
|
SelectionType["multi"] = "multi";
|
|
@@ -1411,13 +1455,13 @@
|
|
|
1411
1455
|
SelectionType["checkbox"] = "checkbox";
|
|
1412
1456
|
})(exports.SelectionType || (exports.SelectionType = {}));
|
|
1413
1457
|
|
|
1414
|
-
|
|
1458
|
+
exports.SortType = void 0;
|
|
1415
1459
|
(function (SortType) {
|
|
1416
1460
|
SortType["single"] = "single";
|
|
1417
1461
|
SortType["multi"] = "multi";
|
|
1418
1462
|
})(exports.SortType || (exports.SortType = {}));
|
|
1419
1463
|
|
|
1420
|
-
|
|
1464
|
+
exports.ContextmenuType = void 0;
|
|
1421
1465
|
(function (ContextmenuType) {
|
|
1422
1466
|
ContextmenuType["header"] = "header";
|
|
1423
1467
|
ContextmenuType["body"] = "body";
|
|
@@ -1427,40 +1471,40 @@
|
|
|
1427
1471
|
function DataTableColumnHeaderDirective(template) {
|
|
1428
1472
|
this.template = template;
|
|
1429
1473
|
}
|
|
1430
|
-
DataTableColumnHeaderDirective.ctorParameters = function () { return [
|
|
1431
|
-
{ type: core.TemplateRef }
|
|
1432
|
-
]; };
|
|
1433
|
-
DataTableColumnHeaderDirective = __decorate([
|
|
1434
|
-
core.Directive({ selector: '[ngx-datatable-header-template]' })
|
|
1435
|
-
], DataTableColumnHeaderDirective);
|
|
1436
1474
|
return DataTableColumnHeaderDirective;
|
|
1437
1475
|
}());
|
|
1476
|
+
DataTableColumnHeaderDirective.decorators = [
|
|
1477
|
+
{ type: core.Directive, args: [{ selector: '[ngx-datatable-header-template]' },] }
|
|
1478
|
+
];
|
|
1479
|
+
DataTableColumnHeaderDirective.ctorParameters = function () { return [
|
|
1480
|
+
{ type: core.TemplateRef }
|
|
1481
|
+
]; };
|
|
1438
1482
|
|
|
1439
1483
|
var DataTableColumnCellDirective = /** @class */ (function () {
|
|
1440
1484
|
function DataTableColumnCellDirective(template) {
|
|
1441
1485
|
this.template = template;
|
|
1442
1486
|
}
|
|
1443
|
-
DataTableColumnCellDirective.ctorParameters = function () { return [
|
|
1444
|
-
{ type: core.TemplateRef }
|
|
1445
|
-
]; };
|
|
1446
|
-
DataTableColumnCellDirective = __decorate([
|
|
1447
|
-
core.Directive({ selector: '[ngx-datatable-cell-template]' })
|
|
1448
|
-
], DataTableColumnCellDirective);
|
|
1449
1487
|
return DataTableColumnCellDirective;
|
|
1450
1488
|
}());
|
|
1489
|
+
DataTableColumnCellDirective.decorators = [
|
|
1490
|
+
{ type: core.Directive, args: [{ selector: '[ngx-datatable-cell-template]' },] }
|
|
1491
|
+
];
|
|
1492
|
+
DataTableColumnCellDirective.ctorParameters = function () { return [
|
|
1493
|
+
{ type: core.TemplateRef }
|
|
1494
|
+
]; };
|
|
1451
1495
|
|
|
1452
1496
|
var DataTableColumnCellTreeToggle = /** @class */ (function () {
|
|
1453
1497
|
function DataTableColumnCellTreeToggle(template) {
|
|
1454
1498
|
this.template = template;
|
|
1455
1499
|
}
|
|
1456
|
-
DataTableColumnCellTreeToggle.ctorParameters = function () { return [
|
|
1457
|
-
{ type: core.TemplateRef }
|
|
1458
|
-
]; };
|
|
1459
|
-
DataTableColumnCellTreeToggle = __decorate([
|
|
1460
|
-
core.Directive({ selector: '[ngx-datatable-tree-toggle]' })
|
|
1461
|
-
], DataTableColumnCellTreeToggle);
|
|
1462
1500
|
return DataTableColumnCellTreeToggle;
|
|
1463
1501
|
}());
|
|
1502
|
+
DataTableColumnCellTreeToggle.decorators = [
|
|
1503
|
+
{ type: core.Directive, args: [{ selector: '[ngx-datatable-tree-toggle]' },] }
|
|
1504
|
+
];
|
|
1505
|
+
DataTableColumnCellTreeToggle.ctorParameters = function () { return [
|
|
1506
|
+
{ type: core.TemplateRef }
|
|
1507
|
+
]; };
|
|
1464
1508
|
|
|
1465
1509
|
var DataTableColumnDirective = /** @class */ (function () {
|
|
1466
1510
|
function DataTableColumnDirective(columnChangesService) {
|
|
@@ -1471,21 +1515,21 @@
|
|
|
1471
1515
|
get: function () {
|
|
1472
1516
|
return this._cellTemplateInput || this._cellTemplateQuery;
|
|
1473
1517
|
},
|
|
1474
|
-
enumerable:
|
|
1518
|
+
enumerable: false,
|
|
1475
1519
|
configurable: true
|
|
1476
1520
|
});
|
|
1477
1521
|
Object.defineProperty(DataTableColumnDirective.prototype, "headerTemplate", {
|
|
1478
1522
|
get: function () {
|
|
1479
1523
|
return this._headerTemplateInput || this._headerTemplateQuery;
|
|
1480
1524
|
},
|
|
1481
|
-
enumerable:
|
|
1525
|
+
enumerable: false,
|
|
1482
1526
|
configurable: true
|
|
1483
1527
|
});
|
|
1484
1528
|
Object.defineProperty(DataTableColumnDirective.prototype, "treeToggleTemplate", {
|
|
1485
1529
|
get: function () {
|
|
1486
1530
|
return this._treeToggleTemplateInput || this._treeToggleTemplateQuery;
|
|
1487
1531
|
},
|
|
1488
|
-
enumerable:
|
|
1532
|
+
enumerable: false,
|
|
1489
1533
|
configurable: true
|
|
1490
1534
|
});
|
|
1491
1535
|
DataTableColumnDirective.prototype.ngOnChanges = function () {
|
|
@@ -1496,113 +1540,59 @@
|
|
|
1496
1540
|
this.columnChangesService.onInputChange();
|
|
1497
1541
|
}
|
|
1498
1542
|
};
|
|
1499
|
-
DataTableColumnDirective.ctorParameters = function () { return [
|
|
1500
|
-
{ type: ColumnChangesService }
|
|
1501
|
-
]; };
|
|
1502
|
-
__decorate([
|
|
1503
|
-
core.Input()
|
|
1504
|
-
], DataTableColumnDirective.prototype, "name", void 0);
|
|
1505
|
-
__decorate([
|
|
1506
|
-
core.Input()
|
|
1507
|
-
], DataTableColumnDirective.prototype, "prop", void 0);
|
|
1508
|
-
__decorate([
|
|
1509
|
-
core.Input()
|
|
1510
|
-
], DataTableColumnDirective.prototype, "frozenLeft", void 0);
|
|
1511
|
-
__decorate([
|
|
1512
|
-
core.Input()
|
|
1513
|
-
], DataTableColumnDirective.prototype, "frozenRight", void 0);
|
|
1514
|
-
__decorate([
|
|
1515
|
-
core.Input()
|
|
1516
|
-
], DataTableColumnDirective.prototype, "flexGrow", void 0);
|
|
1517
|
-
__decorate([
|
|
1518
|
-
core.Input()
|
|
1519
|
-
], DataTableColumnDirective.prototype, "resizeable", void 0);
|
|
1520
|
-
__decorate([
|
|
1521
|
-
core.Input()
|
|
1522
|
-
], DataTableColumnDirective.prototype, "comparator", void 0);
|
|
1523
|
-
__decorate([
|
|
1524
|
-
core.Input()
|
|
1525
|
-
], DataTableColumnDirective.prototype, "pipe", void 0);
|
|
1526
|
-
__decorate([
|
|
1527
|
-
core.Input()
|
|
1528
|
-
], DataTableColumnDirective.prototype, "sortable", void 0);
|
|
1529
|
-
__decorate([
|
|
1530
|
-
core.Input()
|
|
1531
|
-
], DataTableColumnDirective.prototype, "draggable", void 0);
|
|
1532
|
-
__decorate([
|
|
1533
|
-
core.Input()
|
|
1534
|
-
], DataTableColumnDirective.prototype, "canAutoResize", void 0);
|
|
1535
|
-
__decorate([
|
|
1536
|
-
core.Input()
|
|
1537
|
-
], DataTableColumnDirective.prototype, "minWidth", void 0);
|
|
1538
|
-
__decorate([
|
|
1539
|
-
core.Input()
|
|
1540
|
-
], DataTableColumnDirective.prototype, "width", void 0);
|
|
1541
|
-
__decorate([
|
|
1542
|
-
core.Input()
|
|
1543
|
-
], DataTableColumnDirective.prototype, "maxWidth", void 0);
|
|
1544
|
-
__decorate([
|
|
1545
|
-
core.Input()
|
|
1546
|
-
], DataTableColumnDirective.prototype, "checkboxable", void 0);
|
|
1547
|
-
__decorate([
|
|
1548
|
-
core.Input()
|
|
1549
|
-
], DataTableColumnDirective.prototype, "headerCheckboxable", void 0);
|
|
1550
|
-
__decorate([
|
|
1551
|
-
core.Input()
|
|
1552
|
-
], DataTableColumnDirective.prototype, "headerClass", void 0);
|
|
1553
|
-
__decorate([
|
|
1554
|
-
core.Input()
|
|
1555
|
-
], DataTableColumnDirective.prototype, "cellClass", void 0);
|
|
1556
|
-
__decorate([
|
|
1557
|
-
core.Input()
|
|
1558
|
-
], DataTableColumnDirective.prototype, "isTreeColumn", void 0);
|
|
1559
|
-
__decorate([
|
|
1560
|
-
core.Input()
|
|
1561
|
-
], DataTableColumnDirective.prototype, "treeLevelIndent", void 0);
|
|
1562
|
-
__decorate([
|
|
1563
|
-
core.Input()
|
|
1564
|
-
], DataTableColumnDirective.prototype, "summaryFunc", void 0);
|
|
1565
|
-
__decorate([
|
|
1566
|
-
core.Input()
|
|
1567
|
-
], DataTableColumnDirective.prototype, "summaryTemplate", void 0);
|
|
1568
|
-
__decorate([
|
|
1569
|
-
core.Input('cellTemplate')
|
|
1570
|
-
], DataTableColumnDirective.prototype, "_cellTemplateInput", void 0);
|
|
1571
|
-
__decorate([
|
|
1572
|
-
core.ContentChild(DataTableColumnCellDirective, { read: core.TemplateRef, static: true })
|
|
1573
|
-
], DataTableColumnDirective.prototype, "_cellTemplateQuery", void 0);
|
|
1574
|
-
__decorate([
|
|
1575
|
-
core.Input('headerTemplate')
|
|
1576
|
-
], DataTableColumnDirective.prototype, "_headerTemplateInput", void 0);
|
|
1577
|
-
__decorate([
|
|
1578
|
-
core.ContentChild(DataTableColumnHeaderDirective, { read: core.TemplateRef, static: true })
|
|
1579
|
-
], DataTableColumnDirective.prototype, "_headerTemplateQuery", void 0);
|
|
1580
|
-
__decorate([
|
|
1581
|
-
core.Input('treeToggleTemplate')
|
|
1582
|
-
], DataTableColumnDirective.prototype, "_treeToggleTemplateInput", void 0);
|
|
1583
|
-
__decorate([
|
|
1584
|
-
core.ContentChild(DataTableColumnCellTreeToggle, { read: core.TemplateRef, static: true })
|
|
1585
|
-
], DataTableColumnDirective.prototype, "_treeToggleTemplateQuery", void 0);
|
|
1586
|
-
DataTableColumnDirective = __decorate([
|
|
1587
|
-
core.Directive({ selector: 'ngx-datatable-column' })
|
|
1588
|
-
], DataTableColumnDirective);
|
|
1589
1543
|
return DataTableColumnDirective;
|
|
1590
1544
|
}());
|
|
1545
|
+
DataTableColumnDirective.decorators = [
|
|
1546
|
+
{ type: core.Directive, args: [{ selector: 'ngx-datatable-column' },] }
|
|
1547
|
+
];
|
|
1548
|
+
DataTableColumnDirective.ctorParameters = function () { return [
|
|
1549
|
+
{ type: ColumnChangesService }
|
|
1550
|
+
]; };
|
|
1551
|
+
DataTableColumnDirective.propDecorators = {
|
|
1552
|
+
name: [{ type: core.Input }],
|
|
1553
|
+
prop: [{ type: core.Input }],
|
|
1554
|
+
frozenLeft: [{ type: core.Input }],
|
|
1555
|
+
frozenRight: [{ type: core.Input }],
|
|
1556
|
+
flexGrow: [{ type: core.Input }],
|
|
1557
|
+
resizeable: [{ type: core.Input }],
|
|
1558
|
+
comparator: [{ type: core.Input }],
|
|
1559
|
+
pipe: [{ type: core.Input }],
|
|
1560
|
+
sortable: [{ type: core.Input }],
|
|
1561
|
+
draggable: [{ type: core.Input }],
|
|
1562
|
+
canAutoResize: [{ type: core.Input }],
|
|
1563
|
+
minWidth: [{ type: core.Input }],
|
|
1564
|
+
width: [{ type: core.Input }],
|
|
1565
|
+
maxWidth: [{ type: core.Input }],
|
|
1566
|
+
checkboxable: [{ type: core.Input }],
|
|
1567
|
+
headerCheckboxable: [{ type: core.Input }],
|
|
1568
|
+
headerClass: [{ type: core.Input }],
|
|
1569
|
+
cellClass: [{ type: core.Input }],
|
|
1570
|
+
isTreeColumn: [{ type: core.Input }],
|
|
1571
|
+
treeLevelIndent: [{ type: core.Input }],
|
|
1572
|
+
summaryFunc: [{ type: core.Input }],
|
|
1573
|
+
summaryTemplate: [{ type: core.Input }],
|
|
1574
|
+
_cellTemplateInput: [{ type: core.Input, args: ['cellTemplate',] }],
|
|
1575
|
+
_cellTemplateQuery: [{ type: core.ContentChild, args: [DataTableColumnCellDirective, { read: core.TemplateRef, static: true },] }],
|
|
1576
|
+
_headerTemplateInput: [{ type: core.Input, args: ['headerTemplate',] }],
|
|
1577
|
+
_headerTemplateQuery: [{ type: core.ContentChild, args: [DataTableColumnHeaderDirective, { read: core.TemplateRef, static: true },] }],
|
|
1578
|
+
_treeToggleTemplateInput: [{ type: core.Input, args: ['treeToggleTemplate',] }],
|
|
1579
|
+
_treeToggleTemplateQuery: [{ type: core.ContentChild, args: [DataTableColumnCellTreeToggle, { read: core.TemplateRef, static: true },] }]
|
|
1580
|
+
};
|
|
1591
1581
|
|
|
1592
1582
|
var DatatableRowDetailTemplateDirective = /** @class */ (function () {
|
|
1593
1583
|
function DatatableRowDetailTemplateDirective(template) {
|
|
1594
1584
|
this.template = template;
|
|
1595
1585
|
}
|
|
1596
|
-
DatatableRowDetailTemplateDirective.ctorParameters = function () { return [
|
|
1597
|
-
{ type: core.TemplateRef }
|
|
1598
|
-
]; };
|
|
1599
|
-
DatatableRowDetailTemplateDirective = __decorate([
|
|
1600
|
-
core.Directive({
|
|
1601
|
-
selector: '[ngx-datatable-row-detail-template]'
|
|
1602
|
-
})
|
|
1603
|
-
], DatatableRowDetailTemplateDirective);
|
|
1604
1586
|
return DatatableRowDetailTemplateDirective;
|
|
1605
1587
|
}());
|
|
1588
|
+
DatatableRowDetailTemplateDirective.decorators = [
|
|
1589
|
+
{ type: core.Directive, args: [{
|
|
1590
|
+
selector: '[ngx-datatable-row-detail-template]'
|
|
1591
|
+
},] }
|
|
1592
|
+
];
|
|
1593
|
+
DatatableRowDetailTemplateDirective.ctorParameters = function () { return [
|
|
1594
|
+
{ type: core.TemplateRef }
|
|
1595
|
+
]; };
|
|
1606
1596
|
|
|
1607
1597
|
var DatatableRowDetailDirective = /** @class */ (function () {
|
|
1608
1598
|
function DatatableRowDetailDirective() {
|
|
@@ -1620,7 +1610,7 @@
|
|
|
1620
1610
|
get: function () {
|
|
1621
1611
|
return this._templateInput || this._templateQuery;
|
|
1622
1612
|
},
|
|
1623
|
-
enumerable:
|
|
1613
|
+
enumerable: false,
|
|
1624
1614
|
configurable: true
|
|
1625
1615
|
});
|
|
1626
1616
|
/**
|
|
@@ -1650,23 +1640,17 @@
|
|
|
1650
1640
|
value: false
|
|
1651
1641
|
});
|
|
1652
1642
|
};
|
|
1653
|
-
__decorate([
|
|
1654
|
-
core.Input()
|
|
1655
|
-
], DatatableRowDetailDirective.prototype, "rowHeight", void 0);
|
|
1656
|
-
__decorate([
|
|
1657
|
-
core.Input('template')
|
|
1658
|
-
], DatatableRowDetailDirective.prototype, "_templateInput", void 0);
|
|
1659
|
-
__decorate([
|
|
1660
|
-
core.ContentChild(DatatableRowDetailTemplateDirective, { read: core.TemplateRef, static: true })
|
|
1661
|
-
], DatatableRowDetailDirective.prototype, "_templateQuery", void 0);
|
|
1662
|
-
__decorate([
|
|
1663
|
-
core.Output()
|
|
1664
|
-
], DatatableRowDetailDirective.prototype, "toggle", void 0);
|
|
1665
|
-
DatatableRowDetailDirective = __decorate([
|
|
1666
|
-
core.Directive({ selector: 'ngx-datatable-row-detail' })
|
|
1667
|
-
], DatatableRowDetailDirective);
|
|
1668
1643
|
return DatatableRowDetailDirective;
|
|
1669
1644
|
}());
|
|
1645
|
+
DatatableRowDetailDirective.decorators = [
|
|
1646
|
+
{ type: core.Directive, args: [{ selector: 'ngx-datatable-row-detail' },] }
|
|
1647
|
+
];
|
|
1648
|
+
DatatableRowDetailDirective.propDecorators = {
|
|
1649
|
+
rowHeight: [{ type: core.Input }],
|
|
1650
|
+
_templateInput: [{ type: core.Input, args: ['template',] }],
|
|
1651
|
+
_templateQuery: [{ type: core.ContentChild, args: [DatatableRowDetailTemplateDirective, { read: core.TemplateRef, static: true },] }],
|
|
1652
|
+
toggle: [{ type: core.Output }]
|
|
1653
|
+
};
|
|
1670
1654
|
|
|
1671
1655
|
var DatatableFooterDirective = /** @class */ (function () {
|
|
1672
1656
|
function DatatableFooterDirective() {
|
|
@@ -1675,41 +1659,25 @@
|
|
|
1675
1659
|
get: function () {
|
|
1676
1660
|
return this._templateInput || this._templateQuery;
|
|
1677
1661
|
},
|
|
1678
|
-
enumerable:
|
|
1662
|
+
enumerable: false,
|
|
1679
1663
|
configurable: true
|
|
1680
1664
|
});
|
|
1681
|
-
__decorate([
|
|
1682
|
-
core.Input()
|
|
1683
|
-
], DatatableFooterDirective.prototype, "footerHeight", void 0);
|
|
1684
|
-
__decorate([
|
|
1685
|
-
core.Input()
|
|
1686
|
-
], DatatableFooterDirective.prototype, "totalMessage", void 0);
|
|
1687
|
-
__decorate([
|
|
1688
|
-
core.Input()
|
|
1689
|
-
], DatatableFooterDirective.prototype, "selectedMessage", void 0);
|
|
1690
|
-
__decorate([
|
|
1691
|
-
core.Input()
|
|
1692
|
-
], DatatableFooterDirective.prototype, "pagerLeftArrowIcon", void 0);
|
|
1693
|
-
__decorate([
|
|
1694
|
-
core.Input()
|
|
1695
|
-
], DatatableFooterDirective.prototype, "pagerRightArrowIcon", void 0);
|
|
1696
|
-
__decorate([
|
|
1697
|
-
core.Input()
|
|
1698
|
-
], DatatableFooterDirective.prototype, "pagerPreviousIcon", void 0);
|
|
1699
|
-
__decorate([
|
|
1700
|
-
core.Input()
|
|
1701
|
-
], DatatableFooterDirective.prototype, "pagerNextIcon", void 0);
|
|
1702
|
-
__decorate([
|
|
1703
|
-
core.Input('template')
|
|
1704
|
-
], DatatableFooterDirective.prototype, "_templateInput", void 0);
|
|
1705
|
-
__decorate([
|
|
1706
|
-
core.ContentChild(DataTableFooterTemplateDirective, { read: core.TemplateRef })
|
|
1707
|
-
], DatatableFooterDirective.prototype, "_templateQuery", void 0);
|
|
1708
|
-
DatatableFooterDirective = __decorate([
|
|
1709
|
-
core.Directive({ selector: 'ngx-datatable-footer' })
|
|
1710
|
-
], DatatableFooterDirective);
|
|
1711
1665
|
return DatatableFooterDirective;
|
|
1712
1666
|
}());
|
|
1667
|
+
DatatableFooterDirective.decorators = [
|
|
1668
|
+
{ type: core.Directive, args: [{ selector: 'ngx-datatable-footer' },] }
|
|
1669
|
+
];
|
|
1670
|
+
DatatableFooterDirective.propDecorators = {
|
|
1671
|
+
footerHeight: [{ type: core.Input }],
|
|
1672
|
+
totalMessage: [{ type: core.Input }],
|
|
1673
|
+
selectedMessage: [{ type: core.Input }],
|
|
1674
|
+
pagerLeftArrowIcon: [{ type: core.Input }],
|
|
1675
|
+
pagerRightArrowIcon: [{ type: core.Input }],
|
|
1676
|
+
pagerPreviousIcon: [{ type: core.Input }],
|
|
1677
|
+
pagerNextIcon: [{ type: core.Input }],
|
|
1678
|
+
_templateInput: [{ type: core.Input, args: ['template',] }],
|
|
1679
|
+
_templateQuery: [{ type: core.ContentChild, args: [DataTableFooterTemplateDirective, { read: core.TemplateRef },] }]
|
|
1680
|
+
};
|
|
1713
1681
|
|
|
1714
1682
|
/**
|
|
1715
1683
|
* Returns the columns by pin.
|
|
@@ -2060,7 +2028,7 @@
|
|
|
2060
2028
|
this._pageSize = val;
|
|
2061
2029
|
this.recalcLayout();
|
|
2062
2030
|
},
|
|
2063
|
-
enumerable:
|
|
2031
|
+
enumerable: false,
|
|
2064
2032
|
configurable: true
|
|
2065
2033
|
});
|
|
2066
2034
|
Object.defineProperty(DataTableBodyComponent.prototype, "rows", {
|
|
@@ -2071,7 +2039,7 @@
|
|
|
2071
2039
|
this._rows = val;
|
|
2072
2040
|
this.recalcLayout();
|
|
2073
2041
|
},
|
|
2074
|
-
enumerable:
|
|
2042
|
+
enumerable: false,
|
|
2075
2043
|
configurable: true
|
|
2076
2044
|
});
|
|
2077
2045
|
Object.defineProperty(DataTableBodyComponent.prototype, "columns", {
|
|
@@ -2083,7 +2051,7 @@
|
|
|
2083
2051
|
var colsByPin = columnsByPin(val);
|
|
2084
2052
|
this.columnGroupWidths = columnGroupWidths(colsByPin, val);
|
|
2085
2053
|
},
|
|
2086
|
-
enumerable:
|
|
2054
|
+
enumerable: false,
|
|
2087
2055
|
configurable: true
|
|
2088
2056
|
});
|
|
2089
2057
|
Object.defineProperty(DataTableBodyComponent.prototype, "offset", {
|
|
@@ -2095,7 +2063,7 @@
|
|
|
2095
2063
|
if (!this.scrollbarV || (this.scrollbarV && !this.virtualization))
|
|
2096
2064
|
this.recalcLayout();
|
|
2097
2065
|
},
|
|
2098
|
-
enumerable:
|
|
2066
|
+
enumerable: false,
|
|
2099
2067
|
configurable: true
|
|
2100
2068
|
});
|
|
2101
2069
|
Object.defineProperty(DataTableBodyComponent.prototype, "rowCount", {
|
|
@@ -2106,7 +2074,7 @@
|
|
|
2106
2074
|
this._rowCount = val;
|
|
2107
2075
|
this.recalcLayout();
|
|
2108
2076
|
},
|
|
2109
|
-
enumerable:
|
|
2077
|
+
enumerable: false,
|
|
2110
2078
|
configurable: true
|
|
2111
2079
|
});
|
|
2112
2080
|
Object.defineProperty(DataTableBodyComponent.prototype, "bodyWidth", {
|
|
@@ -2118,7 +2086,7 @@
|
|
|
2118
2086
|
return '100%';
|
|
2119
2087
|
}
|
|
2120
2088
|
},
|
|
2121
|
-
enumerable:
|
|
2089
|
+
enumerable: false,
|
|
2122
2090
|
configurable: true
|
|
2123
2091
|
});
|
|
2124
2092
|
Object.defineProperty(DataTableBodyComponent.prototype, "bodyHeight", {
|
|
@@ -2134,7 +2102,7 @@
|
|
|
2134
2102
|
}
|
|
2135
2103
|
this.recalcLayout();
|
|
2136
2104
|
},
|
|
2137
|
-
enumerable:
|
|
2105
|
+
enumerable: false,
|
|
2138
2106
|
configurable: true
|
|
2139
2107
|
});
|
|
2140
2108
|
Object.defineProperty(DataTableBodyComponent.prototype, "selectEnabled", {
|
|
@@ -2144,7 +2112,7 @@
|
|
|
2144
2112
|
get: function () {
|
|
2145
2113
|
return !!this.selectionType;
|
|
2146
2114
|
},
|
|
2147
|
-
enumerable:
|
|
2115
|
+
enumerable: false,
|
|
2148
2116
|
configurable: true
|
|
2149
2117
|
});
|
|
2150
2118
|
Object.defineProperty(DataTableBodyComponent.prototype, "scrollHeight", {
|
|
@@ -2160,7 +2128,7 @@
|
|
|
2160
2128
|
// avoid TS7030: Not all code paths return a value.
|
|
2161
2129
|
return undefined;
|
|
2162
2130
|
},
|
|
2163
|
-
enumerable:
|
|
2131
|
+
enumerable: false,
|
|
2164
2132
|
configurable: true
|
|
2165
2133
|
});
|
|
2166
2134
|
/**
|
|
@@ -2644,139 +2612,62 @@
|
|
|
2644
2612
|
DataTableBodyComponent.prototype.onTreeAction = function (row) {
|
|
2645
2613
|
this.treeAction.emit({ row: row });
|
|
2646
2614
|
};
|
|
2647
|
-
DataTableBodyComponent.ctorParameters = function () { return [
|
|
2648
|
-
{ type: core.ChangeDetectorRef }
|
|
2649
|
-
]; };
|
|
2650
|
-
__decorate([
|
|
2651
|
-
core.Input()
|
|
2652
|
-
], DataTableBodyComponent.prototype, "scrollbarV", void 0);
|
|
2653
|
-
__decorate([
|
|
2654
|
-
core.Input()
|
|
2655
|
-
], DataTableBodyComponent.prototype, "scrollbarH", void 0);
|
|
2656
|
-
__decorate([
|
|
2657
|
-
core.Input()
|
|
2658
|
-
], DataTableBodyComponent.prototype, "loadingIndicator", void 0);
|
|
2659
|
-
__decorate([
|
|
2660
|
-
core.Input()
|
|
2661
|
-
], DataTableBodyComponent.prototype, "externalPaging", void 0);
|
|
2662
|
-
__decorate([
|
|
2663
|
-
core.Input()
|
|
2664
|
-
], DataTableBodyComponent.prototype, "rowHeight", void 0);
|
|
2665
|
-
__decorate([
|
|
2666
|
-
core.Input()
|
|
2667
|
-
], DataTableBodyComponent.prototype, "offsetX", void 0);
|
|
2668
|
-
__decorate([
|
|
2669
|
-
core.Input()
|
|
2670
|
-
], DataTableBodyComponent.prototype, "emptyMessage", void 0);
|
|
2671
|
-
__decorate([
|
|
2672
|
-
core.Input()
|
|
2673
|
-
], DataTableBodyComponent.prototype, "selectionType", void 0);
|
|
2674
|
-
__decorate([
|
|
2675
|
-
core.Input()
|
|
2676
|
-
], DataTableBodyComponent.prototype, "selected", void 0);
|
|
2677
|
-
__decorate([
|
|
2678
|
-
core.Input()
|
|
2679
|
-
], DataTableBodyComponent.prototype, "rowIdentity", void 0);
|
|
2680
|
-
__decorate([
|
|
2681
|
-
core.Input()
|
|
2682
|
-
], DataTableBodyComponent.prototype, "rowDetail", void 0);
|
|
2683
|
-
__decorate([
|
|
2684
|
-
core.Input()
|
|
2685
|
-
], DataTableBodyComponent.prototype, "groupHeader", void 0);
|
|
2686
|
-
__decorate([
|
|
2687
|
-
core.Input()
|
|
2688
|
-
], DataTableBodyComponent.prototype, "selectCheck", void 0);
|
|
2689
|
-
__decorate([
|
|
2690
|
-
core.Input()
|
|
2691
|
-
], DataTableBodyComponent.prototype, "displayCheck", void 0);
|
|
2692
|
-
__decorate([
|
|
2693
|
-
core.Input()
|
|
2694
|
-
], DataTableBodyComponent.prototype, "trackByProp", void 0);
|
|
2695
|
-
__decorate([
|
|
2696
|
-
core.Input()
|
|
2697
|
-
], DataTableBodyComponent.prototype, "rowClass", void 0);
|
|
2698
|
-
__decorate([
|
|
2699
|
-
core.Input()
|
|
2700
|
-
], DataTableBodyComponent.prototype, "groupedRows", void 0);
|
|
2701
|
-
__decorate([
|
|
2702
|
-
core.Input()
|
|
2703
|
-
], DataTableBodyComponent.prototype, "groupExpansionDefault", void 0);
|
|
2704
|
-
__decorate([
|
|
2705
|
-
core.Input()
|
|
2706
|
-
], DataTableBodyComponent.prototype, "innerWidth", void 0);
|
|
2707
|
-
__decorate([
|
|
2708
|
-
core.Input()
|
|
2709
|
-
], DataTableBodyComponent.prototype, "groupRowsBy", void 0);
|
|
2710
|
-
__decorate([
|
|
2711
|
-
core.Input()
|
|
2712
|
-
], DataTableBodyComponent.prototype, "virtualization", void 0);
|
|
2713
|
-
__decorate([
|
|
2714
|
-
core.Input()
|
|
2715
|
-
], DataTableBodyComponent.prototype, "summaryRow", void 0);
|
|
2716
|
-
__decorate([
|
|
2717
|
-
core.Input()
|
|
2718
|
-
], DataTableBodyComponent.prototype, "summaryPosition", void 0);
|
|
2719
|
-
__decorate([
|
|
2720
|
-
core.Input()
|
|
2721
|
-
], DataTableBodyComponent.prototype, "summaryHeight", void 0);
|
|
2722
|
-
__decorate([
|
|
2723
|
-
core.Input()
|
|
2724
|
-
], DataTableBodyComponent.prototype, "pageSize", null);
|
|
2725
|
-
__decorate([
|
|
2726
|
-
core.Input()
|
|
2727
|
-
], DataTableBodyComponent.prototype, "rows", null);
|
|
2728
|
-
__decorate([
|
|
2729
|
-
core.Input()
|
|
2730
|
-
], DataTableBodyComponent.prototype, "columns", null);
|
|
2731
|
-
__decorate([
|
|
2732
|
-
core.Input()
|
|
2733
|
-
], DataTableBodyComponent.prototype, "offset", null);
|
|
2734
|
-
__decorate([
|
|
2735
|
-
core.Input()
|
|
2736
|
-
], DataTableBodyComponent.prototype, "rowCount", null);
|
|
2737
|
-
__decorate([
|
|
2738
|
-
core.HostBinding('style.width')
|
|
2739
|
-
], DataTableBodyComponent.prototype, "bodyWidth", null);
|
|
2740
|
-
__decorate([
|
|
2741
|
-
core.Input(),
|
|
2742
|
-
core.HostBinding('style.height')
|
|
2743
|
-
], DataTableBodyComponent.prototype, "bodyHeight", null);
|
|
2744
|
-
__decorate([
|
|
2745
|
-
core.Output()
|
|
2746
|
-
], DataTableBodyComponent.prototype, "scroll", void 0);
|
|
2747
|
-
__decorate([
|
|
2748
|
-
core.Output()
|
|
2749
|
-
], DataTableBodyComponent.prototype, "page", void 0);
|
|
2750
|
-
__decorate([
|
|
2751
|
-
core.Output()
|
|
2752
|
-
], DataTableBodyComponent.prototype, "activate", void 0);
|
|
2753
|
-
__decorate([
|
|
2754
|
-
core.Output()
|
|
2755
|
-
], DataTableBodyComponent.prototype, "select", void 0);
|
|
2756
|
-
__decorate([
|
|
2757
|
-
core.Output()
|
|
2758
|
-
], DataTableBodyComponent.prototype, "detailToggle", void 0);
|
|
2759
|
-
__decorate([
|
|
2760
|
-
core.Output()
|
|
2761
|
-
], DataTableBodyComponent.prototype, "rowContextmenu", void 0);
|
|
2762
|
-
__decorate([
|
|
2763
|
-
core.Output()
|
|
2764
|
-
], DataTableBodyComponent.prototype, "treeAction", void 0);
|
|
2765
|
-
__decorate([
|
|
2766
|
-
core.ViewChild(ScrollerComponent)
|
|
2767
|
-
], DataTableBodyComponent.prototype, "scroller", void 0);
|
|
2768
|
-
DataTableBodyComponent = __decorate([
|
|
2769
|
-
core.Component({
|
|
2770
|
-
selector: 'datatable-body',
|
|
2771
|
-
template: "\n <datatable-progress *ngIf=\"loadingIndicator\"> </datatable-progress>\n <datatable-selection\n #selector\n [selected]=\"selected\"\n [rows]=\"rows\"\n [selectCheck]=\"selectCheck\"\n [selectEnabled]=\"selectEnabled\"\n [selectionType]=\"selectionType\"\n [rowIdentity]=\"rowIdentity\"\n (select)=\"select.emit($event)\"\n (activate)=\"activate.emit($event)\"\n >\n <datatable-scroller\n *ngIf=\"rows?.length\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [scrollHeight]=\"scrollHeight\"\n [scrollWidth]=\"columnGroupWidths?.total\"\n (scroll)=\"onBodyScroll($event)\"\n >\n <datatable-summary-row\n *ngIf=\"summaryRow && summaryPosition === 'top'\"\n [rowHeight]=\"summaryHeight\"\n [offsetX]=\"offsetX\"\n [innerWidth]=\"innerWidth\"\n [rows]=\"rows\"\n [columns]=\"columns\"\n >\n </datatable-summary-row>\n <datatable-row-wrapper\n [groupedRows]=\"groupedRows\"\n *ngFor=\"let group of temp; let i = index; trackBy: rowTrackingFn\"\n [innerWidth]=\"innerWidth\"\n [ngStyle]=\"getRowsStyles(group)\"\n [rowDetail]=\"rowDetail\"\n [groupHeader]=\"groupHeader\"\n [offsetX]=\"offsetX\"\n [detailRowHeight]=\"getDetailRowHeight(group && group[i], i)\"\n [row]=\"group\"\n [expanded]=\"getRowExpanded(group)\"\n [rowIndex]=\"getRowIndex(group && group[i])\"\n (rowContextmenu)=\"rowContextmenu.emit($event)\"\n >\n <datatable-body-row\n *ngIf=\"!groupedRows; else groupedRowsTemplate\"\n tabindex=\"-1\"\n [isSelected]=\"selector.getRowSelected(group)\"\n [innerWidth]=\"innerWidth\"\n [offsetX]=\"offsetX\"\n [columns]=\"columns\"\n [rowHeight]=\"getRowHeight(group)\"\n [row]=\"group\"\n [rowIndex]=\"getRowIndex(group)\"\n [expanded]=\"getRowExpanded(group)\"\n [rowClass]=\"rowClass\"\n [displayCheck]=\"displayCheck\"\n [treeStatus]=\"group && group.treeStatus\"\n (treeAction)=\"onTreeAction(group)\"\n (activate)=\"selector.onActivate($event, indexes.first + i)\"\n >\n </datatable-body-row>\n <ng-template #groupedRowsTemplate>\n <datatable-body-row\n *ngFor=\"let row of group.value; let i = index; trackBy: rowTrackingFn\"\n tabindex=\"-1\"\n [isSelected]=\"selector.getRowSelected(row)\"\n [innerWidth]=\"innerWidth\"\n [offsetX]=\"offsetX\"\n [columns]=\"columns\"\n [rowHeight]=\"getRowHeight(row)\"\n [row]=\"row\"\n [group]=\"group.value\"\n [rowIndex]=\"getRowIndex(row)\"\n [expanded]=\"getRowExpanded(row)\"\n [rowClass]=\"rowClass\"\n (activate)=\"selector.onActivate($event, i)\"\n >\n </datatable-body-row>\n </ng-template>\n </datatable-row-wrapper>\n <datatable-summary-row\n *ngIf=\"summaryRow && summaryPosition === 'bottom'\"\n [ngStyle]=\"getBottomSummaryRowStyles()\"\n [rowHeight]=\"summaryHeight\"\n [offsetX]=\"offsetX\"\n [innerWidth]=\"innerWidth\"\n [rows]=\"rows\"\n [columns]=\"columns\"\n >\n </datatable-summary-row>\n </datatable-scroller>\n <div class=\"empty-row\" *ngIf=\"!rows?.length && !loadingIndicator\" [innerHTML]=\"emptyMessage\"></div>\n </datatable-selection>\n ",
|
|
2772
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
2773
|
-
host: {
|
|
2774
|
-
class: 'datatable-body'
|
|
2775
|
-
}
|
|
2776
|
-
})
|
|
2777
|
-
], DataTableBodyComponent);
|
|
2778
2615
|
return DataTableBodyComponent;
|
|
2779
2616
|
}());
|
|
2617
|
+
DataTableBodyComponent.decorators = [
|
|
2618
|
+
{ type: core.Component, args: [{
|
|
2619
|
+
selector: 'datatable-body',
|
|
2620
|
+
template: "\n <datatable-progress *ngIf=\"loadingIndicator\"> </datatable-progress>\n <datatable-selection\n #selector\n [selected]=\"selected\"\n [rows]=\"rows\"\n [selectCheck]=\"selectCheck\"\n [selectEnabled]=\"selectEnabled\"\n [selectionType]=\"selectionType\"\n [rowIdentity]=\"rowIdentity\"\n (select)=\"select.emit($event)\"\n (activate)=\"activate.emit($event)\"\n >\n <datatable-scroller\n *ngIf=\"rows?.length\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [scrollHeight]=\"scrollHeight\"\n [scrollWidth]=\"columnGroupWidths?.total\"\n (scroll)=\"onBodyScroll($event)\"\n >\n <datatable-summary-row\n *ngIf=\"summaryRow && summaryPosition === 'top'\"\n [rowHeight]=\"summaryHeight\"\n [offsetX]=\"offsetX\"\n [innerWidth]=\"innerWidth\"\n [rows]=\"rows\"\n [columns]=\"columns\"\n >\n </datatable-summary-row>\n <datatable-row-wrapper\n [groupedRows]=\"groupedRows\"\n *ngFor=\"let group of temp; let i = index; trackBy: rowTrackingFn\"\n [innerWidth]=\"innerWidth\"\n [ngStyle]=\"getRowsStyles(group)\"\n [rowDetail]=\"rowDetail\"\n [groupHeader]=\"groupHeader\"\n [offsetX]=\"offsetX\"\n [detailRowHeight]=\"getDetailRowHeight(group && group[i], i)\"\n [row]=\"group\"\n [expanded]=\"getRowExpanded(group)\"\n [rowIndex]=\"getRowIndex(group && group[i])\"\n (rowContextmenu)=\"rowContextmenu.emit($event)\"\n >\n <datatable-body-row\n role=\"row\"\n *ngIf=\"!groupedRows; else groupedRowsTemplate\"\n tabindex=\"-1\"\n [isSelected]=\"selector.getRowSelected(group)\"\n [innerWidth]=\"innerWidth\"\n [offsetX]=\"offsetX\"\n [columns]=\"columns\"\n [rowHeight]=\"getRowHeight(group)\"\n [row]=\"group\"\n [rowIndex]=\"getRowIndex(group)\"\n [expanded]=\"getRowExpanded(group)\"\n [rowClass]=\"rowClass\"\n [displayCheck]=\"displayCheck\"\n [treeStatus]=\"group && group.treeStatus\"\n (treeAction)=\"onTreeAction(group)\"\n (activate)=\"selector.onActivate($event, indexes.first + i)\"\n >\n </datatable-body-row>\n <ng-template #groupedRowsTemplate>\n <datatable-body-row\n role=\"row\"\n *ngFor=\"let row of group.value; let i = index; trackBy: rowTrackingFn\"\n tabindex=\"-1\"\n [isSelected]=\"selector.getRowSelected(row)\"\n [innerWidth]=\"innerWidth\"\n [offsetX]=\"offsetX\"\n [columns]=\"columns\"\n [rowHeight]=\"getRowHeight(row)\"\n [row]=\"row\"\n [group]=\"group.value\"\n [rowIndex]=\"getRowIndex(row)\"\n [expanded]=\"getRowExpanded(row)\"\n [rowClass]=\"rowClass\"\n (activate)=\"selector.onActivate($event, i)\"\n >\n </datatable-body-row>\n </ng-template>\n </datatable-row-wrapper>\n <datatable-summary-row\n role=\"row\"\n *ngIf=\"summaryRow && summaryPosition === 'bottom'\"\n [ngStyle]=\"getBottomSummaryRowStyles()\"\n [rowHeight]=\"summaryHeight\"\n [offsetX]=\"offsetX\"\n [innerWidth]=\"innerWidth\"\n [rows]=\"rows\"\n [columns]=\"columns\"\n >\n </datatable-summary-row>\n </datatable-scroller>\n <div class=\"empty-row\" *ngIf=\"!rows?.length && !loadingIndicator\" [innerHTML]=\"emptyMessage\"></div>\n </datatable-selection>\n ",
|
|
2621
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
2622
|
+
host: {
|
|
2623
|
+
class: 'datatable-body'
|
|
2624
|
+
}
|
|
2625
|
+
},] }
|
|
2626
|
+
];
|
|
2627
|
+
DataTableBodyComponent.ctorParameters = function () { return [
|
|
2628
|
+
{ type: core.ChangeDetectorRef }
|
|
2629
|
+
]; };
|
|
2630
|
+
DataTableBodyComponent.propDecorators = {
|
|
2631
|
+
scrollbarV: [{ type: core.Input }],
|
|
2632
|
+
scrollbarH: [{ type: core.Input }],
|
|
2633
|
+
loadingIndicator: [{ type: core.Input }],
|
|
2634
|
+
externalPaging: [{ type: core.Input }],
|
|
2635
|
+
rowHeight: [{ type: core.Input }],
|
|
2636
|
+
offsetX: [{ type: core.Input }],
|
|
2637
|
+
emptyMessage: [{ type: core.Input }],
|
|
2638
|
+
selectionType: [{ type: core.Input }],
|
|
2639
|
+
selected: [{ type: core.Input }],
|
|
2640
|
+
rowIdentity: [{ type: core.Input }],
|
|
2641
|
+
rowDetail: [{ type: core.Input }],
|
|
2642
|
+
groupHeader: [{ type: core.Input }],
|
|
2643
|
+
selectCheck: [{ type: core.Input }],
|
|
2644
|
+
displayCheck: [{ type: core.Input }],
|
|
2645
|
+
trackByProp: [{ type: core.Input }],
|
|
2646
|
+
rowClass: [{ type: core.Input }],
|
|
2647
|
+
groupedRows: [{ type: core.Input }],
|
|
2648
|
+
groupExpansionDefault: [{ type: core.Input }],
|
|
2649
|
+
innerWidth: [{ type: core.Input }],
|
|
2650
|
+
groupRowsBy: [{ type: core.Input }],
|
|
2651
|
+
virtualization: [{ type: core.Input }],
|
|
2652
|
+
summaryRow: [{ type: core.Input }],
|
|
2653
|
+
summaryPosition: [{ type: core.Input }],
|
|
2654
|
+
summaryHeight: [{ type: core.Input }],
|
|
2655
|
+
pageSize: [{ type: core.Input }],
|
|
2656
|
+
rows: [{ type: core.Input }],
|
|
2657
|
+
columns: [{ type: core.Input }],
|
|
2658
|
+
offset: [{ type: core.Input }],
|
|
2659
|
+
rowCount: [{ type: core.Input }],
|
|
2660
|
+
bodyWidth: [{ type: core.HostBinding, args: ['style.width',] }],
|
|
2661
|
+
bodyHeight: [{ type: core.Input }, { type: core.HostBinding, args: ['style.height',] }],
|
|
2662
|
+
scroll: [{ type: core.Output }],
|
|
2663
|
+
page: [{ type: core.Output }],
|
|
2664
|
+
activate: [{ type: core.Output }],
|
|
2665
|
+
select: [{ type: core.Output }],
|
|
2666
|
+
detailToggle: [{ type: core.Output }],
|
|
2667
|
+
rowContextmenu: [{ type: core.Output }],
|
|
2668
|
+
treeAction: [{ type: core.Output }],
|
|
2669
|
+
scroller: [{ type: core.ViewChild, args: [ScrollerComponent,] }]
|
|
2670
|
+
};
|
|
2780
2671
|
|
|
2781
2672
|
var DataTableHeaderComponent = /** @class */ (function () {
|
|
2782
2673
|
function DataTableHeaderComponent(cd) {
|
|
@@ -2811,7 +2702,7 @@
|
|
|
2811
2702
|
}
|
|
2812
2703
|
});
|
|
2813
2704
|
},
|
|
2814
|
-
enumerable:
|
|
2705
|
+
enumerable: false,
|
|
2815
2706
|
configurable: true
|
|
2816
2707
|
});
|
|
2817
2708
|
Object.defineProperty(DataTableHeaderComponent.prototype, "headerHeight", {
|
|
@@ -2826,7 +2717,7 @@
|
|
|
2826
2717
|
this._headerHeight = val;
|
|
2827
2718
|
}
|
|
2828
2719
|
},
|
|
2829
|
-
enumerable:
|
|
2720
|
+
enumerable: false,
|
|
2830
2721
|
configurable: true
|
|
2831
2722
|
});
|
|
2832
2723
|
Object.defineProperty(DataTableHeaderComponent.prototype, "columns", {
|
|
@@ -2843,7 +2734,7 @@
|
|
|
2843
2734
|
_this.setStylesByGroup();
|
|
2844
2735
|
});
|
|
2845
2736
|
},
|
|
2846
|
-
enumerable:
|
|
2737
|
+
enumerable: false,
|
|
2847
2738
|
configurable: true
|
|
2848
2739
|
});
|
|
2849
2740
|
Object.defineProperty(DataTableHeaderComponent.prototype, "offsetX", {
|
|
@@ -2854,7 +2745,7 @@
|
|
|
2854
2745
|
this._offsetX = val;
|
|
2855
2746
|
this.setStylesByGroup();
|
|
2856
2747
|
},
|
|
2857
|
-
enumerable:
|
|
2748
|
+
enumerable: false,
|
|
2858
2749
|
configurable: true
|
|
2859
2750
|
});
|
|
2860
2751
|
DataTableHeaderComponent.prototype.ngOnDestroy = function () {
|
|
@@ -2887,7 +2778,7 @@
|
|
|
2887
2778
|
}
|
|
2888
2779
|
return '100%';
|
|
2889
2780
|
},
|
|
2890
|
-
enumerable:
|
|
2781
|
+
enumerable: false,
|
|
2891
2782
|
configurable: true
|
|
2892
2783
|
});
|
|
2893
2784
|
DataTableHeaderComponent.prototype.trackByGroups = function (index, colGroup) {
|
|
@@ -2968,7 +2859,7 @@
|
|
|
2968
2859
|
this.sorts = [];
|
|
2969
2860
|
}
|
|
2970
2861
|
var sorts = this.sorts.map(function (s, i) {
|
|
2971
|
-
s =
|
|
2862
|
+
s = Object.assign({}, s);
|
|
2972
2863
|
if (s.prop === column.prop) {
|
|
2973
2864
|
idx = i;
|
|
2974
2865
|
}
|
|
@@ -3012,82 +2903,44 @@
|
|
|
3012
2903
|
}
|
|
3013
2904
|
return styles;
|
|
3014
2905
|
};
|
|
3015
|
-
DataTableHeaderComponent.ctorParameters = function () { return [
|
|
3016
|
-
{ type: core.ChangeDetectorRef }
|
|
3017
|
-
]; };
|
|
3018
|
-
__decorate([
|
|
3019
|
-
core.Input()
|
|
3020
|
-
], DataTableHeaderComponent.prototype, "sortAscendingIcon", void 0);
|
|
3021
|
-
__decorate([
|
|
3022
|
-
core.Input()
|
|
3023
|
-
], DataTableHeaderComponent.prototype, "sortDescendingIcon", void 0);
|
|
3024
|
-
__decorate([
|
|
3025
|
-
core.Input()
|
|
3026
|
-
], DataTableHeaderComponent.prototype, "scrollbarH", void 0);
|
|
3027
|
-
__decorate([
|
|
3028
|
-
core.Input()
|
|
3029
|
-
], DataTableHeaderComponent.prototype, "dealsWithGroup", void 0);
|
|
3030
|
-
__decorate([
|
|
3031
|
-
core.Input()
|
|
3032
|
-
], DataTableHeaderComponent.prototype, "targetMarkerTemplate", void 0);
|
|
3033
|
-
__decorate([
|
|
3034
|
-
core.Input()
|
|
3035
|
-
], DataTableHeaderComponent.prototype, "innerWidth", null);
|
|
3036
|
-
__decorate([
|
|
3037
|
-
core.Input()
|
|
3038
|
-
], DataTableHeaderComponent.prototype, "sorts", void 0);
|
|
3039
|
-
__decorate([
|
|
3040
|
-
core.Input()
|
|
3041
|
-
], DataTableHeaderComponent.prototype, "sortType", void 0);
|
|
3042
|
-
__decorate([
|
|
3043
|
-
core.Input()
|
|
3044
|
-
], DataTableHeaderComponent.prototype, "allRowsSelected", void 0);
|
|
3045
|
-
__decorate([
|
|
3046
|
-
core.Input()
|
|
3047
|
-
], DataTableHeaderComponent.prototype, "selectionType", void 0);
|
|
3048
|
-
__decorate([
|
|
3049
|
-
core.Input()
|
|
3050
|
-
], DataTableHeaderComponent.prototype, "reorderable", void 0);
|
|
3051
|
-
__decorate([
|
|
3052
|
-
core.HostBinding('style.height'),
|
|
3053
|
-
core.Input()
|
|
3054
|
-
], DataTableHeaderComponent.prototype, "headerHeight", null);
|
|
3055
|
-
__decorate([
|
|
3056
|
-
core.Input()
|
|
3057
|
-
], DataTableHeaderComponent.prototype, "columns", null);
|
|
3058
|
-
__decorate([
|
|
3059
|
-
core.Input()
|
|
3060
|
-
], DataTableHeaderComponent.prototype, "offsetX", null);
|
|
3061
|
-
__decorate([
|
|
3062
|
-
core.Output()
|
|
3063
|
-
], DataTableHeaderComponent.prototype, "sort", void 0);
|
|
3064
|
-
__decorate([
|
|
3065
|
-
core.Output()
|
|
3066
|
-
], DataTableHeaderComponent.prototype, "reorder", void 0);
|
|
3067
|
-
__decorate([
|
|
3068
|
-
core.Output()
|
|
3069
|
-
], DataTableHeaderComponent.prototype, "resize", void 0);
|
|
3070
|
-
__decorate([
|
|
3071
|
-
core.Output()
|
|
3072
|
-
], DataTableHeaderComponent.prototype, "select", void 0);
|
|
3073
|
-
__decorate([
|
|
3074
|
-
core.Output()
|
|
3075
|
-
], DataTableHeaderComponent.prototype, "columnContextmenu", void 0);
|
|
3076
|
-
__decorate([
|
|
3077
|
-
core.HostBinding('style.width')
|
|
3078
|
-
], DataTableHeaderComponent.prototype, "headerWidth", null);
|
|
3079
|
-
DataTableHeaderComponent = __decorate([
|
|
3080
|
-
core.Component({
|
|
3081
|
-
selector: 'datatable-header',
|
|
3082
|
-
template: "\n <div\n orderable\n (reorder)=\"onColumnReordered($event)\"\n (targetChanged)=\"onTargetChanged($event)\"\n [style.width.px]=\"_columnGroupWidths.total\"\n class=\"datatable-header-inner\"\n >\n <div\n *ngFor=\"let colGroup of _columnsByPin; trackBy: trackByGroups\"\n [class]=\"'datatable-row-' + colGroup.type\"\n [ngStyle]=\"_styleByGroup[colGroup.type]\"\n >\n <datatable-header-cell\n *ngFor=\"let column of colGroup.columns; trackBy: columnTrackingFn\"\n resizeable\n [resizeEnabled]=\"column.resizeable\"\n (resize)=\"onColumnResized($event, column)\"\n long-press\n [pressModel]=\"column\"\n [pressEnabled]=\"reorderable && column.draggable\"\n (longPressStart)=\"onLongPressStart($event)\"\n (longPressEnd)=\"onLongPressEnd($event)\"\n draggable\n [dragX]=\"reorderable && column.draggable && column.dragging\"\n [dragY]=\"false\"\n [dragModel]=\"column\"\n [dragEventTarget]=\"dragEventTarget\"\n [headerHeight]=\"headerHeight\"\n [isTarget]=\"column.isTarget\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [targetMarkerContext]=\"column.targetMarkerContext\"\n [column]=\"column\"\n [sortType]=\"sortType\"\n [sorts]=\"sorts\"\n [selectionType]=\"selectionType\"\n [sortAscendingIcon]=\"sortAscendingIcon\"\n [sortDescendingIcon]=\"sortDescendingIcon\"\n [allRowsSelected]=\"allRowsSelected\"\n (sort)=\"onSort($event)\"\n (select)=\"select.emit($event)\"\n (columnContextmenu)=\"columnContextmenu.emit($event)\"\n >\n </datatable-header-cell>\n </div>\n </div>\n ",
|
|
3083
|
-
host: {
|
|
3084
|
-
class: 'datatable-header'
|
|
3085
|
-
},
|
|
3086
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
3087
|
-
})
|
|
3088
|
-
], DataTableHeaderComponent);
|
|
3089
2906
|
return DataTableHeaderComponent;
|
|
3090
2907
|
}());
|
|
2908
|
+
DataTableHeaderComponent.decorators = [
|
|
2909
|
+
{ type: core.Component, args: [{
|
|
2910
|
+
selector: 'datatable-header',
|
|
2911
|
+
template: "\n <div\n role=\"row\"\n orderable\n (reorder)=\"onColumnReordered($event)\"\n (targetChanged)=\"onTargetChanged($event)\"\n [style.width.px]=\"_columnGroupWidths.total\"\n class=\"datatable-header-inner\"\n >\n <div\n *ngFor=\"let colGroup of _columnsByPin; trackBy: trackByGroups\"\n [class]=\"'datatable-row-' + colGroup.type\"\n [ngStyle]=\"_styleByGroup[colGroup.type]\"\n >\n <datatable-header-cell\n role=\"columnheader\"\n *ngFor=\"let column of colGroup.columns; trackBy: columnTrackingFn\"\n resizeable\n [resizeEnabled]=\"column.resizeable\"\n (resize)=\"onColumnResized($event, column)\"\n long-press\n [pressModel]=\"column\"\n [pressEnabled]=\"reorderable && column.draggable\"\n (longPressStart)=\"onLongPressStart($event)\"\n (longPressEnd)=\"onLongPressEnd($event)\"\n draggable\n [dragX]=\"reorderable && column.draggable && column.dragging\"\n [dragY]=\"false\"\n [dragModel]=\"column\"\n [dragEventTarget]=\"dragEventTarget\"\n [headerHeight]=\"headerHeight\"\n [isTarget]=\"column.isTarget\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [targetMarkerContext]=\"column.targetMarkerContext\"\n [column]=\"column\"\n [sortType]=\"sortType\"\n [sorts]=\"sorts\"\n [selectionType]=\"selectionType\"\n [sortAscendingIcon]=\"sortAscendingIcon\"\n [sortDescendingIcon]=\"sortDescendingIcon\"\n [sortUnsetIcon]=\"sortUnsetIcon\"\n [allRowsSelected]=\"allRowsSelected\"\n (sort)=\"onSort($event)\"\n (select)=\"select.emit($event)\"\n (columnContextmenu)=\"columnContextmenu.emit($event)\"\n >\n </datatable-header-cell>\n </div>\n </div>\n ",
|
|
2912
|
+
host: {
|
|
2913
|
+
class: 'datatable-header'
|
|
2914
|
+
},
|
|
2915
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
2916
|
+
},] }
|
|
2917
|
+
];
|
|
2918
|
+
DataTableHeaderComponent.ctorParameters = function () { return [
|
|
2919
|
+
{ type: core.ChangeDetectorRef }
|
|
2920
|
+
]; };
|
|
2921
|
+
DataTableHeaderComponent.propDecorators = {
|
|
2922
|
+
sortAscendingIcon: [{ type: core.Input }],
|
|
2923
|
+
sortDescendingIcon: [{ type: core.Input }],
|
|
2924
|
+
sortUnsetIcon: [{ type: core.Input }],
|
|
2925
|
+
scrollbarH: [{ type: core.Input }],
|
|
2926
|
+
dealsWithGroup: [{ type: core.Input }],
|
|
2927
|
+
targetMarkerTemplate: [{ type: core.Input }],
|
|
2928
|
+
innerWidth: [{ type: core.Input }],
|
|
2929
|
+
sorts: [{ type: core.Input }],
|
|
2930
|
+
sortType: [{ type: core.Input }],
|
|
2931
|
+
allRowsSelected: [{ type: core.Input }],
|
|
2932
|
+
selectionType: [{ type: core.Input }],
|
|
2933
|
+
reorderable: [{ type: core.Input }],
|
|
2934
|
+
headerHeight: [{ type: core.HostBinding, args: ['style.height',] }, { type: core.Input }],
|
|
2935
|
+
columns: [{ type: core.Input }],
|
|
2936
|
+
offsetX: [{ type: core.Input }],
|
|
2937
|
+
sort: [{ type: core.Output }],
|
|
2938
|
+
reorder: [{ type: core.Output }],
|
|
2939
|
+
resize: [{ type: core.Output }],
|
|
2940
|
+
select: [{ type: core.Output }],
|
|
2941
|
+
columnContextmenu: [{ type: core.Output }],
|
|
2942
|
+
headerWidth: [{ type: core.HostBinding, args: ['style.width',] }]
|
|
2943
|
+
};
|
|
3091
2944
|
|
|
3092
2945
|
/**
|
|
3093
2946
|
* Throttle a function
|
|
@@ -3371,7 +3224,7 @@
|
|
|
3371
3224
|
return contentWidth;
|
|
3372
3225
|
}
|
|
3373
3226
|
|
|
3374
|
-
|
|
3227
|
+
exports.SortDirection = void 0;
|
|
3375
3228
|
(function (SortDirection) {
|
|
3376
3229
|
SortDirection["asc"] = "asc";
|
|
3377
3230
|
SortDirection["desc"] = "desc";
|
|
@@ -3446,14 +3299,14 @@
|
|
|
3446
3299
|
if (!rows)
|
|
3447
3300
|
return [];
|
|
3448
3301
|
if (!dirs || !dirs.length || !columns)
|
|
3449
|
-
return
|
|
3302
|
+
return __spreadArray([], __read(rows));
|
|
3450
3303
|
/**
|
|
3451
3304
|
* record the row ordering of results from prior sort operations (if applicable)
|
|
3452
3305
|
* this is necessary to guarantee stable sorting behavior
|
|
3453
3306
|
*/
|
|
3454
3307
|
var rowToIndexMap = new Map();
|
|
3455
3308
|
rows.forEach(function (row, index) { return rowToIndexMap.set(row, index); });
|
|
3456
|
-
var temp =
|
|
3309
|
+
var temp = __spreadArray([], __read(rows));
|
|
3457
3310
|
var cols = columns.reduce(function (obj, col) {
|
|
3458
3311
|
if (col.comparator && typeof col.comparator === 'function') {
|
|
3459
3312
|
obj[col.prop] = col.comparator;
|
|
@@ -3594,6 +3447,7 @@
|
|
|
3594
3447
|
this.cssClasses = {
|
|
3595
3448
|
sortAscending: 'datatable-icon-up',
|
|
3596
3449
|
sortDescending: 'datatable-icon-down',
|
|
3450
|
+
sortUnset: 'datatable-icon-sort-unset',
|
|
3597
3451
|
pagerLeftArrow: 'datatable-icon-left',
|
|
3598
3452
|
pagerRightArrow: 'datatable-icon-right',
|
|
3599
3453
|
pagerPrevious: 'datatable-icon-prev',
|
|
@@ -3708,7 +3562,7 @@
|
|
|
3708
3562
|
this.rowDiffer = differs.find({}).create();
|
|
3709
3563
|
// apply global settings from Module.forRoot
|
|
3710
3564
|
if (this.configuration && this.configuration.messages) {
|
|
3711
|
-
this.messages =
|
|
3565
|
+
this.messages = Object.assign({}, this.configuration.messages);
|
|
3712
3566
|
}
|
|
3713
3567
|
}
|
|
3714
3568
|
Object.defineProperty(DatatableComponent.prototype, "rows", {
|
|
@@ -3724,7 +3578,7 @@
|
|
|
3724
3578
|
set: function (val) {
|
|
3725
3579
|
this._rows = val;
|
|
3726
3580
|
if (val) {
|
|
3727
|
-
this._internalRows =
|
|
3581
|
+
this._internalRows = __spreadArray([], __read(val));
|
|
3728
3582
|
}
|
|
3729
3583
|
// auto sort on new updates
|
|
3730
3584
|
if (!this.externalSorting) {
|
|
@@ -3740,7 +3594,7 @@
|
|
|
3740
3594
|
}
|
|
3741
3595
|
this.cd.markForCheck();
|
|
3742
3596
|
},
|
|
3743
|
-
enumerable:
|
|
3597
|
+
enumerable: false,
|
|
3744
3598
|
configurable: true
|
|
3745
3599
|
});
|
|
3746
3600
|
Object.defineProperty(DatatableComponent.prototype, "groupRowsBy", {
|
|
@@ -3759,7 +3613,7 @@
|
|
|
3759
3613
|
}
|
|
3760
3614
|
}
|
|
3761
3615
|
},
|
|
3762
|
-
enumerable:
|
|
3616
|
+
enumerable: false,
|
|
3763
3617
|
configurable: true
|
|
3764
3618
|
});
|
|
3765
3619
|
Object.defineProperty(DatatableComponent.prototype, "columns", {
|
|
@@ -3774,13 +3628,13 @@
|
|
|
3774
3628
|
*/
|
|
3775
3629
|
set: function (val) {
|
|
3776
3630
|
if (val) {
|
|
3777
|
-
this._internalColumns =
|
|
3631
|
+
this._internalColumns = __spreadArray([], __read(val));
|
|
3778
3632
|
setColumnDefaults(this._internalColumns);
|
|
3779
3633
|
this.recalculateColumns();
|
|
3780
3634
|
}
|
|
3781
3635
|
this._columns = val;
|
|
3782
3636
|
},
|
|
3783
|
-
enumerable:
|
|
3637
|
+
enumerable: false,
|
|
3784
3638
|
configurable: true
|
|
3785
3639
|
});
|
|
3786
3640
|
Object.defineProperty(DatatableComponent.prototype, "limit", {
|
|
@@ -3799,7 +3653,7 @@
|
|
|
3799
3653
|
// recalculate sizes/etc
|
|
3800
3654
|
this.recalculate();
|
|
3801
3655
|
},
|
|
3802
|
-
enumerable:
|
|
3656
|
+
enumerable: false,
|
|
3803
3657
|
configurable: true
|
|
3804
3658
|
});
|
|
3805
3659
|
Object.defineProperty(DatatableComponent.prototype, "count", {
|
|
@@ -3818,7 +3672,7 @@
|
|
|
3818
3672
|
// recalculate sizes/etc
|
|
3819
3673
|
this.recalculate();
|
|
3820
3674
|
},
|
|
3821
|
-
enumerable:
|
|
3675
|
+
enumerable: false,
|
|
3822
3676
|
configurable: true
|
|
3823
3677
|
});
|
|
3824
3678
|
Object.defineProperty(DatatableComponent.prototype, "offset", {
|
|
@@ -3832,7 +3686,7 @@
|
|
|
3832
3686
|
set: function (val) {
|
|
3833
3687
|
this._offset = val;
|
|
3834
3688
|
},
|
|
3835
|
-
enumerable:
|
|
3689
|
+
enumerable: false,
|
|
3836
3690
|
configurable: true
|
|
3837
3691
|
});
|
|
3838
3692
|
Object.defineProperty(DatatableComponent.prototype, "isFixedHeader", {
|
|
@@ -3843,7 +3697,7 @@
|
|
|
3843
3697
|
var headerHeight = this.headerHeight;
|
|
3844
3698
|
return typeof headerHeight === 'string' ? headerHeight !== 'auto' : true;
|
|
3845
3699
|
},
|
|
3846
|
-
enumerable:
|
|
3700
|
+
enumerable: false,
|
|
3847
3701
|
configurable: true
|
|
3848
3702
|
});
|
|
3849
3703
|
Object.defineProperty(DatatableComponent.prototype, "isFixedRow", {
|
|
@@ -3854,7 +3708,7 @@
|
|
|
3854
3708
|
get: function () {
|
|
3855
3709
|
return this.rowHeight !== 'auto';
|
|
3856
3710
|
},
|
|
3857
|
-
enumerable:
|
|
3711
|
+
enumerable: false,
|
|
3858
3712
|
configurable: true
|
|
3859
3713
|
});
|
|
3860
3714
|
Object.defineProperty(DatatableComponent.prototype, "isVertScroll", {
|
|
@@ -3865,7 +3719,7 @@
|
|
|
3865
3719
|
get: function () {
|
|
3866
3720
|
return this.scrollbarV;
|
|
3867
3721
|
},
|
|
3868
|
-
enumerable:
|
|
3722
|
+
enumerable: false,
|
|
3869
3723
|
configurable: true
|
|
3870
3724
|
});
|
|
3871
3725
|
Object.defineProperty(DatatableComponent.prototype, "isVirtualized", {
|
|
@@ -3876,7 +3730,7 @@
|
|
|
3876
3730
|
get: function () {
|
|
3877
3731
|
return this.virtualization;
|
|
3878
3732
|
},
|
|
3879
|
-
enumerable:
|
|
3733
|
+
enumerable: false,
|
|
3880
3734
|
configurable: true
|
|
3881
3735
|
});
|
|
3882
3736
|
Object.defineProperty(DatatableComponent.prototype, "isHorScroll", {
|
|
@@ -3887,7 +3741,7 @@
|
|
|
3887
3741
|
get: function () {
|
|
3888
3742
|
return this.scrollbarH;
|
|
3889
3743
|
},
|
|
3890
|
-
enumerable:
|
|
3744
|
+
enumerable: false,
|
|
3891
3745
|
configurable: true
|
|
3892
3746
|
});
|
|
3893
3747
|
Object.defineProperty(DatatableComponent.prototype, "isSelectable", {
|
|
@@ -3897,7 +3751,7 @@
|
|
|
3897
3751
|
get: function () {
|
|
3898
3752
|
return this.selectionType !== undefined;
|
|
3899
3753
|
},
|
|
3900
|
-
enumerable:
|
|
3754
|
+
enumerable: false,
|
|
3901
3755
|
configurable: true
|
|
3902
3756
|
});
|
|
3903
3757
|
Object.defineProperty(DatatableComponent.prototype, "isCheckboxSelection", {
|
|
@@ -3907,7 +3761,7 @@
|
|
|
3907
3761
|
get: function () {
|
|
3908
3762
|
return this.selectionType === exports.SelectionType.checkbox;
|
|
3909
3763
|
},
|
|
3910
|
-
enumerable:
|
|
3764
|
+
enumerable: false,
|
|
3911
3765
|
configurable: true
|
|
3912
3766
|
});
|
|
3913
3767
|
Object.defineProperty(DatatableComponent.prototype, "isCellSelection", {
|
|
@@ -3917,7 +3771,7 @@
|
|
|
3917
3771
|
get: function () {
|
|
3918
3772
|
return this.selectionType === exports.SelectionType.cell;
|
|
3919
3773
|
},
|
|
3920
|
-
enumerable:
|
|
3774
|
+
enumerable: false,
|
|
3921
3775
|
configurable: true
|
|
3922
3776
|
});
|
|
3923
3777
|
Object.defineProperty(DatatableComponent.prototype, "isSingleSelection", {
|
|
@@ -3927,7 +3781,7 @@
|
|
|
3927
3781
|
get: function () {
|
|
3928
3782
|
return this.selectionType === exports.SelectionType.single;
|
|
3929
3783
|
},
|
|
3930
|
-
enumerable:
|
|
3784
|
+
enumerable: false,
|
|
3931
3785
|
configurable: true
|
|
3932
3786
|
});
|
|
3933
3787
|
Object.defineProperty(DatatableComponent.prototype, "isMultiSelection", {
|
|
@@ -3937,7 +3791,7 @@
|
|
|
3937
3791
|
get: function () {
|
|
3938
3792
|
return this.selectionType === exports.SelectionType.multi;
|
|
3939
3793
|
},
|
|
3940
|
-
enumerable:
|
|
3794
|
+
enumerable: false,
|
|
3941
3795
|
configurable: true
|
|
3942
3796
|
});
|
|
3943
3797
|
Object.defineProperty(DatatableComponent.prototype, "isMultiClickSelection", {
|
|
@@ -3947,7 +3801,7 @@
|
|
|
3947
3801
|
get: function () {
|
|
3948
3802
|
return this.selectionType === exports.SelectionType.multiClick;
|
|
3949
3803
|
},
|
|
3950
|
-
enumerable:
|
|
3804
|
+
enumerable: false,
|
|
3951
3805
|
configurable: true
|
|
3952
3806
|
});
|
|
3953
3807
|
Object.defineProperty(DatatableComponent.prototype, "columnTemplates", {
|
|
@@ -3965,7 +3819,7 @@
|
|
|
3965
3819
|
this._columnTemplates = val;
|
|
3966
3820
|
this.translateColumns(val);
|
|
3967
3821
|
},
|
|
3968
|
-
enumerable:
|
|
3822
|
+
enumerable: false,
|
|
3969
3823
|
configurable: true
|
|
3970
3824
|
});
|
|
3971
3825
|
Object.defineProperty(DatatableComponent.prototype, "allRowsSelected", {
|
|
@@ -3981,7 +3835,7 @@
|
|
|
3981
3835
|
}
|
|
3982
3836
|
return this.selected && this.rows && this.rows.length !== 0 && allRowsSelected;
|
|
3983
3837
|
},
|
|
3984
|
-
enumerable:
|
|
3838
|
+
enumerable: false,
|
|
3985
3839
|
configurable: true
|
|
3986
3840
|
});
|
|
3987
3841
|
/**
|
|
@@ -4080,7 +3934,7 @@
|
|
|
4080
3934
|
this.sortInternalRows();
|
|
4081
3935
|
}
|
|
4082
3936
|
else {
|
|
4083
|
-
this._internalRows =
|
|
3937
|
+
this._internalRows = __spreadArray([], __read(this.rows));
|
|
4084
3938
|
}
|
|
4085
3939
|
// auto group by parent on new update
|
|
4086
3940
|
this._internalRows = groupRowsByParents(this._internalRows, optionalGetterForProp(this.treeFromRelation), optionalGetterForProp(this.treeToRelation));
|
|
@@ -4271,7 +4125,7 @@
|
|
|
4271
4125
|
}
|
|
4272
4126
|
var idx;
|
|
4273
4127
|
var cols = this._internalColumns.map(function (c, i) {
|
|
4274
|
-
c =
|
|
4128
|
+
c = Object.assign({}, c);
|
|
4275
4129
|
if (c.$$id === column.$$id) {
|
|
4276
4130
|
idx = i;
|
|
4277
4131
|
c.width = newValue;
|
|
@@ -4294,7 +4148,7 @@
|
|
|
4294
4148
|
DatatableComponent.prototype.onColumnReorder = function (_a) {
|
|
4295
4149
|
var column = _a.column, newValue = _a.newValue, prevValue = _a.prevValue;
|
|
4296
4150
|
var cols = this._internalColumns.map(function (c) {
|
|
4297
|
-
return
|
|
4151
|
+
return Object.assign({}, c);
|
|
4298
4152
|
});
|
|
4299
4153
|
if (this.swapColumns) {
|
|
4300
4154
|
var prevCol = cols[newValue];
|
|
@@ -4363,7 +4217,7 @@
|
|
|
4363
4217
|
this.selected = [];
|
|
4364
4218
|
// do the opposite here
|
|
4365
4219
|
if (!allSelected) {
|
|
4366
|
-
(_a = this.selected).push.apply(_a,
|
|
4220
|
+
(_a = this.selected).push.apply(_a, __spreadArray([], __read(this._internalRows.slice(first, last))));
|
|
4367
4221
|
}
|
|
4368
4222
|
}
|
|
4369
4223
|
else {
|
|
@@ -4373,7 +4227,7 @@
|
|
|
4373
4227
|
this.selected = [];
|
|
4374
4228
|
// do the opposite here
|
|
4375
4229
|
if (!allSelected) {
|
|
4376
|
-
(_b = this.selected).push.apply(_b,
|
|
4230
|
+
(_b = this.selected).push.apply(_b, __spreadArray([], __read(this.rows)));
|
|
4377
4231
|
}
|
|
4378
4232
|
}
|
|
4379
4233
|
this.select.emit({
|
|
@@ -4414,228 +4268,99 @@
|
|
|
4414
4268
|
DatatableComponent.prototype.sortInternalRows = function () {
|
|
4415
4269
|
this._internalRows = sortRows(this._internalRows, this._internalColumns, this.sorts);
|
|
4416
4270
|
};
|
|
4417
|
-
DatatableComponent.ctorParameters = function () { return [
|
|
4418
|
-
{ type: ScrollbarHelper, decorators: [{ type: core.SkipSelf }] },
|
|
4419
|
-
{ type: DimensionsHelper, decorators: [{ type: core.SkipSelf }] },
|
|
4420
|
-
{ type: core.ChangeDetectorRef },
|
|
4421
|
-
{ type: core.ElementRef },
|
|
4422
|
-
{ type: core.KeyValueDiffers },
|
|
4423
|
-
{ type: ColumnChangesService },
|
|
4424
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: ['configuration',] }] }
|
|
4425
|
-
]; };
|
|
4426
|
-
__decorate([
|
|
4427
|
-
core.Input()
|
|
4428
|
-
], DatatableComponent.prototype, "targetMarkerTemplate", void 0);
|
|
4429
|
-
__decorate([
|
|
4430
|
-
core.Input()
|
|
4431
|
-
], DatatableComponent.prototype, "rows", null);
|
|
4432
|
-
__decorate([
|
|
4433
|
-
core.Input()
|
|
4434
|
-
], DatatableComponent.prototype, "groupRowsBy", null);
|
|
4435
|
-
__decorate([
|
|
4436
|
-
core.Input()
|
|
4437
|
-
], DatatableComponent.prototype, "groupedRows", void 0);
|
|
4438
|
-
__decorate([
|
|
4439
|
-
core.Input()
|
|
4440
|
-
], DatatableComponent.prototype, "columns", null);
|
|
4441
|
-
__decorate([
|
|
4442
|
-
core.Input()
|
|
4443
|
-
], DatatableComponent.prototype, "selected", void 0);
|
|
4444
|
-
__decorate([
|
|
4445
|
-
core.Input()
|
|
4446
|
-
], DatatableComponent.prototype, "scrollbarV", void 0);
|
|
4447
|
-
__decorate([
|
|
4448
|
-
core.Input()
|
|
4449
|
-
], DatatableComponent.prototype, "scrollbarH", void 0);
|
|
4450
|
-
__decorate([
|
|
4451
|
-
core.Input()
|
|
4452
|
-
], DatatableComponent.prototype, "rowHeight", void 0);
|
|
4453
|
-
__decorate([
|
|
4454
|
-
core.Input()
|
|
4455
|
-
], DatatableComponent.prototype, "columnMode", void 0);
|
|
4456
|
-
__decorate([
|
|
4457
|
-
core.Input()
|
|
4458
|
-
], DatatableComponent.prototype, "headerHeight", void 0);
|
|
4459
|
-
__decorate([
|
|
4460
|
-
core.Input()
|
|
4461
|
-
], DatatableComponent.prototype, "footerHeight", void 0);
|
|
4462
|
-
__decorate([
|
|
4463
|
-
core.Input()
|
|
4464
|
-
], DatatableComponent.prototype, "externalPaging", void 0);
|
|
4465
|
-
__decorate([
|
|
4466
|
-
core.Input()
|
|
4467
|
-
], DatatableComponent.prototype, "externalSorting", void 0);
|
|
4468
|
-
__decorate([
|
|
4469
|
-
core.Input()
|
|
4470
|
-
], DatatableComponent.prototype, "limit", null);
|
|
4471
|
-
__decorate([
|
|
4472
|
-
core.Input()
|
|
4473
|
-
], DatatableComponent.prototype, "count", null);
|
|
4474
|
-
__decorate([
|
|
4475
|
-
core.Input()
|
|
4476
|
-
], DatatableComponent.prototype, "offset", null);
|
|
4477
|
-
__decorate([
|
|
4478
|
-
core.Input()
|
|
4479
|
-
], DatatableComponent.prototype, "loadingIndicator", void 0);
|
|
4480
|
-
__decorate([
|
|
4481
|
-
core.Input()
|
|
4482
|
-
], DatatableComponent.prototype, "selectionType", void 0);
|
|
4483
|
-
__decorate([
|
|
4484
|
-
core.Input()
|
|
4485
|
-
], DatatableComponent.prototype, "reorderable", void 0);
|
|
4486
|
-
__decorate([
|
|
4487
|
-
core.Input()
|
|
4488
|
-
], DatatableComponent.prototype, "swapColumns", void 0);
|
|
4489
|
-
__decorate([
|
|
4490
|
-
core.Input()
|
|
4491
|
-
], DatatableComponent.prototype, "sortType", void 0);
|
|
4492
|
-
__decorate([
|
|
4493
|
-
core.Input()
|
|
4494
|
-
], DatatableComponent.prototype, "sorts", void 0);
|
|
4495
|
-
__decorate([
|
|
4496
|
-
core.Input()
|
|
4497
|
-
], DatatableComponent.prototype, "cssClasses", void 0);
|
|
4498
|
-
__decorate([
|
|
4499
|
-
core.Input()
|
|
4500
|
-
], DatatableComponent.prototype, "messages", void 0);
|
|
4501
|
-
__decorate([
|
|
4502
|
-
core.Input()
|
|
4503
|
-
], DatatableComponent.prototype, "rowClass", void 0);
|
|
4504
|
-
__decorate([
|
|
4505
|
-
core.Input()
|
|
4506
|
-
], DatatableComponent.prototype, "selectCheck", void 0);
|
|
4507
|
-
__decorate([
|
|
4508
|
-
core.Input()
|
|
4509
|
-
], DatatableComponent.prototype, "displayCheck", void 0);
|
|
4510
|
-
__decorate([
|
|
4511
|
-
core.Input()
|
|
4512
|
-
], DatatableComponent.prototype, "groupExpansionDefault", void 0);
|
|
4513
|
-
__decorate([
|
|
4514
|
-
core.Input()
|
|
4515
|
-
], DatatableComponent.prototype, "trackByProp", void 0);
|
|
4516
|
-
__decorate([
|
|
4517
|
-
core.Input()
|
|
4518
|
-
], DatatableComponent.prototype, "selectAllRowsOnPage", void 0);
|
|
4519
|
-
__decorate([
|
|
4520
|
-
core.Input()
|
|
4521
|
-
], DatatableComponent.prototype, "virtualization", void 0);
|
|
4522
|
-
__decorate([
|
|
4523
|
-
core.Input()
|
|
4524
|
-
], DatatableComponent.prototype, "treeFromRelation", void 0);
|
|
4525
|
-
__decorate([
|
|
4526
|
-
core.Input()
|
|
4527
|
-
], DatatableComponent.prototype, "treeToRelation", void 0);
|
|
4528
|
-
__decorate([
|
|
4529
|
-
core.Input()
|
|
4530
|
-
], DatatableComponent.prototype, "summaryRow", void 0);
|
|
4531
|
-
__decorate([
|
|
4532
|
-
core.Input()
|
|
4533
|
-
], DatatableComponent.prototype, "summaryHeight", void 0);
|
|
4534
|
-
__decorate([
|
|
4535
|
-
core.Input()
|
|
4536
|
-
], DatatableComponent.prototype, "summaryPosition", void 0);
|
|
4537
|
-
__decorate([
|
|
4538
|
-
core.Output()
|
|
4539
|
-
], DatatableComponent.prototype, "scroll", void 0);
|
|
4540
|
-
__decorate([
|
|
4541
|
-
core.Output()
|
|
4542
|
-
], DatatableComponent.prototype, "activate", void 0);
|
|
4543
|
-
__decorate([
|
|
4544
|
-
core.Output()
|
|
4545
|
-
], DatatableComponent.prototype, "select", void 0);
|
|
4546
|
-
__decorate([
|
|
4547
|
-
core.Output()
|
|
4548
|
-
], DatatableComponent.prototype, "sort", void 0);
|
|
4549
|
-
__decorate([
|
|
4550
|
-
core.Output()
|
|
4551
|
-
], DatatableComponent.prototype, "page", void 0);
|
|
4552
|
-
__decorate([
|
|
4553
|
-
core.Output()
|
|
4554
|
-
], DatatableComponent.prototype, "reorder", void 0);
|
|
4555
|
-
__decorate([
|
|
4556
|
-
core.Output()
|
|
4557
|
-
], DatatableComponent.prototype, "resize", void 0);
|
|
4558
|
-
__decorate([
|
|
4559
|
-
core.Output()
|
|
4560
|
-
], DatatableComponent.prototype, "tableContextmenu", void 0);
|
|
4561
|
-
__decorate([
|
|
4562
|
-
core.Output()
|
|
4563
|
-
], DatatableComponent.prototype, "treeAction", void 0);
|
|
4564
|
-
__decorate([
|
|
4565
|
-
core.HostBinding('class.fixed-header')
|
|
4566
|
-
], DatatableComponent.prototype, "isFixedHeader", null);
|
|
4567
|
-
__decorate([
|
|
4568
|
-
core.HostBinding('class.fixed-row')
|
|
4569
|
-
], DatatableComponent.prototype, "isFixedRow", null);
|
|
4570
|
-
__decorate([
|
|
4571
|
-
core.HostBinding('class.scroll-vertical')
|
|
4572
|
-
], DatatableComponent.prototype, "isVertScroll", null);
|
|
4573
|
-
__decorate([
|
|
4574
|
-
core.HostBinding('class.virtualized')
|
|
4575
|
-
], DatatableComponent.prototype, "isVirtualized", null);
|
|
4576
|
-
__decorate([
|
|
4577
|
-
core.HostBinding('class.scroll-horz')
|
|
4578
|
-
], DatatableComponent.prototype, "isHorScroll", null);
|
|
4579
|
-
__decorate([
|
|
4580
|
-
core.HostBinding('class.selectable')
|
|
4581
|
-
], DatatableComponent.prototype, "isSelectable", null);
|
|
4582
|
-
__decorate([
|
|
4583
|
-
core.HostBinding('class.checkbox-selection')
|
|
4584
|
-
], DatatableComponent.prototype, "isCheckboxSelection", null);
|
|
4585
|
-
__decorate([
|
|
4586
|
-
core.HostBinding('class.cell-selection')
|
|
4587
|
-
], DatatableComponent.prototype, "isCellSelection", null);
|
|
4588
|
-
__decorate([
|
|
4589
|
-
core.HostBinding('class.single-selection')
|
|
4590
|
-
], DatatableComponent.prototype, "isSingleSelection", null);
|
|
4591
|
-
__decorate([
|
|
4592
|
-
core.HostBinding('class.multi-selection')
|
|
4593
|
-
], DatatableComponent.prototype, "isMultiSelection", null);
|
|
4594
|
-
__decorate([
|
|
4595
|
-
core.HostBinding('class.multi-click-selection')
|
|
4596
|
-
], DatatableComponent.prototype, "isMultiClickSelection", null);
|
|
4597
|
-
__decorate([
|
|
4598
|
-
core.ContentChildren(DataTableColumnDirective)
|
|
4599
|
-
], DatatableComponent.prototype, "columnTemplates", null);
|
|
4600
|
-
__decorate([
|
|
4601
|
-
core.ContentChild(DatatableRowDetailDirective)
|
|
4602
|
-
], DatatableComponent.prototype, "rowDetail", void 0);
|
|
4603
|
-
__decorate([
|
|
4604
|
-
core.ContentChild(DatatableGroupHeaderDirective)
|
|
4605
|
-
], DatatableComponent.prototype, "groupHeader", void 0);
|
|
4606
|
-
__decorate([
|
|
4607
|
-
core.ContentChild(DatatableFooterDirective)
|
|
4608
|
-
], DatatableComponent.prototype, "footer", void 0);
|
|
4609
|
-
__decorate([
|
|
4610
|
-
core.ViewChild(DataTableBodyComponent)
|
|
4611
|
-
], DatatableComponent.prototype, "bodyComponent", void 0);
|
|
4612
|
-
__decorate([
|
|
4613
|
-
core.ViewChild(DataTableHeaderComponent)
|
|
4614
|
-
], DatatableComponent.prototype, "headerComponent", void 0);
|
|
4615
|
-
__decorate([
|
|
4616
|
-
core.Input()
|
|
4617
|
-
], DatatableComponent.prototype, "rowIdentity", void 0);
|
|
4618
|
-
__decorate([
|
|
4619
|
-
core.HostListener('window:resize'),
|
|
4620
|
-
throttleable(5)
|
|
4621
|
-
], DatatableComponent.prototype, "onWindowResize", null);
|
|
4622
|
-
DatatableComponent = __decorate([
|
|
4623
|
-
core.Component({
|
|
4624
|
-
selector: 'ngx-datatable',
|
|
4625
|
-
template: "<div visibilityObserver (visible)=\"recalculate()\">\n <datatable-header\n *ngIf=\"headerHeight\"\n [sorts]=\"sorts\"\n [sortType]=\"sortType\"\n [scrollbarH]=\"scrollbarH\"\n [innerWidth]=\"_innerWidth\"\n [offsetX]=\"_offsetX | async\"\n [dealsWithGroup]=\"groupedRows !== undefined\"\n [columns]=\"_internalColumns\"\n [headerHeight]=\"headerHeight\"\n [reorderable]=\"reorderable\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [sortAscendingIcon]=\"cssClasses.sortAscending\"\n [sortDescendingIcon]=\"cssClasses.sortDescending\"\n [allRowsSelected]=\"allRowsSelected\"\n [selectionType]=\"selectionType\"\n (sort)=\"onColumnSort($event)\"\n (resize)=\"onColumnResize($event)\"\n (reorder)=\"onColumnReorder($event)\"\n (select)=\"onHeaderSelect($event)\"\n (columnContextmenu)=\"onColumnContextmenu($event)\"\n >\n </datatable-header>\n <datatable-body\n [groupRowsBy]=\"groupRowsBy\"\n [groupedRows]=\"groupedRows\"\n [rows]=\"_internalRows\"\n [groupExpansionDefault]=\"groupExpansionDefault\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [virtualization]=\"virtualization\"\n [loadingIndicator]=\"loadingIndicator\"\n [externalPaging]=\"externalPaging\"\n [rowHeight]=\"rowHeight\"\n [rowCount]=\"rowCount\"\n [offset]=\"offset\"\n [trackByProp]=\"trackByProp\"\n [columns]=\"_internalColumns\"\n [pageSize]=\"pageSize\"\n [offsetX]=\"_offsetX | async\"\n [rowDetail]=\"rowDetail\"\n [groupHeader]=\"groupHeader\"\n [selected]=\"selected\"\n [innerWidth]=\"_innerWidth\"\n [bodyHeight]=\"bodyHeight\"\n [selectionType]=\"selectionType\"\n [emptyMessage]=\"messages.emptyMessage\"\n [rowIdentity]=\"rowIdentity\"\n [rowClass]=\"rowClass\"\n [selectCheck]=\"selectCheck\"\n [displayCheck]=\"displayCheck\"\n [summaryRow]=\"summaryRow\"\n [summaryHeight]=\"summaryHeight\"\n [summaryPosition]=\"summaryPosition\"\n (page)=\"onBodyPage($event)\"\n (activate)=\"activate.emit($event)\"\n (rowContextmenu)=\"onRowContextmenu($event)\"\n (select)=\"onBodySelect($event)\"\n (scroll)=\"onBodyScroll($event)\"\n (treeAction)=\"onTreeAction($event)\"\n >\n </datatable-body>\n <datatable-footer\n *ngIf=\"footerHeight\"\n [rowCount]=\"rowCount\"\n [pageSize]=\"pageSize\"\n [offset]=\"offset\"\n [footerHeight]=\"footerHeight\"\n [footerTemplate]=\"footer\"\n [totalMessage]=\"messages.totalMessage\"\n [pagerLeftArrowIcon]=\"cssClasses.pagerLeftArrow\"\n [pagerRightArrowIcon]=\"cssClasses.pagerRightArrow\"\n [pagerPreviousIcon]=\"cssClasses.pagerPrevious\"\n [selectedCount]=\"selected.length\"\n [selectedMessage]=\"!!selectionType && messages.selectedMessage\"\n [pagerNextIcon]=\"cssClasses.pagerNext\"\n (page)=\"onFooterPage($event)\"\n >\n </datatable-footer>\n</div>\n",
|
|
4626
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
4627
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
4628
|
-
host: {
|
|
4629
|
-
class: 'ngx-datatable'
|
|
4630
|
-
},
|
|
4631
|
-
styles: [".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;transform:translate3d(0,0,0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{overflow-x:auto;-webkit-overflow-scrolling:touch}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{display:flex;flex-direction:row;-o-flex-flow:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{overflow-x:hidden;vertical-align:top;display:inline-block;line-height:1.625}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:0}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{align-items:stretch;-webkit-align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{position:relative;display:inline-block}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{line-height:100%;vertical-align:middle;display:inline-block;cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{display:inline-block;position:absolute;right:0;top:0;bottom:0;width:5px;padding:0 4px;visibility:hidden}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{position:absolute;top:0;bottom:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{position:relative;z-index:10;display:block}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:0}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;width:100%;overflow:auto}.ngx-datatable .datatable-footer .datatable-footer-inner{display:flex;align-items:center;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{padding:0;margin:0;display:inline-block;list-style:none}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:0}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}"]
|
|
4632
|
-
}),
|
|
4633
|
-
__param(0, core.SkipSelf()),
|
|
4634
|
-
__param(1, core.SkipSelf()),
|
|
4635
|
-
__param(6, core.Optional()), __param(6, core.Inject('configuration'))
|
|
4636
|
-
], DatatableComponent);
|
|
4637
4271
|
return DatatableComponent;
|
|
4638
4272
|
}());
|
|
4273
|
+
DatatableComponent.decorators = [
|
|
4274
|
+
{ type: core.Component, args: [{
|
|
4275
|
+
selector: 'ngx-datatable',
|
|
4276
|
+
template: "<div role=\"table\" visibilityObserver (visible)=\"recalculate()\">\n <datatable-header\n role=\"rowgroup\"\n *ngIf=\"headerHeight\"\n [sorts]=\"sorts\"\n [sortType]=\"sortType\"\n [scrollbarH]=\"scrollbarH\"\n [innerWidth]=\"_innerWidth\"\n [offsetX]=\"_offsetX | async\"\n [dealsWithGroup]=\"groupedRows !== undefined\"\n [columns]=\"_internalColumns\"\n [headerHeight]=\"headerHeight\"\n [reorderable]=\"reorderable\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [sortAscendingIcon]=\"cssClasses.sortAscending\"\n [sortDescendingIcon]=\"cssClasses.sortDescending\"\n [sortUnsetIcon]=\"cssClasses.sortUnset\"\n [allRowsSelected]=\"allRowsSelected\"\n [selectionType]=\"selectionType\"\n (sort)=\"onColumnSort($event)\"\n (resize)=\"onColumnResize($event)\"\n (reorder)=\"onColumnReorder($event)\"\n (select)=\"onHeaderSelect($event)\"\n (columnContextmenu)=\"onColumnContextmenu($event)\"\n >\n </datatable-header>\n <datatable-body\n role=\"rowgroup\"\n [groupRowsBy]=\"groupRowsBy\"\n [groupedRows]=\"groupedRows\"\n [rows]=\"_internalRows\"\n [groupExpansionDefault]=\"groupExpansionDefault\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [virtualization]=\"virtualization\"\n [loadingIndicator]=\"loadingIndicator\"\n [externalPaging]=\"externalPaging\"\n [rowHeight]=\"rowHeight\"\n [rowCount]=\"rowCount\"\n [offset]=\"offset\"\n [trackByProp]=\"trackByProp\"\n [columns]=\"_internalColumns\"\n [pageSize]=\"pageSize\"\n [offsetX]=\"_offsetX | async\"\n [rowDetail]=\"rowDetail\"\n [groupHeader]=\"groupHeader\"\n [selected]=\"selected\"\n [innerWidth]=\"_innerWidth\"\n [bodyHeight]=\"bodyHeight\"\n [selectionType]=\"selectionType\"\n [emptyMessage]=\"messages.emptyMessage\"\n [rowIdentity]=\"rowIdentity\"\n [rowClass]=\"rowClass\"\n [selectCheck]=\"selectCheck\"\n [displayCheck]=\"displayCheck\"\n [summaryRow]=\"summaryRow\"\n [summaryHeight]=\"summaryHeight\"\n [summaryPosition]=\"summaryPosition\"\n (page)=\"onBodyPage($event)\"\n (activate)=\"activate.emit($event)\"\n (rowContextmenu)=\"onRowContextmenu($event)\"\n (select)=\"onBodySelect($event)\"\n (scroll)=\"onBodyScroll($event)\"\n (treeAction)=\"onTreeAction($event)\"\n >\n </datatable-body>\n <datatable-footer\n *ngIf=\"footerHeight\"\n [rowCount]=\"rowCount\"\n [pageSize]=\"pageSize\"\n [offset]=\"offset\"\n [footerHeight]=\"footerHeight\"\n [footerTemplate]=\"footer\"\n [totalMessage]=\"messages.totalMessage\"\n [pagerLeftArrowIcon]=\"cssClasses.pagerLeftArrow\"\n [pagerRightArrowIcon]=\"cssClasses.pagerRightArrow\"\n [pagerPreviousIcon]=\"cssClasses.pagerPrevious\"\n [selectedCount]=\"selected.length\"\n [selectedMessage]=\"!!selectionType && messages.selectedMessage\"\n [pagerNextIcon]=\"cssClasses.pagerNext\"\n (page)=\"onFooterPage($event)\"\n >\n </datatable-footer>\n</div>\n",
|
|
4277
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
4278
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
4279
|
+
host: {
|
|
4280
|
+
class: 'ngx-datatable'
|
|
4281
|
+
},
|
|
4282
|
+
styles: [".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;transform:translateZ(0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{overflow-x:auto;-webkit-overflow-scrolling:touch}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{display:flex;flex-direction:row;-o-flex-flow:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{overflow-x:hidden;vertical-align:top;display:inline-block;line-height:1.625}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:none}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{align-items:stretch;-webkit-align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{position:relative;display:inline-block}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{line-height:100%;vertical-align:middle;display:inline-block;cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{display:inline-block;position:absolute;right:0;top:0;bottom:0;width:5px;padding:0 4px;visibility:hidden}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{position:absolute;top:0;bottom:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{position:relative;z-index:10;display:block}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:none}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;width:100%;overflow:auto}.ngx-datatable .datatable-footer .datatable-footer-inner{display:flex;align-items:center;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{padding:0;margin:0;display:inline-block;list-style:none}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:none}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}"]
|
|
4283
|
+
},] }
|
|
4284
|
+
];
|
|
4285
|
+
DatatableComponent.ctorParameters = function () { return [
|
|
4286
|
+
{ type: ScrollbarHelper, decorators: [{ type: core.SkipSelf }] },
|
|
4287
|
+
{ type: DimensionsHelper, decorators: [{ type: core.SkipSelf }] },
|
|
4288
|
+
{ type: core.ChangeDetectorRef },
|
|
4289
|
+
{ type: core.ElementRef },
|
|
4290
|
+
{ type: core.KeyValueDiffers },
|
|
4291
|
+
{ type: ColumnChangesService },
|
|
4292
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: ['configuration',] }] }
|
|
4293
|
+
]; };
|
|
4294
|
+
DatatableComponent.propDecorators = {
|
|
4295
|
+
targetMarkerTemplate: [{ type: core.Input }],
|
|
4296
|
+
rows: [{ type: core.Input }],
|
|
4297
|
+
groupRowsBy: [{ type: core.Input }],
|
|
4298
|
+
groupedRows: [{ type: core.Input }],
|
|
4299
|
+
columns: [{ type: core.Input }],
|
|
4300
|
+
selected: [{ type: core.Input }],
|
|
4301
|
+
scrollbarV: [{ type: core.Input }],
|
|
4302
|
+
scrollbarH: [{ type: core.Input }],
|
|
4303
|
+
rowHeight: [{ type: core.Input }],
|
|
4304
|
+
columnMode: [{ type: core.Input }],
|
|
4305
|
+
headerHeight: [{ type: core.Input }],
|
|
4306
|
+
footerHeight: [{ type: core.Input }],
|
|
4307
|
+
externalPaging: [{ type: core.Input }],
|
|
4308
|
+
externalSorting: [{ type: core.Input }],
|
|
4309
|
+
limit: [{ type: core.Input }],
|
|
4310
|
+
count: [{ type: core.Input }],
|
|
4311
|
+
offset: [{ type: core.Input }],
|
|
4312
|
+
loadingIndicator: [{ type: core.Input }],
|
|
4313
|
+
selectionType: [{ type: core.Input }],
|
|
4314
|
+
reorderable: [{ type: core.Input }],
|
|
4315
|
+
swapColumns: [{ type: core.Input }],
|
|
4316
|
+
sortType: [{ type: core.Input }],
|
|
4317
|
+
sorts: [{ type: core.Input }],
|
|
4318
|
+
cssClasses: [{ type: core.Input }],
|
|
4319
|
+
messages: [{ type: core.Input }],
|
|
4320
|
+
rowClass: [{ type: core.Input }],
|
|
4321
|
+
selectCheck: [{ type: core.Input }],
|
|
4322
|
+
displayCheck: [{ type: core.Input }],
|
|
4323
|
+
groupExpansionDefault: [{ type: core.Input }],
|
|
4324
|
+
trackByProp: [{ type: core.Input }],
|
|
4325
|
+
selectAllRowsOnPage: [{ type: core.Input }],
|
|
4326
|
+
virtualization: [{ type: core.Input }],
|
|
4327
|
+
treeFromRelation: [{ type: core.Input }],
|
|
4328
|
+
treeToRelation: [{ type: core.Input }],
|
|
4329
|
+
summaryRow: [{ type: core.Input }],
|
|
4330
|
+
summaryHeight: [{ type: core.Input }],
|
|
4331
|
+
summaryPosition: [{ type: core.Input }],
|
|
4332
|
+
scroll: [{ type: core.Output }],
|
|
4333
|
+
activate: [{ type: core.Output }],
|
|
4334
|
+
select: [{ type: core.Output }],
|
|
4335
|
+
sort: [{ type: core.Output }],
|
|
4336
|
+
page: [{ type: core.Output }],
|
|
4337
|
+
reorder: [{ type: core.Output }],
|
|
4338
|
+
resize: [{ type: core.Output }],
|
|
4339
|
+
tableContextmenu: [{ type: core.Output }],
|
|
4340
|
+
treeAction: [{ type: core.Output }],
|
|
4341
|
+
isFixedHeader: [{ type: core.HostBinding, args: ['class.fixed-header',] }],
|
|
4342
|
+
isFixedRow: [{ type: core.HostBinding, args: ['class.fixed-row',] }],
|
|
4343
|
+
isVertScroll: [{ type: core.HostBinding, args: ['class.scroll-vertical',] }],
|
|
4344
|
+
isVirtualized: [{ type: core.HostBinding, args: ['class.virtualized',] }],
|
|
4345
|
+
isHorScroll: [{ type: core.HostBinding, args: ['class.scroll-horz',] }],
|
|
4346
|
+
isSelectable: [{ type: core.HostBinding, args: ['class.selectable',] }],
|
|
4347
|
+
isCheckboxSelection: [{ type: core.HostBinding, args: ['class.checkbox-selection',] }],
|
|
4348
|
+
isCellSelection: [{ type: core.HostBinding, args: ['class.cell-selection',] }],
|
|
4349
|
+
isSingleSelection: [{ type: core.HostBinding, args: ['class.single-selection',] }],
|
|
4350
|
+
isMultiSelection: [{ type: core.HostBinding, args: ['class.multi-selection',] }],
|
|
4351
|
+
isMultiClickSelection: [{ type: core.HostBinding, args: ['class.multi-click-selection',] }],
|
|
4352
|
+
columnTemplates: [{ type: core.ContentChildren, args: [DataTableColumnDirective,] }],
|
|
4353
|
+
rowDetail: [{ type: core.ContentChild, args: [DatatableRowDetailDirective,] }],
|
|
4354
|
+
groupHeader: [{ type: core.ContentChild, args: [DatatableGroupHeaderDirective,] }],
|
|
4355
|
+
footer: [{ type: core.ContentChild, args: [DatatableFooterDirective,] }],
|
|
4356
|
+
bodyComponent: [{ type: core.ViewChild, args: [DataTableBodyComponent,] }],
|
|
4357
|
+
headerComponent: [{ type: core.ViewChild, args: [DataTableHeaderComponent,] }],
|
|
4358
|
+
rowIdentity: [{ type: core.Input }],
|
|
4359
|
+
onWindowResize: [{ type: core.HostListener, args: ['window:resize',] }]
|
|
4360
|
+
};
|
|
4361
|
+
__decorate([
|
|
4362
|
+
throttleable(5)
|
|
4363
|
+
], DatatableComponent.prototype, "onWindowResize", null);
|
|
4639
4364
|
|
|
4640
4365
|
var DataTableHeaderCellComponent = /** @class */ (function () {
|
|
4641
4366
|
function DataTableHeaderCellComponent(cd) {
|
|
@@ -4661,7 +4386,7 @@
|
|
|
4661
4386
|
this._allRowsSelected = value;
|
|
4662
4387
|
this.cellContext.allRowsSelected = value;
|
|
4663
4388
|
},
|
|
4664
|
-
enumerable:
|
|
4389
|
+
enumerable: false,
|
|
4665
4390
|
configurable: true
|
|
4666
4391
|
});
|
|
4667
4392
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "column", {
|
|
@@ -4673,7 +4398,7 @@
|
|
|
4673
4398
|
this.cellContext.column = column;
|
|
4674
4399
|
this.cd.markForCheck();
|
|
4675
4400
|
},
|
|
4676
|
-
enumerable:
|
|
4401
|
+
enumerable: false,
|
|
4677
4402
|
configurable: true
|
|
4678
4403
|
});
|
|
4679
4404
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "sorts", {
|
|
@@ -4687,7 +4412,7 @@
|
|
|
4687
4412
|
this.sortClass = this.calcSortClass(this.sortDir);
|
|
4688
4413
|
this.cd.markForCheck();
|
|
4689
4414
|
},
|
|
4690
|
-
enumerable:
|
|
4415
|
+
enumerable: false,
|
|
4691
4416
|
configurable: true
|
|
4692
4417
|
});
|
|
4693
4418
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "columnCssClasses", {
|
|
@@ -4734,7 +4459,7 @@
|
|
|
4734
4459
|
}
|
|
4735
4460
|
return cls;
|
|
4736
4461
|
},
|
|
4737
|
-
enumerable:
|
|
4462
|
+
enumerable: false,
|
|
4738
4463
|
configurable: true
|
|
4739
4464
|
});
|
|
4740
4465
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "name", {
|
|
@@ -4742,40 +4467,43 @@
|
|
|
4742
4467
|
// guaranteed to have a value by setColumnDefaults() in column-helper.ts
|
|
4743
4468
|
return this.column.headerTemplate === undefined ? this.column.name : undefined;
|
|
4744
4469
|
},
|
|
4745
|
-
enumerable:
|
|
4470
|
+
enumerable: false,
|
|
4746
4471
|
configurable: true
|
|
4747
4472
|
});
|
|
4748
4473
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "minWidth", {
|
|
4749
4474
|
get: function () {
|
|
4750
4475
|
return this.column.minWidth;
|
|
4751
4476
|
},
|
|
4752
|
-
enumerable:
|
|
4477
|
+
enumerable: false,
|
|
4753
4478
|
configurable: true
|
|
4754
4479
|
});
|
|
4755
4480
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "maxWidth", {
|
|
4756
4481
|
get: function () {
|
|
4757
4482
|
return this.column.maxWidth;
|
|
4758
4483
|
},
|
|
4759
|
-
enumerable:
|
|
4484
|
+
enumerable: false,
|
|
4760
4485
|
configurable: true
|
|
4761
4486
|
});
|
|
4762
4487
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "width", {
|
|
4763
4488
|
get: function () {
|
|
4764
4489
|
return this.column.width;
|
|
4765
4490
|
},
|
|
4766
|
-
enumerable:
|
|
4491
|
+
enumerable: false,
|
|
4767
4492
|
configurable: true
|
|
4768
4493
|
});
|
|
4769
4494
|
Object.defineProperty(DataTableHeaderCellComponent.prototype, "isCheckboxable", {
|
|
4770
4495
|
get: function () {
|
|
4771
4496
|
return this.column.checkboxable && this.column.headerCheckboxable && this.selectionType === exports.SelectionType.checkbox;
|
|
4772
4497
|
},
|
|
4773
|
-
enumerable:
|
|
4498
|
+
enumerable: false,
|
|
4774
4499
|
configurable: true
|
|
4775
4500
|
});
|
|
4776
4501
|
DataTableHeaderCellComponent.prototype.onContextmenu = function ($event) {
|
|
4777
4502
|
this.columnContextmenu.emit({ event: $event, column: this.column });
|
|
4778
4503
|
};
|
|
4504
|
+
DataTableHeaderCellComponent.prototype.ngOnInit = function () {
|
|
4505
|
+
this.sortClass = this.calcSortClass(this.sortDir);
|
|
4506
|
+
};
|
|
4779
4507
|
DataTableHeaderCellComponent.prototype.calcSortDir = function (sorts) {
|
|
4780
4508
|
var _this = this;
|
|
4781
4509
|
if (sorts && this.column) {
|
|
@@ -4797,6 +4525,8 @@
|
|
|
4797
4525
|
});
|
|
4798
4526
|
};
|
|
4799
4527
|
DataTableHeaderCellComponent.prototype.calcSortClass = function (sortDir) {
|
|
4528
|
+
if (!this.cellContext.column.sortable)
|
|
4529
|
+
return;
|
|
4800
4530
|
if (sortDir === exports.SortDirection.asc) {
|
|
4801
4531
|
return "sort-btn sort-asc " + this.sortAscendingIcon;
|
|
4802
4532
|
}
|
|
@@ -4804,85 +4534,47 @@
|
|
|
4804
4534
|
return "sort-btn sort-desc " + this.sortDescendingIcon;
|
|
4805
4535
|
}
|
|
4806
4536
|
else {
|
|
4807
|
-
return "sort-btn";
|
|
4808
|
-
}
|
|
4809
|
-
};
|
|
4810
|
-
DataTableHeaderCellComponent.ctorParameters = function () { return [
|
|
4811
|
-
{ type: core.ChangeDetectorRef }
|
|
4812
|
-
]; };
|
|
4813
|
-
__decorate([
|
|
4814
|
-
core.Input()
|
|
4815
|
-
], DataTableHeaderCellComponent.prototype, "sortType", void 0);
|
|
4816
|
-
__decorate([
|
|
4817
|
-
core.Input()
|
|
4818
|
-
], DataTableHeaderCellComponent.prototype, "sortAscendingIcon", void 0);
|
|
4819
|
-
__decorate([
|
|
4820
|
-
core.Input()
|
|
4821
|
-
], DataTableHeaderCellComponent.prototype, "sortDescendingIcon", void 0);
|
|
4822
|
-
__decorate([
|
|
4823
|
-
core.Input()
|
|
4824
|
-
], DataTableHeaderCellComponent.prototype, "isTarget", void 0);
|
|
4825
|
-
__decorate([
|
|
4826
|
-
core.Input()
|
|
4827
|
-
], DataTableHeaderCellComponent.prototype, "targetMarkerTemplate", void 0);
|
|
4828
|
-
__decorate([
|
|
4829
|
-
core.Input()
|
|
4830
|
-
], DataTableHeaderCellComponent.prototype, "targetMarkerContext", void 0);
|
|
4831
|
-
__decorate([
|
|
4832
|
-
core.Input()
|
|
4833
|
-
], DataTableHeaderCellComponent.prototype, "allRowsSelected", null);
|
|
4834
|
-
__decorate([
|
|
4835
|
-
core.Input()
|
|
4836
|
-
], DataTableHeaderCellComponent.prototype, "selectionType", void 0);
|
|
4837
|
-
__decorate([
|
|
4838
|
-
core.Input()
|
|
4839
|
-
], DataTableHeaderCellComponent.prototype, "column", null);
|
|
4840
|
-
__decorate([
|
|
4841
|
-
core.HostBinding('style.height.px'),
|
|
4842
|
-
core.Input()
|
|
4843
|
-
], DataTableHeaderCellComponent.prototype, "headerHeight", void 0);
|
|
4844
|
-
__decorate([
|
|
4845
|
-
core.Input()
|
|
4846
|
-
], DataTableHeaderCellComponent.prototype, "sorts", null);
|
|
4847
|
-
__decorate([
|
|
4848
|
-
core.Output()
|
|
4849
|
-
], DataTableHeaderCellComponent.prototype, "sort", void 0);
|
|
4850
|
-
__decorate([
|
|
4851
|
-
core.Output()
|
|
4852
|
-
], DataTableHeaderCellComponent.prototype, "select", void 0);
|
|
4853
|
-
__decorate([
|
|
4854
|
-
core.Output()
|
|
4855
|
-
], DataTableHeaderCellComponent.prototype, "columnContextmenu", void 0);
|
|
4856
|
-
__decorate([
|
|
4857
|
-
core.HostBinding('class')
|
|
4858
|
-
], DataTableHeaderCellComponent.prototype, "columnCssClasses", null);
|
|
4859
|
-
__decorate([
|
|
4860
|
-
core.HostBinding('attr.title')
|
|
4861
|
-
], DataTableHeaderCellComponent.prototype, "name", null);
|
|
4862
|
-
__decorate([
|
|
4863
|
-
core.HostBinding('style.minWidth.px')
|
|
4864
|
-
], DataTableHeaderCellComponent.prototype, "minWidth", null);
|
|
4865
|
-
__decorate([
|
|
4866
|
-
core.HostBinding('style.maxWidth.px')
|
|
4867
|
-
], DataTableHeaderCellComponent.prototype, "maxWidth", null);
|
|
4868
|
-
__decorate([
|
|
4869
|
-
core.HostBinding('style.width.px')
|
|
4870
|
-
], DataTableHeaderCellComponent.prototype, "width", null);
|
|
4871
|
-
__decorate([
|
|
4872
|
-
core.HostListener('contextmenu', ['$event'])
|
|
4873
|
-
], DataTableHeaderCellComponent.prototype, "onContextmenu", null);
|
|
4874
|
-
DataTableHeaderCellComponent = __decorate([
|
|
4875
|
-
core.Component({
|
|
4876
|
-
selector: 'datatable-header-cell',
|
|
4877
|
-
template: "\n <div class=\"datatable-header-cell-template-wrap\">\n <ng-template\n *ngIf=\"isTarget\"\n [ngTemplateOutlet]=\"targetMarkerTemplate\"\n [ngTemplateOutletContext]=\"targetMarkerContext\"\n >\n </ng-template>\n <label *ngIf=\"isCheckboxable\" class=\"datatable-checkbox\">\n <input type=\"checkbox\" [checked]=\"allRowsSelected\" (change)=\"select.emit(!allRowsSelected)\" />\n </label>\n <span *ngIf=\"!column.headerTemplate\" class=\"datatable-header-cell-wrapper\">\n <span class=\"datatable-header-cell-label draggable\" (click)=\"onSort()\" [innerHTML]=\"name\"> </span>\n </span>\n <ng-template\n *ngIf=\"column.headerTemplate\"\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"cellContext\"\n >\n </ng-template>\n <span (click)=\"onSort()\" [class]=\"sortClass\"> </span>\n </div>\n ",
|
|
4878
|
-
host: {
|
|
4879
|
-
class: 'datatable-header-cell'
|
|
4880
|
-
},
|
|
4881
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
4882
|
-
})
|
|
4883
|
-
], DataTableHeaderCellComponent);
|
|
4537
|
+
return "sort-btn " + this.sortUnsetIcon;
|
|
4538
|
+
}
|
|
4539
|
+
};
|
|
4884
4540
|
return DataTableHeaderCellComponent;
|
|
4885
4541
|
}());
|
|
4542
|
+
DataTableHeaderCellComponent.decorators = [
|
|
4543
|
+
{ type: core.Component, args: [{
|
|
4544
|
+
selector: 'datatable-header-cell',
|
|
4545
|
+
template: "\n <div class=\"datatable-header-cell-template-wrap\">\n <ng-template\n *ngIf=\"isTarget\"\n [ngTemplateOutlet]=\"targetMarkerTemplate\"\n [ngTemplateOutletContext]=\"targetMarkerContext\"\n >\n </ng-template>\n <label *ngIf=\"isCheckboxable\" class=\"datatable-checkbox\">\n <input type=\"checkbox\" [checked]=\"allRowsSelected\" (change)=\"select.emit(!allRowsSelected)\" />\n </label>\n <span *ngIf=\"!column.headerTemplate\" class=\"datatable-header-cell-wrapper\">\n <span class=\"datatable-header-cell-label draggable\" (click)=\"onSort()\" [innerHTML]=\"name\"> </span>\n </span>\n <ng-template\n *ngIf=\"column.headerTemplate\"\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"cellContext\"\n >\n </ng-template>\n <span (click)=\"onSort()\" [class]=\"sortClass\"> </span>\n </div>\n ",
|
|
4546
|
+
host: {
|
|
4547
|
+
class: 'datatable-header-cell'
|
|
4548
|
+
},
|
|
4549
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
4550
|
+
},] }
|
|
4551
|
+
];
|
|
4552
|
+
DataTableHeaderCellComponent.ctorParameters = function () { return [
|
|
4553
|
+
{ type: core.ChangeDetectorRef }
|
|
4554
|
+
]; };
|
|
4555
|
+
DataTableHeaderCellComponent.propDecorators = {
|
|
4556
|
+
sortType: [{ type: core.Input }],
|
|
4557
|
+
sortAscendingIcon: [{ type: core.Input }],
|
|
4558
|
+
sortDescendingIcon: [{ type: core.Input }],
|
|
4559
|
+
sortUnsetIcon: [{ type: core.Input }],
|
|
4560
|
+
isTarget: [{ type: core.Input }],
|
|
4561
|
+
targetMarkerTemplate: [{ type: core.Input }],
|
|
4562
|
+
targetMarkerContext: [{ type: core.Input }],
|
|
4563
|
+
allRowsSelected: [{ type: core.Input }],
|
|
4564
|
+
selectionType: [{ type: core.Input }],
|
|
4565
|
+
column: [{ type: core.Input }],
|
|
4566
|
+
headerHeight: [{ type: core.HostBinding, args: ['style.height.px',] }, { type: core.Input }],
|
|
4567
|
+
sorts: [{ type: core.Input }],
|
|
4568
|
+
sort: [{ type: core.Output }],
|
|
4569
|
+
select: [{ type: core.Output }],
|
|
4570
|
+
columnContextmenu: [{ type: core.Output }],
|
|
4571
|
+
columnCssClasses: [{ type: core.HostBinding, args: ['class',] }],
|
|
4572
|
+
name: [{ type: core.HostBinding, args: ['attr.title',] }],
|
|
4573
|
+
minWidth: [{ type: core.HostBinding, args: ['style.minWidth.px',] }],
|
|
4574
|
+
maxWidth: [{ type: core.HostBinding, args: ['style.maxWidth.px',] }],
|
|
4575
|
+
width: [{ type: core.HostBinding, args: ['style.width.px',] }],
|
|
4576
|
+
onContextmenu: [{ type: core.HostListener, args: ['contextmenu', ['$event'],] }]
|
|
4577
|
+
};
|
|
4886
4578
|
|
|
4887
4579
|
var DataTableFooterComponent = /** @class */ (function () {
|
|
4888
4580
|
function DataTableFooterComponent() {
|
|
@@ -4893,67 +4585,43 @@
|
|
|
4893
4585
|
get: function () {
|
|
4894
4586
|
return this.rowCount / this.pageSize > 1;
|
|
4895
4587
|
},
|
|
4896
|
-
enumerable:
|
|
4588
|
+
enumerable: false,
|
|
4897
4589
|
configurable: true
|
|
4898
4590
|
});
|
|
4899
4591
|
Object.defineProperty(DataTableFooterComponent.prototype, "curPage", {
|
|
4900
4592
|
get: function () {
|
|
4901
4593
|
return this.offset + 1;
|
|
4902
4594
|
},
|
|
4903
|
-
enumerable:
|
|
4595
|
+
enumerable: false,
|
|
4904
4596
|
configurable: true
|
|
4905
4597
|
});
|
|
4906
|
-
__decorate([
|
|
4907
|
-
core.Input()
|
|
4908
|
-
], DataTableFooterComponent.prototype, "footerHeight", void 0);
|
|
4909
|
-
__decorate([
|
|
4910
|
-
core.Input()
|
|
4911
|
-
], DataTableFooterComponent.prototype, "rowCount", void 0);
|
|
4912
|
-
__decorate([
|
|
4913
|
-
core.Input()
|
|
4914
|
-
], DataTableFooterComponent.prototype, "pageSize", void 0);
|
|
4915
|
-
__decorate([
|
|
4916
|
-
core.Input()
|
|
4917
|
-
], DataTableFooterComponent.prototype, "offset", void 0);
|
|
4918
|
-
__decorate([
|
|
4919
|
-
core.Input()
|
|
4920
|
-
], DataTableFooterComponent.prototype, "pagerLeftArrowIcon", void 0);
|
|
4921
|
-
__decorate([
|
|
4922
|
-
core.Input()
|
|
4923
|
-
], DataTableFooterComponent.prototype, "pagerRightArrowIcon", void 0);
|
|
4924
|
-
__decorate([
|
|
4925
|
-
core.Input()
|
|
4926
|
-
], DataTableFooterComponent.prototype, "pagerPreviousIcon", void 0);
|
|
4927
|
-
__decorate([
|
|
4928
|
-
core.Input()
|
|
4929
|
-
], DataTableFooterComponent.prototype, "pagerNextIcon", void 0);
|
|
4930
|
-
__decorate([
|
|
4931
|
-
core.Input()
|
|
4932
|
-
], DataTableFooterComponent.prototype, "totalMessage", void 0);
|
|
4933
|
-
__decorate([
|
|
4934
|
-
core.Input()
|
|
4935
|
-
], DataTableFooterComponent.prototype, "footerTemplate", void 0);
|
|
4936
|
-
__decorate([
|
|
4937
|
-
core.Input()
|
|
4938
|
-
], DataTableFooterComponent.prototype, "selectedCount", void 0);
|
|
4939
|
-
__decorate([
|
|
4940
|
-
core.Input()
|
|
4941
|
-
], DataTableFooterComponent.prototype, "selectedMessage", void 0);
|
|
4942
|
-
__decorate([
|
|
4943
|
-
core.Output()
|
|
4944
|
-
], DataTableFooterComponent.prototype, "page", void 0);
|
|
4945
|
-
DataTableFooterComponent = __decorate([
|
|
4946
|
-
core.Component({
|
|
4947
|
-
selector: 'datatable-footer',
|
|
4948
|
-
template: "\n <div\n class=\"datatable-footer-inner\"\n [ngClass]=\"{ 'selected-count': selectedMessage }\"\n [style.height.px]=\"footerHeight\"\n >\n <ng-template\n *ngIf=\"footerTemplate\"\n [ngTemplateOutlet]=\"footerTemplate.template\"\n [ngTemplateOutletContext]=\"{\n rowCount: rowCount,\n pageSize: pageSize,\n selectedCount: selectedCount,\n curPage: curPage,\n offset: offset\n }\"\n >\n </ng-template>\n <div class=\"page-count\" *ngIf=\"!footerTemplate\">\n <span *ngIf=\"selectedMessage\"> {{ selectedCount?.toLocaleString() }} {{ selectedMessage }} / </span>\n {{ rowCount?.toLocaleString() }} {{ totalMessage }}\n </div>\n <datatable-pager\n *ngIf=\"!footerTemplate\"\n [pagerLeftArrowIcon]=\"pagerLeftArrowIcon\"\n [pagerRightArrowIcon]=\"pagerRightArrowIcon\"\n [pagerPreviousIcon]=\"pagerPreviousIcon\"\n [pagerNextIcon]=\"pagerNextIcon\"\n [page]=\"curPage\"\n [size]=\"pageSize\"\n [count]=\"rowCount\"\n [hidden]=\"!isVisible\"\n (change)=\"page.emit($event)\"\n >\n </datatable-pager>\n </div>\n ",
|
|
4949
|
-
host: {
|
|
4950
|
-
class: 'datatable-footer'
|
|
4951
|
-
},
|
|
4952
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
4953
|
-
})
|
|
4954
|
-
], DataTableFooterComponent);
|
|
4955
4598
|
return DataTableFooterComponent;
|
|
4956
4599
|
}());
|
|
4600
|
+
DataTableFooterComponent.decorators = [
|
|
4601
|
+
{ type: core.Component, args: [{
|
|
4602
|
+
selector: 'datatable-footer',
|
|
4603
|
+
template: "\n <div\n class=\"datatable-footer-inner\"\n [ngClass]=\"{ 'selected-count': selectedMessage }\"\n [style.height.px]=\"footerHeight\"\n >\n <ng-template\n *ngIf=\"footerTemplate\"\n [ngTemplateOutlet]=\"footerTemplate.template\"\n [ngTemplateOutletContext]=\"{\n rowCount: rowCount,\n pageSize: pageSize,\n selectedCount: selectedCount,\n curPage: curPage,\n offset: offset\n }\"\n >\n </ng-template>\n <div class=\"page-count\" *ngIf=\"!footerTemplate\">\n <span *ngIf=\"selectedMessage\"> {{ selectedCount?.toLocaleString() }} {{ selectedMessage }} / </span>\n {{ rowCount?.toLocaleString() }} {{ totalMessage }}\n </div>\n <datatable-pager\n *ngIf=\"!footerTemplate\"\n [pagerLeftArrowIcon]=\"pagerLeftArrowIcon\"\n [pagerRightArrowIcon]=\"pagerRightArrowIcon\"\n [pagerPreviousIcon]=\"pagerPreviousIcon\"\n [pagerNextIcon]=\"pagerNextIcon\"\n [page]=\"curPage\"\n [size]=\"pageSize\"\n [count]=\"rowCount\"\n [hidden]=\"!isVisible\"\n (change)=\"page.emit($event)\"\n >\n </datatable-pager>\n </div>\n ",
|
|
4604
|
+
host: {
|
|
4605
|
+
class: 'datatable-footer'
|
|
4606
|
+
},
|
|
4607
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
4608
|
+
},] }
|
|
4609
|
+
];
|
|
4610
|
+
DataTableFooterComponent.propDecorators = {
|
|
4611
|
+
footerHeight: [{ type: core.Input }],
|
|
4612
|
+
rowCount: [{ type: core.Input }],
|
|
4613
|
+
pageSize: [{ type: core.Input }],
|
|
4614
|
+
offset: [{ type: core.Input }],
|
|
4615
|
+
pagerLeftArrowIcon: [{ type: core.Input }],
|
|
4616
|
+
pagerRightArrowIcon: [{ type: core.Input }],
|
|
4617
|
+
pagerPreviousIcon: [{ type: core.Input }],
|
|
4618
|
+
pagerNextIcon: [{ type: core.Input }],
|
|
4619
|
+
totalMessage: [{ type: core.Input }],
|
|
4620
|
+
footerTemplate: [{ type: core.Input }],
|
|
4621
|
+
selectedCount: [{ type: core.Input }],
|
|
4622
|
+
selectedMessage: [{ type: core.Input }],
|
|
4623
|
+
page: [{ type: core.Output }]
|
|
4624
|
+
};
|
|
4957
4625
|
|
|
4958
4626
|
var DataTablePagerComponent = /** @class */ (function () {
|
|
4959
4627
|
function DataTablePagerComponent() {
|
|
@@ -4970,7 +4638,7 @@
|
|
|
4970
4638
|
this._size = val;
|
|
4971
4639
|
this.pages = this.calcPages();
|
|
4972
4640
|
},
|
|
4973
|
-
enumerable:
|
|
4641
|
+
enumerable: false,
|
|
4974
4642
|
configurable: true
|
|
4975
4643
|
});
|
|
4976
4644
|
Object.defineProperty(DataTablePagerComponent.prototype, "count", {
|
|
@@ -4981,7 +4649,7 @@
|
|
|
4981
4649
|
this._count = val;
|
|
4982
4650
|
this.pages = this.calcPages();
|
|
4983
4651
|
},
|
|
4984
|
-
enumerable:
|
|
4652
|
+
enumerable: false,
|
|
4985
4653
|
configurable: true
|
|
4986
4654
|
});
|
|
4987
4655
|
Object.defineProperty(DataTablePagerComponent.prototype, "page", {
|
|
@@ -4992,7 +4660,7 @@
|
|
|
4992
4660
|
this._page = val;
|
|
4993
4661
|
this.pages = this.calcPages();
|
|
4994
4662
|
},
|
|
4995
|
-
enumerable:
|
|
4663
|
+
enumerable: false,
|
|
4996
4664
|
configurable: true
|
|
4997
4665
|
});
|
|
4998
4666
|
Object.defineProperty(DataTablePagerComponent.prototype, "totalPages", {
|
|
@@ -5000,7 +4668,7 @@
|
|
|
5000
4668
|
var count = this.size < 1 ? 1 : Math.ceil(this.count / this.size);
|
|
5001
4669
|
return Math.max(count || 0, 1);
|
|
5002
4670
|
},
|
|
5003
|
-
enumerable:
|
|
4671
|
+
enumerable: false,
|
|
5004
4672
|
configurable: true
|
|
5005
4673
|
});
|
|
5006
4674
|
DataTablePagerComponent.prototype.canPrevious = function () {
|
|
@@ -5050,57 +4718,43 @@
|
|
|
5050
4718
|
}
|
|
5051
4719
|
return pages;
|
|
5052
4720
|
};
|
|
5053
|
-
__decorate([
|
|
5054
|
-
core.Input()
|
|
5055
|
-
], DataTablePagerComponent.prototype, "pagerLeftArrowIcon", void 0);
|
|
5056
|
-
__decorate([
|
|
5057
|
-
core.Input()
|
|
5058
|
-
], DataTablePagerComponent.prototype, "pagerRightArrowIcon", void 0);
|
|
5059
|
-
__decorate([
|
|
5060
|
-
core.Input()
|
|
5061
|
-
], DataTablePagerComponent.prototype, "pagerPreviousIcon", void 0);
|
|
5062
|
-
__decorate([
|
|
5063
|
-
core.Input()
|
|
5064
|
-
], DataTablePagerComponent.prototype, "pagerNextIcon", void 0);
|
|
5065
|
-
__decorate([
|
|
5066
|
-
core.Input()
|
|
5067
|
-
], DataTablePagerComponent.prototype, "size", null);
|
|
5068
|
-
__decorate([
|
|
5069
|
-
core.Input()
|
|
5070
|
-
], DataTablePagerComponent.prototype, "count", null);
|
|
5071
|
-
__decorate([
|
|
5072
|
-
core.Input()
|
|
5073
|
-
], DataTablePagerComponent.prototype, "page", null);
|
|
5074
|
-
__decorate([
|
|
5075
|
-
core.Output()
|
|
5076
|
-
], DataTablePagerComponent.prototype, "change", void 0);
|
|
5077
|
-
DataTablePagerComponent = __decorate([
|
|
5078
|
-
core.Component({
|
|
5079
|
-
selector: 'datatable-pager',
|
|
5080
|
-
template: "\n <ul class=\"pager\">\n <li [class.disabled]=\"!canPrevious()\">\n <a role=\"button\" aria-label=\"go to first page\" href=\"javascript:void(0)\" (click)=\"selectPage(1)\">\n <i class=\"{{ pagerPreviousIcon }}\"></i>\n </a>\n </li>\n <li [class.disabled]=\"!canPrevious()\">\n <a role=\"button\" aria-label=\"go to previous page\" href=\"javascript:void(0)\" (click)=\"prevPage()\">\n <i class=\"{{ pagerLeftArrowIcon }}\"></i>\n </a>\n </li>\n <li\n role=\"button\"\n [attr.aria-label]=\"'page ' + pg.number\"\n class=\"pages\"\n *ngFor=\"let pg of pages\"\n [class.active]=\"pg.number === page\"\n >\n <a href=\"javascript:void(0)\" (click)=\"selectPage(pg.number)\">\n {{ pg.text }}\n </a>\n </li>\n <li [class.disabled]=\"!canNext()\">\n <a role=\"button\" aria-label=\"go to next page\" href=\"javascript:void(0)\" (click)=\"nextPage()\">\n <i class=\"{{ pagerRightArrowIcon }}\"></i>\n </a>\n </li>\n <li [class.disabled]=\"!canNext()\">\n <a role=\"button\" aria-label=\"go to last page\" href=\"javascript:void(0)\" (click)=\"selectPage(totalPages)\">\n <i class=\"{{ pagerNextIcon }}\"></i>\n </a>\n </li>\n </ul>\n ",
|
|
5081
|
-
host: {
|
|
5082
|
-
class: 'datatable-pager'
|
|
5083
|
-
},
|
|
5084
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
5085
|
-
})
|
|
5086
|
-
], DataTablePagerComponent);
|
|
5087
4721
|
return DataTablePagerComponent;
|
|
5088
4722
|
}());
|
|
4723
|
+
DataTablePagerComponent.decorators = [
|
|
4724
|
+
{ type: core.Component, args: [{
|
|
4725
|
+
selector: 'datatable-pager',
|
|
4726
|
+
template: "\n <ul class=\"pager\">\n <li [class.disabled]=\"!canPrevious()\">\n <a role=\"button\" aria-label=\"go to first page\" href=\"javascript:void(0)\" (click)=\"selectPage(1)\">\n <i class=\"{{ pagerPreviousIcon }}\"></i>\n </a>\n </li>\n <li [class.disabled]=\"!canPrevious()\">\n <a role=\"button\" aria-label=\"go to previous page\" href=\"javascript:void(0)\" (click)=\"prevPage()\">\n <i class=\"{{ pagerLeftArrowIcon }}\"></i>\n </a>\n </li>\n <li\n role=\"button\"\n [attr.aria-label]=\"'page ' + pg.number\"\n class=\"pages\"\n *ngFor=\"let pg of pages\"\n [class.active]=\"pg.number === page\"\n >\n <a href=\"javascript:void(0)\" (click)=\"selectPage(pg.number)\">\n {{ pg.text }}\n </a>\n </li>\n <li [class.disabled]=\"!canNext()\">\n <a role=\"button\" aria-label=\"go to next page\" href=\"javascript:void(0)\" (click)=\"nextPage()\">\n <i class=\"{{ pagerRightArrowIcon }}\"></i>\n </a>\n </li>\n <li [class.disabled]=\"!canNext()\">\n <a role=\"button\" aria-label=\"go to last page\" href=\"javascript:void(0)\" (click)=\"selectPage(totalPages)\">\n <i class=\"{{ pagerNextIcon }}\"></i>\n </a>\n </li>\n </ul>\n ",
|
|
4727
|
+
host: {
|
|
4728
|
+
class: 'datatable-pager'
|
|
4729
|
+
},
|
|
4730
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
4731
|
+
},] }
|
|
4732
|
+
];
|
|
4733
|
+
DataTablePagerComponent.propDecorators = {
|
|
4734
|
+
pagerLeftArrowIcon: [{ type: core.Input }],
|
|
4735
|
+
pagerRightArrowIcon: [{ type: core.Input }],
|
|
4736
|
+
pagerPreviousIcon: [{ type: core.Input }],
|
|
4737
|
+
pagerNextIcon: [{ type: core.Input }],
|
|
4738
|
+
size: [{ type: core.Input }],
|
|
4739
|
+
count: [{ type: core.Input }],
|
|
4740
|
+
page: [{ type: core.Input }],
|
|
4741
|
+
change: [{ type: core.Output }]
|
|
4742
|
+
};
|
|
5089
4743
|
|
|
5090
4744
|
var ProgressBarComponent = /** @class */ (function () {
|
|
5091
4745
|
function ProgressBarComponent() {
|
|
5092
4746
|
}
|
|
5093
|
-
ProgressBarComponent = __decorate([
|
|
5094
|
-
core.Component({
|
|
5095
|
-
selector: 'datatable-progress',
|
|
5096
|
-
template: "\n <div class=\"progress-linear\" role=\"progressbar\">\n <div class=\"container\">\n <div class=\"bar\"></div>\n </div>\n </div>\n ",
|
|
5097
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
5098
|
-
})
|
|
5099
|
-
], ProgressBarComponent);
|
|
5100
4747
|
return ProgressBarComponent;
|
|
5101
4748
|
}());
|
|
4749
|
+
ProgressBarComponent.decorators = [
|
|
4750
|
+
{ type: core.Component, args: [{
|
|
4751
|
+
selector: 'datatable-progress',
|
|
4752
|
+
template: "\n <div class=\"progress-linear\" role=\"progressbar\">\n <div class=\"container\">\n <div class=\"bar\"></div>\n </div>\n </div>\n ",
|
|
4753
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
4754
|
+
},] }
|
|
4755
|
+
];
|
|
5102
4756
|
|
|
5103
|
-
|
|
4757
|
+
exports.Keys = void 0;
|
|
5104
4758
|
(function (Keys) {
|
|
5105
4759
|
Keys[Keys["up"] = 38] = "up";
|
|
5106
4760
|
Keys[Keys["down"] = 40] = "down";
|
|
@@ -5135,7 +4789,7 @@
|
|
|
5135
4789
|
this.recalculateColumns(val);
|
|
5136
4790
|
this.buildStylesByGroup();
|
|
5137
4791
|
},
|
|
5138
|
-
enumerable:
|
|
4792
|
+
enumerable: false,
|
|
5139
4793
|
configurable: true
|
|
5140
4794
|
});
|
|
5141
4795
|
Object.defineProperty(DataTableBodyRowComponent.prototype, "innerWidth", {
|
|
@@ -5151,7 +4805,7 @@
|
|
|
5151
4805
|
this.recalculateColumns();
|
|
5152
4806
|
this.buildStylesByGroup();
|
|
5153
4807
|
},
|
|
5154
|
-
enumerable:
|
|
4808
|
+
enumerable: false,
|
|
5155
4809
|
configurable: true
|
|
5156
4810
|
});
|
|
5157
4811
|
Object.defineProperty(DataTableBodyRowComponent.prototype, "offsetX", {
|
|
@@ -5162,7 +4816,7 @@
|
|
|
5162
4816
|
this._offsetX = val;
|
|
5163
4817
|
this.buildStylesByGroup();
|
|
5164
4818
|
},
|
|
5165
|
-
enumerable:
|
|
4819
|
+
enumerable: false,
|
|
5166
4820
|
configurable: true
|
|
5167
4821
|
});
|
|
5168
4822
|
Object.defineProperty(DataTableBodyRowComponent.prototype, "cssClass", {
|
|
@@ -5204,14 +4858,14 @@
|
|
|
5204
4858
|
}
|
|
5205
4859
|
return cls;
|
|
5206
4860
|
},
|
|
5207
|
-
enumerable:
|
|
4861
|
+
enumerable: false,
|
|
5208
4862
|
configurable: true
|
|
5209
4863
|
});
|
|
5210
4864
|
Object.defineProperty(DataTableBodyRowComponent.prototype, "columnsTotalWidths", {
|
|
5211
4865
|
get: function () {
|
|
5212
4866
|
return this._columnGroupWidths.total;
|
|
5213
4867
|
},
|
|
5214
|
-
enumerable:
|
|
4868
|
+
enumerable: false,
|
|
5215
4869
|
configurable: true
|
|
5216
4870
|
});
|
|
5217
4871
|
DataTableBodyRowComponent.prototype.ngDoCheck = function () {
|
|
@@ -5291,83 +4945,48 @@
|
|
|
5291
4945
|
DataTableBodyRowComponent.prototype.onTreeAction = function () {
|
|
5292
4946
|
this.treeAction.emit();
|
|
5293
4947
|
};
|
|
5294
|
-
DataTableBodyRowComponent.ctorParameters = function () { return [
|
|
5295
|
-
{ type: core.KeyValueDiffers },
|
|
5296
|
-
{ type: ScrollbarHelper, decorators: [{ type: core.SkipSelf }] },
|
|
5297
|
-
{ type: core.ChangeDetectorRef },
|
|
5298
|
-
{ type: core.ElementRef }
|
|
5299
|
-
]; };
|
|
5300
|
-
__decorate([
|
|
5301
|
-
core.Input()
|
|
5302
|
-
], DataTableBodyRowComponent.prototype, "columns", null);
|
|
5303
|
-
__decorate([
|
|
5304
|
-
core.Input()
|
|
5305
|
-
], DataTableBodyRowComponent.prototype, "innerWidth", null);
|
|
5306
|
-
__decorate([
|
|
5307
|
-
core.Input()
|
|
5308
|
-
], DataTableBodyRowComponent.prototype, "expanded", void 0);
|
|
5309
|
-
__decorate([
|
|
5310
|
-
core.Input()
|
|
5311
|
-
], DataTableBodyRowComponent.prototype, "rowClass", void 0);
|
|
5312
|
-
__decorate([
|
|
5313
|
-
core.Input()
|
|
5314
|
-
], DataTableBodyRowComponent.prototype, "row", void 0);
|
|
5315
|
-
__decorate([
|
|
5316
|
-
core.Input()
|
|
5317
|
-
], DataTableBodyRowComponent.prototype, "group", void 0);
|
|
5318
|
-
__decorate([
|
|
5319
|
-
core.Input()
|
|
5320
|
-
], DataTableBodyRowComponent.prototype, "isSelected", void 0);
|
|
5321
|
-
__decorate([
|
|
5322
|
-
core.Input()
|
|
5323
|
-
], DataTableBodyRowComponent.prototype, "rowIndex", void 0);
|
|
5324
|
-
__decorate([
|
|
5325
|
-
core.Input()
|
|
5326
|
-
], DataTableBodyRowComponent.prototype, "displayCheck", void 0);
|
|
5327
|
-
__decorate([
|
|
5328
|
-
core.Input()
|
|
5329
|
-
], DataTableBodyRowComponent.prototype, "treeStatus", void 0);
|
|
5330
|
-
__decorate([
|
|
5331
|
-
core.Input()
|
|
5332
|
-
], DataTableBodyRowComponent.prototype, "offsetX", null);
|
|
5333
|
-
__decorate([
|
|
5334
|
-
core.HostBinding('class')
|
|
5335
|
-
], DataTableBodyRowComponent.prototype, "cssClass", null);
|
|
5336
|
-
__decorate([
|
|
5337
|
-
core.HostBinding('style.height.px'),
|
|
5338
|
-
core.Input()
|
|
5339
|
-
], DataTableBodyRowComponent.prototype, "rowHeight", void 0);
|
|
5340
|
-
__decorate([
|
|
5341
|
-
core.HostBinding('style.width.px')
|
|
5342
|
-
], DataTableBodyRowComponent.prototype, "columnsTotalWidths", null);
|
|
5343
|
-
__decorate([
|
|
5344
|
-
core.Output()
|
|
5345
|
-
], DataTableBodyRowComponent.prototype, "activate", void 0);
|
|
5346
|
-
__decorate([
|
|
5347
|
-
core.Output()
|
|
5348
|
-
], DataTableBodyRowComponent.prototype, "treeAction", void 0);
|
|
5349
|
-
__decorate([
|
|
5350
|
-
core.HostListener('keydown', ['$event'])
|
|
5351
|
-
], DataTableBodyRowComponent.prototype, "onKeyDown", null);
|
|
5352
|
-
__decorate([
|
|
5353
|
-
core.HostListener('mouseenter', ['$event'])
|
|
5354
|
-
], DataTableBodyRowComponent.prototype, "onMouseenter", null);
|
|
5355
|
-
DataTableBodyRowComponent = __decorate([
|
|
5356
|
-
core.Component({
|
|
5357
|
-
selector: 'datatable-body-row',
|
|
5358
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
5359
|
-
template: "\n <div\n *ngFor=\"let colGroup of _columnsByPin; let i = index; trackBy: trackByGroups\"\n class=\"datatable-row-{{ colGroup.type }} datatable-row-group\"\n [ngStyle]=\"_groupStyles[colGroup.type]\"\n >\n <datatable-body-cell\n *ngFor=\"let column of colGroup.columns; let ii = index; trackBy: columnTrackingFn\"\n tabindex=\"-1\"\n [row]=\"row\"\n [group]=\"group\"\n [expanded]=\"expanded\"\n [isSelected]=\"isSelected\"\n [rowIndex]=\"rowIndex\"\n [column]=\"column\"\n [rowHeight]=\"rowHeight\"\n [displayCheck]=\"displayCheck\"\n [treeStatus]=\"treeStatus\"\n (activate)=\"onActivate($event, ii)\"\n (treeAction)=\"onTreeAction()\"\n >\n </datatable-body-cell>\n </div>\n "
|
|
5360
|
-
}),
|
|
5361
|
-
__param(1, core.SkipSelf())
|
|
5362
|
-
], DataTableBodyRowComponent);
|
|
5363
4948
|
return DataTableBodyRowComponent;
|
|
5364
4949
|
}());
|
|
4950
|
+
DataTableBodyRowComponent.decorators = [
|
|
4951
|
+
{ type: core.Component, args: [{
|
|
4952
|
+
selector: 'datatable-body-row',
|
|
4953
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
4954
|
+
template: "\n <div\n *ngFor=\"let colGroup of _columnsByPin; let i = index; trackBy: trackByGroups\"\n class=\"datatable-row-{{ colGroup.type }} datatable-row-group\"\n [ngStyle]=\"_groupStyles[colGroup.type]\"\n >\n <datatable-body-cell\n role=\"cell\"\n *ngFor=\"let column of colGroup.columns; let ii = index; trackBy: columnTrackingFn\"\n tabindex=\"-1\"\n [row]=\"row\"\n [group]=\"group\"\n [expanded]=\"expanded\"\n [isSelected]=\"isSelected\"\n [rowIndex]=\"rowIndex\"\n [column]=\"column\"\n [rowHeight]=\"rowHeight\"\n [displayCheck]=\"displayCheck\"\n [treeStatus]=\"treeStatus\"\n (activate)=\"onActivate($event, ii)\"\n (treeAction)=\"onTreeAction()\"\n >\n </datatable-body-cell>\n </div>\n "
|
|
4955
|
+
},] }
|
|
4956
|
+
];
|
|
4957
|
+
DataTableBodyRowComponent.ctorParameters = function () { return [
|
|
4958
|
+
{ type: core.KeyValueDiffers },
|
|
4959
|
+
{ type: ScrollbarHelper, decorators: [{ type: core.SkipSelf }] },
|
|
4960
|
+
{ type: core.ChangeDetectorRef },
|
|
4961
|
+
{ type: core.ElementRef }
|
|
4962
|
+
]; };
|
|
4963
|
+
DataTableBodyRowComponent.propDecorators = {
|
|
4964
|
+
columns: [{ type: core.Input }],
|
|
4965
|
+
innerWidth: [{ type: core.Input }],
|
|
4966
|
+
expanded: [{ type: core.Input }],
|
|
4967
|
+
rowClass: [{ type: core.Input }],
|
|
4968
|
+
row: [{ type: core.Input }],
|
|
4969
|
+
group: [{ type: core.Input }],
|
|
4970
|
+
isSelected: [{ type: core.Input }],
|
|
4971
|
+
rowIndex: [{ type: core.Input }],
|
|
4972
|
+
displayCheck: [{ type: core.Input }],
|
|
4973
|
+
treeStatus: [{ type: core.Input }],
|
|
4974
|
+
offsetX: [{ type: core.Input }],
|
|
4975
|
+
cssClass: [{ type: core.HostBinding, args: ['class',] }],
|
|
4976
|
+
rowHeight: [{ type: core.HostBinding, args: ['style.height.px',] }, { type: core.Input }],
|
|
4977
|
+
columnsTotalWidths: [{ type: core.HostBinding, args: ['style.width.px',] }],
|
|
4978
|
+
activate: [{ type: core.Output }],
|
|
4979
|
+
treeAction: [{ type: core.Output }],
|
|
4980
|
+
onKeyDown: [{ type: core.HostListener, args: ['keydown', ['$event'],] }],
|
|
4981
|
+
onMouseenter: [{ type: core.HostListener, args: ['mouseenter', ['$event'],] }]
|
|
4982
|
+
};
|
|
5365
4983
|
|
|
5366
4984
|
var DataTableRowWrapperComponent = /** @class */ (function () {
|
|
5367
4985
|
function DataTableRowWrapperComponent(cd, differs) {
|
|
5368
4986
|
this.cd = cd;
|
|
5369
4987
|
this.differs = differs;
|
|
5370
4988
|
this.rowContextmenu = new core.EventEmitter(false);
|
|
4989
|
+
this._expanded = false;
|
|
5371
4990
|
this.groupContext = {
|
|
5372
4991
|
group: this.row,
|
|
5373
4992
|
expanded: this.expanded,
|
|
@@ -5378,7 +4997,6 @@
|
|
|
5378
4997
|
expanded: this.expanded,
|
|
5379
4998
|
rowIndex: this.rowIndex
|
|
5380
4999
|
};
|
|
5381
|
-
this._expanded = false;
|
|
5382
5000
|
this.rowDiffer = differs.find({}).create();
|
|
5383
5001
|
}
|
|
5384
5002
|
Object.defineProperty(DataTableRowWrapperComponent.prototype, "rowIndex", {
|
|
@@ -5391,7 +5009,7 @@
|
|
|
5391
5009
|
this.groupContext.rowIndex = val;
|
|
5392
5010
|
this.cd.markForCheck();
|
|
5393
5011
|
},
|
|
5394
|
-
enumerable:
|
|
5012
|
+
enumerable: false,
|
|
5395
5013
|
configurable: true
|
|
5396
5014
|
});
|
|
5397
5015
|
Object.defineProperty(DataTableRowWrapperComponent.prototype, "expanded", {
|
|
@@ -5404,7 +5022,7 @@
|
|
|
5404
5022
|
this.rowContext.expanded = val;
|
|
5405
5023
|
this.cd.markForCheck();
|
|
5406
5024
|
},
|
|
5407
|
-
enumerable:
|
|
5025
|
+
enumerable: false,
|
|
5408
5026
|
configurable: true
|
|
5409
5027
|
});
|
|
5410
5028
|
DataTableRowWrapperComponent.prototype.ngDoCheck = function () {
|
|
@@ -5424,55 +5042,35 @@
|
|
|
5424
5042
|
styles['width'] = this.innerWidth;
|
|
5425
5043
|
return styles;
|
|
5426
5044
|
};
|
|
5427
|
-
DataTableRowWrapperComponent.ctorParameters = function () { return [
|
|
5428
|
-
{ type: core.ChangeDetectorRef },
|
|
5429
|
-
{ type: core.KeyValueDiffers }
|
|
5430
|
-
]; };
|
|
5431
|
-
__decorate([
|
|
5432
|
-
core.Input()
|
|
5433
|
-
], DataTableRowWrapperComponent.prototype, "innerWidth", void 0);
|
|
5434
|
-
__decorate([
|
|
5435
|
-
core.Input()
|
|
5436
|
-
], DataTableRowWrapperComponent.prototype, "rowDetail", void 0);
|
|
5437
|
-
__decorate([
|
|
5438
|
-
core.Input()
|
|
5439
|
-
], DataTableRowWrapperComponent.prototype, "groupHeader", void 0);
|
|
5440
|
-
__decorate([
|
|
5441
|
-
core.Input()
|
|
5442
|
-
], DataTableRowWrapperComponent.prototype, "offsetX", void 0);
|
|
5443
|
-
__decorate([
|
|
5444
|
-
core.Input()
|
|
5445
|
-
], DataTableRowWrapperComponent.prototype, "detailRowHeight", void 0);
|
|
5446
|
-
__decorate([
|
|
5447
|
-
core.Input()
|
|
5448
|
-
], DataTableRowWrapperComponent.prototype, "row", void 0);
|
|
5449
|
-
__decorate([
|
|
5450
|
-
core.Input()
|
|
5451
|
-
], DataTableRowWrapperComponent.prototype, "groupedRows", void 0);
|
|
5452
|
-
__decorate([
|
|
5453
|
-
core.Output()
|
|
5454
|
-
], DataTableRowWrapperComponent.prototype, "rowContextmenu", void 0);
|
|
5455
|
-
__decorate([
|
|
5456
|
-
core.Input()
|
|
5457
|
-
], DataTableRowWrapperComponent.prototype, "rowIndex", null);
|
|
5458
|
-
__decorate([
|
|
5459
|
-
core.Input()
|
|
5460
|
-
], DataTableRowWrapperComponent.prototype, "expanded", null);
|
|
5461
|
-
__decorate([
|
|
5462
|
-
core.HostListener('contextmenu', ['$event'])
|
|
5463
|
-
], DataTableRowWrapperComponent.prototype, "onContextmenu", null);
|
|
5464
|
-
DataTableRowWrapperComponent = __decorate([
|
|
5465
|
-
core.Component({
|
|
5466
|
-
selector: 'datatable-row-wrapper',
|
|
5467
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
5468
|
-
template: "\n <div *ngIf=\"groupHeader && groupHeader.template\" class=\"datatable-group-header\" [ngStyle]=\"getGroupHeaderStyle()\">\n <ng-template\n *ngIf=\"groupHeader && groupHeader.template\"\n [ngTemplateOutlet]=\"groupHeader.template\"\n [ngTemplateOutletContext]=\"groupContext\"\n >\n </ng-template>\n </div>\n <ng-content *ngIf=\"(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template\">\n </ng-content>\n <div\n *ngIf=\"rowDetail && rowDetail.template && expanded\"\n [style.height.px]=\"detailRowHeight\"\n class=\"datatable-row-detail\"\n >\n <ng-template\n *ngIf=\"rowDetail && rowDetail.template\"\n [ngTemplateOutlet]=\"rowDetail.template\"\n [ngTemplateOutletContext]=\"rowContext\"\n >\n </ng-template>\n </div>\n ",
|
|
5469
|
-
host: {
|
|
5470
|
-
class: 'datatable-row-wrapper'
|
|
5471
|
-
}
|
|
5472
|
-
})
|
|
5473
|
-
], DataTableRowWrapperComponent);
|
|
5474
5045
|
return DataTableRowWrapperComponent;
|
|
5475
5046
|
}());
|
|
5047
|
+
DataTableRowWrapperComponent.decorators = [
|
|
5048
|
+
{ type: core.Component, args: [{
|
|
5049
|
+
selector: 'datatable-row-wrapper',
|
|
5050
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
5051
|
+
template: "\n <div *ngIf=\"groupHeader && groupHeader.template\" class=\"datatable-group-header\" [ngStyle]=\"getGroupHeaderStyle()\">\n <ng-template\n *ngIf=\"groupHeader && groupHeader.template\"\n [ngTemplateOutlet]=\"groupHeader.template\"\n [ngTemplateOutletContext]=\"groupContext\"\n >\n </ng-template>\n </div>\n <ng-content *ngIf=\"(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template\">\n </ng-content>\n <div\n *ngIf=\"rowDetail && rowDetail.template && expanded\"\n [style.height.px]=\"detailRowHeight\"\n class=\"datatable-row-detail\"\n >\n <ng-template\n *ngIf=\"rowDetail && rowDetail.template\"\n [ngTemplateOutlet]=\"rowDetail.template\"\n [ngTemplateOutletContext]=\"rowContext\"\n >\n </ng-template>\n </div>\n ",
|
|
5052
|
+
host: {
|
|
5053
|
+
class: 'datatable-row-wrapper'
|
|
5054
|
+
}
|
|
5055
|
+
},] }
|
|
5056
|
+
];
|
|
5057
|
+
DataTableRowWrapperComponent.ctorParameters = function () { return [
|
|
5058
|
+
{ type: core.ChangeDetectorRef },
|
|
5059
|
+
{ type: core.KeyValueDiffers }
|
|
5060
|
+
]; };
|
|
5061
|
+
DataTableRowWrapperComponent.propDecorators = {
|
|
5062
|
+
innerWidth: [{ type: core.Input }],
|
|
5063
|
+
rowDetail: [{ type: core.Input }],
|
|
5064
|
+
groupHeader: [{ type: core.Input }],
|
|
5065
|
+
offsetX: [{ type: core.Input }],
|
|
5066
|
+
detailRowHeight: [{ type: core.Input }],
|
|
5067
|
+
row: [{ type: core.Input }],
|
|
5068
|
+
groupedRows: [{ type: core.Input }],
|
|
5069
|
+
rowContextmenu: [{ type: core.Output }],
|
|
5070
|
+
rowIndex: [{ type: core.Input }],
|
|
5071
|
+
expanded: [{ type: core.Input }],
|
|
5072
|
+
onContextmenu: [{ type: core.HostListener, args: ['contextmenu', ['$event'],] }]
|
|
5073
|
+
};
|
|
5476
5074
|
|
|
5477
5075
|
var DataTableBodyCellComponent = /** @class */ (function () {
|
|
5478
5076
|
function DataTableBodyCellComponent(element, cd) {
|
|
@@ -5507,7 +5105,7 @@
|
|
|
5507
5105
|
this.checkValueUpdates();
|
|
5508
5106
|
this.cd.markForCheck();
|
|
5509
5107
|
},
|
|
5510
|
-
enumerable:
|
|
5108
|
+
enumerable: false,
|
|
5511
5109
|
configurable: true
|
|
5512
5110
|
});
|
|
5513
5111
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "rowHeight", {
|
|
@@ -5520,7 +5118,7 @@
|
|
|
5520
5118
|
this.checkValueUpdates();
|
|
5521
5119
|
this.cd.markForCheck();
|
|
5522
5120
|
},
|
|
5523
|
-
enumerable:
|
|
5121
|
+
enumerable: false,
|
|
5524
5122
|
configurable: true
|
|
5525
5123
|
});
|
|
5526
5124
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "isSelected", {
|
|
@@ -5532,7 +5130,7 @@
|
|
|
5532
5130
|
this.cellContext.isSelected = val;
|
|
5533
5131
|
this.cd.markForCheck();
|
|
5534
5132
|
},
|
|
5535
|
-
enumerable:
|
|
5133
|
+
enumerable: false,
|
|
5536
5134
|
configurable: true
|
|
5537
5135
|
});
|
|
5538
5136
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "expanded", {
|
|
@@ -5544,7 +5142,7 @@
|
|
|
5544
5142
|
this.cellContext.expanded = val;
|
|
5545
5143
|
this.cd.markForCheck();
|
|
5546
5144
|
},
|
|
5547
|
-
enumerable:
|
|
5145
|
+
enumerable: false,
|
|
5548
5146
|
configurable: true
|
|
5549
5147
|
});
|
|
5550
5148
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "rowIndex", {
|
|
@@ -5557,7 +5155,7 @@
|
|
|
5557
5155
|
this.checkValueUpdates();
|
|
5558
5156
|
this.cd.markForCheck();
|
|
5559
5157
|
},
|
|
5560
|
-
enumerable:
|
|
5158
|
+
enumerable: false,
|
|
5561
5159
|
configurable: true
|
|
5562
5160
|
});
|
|
5563
5161
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "column", {
|
|
@@ -5570,7 +5168,7 @@
|
|
|
5570
5168
|
this.checkValueUpdates();
|
|
5571
5169
|
this.cd.markForCheck();
|
|
5572
5170
|
},
|
|
5573
|
-
enumerable:
|
|
5171
|
+
enumerable: false,
|
|
5574
5172
|
configurable: true
|
|
5575
5173
|
});
|
|
5576
5174
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "row", {
|
|
@@ -5583,7 +5181,7 @@
|
|
|
5583
5181
|
this.checkValueUpdates();
|
|
5584
5182
|
this.cd.markForCheck();
|
|
5585
5183
|
},
|
|
5586
|
-
enumerable:
|
|
5184
|
+
enumerable: false,
|
|
5587
5185
|
configurable: true
|
|
5588
5186
|
});
|
|
5589
5187
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "sorts", {
|
|
@@ -5594,7 +5192,7 @@
|
|
|
5594
5192
|
this._sorts = val;
|
|
5595
5193
|
this.calcSortDir = this.calcSortDir(val);
|
|
5596
5194
|
},
|
|
5597
|
-
enumerable:
|
|
5195
|
+
enumerable: false,
|
|
5598
5196
|
configurable: true
|
|
5599
5197
|
});
|
|
5600
5198
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "treeStatus", {
|
|
@@ -5612,7 +5210,7 @@
|
|
|
5612
5210
|
this.checkValueUpdates();
|
|
5613
5211
|
this.cd.markForCheck();
|
|
5614
5212
|
},
|
|
5615
|
-
enumerable:
|
|
5213
|
+
enumerable: false,
|
|
5616
5214
|
configurable: true
|
|
5617
5215
|
});
|
|
5618
5216
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "columnCssClasses", {
|
|
@@ -5668,28 +5266,28 @@
|
|
|
5668
5266
|
}
|
|
5669
5267
|
return cls;
|
|
5670
5268
|
},
|
|
5671
|
-
enumerable:
|
|
5269
|
+
enumerable: false,
|
|
5672
5270
|
configurable: true
|
|
5673
5271
|
});
|
|
5674
5272
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "width", {
|
|
5675
5273
|
get: function () {
|
|
5676
5274
|
return this.column.width;
|
|
5677
5275
|
},
|
|
5678
|
-
enumerable:
|
|
5276
|
+
enumerable: false,
|
|
5679
5277
|
configurable: true
|
|
5680
5278
|
});
|
|
5681
5279
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "minWidth", {
|
|
5682
5280
|
get: function () {
|
|
5683
5281
|
return this.column.minWidth;
|
|
5684
5282
|
},
|
|
5685
|
-
enumerable:
|
|
5283
|
+
enumerable: false,
|
|
5686
5284
|
configurable: true
|
|
5687
5285
|
});
|
|
5688
5286
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "maxWidth", {
|
|
5689
5287
|
get: function () {
|
|
5690
5288
|
return this.column.maxWidth;
|
|
5691
5289
|
},
|
|
5692
|
-
enumerable:
|
|
5290
|
+
enumerable: false,
|
|
5693
5291
|
configurable: true
|
|
5694
5292
|
});
|
|
5695
5293
|
Object.defineProperty(DataTableBodyCellComponent.prototype, "height", {
|
|
@@ -5700,7 +5298,7 @@
|
|
|
5700
5298
|
}
|
|
5701
5299
|
return height + 'px';
|
|
5702
5300
|
},
|
|
5703
|
-
enumerable:
|
|
5301
|
+
enumerable: false,
|
|
5704
5302
|
configurable: true
|
|
5705
5303
|
});
|
|
5706
5304
|
DataTableBodyCellComponent.prototype.ngDoCheck = function () {
|
|
@@ -5824,88 +5422,44 @@
|
|
|
5824
5422
|
var levelIndent = column.treeLevelIndent != null ? column.treeLevelIndent : 50;
|
|
5825
5423
|
return column.isTreeColumn ? row.level * levelIndent : 0;
|
|
5826
5424
|
};
|
|
5827
|
-
DataTableBodyCellComponent.ctorParameters = function () { return [
|
|
5828
|
-
{ type: core.ElementRef },
|
|
5829
|
-
{ type: core.ChangeDetectorRef }
|
|
5830
|
-
]; };
|
|
5831
|
-
__decorate([
|
|
5832
|
-
core.Input()
|
|
5833
|
-
], DataTableBodyCellComponent.prototype, "displayCheck", void 0);
|
|
5834
|
-
__decorate([
|
|
5835
|
-
core.Input()
|
|
5836
|
-
], DataTableBodyCellComponent.prototype, "group", null);
|
|
5837
|
-
__decorate([
|
|
5838
|
-
core.Input()
|
|
5839
|
-
], DataTableBodyCellComponent.prototype, "rowHeight", null);
|
|
5840
|
-
__decorate([
|
|
5841
|
-
core.Input()
|
|
5842
|
-
], DataTableBodyCellComponent.prototype, "isSelected", null);
|
|
5843
|
-
__decorate([
|
|
5844
|
-
core.Input()
|
|
5845
|
-
], DataTableBodyCellComponent.prototype, "expanded", null);
|
|
5846
|
-
__decorate([
|
|
5847
|
-
core.Input()
|
|
5848
|
-
], DataTableBodyCellComponent.prototype, "rowIndex", null);
|
|
5849
|
-
__decorate([
|
|
5850
|
-
core.Input()
|
|
5851
|
-
], DataTableBodyCellComponent.prototype, "column", null);
|
|
5852
|
-
__decorate([
|
|
5853
|
-
core.Input()
|
|
5854
|
-
], DataTableBodyCellComponent.prototype, "row", null);
|
|
5855
|
-
__decorate([
|
|
5856
|
-
core.Input()
|
|
5857
|
-
], DataTableBodyCellComponent.prototype, "sorts", null);
|
|
5858
|
-
__decorate([
|
|
5859
|
-
core.Input()
|
|
5860
|
-
], DataTableBodyCellComponent.prototype, "treeStatus", null);
|
|
5861
|
-
__decorate([
|
|
5862
|
-
core.Output()
|
|
5863
|
-
], DataTableBodyCellComponent.prototype, "activate", void 0);
|
|
5864
|
-
__decorate([
|
|
5865
|
-
core.Output()
|
|
5866
|
-
], DataTableBodyCellComponent.prototype, "treeAction", void 0);
|
|
5867
|
-
__decorate([
|
|
5868
|
-
core.ViewChild('cellTemplate', { read: core.ViewContainerRef, static: true })
|
|
5869
|
-
], DataTableBodyCellComponent.prototype, "cellTemplate", void 0);
|
|
5870
|
-
__decorate([
|
|
5871
|
-
core.HostBinding('class')
|
|
5872
|
-
], DataTableBodyCellComponent.prototype, "columnCssClasses", null);
|
|
5873
|
-
__decorate([
|
|
5874
|
-
core.HostBinding('style.width.px')
|
|
5875
|
-
], DataTableBodyCellComponent.prototype, "width", null);
|
|
5876
|
-
__decorate([
|
|
5877
|
-
core.HostBinding('style.minWidth.px')
|
|
5878
|
-
], DataTableBodyCellComponent.prototype, "minWidth", null);
|
|
5879
|
-
__decorate([
|
|
5880
|
-
core.HostBinding('style.maxWidth.px')
|
|
5881
|
-
], DataTableBodyCellComponent.prototype, "maxWidth", null);
|
|
5882
|
-
__decorate([
|
|
5883
|
-
core.HostBinding('style.height')
|
|
5884
|
-
], DataTableBodyCellComponent.prototype, "height", null);
|
|
5885
|
-
__decorate([
|
|
5886
|
-
core.HostListener('focus')
|
|
5887
|
-
], DataTableBodyCellComponent.prototype, "onFocus", null);
|
|
5888
|
-
__decorate([
|
|
5889
|
-
core.HostListener('blur')
|
|
5890
|
-
], DataTableBodyCellComponent.prototype, "onBlur", null);
|
|
5891
|
-
__decorate([
|
|
5892
|
-
core.HostListener('click', ['$event'])
|
|
5893
|
-
], DataTableBodyCellComponent.prototype, "onClick", null);
|
|
5894
|
-
__decorate([
|
|
5895
|
-
core.HostListener('dblclick', ['$event'])
|
|
5896
|
-
], DataTableBodyCellComponent.prototype, "onDblClick", null);
|
|
5897
|
-
__decorate([
|
|
5898
|
-
core.HostListener('keydown', ['$event'])
|
|
5899
|
-
], DataTableBodyCellComponent.prototype, "onKeyDown", null);
|
|
5900
|
-
DataTableBodyCellComponent = __decorate([
|
|
5901
|
-
core.Component({
|
|
5902
|
-
selector: 'datatable-body-cell',
|
|
5903
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
5904
|
-
template: "\n <div class=\"datatable-body-cell-label\" [style.margin-left.px]=\"calcLeftMargin(column, row)\">\n <label\n *ngIf=\"column.checkboxable && (!displayCheck || displayCheck(row, column, value))\"\n class=\"datatable-checkbox\"\n >\n <input type=\"checkbox\" [checked]=\"isSelected\" (click)=\"onCheckboxChange($event)\" />\n </label>\n <ng-container *ngIf=\"column.isTreeColumn\">\n <button\n *ngIf=\"!column.treeToggleTemplate\"\n class=\"datatable-tree-button\"\n [disabled]=\"treeStatus === 'disabled'\"\n (click)=\"onTreeAction()\"\n >\n <span>\n <i *ngIf=\"treeStatus === 'loading'\" class=\"icon datatable-icon-collapse\"></i>\n <i *ngIf=\"treeStatus === 'collapsed'\" class=\"icon datatable-icon-up\"></i>\n <i *ngIf=\"treeStatus === 'expanded' || treeStatus === 'disabled'\" class=\"icon datatable-icon-down\"></i>\n </span>\n </button>\n <ng-template\n *ngIf=\"column.treeToggleTemplate\"\n [ngTemplateOutlet]=\"column.treeToggleTemplate\"\n [ngTemplateOutletContext]=\"{ cellContext: cellContext }\"\n >\n </ng-template>\n </ng-container>\n\n <span *ngIf=\"!column.cellTemplate\" [title]=\"sanitizedValue\" [innerHTML]=\"value\"> </span>\n <ng-template\n #cellTemplate\n *ngIf=\"column.cellTemplate\"\n [ngTemplateOutlet]=\"column.cellTemplate\"\n [ngTemplateOutletContext]=\"cellContext\"\n >\n </ng-template>\n </div>\n "
|
|
5905
|
-
})
|
|
5906
|
-
], DataTableBodyCellComponent);
|
|
5907
5425
|
return DataTableBodyCellComponent;
|
|
5908
5426
|
}());
|
|
5427
|
+
DataTableBodyCellComponent.decorators = [
|
|
5428
|
+
{ type: core.Component, args: [{
|
|
5429
|
+
selector: 'datatable-body-cell',
|
|
5430
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
5431
|
+
template: "\n <div class=\"datatable-body-cell-label\" [style.margin-left.px]=\"calcLeftMargin(column, row)\">\n <label\n *ngIf=\"column.checkboxable && (!displayCheck || displayCheck(row, column, value))\"\n class=\"datatable-checkbox\"\n >\n <input type=\"checkbox\" [checked]=\"isSelected\" (click)=\"onCheckboxChange($event)\" />\n </label>\n <ng-container *ngIf=\"column.isTreeColumn\">\n <button\n *ngIf=\"!column.treeToggleTemplate\"\n class=\"datatable-tree-button\"\n [disabled]=\"treeStatus === 'disabled'\"\n (click)=\"onTreeAction()\"\n >\n <span>\n <i *ngIf=\"treeStatus === 'loading'\" class=\"icon datatable-icon-collapse\"></i>\n <i *ngIf=\"treeStatus === 'collapsed'\" class=\"icon datatable-icon-up\"></i>\n <i *ngIf=\"treeStatus === 'expanded' || treeStatus === 'disabled'\" class=\"icon datatable-icon-down\"></i>\n </span>\n </button>\n <ng-template\n *ngIf=\"column.treeToggleTemplate\"\n [ngTemplateOutlet]=\"column.treeToggleTemplate\"\n [ngTemplateOutletContext]=\"{ cellContext: cellContext }\"\n >\n </ng-template>\n </ng-container>\n\n <span *ngIf=\"!column.cellTemplate\" [title]=\"sanitizedValue\" [innerHTML]=\"value\"> </span>\n <ng-template\n #cellTemplate\n *ngIf=\"column.cellTemplate\"\n [ngTemplateOutlet]=\"column.cellTemplate\"\n [ngTemplateOutletContext]=\"cellContext\"\n >\n </ng-template>\n </div>\n "
|
|
5432
|
+
},] }
|
|
5433
|
+
];
|
|
5434
|
+
DataTableBodyCellComponent.ctorParameters = function () { return [
|
|
5435
|
+
{ type: core.ElementRef },
|
|
5436
|
+
{ type: core.ChangeDetectorRef }
|
|
5437
|
+
]; };
|
|
5438
|
+
DataTableBodyCellComponent.propDecorators = {
|
|
5439
|
+
displayCheck: [{ type: core.Input }],
|
|
5440
|
+
group: [{ type: core.Input }],
|
|
5441
|
+
rowHeight: [{ type: core.Input }],
|
|
5442
|
+
isSelected: [{ type: core.Input }],
|
|
5443
|
+
expanded: [{ type: core.Input }],
|
|
5444
|
+
rowIndex: [{ type: core.Input }],
|
|
5445
|
+
column: [{ type: core.Input }],
|
|
5446
|
+
row: [{ type: core.Input }],
|
|
5447
|
+
sorts: [{ type: core.Input }],
|
|
5448
|
+
treeStatus: [{ type: core.Input }],
|
|
5449
|
+
activate: [{ type: core.Output }],
|
|
5450
|
+
treeAction: [{ type: core.Output }],
|
|
5451
|
+
cellTemplate: [{ type: core.ViewChild, args: ['cellTemplate', { read: core.ViewContainerRef, static: true },] }],
|
|
5452
|
+
columnCssClasses: [{ type: core.HostBinding, args: ['class',] }],
|
|
5453
|
+
width: [{ type: core.HostBinding, args: ['style.width.px',] }],
|
|
5454
|
+
minWidth: [{ type: core.HostBinding, args: ['style.minWidth.px',] }],
|
|
5455
|
+
maxWidth: [{ type: core.HostBinding, args: ['style.maxWidth.px',] }],
|
|
5456
|
+
height: [{ type: core.HostBinding, args: ['style.height',] }],
|
|
5457
|
+
onFocus: [{ type: core.HostListener, args: ['focus',] }],
|
|
5458
|
+
onBlur: [{ type: core.HostListener, args: ['blur',] }],
|
|
5459
|
+
onClick: [{ type: core.HostListener, args: ['click', ['$event'],] }],
|
|
5460
|
+
onDblClick: [{ type: core.HostListener, args: ['dblclick', ['$event'],] }],
|
|
5461
|
+
onKeyDown: [{ type: core.HostListener, args: ['keydown', ['$event'],] }]
|
|
5462
|
+
};
|
|
5909
5463
|
|
|
5910
5464
|
function selectRows(selected, row, comparefn) {
|
|
5911
5465
|
var selectedIndex = comparefn(row, selected);
|
|
@@ -5965,7 +5519,7 @@
|
|
|
5965
5519
|
selected = selectRowsBetween([], this.rows, index, this.prevIndex, this.getRowSelectedIdx.bind(this));
|
|
5966
5520
|
}
|
|
5967
5521
|
else if (event.ctrlKey || event.metaKey || multiClick || chkbox) {
|
|
5968
|
-
selected = selectRows(
|
|
5522
|
+
selected = selectRows(__spreadArray([], __read(this.selected)), row, this.getRowSelectedIdx.bind(this));
|
|
5969
5523
|
}
|
|
5970
5524
|
else {
|
|
5971
5525
|
selected = selectRows([], row, this.getRowSelectedIdx.bind(this));
|
|
@@ -5978,7 +5532,7 @@
|
|
|
5978
5532
|
selected = selected.filter(this.selectCheck.bind(this));
|
|
5979
5533
|
}
|
|
5980
5534
|
this.selected.splice(0, this.selected.length);
|
|
5981
|
-
(_a = this.selected).push.apply(_a,
|
|
5535
|
+
(_a = this.selected).push.apply(_a, __spreadArray([], __read(selected)));
|
|
5982
5536
|
this.prevIndex = index;
|
|
5983
5537
|
this.select.emit({
|
|
5984
5538
|
selected: selected
|
|
@@ -6066,39 +5620,25 @@
|
|
|
6066
5620
|
return id === rowId;
|
|
6067
5621
|
});
|
|
6068
5622
|
};
|
|
6069
|
-
__decorate([
|
|
6070
|
-
core.Input()
|
|
6071
|
-
], DataTableSelectionComponent.prototype, "rows", void 0);
|
|
6072
|
-
__decorate([
|
|
6073
|
-
core.Input()
|
|
6074
|
-
], DataTableSelectionComponent.prototype, "selected", void 0);
|
|
6075
|
-
__decorate([
|
|
6076
|
-
core.Input()
|
|
6077
|
-
], DataTableSelectionComponent.prototype, "selectEnabled", void 0);
|
|
6078
|
-
__decorate([
|
|
6079
|
-
core.Input()
|
|
6080
|
-
], DataTableSelectionComponent.prototype, "selectionType", void 0);
|
|
6081
|
-
__decorate([
|
|
6082
|
-
core.Input()
|
|
6083
|
-
], DataTableSelectionComponent.prototype, "rowIdentity", void 0);
|
|
6084
|
-
__decorate([
|
|
6085
|
-
core.Input()
|
|
6086
|
-
], DataTableSelectionComponent.prototype, "selectCheck", void 0);
|
|
6087
|
-
__decorate([
|
|
6088
|
-
core.Output()
|
|
6089
|
-
], DataTableSelectionComponent.prototype, "activate", void 0);
|
|
6090
|
-
__decorate([
|
|
6091
|
-
core.Output()
|
|
6092
|
-
], DataTableSelectionComponent.prototype, "select", void 0);
|
|
6093
|
-
DataTableSelectionComponent = __decorate([
|
|
6094
|
-
core.Component({
|
|
6095
|
-
selector: 'datatable-selection',
|
|
6096
|
-
template: " <ng-content></ng-content> ",
|
|
6097
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
6098
|
-
})
|
|
6099
|
-
], DataTableSelectionComponent);
|
|
6100
5623
|
return DataTableSelectionComponent;
|
|
6101
5624
|
}());
|
|
5625
|
+
DataTableSelectionComponent.decorators = [
|
|
5626
|
+
{ type: core.Component, args: [{
|
|
5627
|
+
selector: 'datatable-selection',
|
|
5628
|
+
template: " <ng-content></ng-content> ",
|
|
5629
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
5630
|
+
},] }
|
|
5631
|
+
];
|
|
5632
|
+
DataTableSelectionComponent.propDecorators = {
|
|
5633
|
+
rows: [{ type: core.Input }],
|
|
5634
|
+
selected: [{ type: core.Input }],
|
|
5635
|
+
selectEnabled: [{ type: core.Input }],
|
|
5636
|
+
selectionType: [{ type: core.Input }],
|
|
5637
|
+
rowIdentity: [{ type: core.Input }],
|
|
5638
|
+
selectCheck: [{ type: core.Input }],
|
|
5639
|
+
activate: [{ type: core.Output }],
|
|
5640
|
+
select: [{ type: core.Output }]
|
|
5641
|
+
};
|
|
6102
5642
|
|
|
6103
5643
|
function defaultSumFunc(cells) {
|
|
6104
5644
|
var cellsWithValues = cells.filter(function (cell) { return !!cell; });
|
|
@@ -6125,7 +5665,7 @@
|
|
|
6125
5665
|
this.updateValues();
|
|
6126
5666
|
};
|
|
6127
5667
|
DataTableSummaryRowComponent.prototype.updateInternalColumns = function () {
|
|
6128
|
-
this._internalColumns = this.columns.map(function (col) { return (
|
|
5668
|
+
this._internalColumns = this.columns.map(function (col) { return (Object.assign(Object.assign({}, col), { cellTemplate: col.summaryTemplate })); });
|
|
6129
5669
|
};
|
|
6130
5670
|
DataTableSummaryRowComponent.prototype.updateValues = function () {
|
|
6131
5671
|
var _this = this;
|
|
@@ -6151,102 +5691,92 @@
|
|
|
6151
5691
|
return column.summaryFunc;
|
|
6152
5692
|
}
|
|
6153
5693
|
};
|
|
6154
|
-
__decorate([
|
|
6155
|
-
core.Input()
|
|
6156
|
-
], DataTableSummaryRowComponent.prototype, "rows", void 0);
|
|
6157
|
-
__decorate([
|
|
6158
|
-
core.Input()
|
|
6159
|
-
], DataTableSummaryRowComponent.prototype, "columns", void 0);
|
|
6160
|
-
__decorate([
|
|
6161
|
-
core.Input()
|
|
6162
|
-
], DataTableSummaryRowComponent.prototype, "rowHeight", void 0);
|
|
6163
|
-
__decorate([
|
|
6164
|
-
core.Input()
|
|
6165
|
-
], DataTableSummaryRowComponent.prototype, "offsetX", void 0);
|
|
6166
|
-
__decorate([
|
|
6167
|
-
core.Input()
|
|
6168
|
-
], DataTableSummaryRowComponent.prototype, "innerWidth", void 0);
|
|
6169
|
-
DataTableSummaryRowComponent = __decorate([
|
|
6170
|
-
core.Component({
|
|
6171
|
-
selector: 'datatable-summary-row',
|
|
6172
|
-
template: "\n <datatable-body-row\n *ngIf=\"summaryRow && _internalColumns\"\n tabindex=\"-1\"\n [innerWidth]=\"innerWidth\"\n [offsetX]=\"offsetX\"\n [columns]=\"_internalColumns\"\n [rowHeight]=\"rowHeight\"\n [row]=\"summaryRow\"\n [rowIndex]=\"-1\"\n >\n </datatable-body-row>\n ",
|
|
6173
|
-
host: {
|
|
6174
|
-
class: 'datatable-summary-row'
|
|
6175
|
-
}
|
|
6176
|
-
})
|
|
6177
|
-
], DataTableSummaryRowComponent);
|
|
6178
5694
|
return DataTableSummaryRowComponent;
|
|
6179
5695
|
}());
|
|
5696
|
+
DataTableSummaryRowComponent.decorators = [
|
|
5697
|
+
{ type: core.Component, args: [{
|
|
5698
|
+
selector: 'datatable-summary-row',
|
|
5699
|
+
template: "\n <datatable-body-row\n *ngIf=\"summaryRow && _internalColumns\"\n tabindex=\"-1\"\n [innerWidth]=\"innerWidth\"\n [offsetX]=\"offsetX\"\n [columns]=\"_internalColumns\"\n [rowHeight]=\"rowHeight\"\n [row]=\"summaryRow\"\n [rowIndex]=\"-1\"\n >\n </datatable-body-row>\n ",
|
|
5700
|
+
host: {
|
|
5701
|
+
class: 'datatable-summary-row'
|
|
5702
|
+
}
|
|
5703
|
+
},] }
|
|
5704
|
+
];
|
|
5705
|
+
DataTableSummaryRowComponent.propDecorators = {
|
|
5706
|
+
rows: [{ type: core.Input }],
|
|
5707
|
+
columns: [{ type: core.Input }],
|
|
5708
|
+
rowHeight: [{ type: core.Input }],
|
|
5709
|
+
offsetX: [{ type: core.Input }],
|
|
5710
|
+
innerWidth: [{ type: core.Input }]
|
|
5711
|
+
};
|
|
6180
5712
|
|
|
6181
5713
|
var NgxDatatableModule = /** @class */ (function () {
|
|
6182
5714
|
function NgxDatatableModule() {
|
|
6183
5715
|
}
|
|
6184
|
-
NgxDatatableModule_1 = NgxDatatableModule;
|
|
6185
5716
|
/**
|
|
6186
5717
|
* Configure global configuration via INgxDatatableConfig
|
|
6187
5718
|
* @param configuration
|
|
6188
5719
|
*/
|
|
6189
5720
|
NgxDatatableModule.forRoot = function (configuration) {
|
|
6190
5721
|
return {
|
|
6191
|
-
ngModule:
|
|
5722
|
+
ngModule: NgxDatatableModule,
|
|
6192
5723
|
providers: [{ provide: 'configuration', useValue: configuration }]
|
|
6193
5724
|
};
|
|
6194
5725
|
};
|
|
6195
|
-
var NgxDatatableModule_1;
|
|
6196
|
-
NgxDatatableModule = NgxDatatableModule_1 = __decorate([
|
|
6197
|
-
core.NgModule({
|
|
6198
|
-
imports: [common.CommonModule],
|
|
6199
|
-
providers: [ScrollbarHelper, DimensionsHelper, ColumnChangesService],
|
|
6200
|
-
declarations: [
|
|
6201
|
-
DataTableFooterTemplateDirective,
|
|
6202
|
-
VisibilityDirective,
|
|
6203
|
-
DraggableDirective,
|
|
6204
|
-
ResizeableDirective,
|
|
6205
|
-
OrderableDirective,
|
|
6206
|
-
LongPressDirective,
|
|
6207
|
-
ScrollerComponent,
|
|
6208
|
-
DatatableComponent,
|
|
6209
|
-
DataTableColumnDirective,
|
|
6210
|
-
DataTableHeaderComponent,
|
|
6211
|
-
DataTableHeaderCellComponent,
|
|
6212
|
-
DataTableBodyComponent,
|
|
6213
|
-
DataTableFooterComponent,
|
|
6214
|
-
DataTablePagerComponent,
|
|
6215
|
-
ProgressBarComponent,
|
|
6216
|
-
DataTableBodyRowComponent,
|
|
6217
|
-
DataTableRowWrapperComponent,
|
|
6218
|
-
DatatableRowDetailDirective,
|
|
6219
|
-
DatatableGroupHeaderDirective,
|
|
6220
|
-
DatatableRowDetailTemplateDirective,
|
|
6221
|
-
DataTableBodyCellComponent,
|
|
6222
|
-
DataTableSelectionComponent,
|
|
6223
|
-
DataTableColumnHeaderDirective,
|
|
6224
|
-
DataTableColumnCellDirective,
|
|
6225
|
-
DataTableColumnCellTreeToggle,
|
|
6226
|
-
DatatableFooterDirective,
|
|
6227
|
-
DatatableGroupHeaderTemplateDirective,
|
|
6228
|
-
DataTableSummaryRowComponent
|
|
6229
|
-
],
|
|
6230
|
-
exports: [
|
|
6231
|
-
DatatableComponent,
|
|
6232
|
-
DatatableRowDetailDirective,
|
|
6233
|
-
DatatableGroupHeaderDirective,
|
|
6234
|
-
DatatableRowDetailTemplateDirective,
|
|
6235
|
-
DataTableColumnDirective,
|
|
6236
|
-
DataTableColumnHeaderDirective,
|
|
6237
|
-
DataTableColumnCellDirective,
|
|
6238
|
-
DataTableColumnCellTreeToggle,
|
|
6239
|
-
DataTableFooterTemplateDirective,
|
|
6240
|
-
DatatableFooterDirective,
|
|
6241
|
-
DataTablePagerComponent,
|
|
6242
|
-
DatatableGroupHeaderTemplateDirective
|
|
6243
|
-
]
|
|
6244
|
-
})
|
|
6245
|
-
], NgxDatatableModule);
|
|
6246
5726
|
return NgxDatatableModule;
|
|
6247
5727
|
}());
|
|
5728
|
+
NgxDatatableModule.decorators = [
|
|
5729
|
+
{ type: core.NgModule, args: [{
|
|
5730
|
+
imports: [common.CommonModule],
|
|
5731
|
+
providers: [ScrollbarHelper, DimensionsHelper, ColumnChangesService],
|
|
5732
|
+
declarations: [
|
|
5733
|
+
DataTableFooterTemplateDirective,
|
|
5734
|
+
VisibilityDirective,
|
|
5735
|
+
DraggableDirective,
|
|
5736
|
+
ResizeableDirective,
|
|
5737
|
+
OrderableDirective,
|
|
5738
|
+
LongPressDirective,
|
|
5739
|
+
ScrollerComponent,
|
|
5740
|
+
DatatableComponent,
|
|
5741
|
+
DataTableColumnDirective,
|
|
5742
|
+
DataTableHeaderComponent,
|
|
5743
|
+
DataTableHeaderCellComponent,
|
|
5744
|
+
DataTableBodyComponent,
|
|
5745
|
+
DataTableFooterComponent,
|
|
5746
|
+
DataTablePagerComponent,
|
|
5747
|
+
ProgressBarComponent,
|
|
5748
|
+
DataTableBodyRowComponent,
|
|
5749
|
+
DataTableRowWrapperComponent,
|
|
5750
|
+
DatatableRowDetailDirective,
|
|
5751
|
+
DatatableGroupHeaderDirective,
|
|
5752
|
+
DatatableRowDetailTemplateDirective,
|
|
5753
|
+
DataTableBodyCellComponent,
|
|
5754
|
+
DataTableSelectionComponent,
|
|
5755
|
+
DataTableColumnHeaderDirective,
|
|
5756
|
+
DataTableColumnCellDirective,
|
|
5757
|
+
DataTableColumnCellTreeToggle,
|
|
5758
|
+
DatatableFooterDirective,
|
|
5759
|
+
DatatableGroupHeaderTemplateDirective,
|
|
5760
|
+
DataTableSummaryRowComponent
|
|
5761
|
+
],
|
|
5762
|
+
exports: [
|
|
5763
|
+
DatatableComponent,
|
|
5764
|
+
DatatableRowDetailDirective,
|
|
5765
|
+
DatatableGroupHeaderDirective,
|
|
5766
|
+
DatatableRowDetailTemplateDirective,
|
|
5767
|
+
DataTableColumnDirective,
|
|
5768
|
+
DataTableColumnHeaderDirective,
|
|
5769
|
+
DataTableColumnCellDirective,
|
|
5770
|
+
DataTableColumnCellTreeToggle,
|
|
5771
|
+
DataTableFooterTemplateDirective,
|
|
5772
|
+
DatatableFooterDirective,
|
|
5773
|
+
DataTablePagerComponent,
|
|
5774
|
+
DatatableGroupHeaderTemplateDirective
|
|
5775
|
+
]
|
|
5776
|
+
},] }
|
|
5777
|
+
];
|
|
6248
5778
|
|
|
6249
|
-
|
|
5779
|
+
exports.ClickType = void 0;
|
|
6250
5780
|
(function (ClickType) {
|
|
6251
5781
|
ClickType["single"] = "single";
|
|
6252
5782
|
ClickType["double"] = "double";
|
|
@@ -6288,6 +5818,15 @@
|
|
|
6288
5818
|
// return our results
|
|
6289
5819
|
return elements;
|
|
6290
5820
|
}
|
|
5821
|
+
/*tslint:enable*/
|
|
5822
|
+
|
|
5823
|
+
/*
|
|
5824
|
+
* Public API Surface of ngx-datatable
|
|
5825
|
+
*/
|
|
5826
|
+
|
|
5827
|
+
/**
|
|
5828
|
+
* Generated bundle index. Do not edit.
|
|
5829
|
+
*/
|
|
6291
5830
|
|
|
6292
5831
|
exports.ColumnChangesService = ColumnChangesService;
|
|
6293
5832
|
exports.DataTableBodyCellComponent = DataTableBodyCellComponent;
|