@sd-angular/core 1.3.182 → 1.3.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sd-angular-core-table.umd.js +43 -12
- package/bundles/sd-angular-core-table.umd.js.map +1 -1
- package/bundles/sd-angular-core-table.umd.min.js +1 -1
- package/bundles/sd-angular-core-table.umd.min.js.map +1 -1
- package/esm2015/table/src/lib/table.component.js +34 -6
- package/fesm2015/sd-angular-core-table.js +33 -5
- package/fesm2015/sd-angular-core-table.js.map +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.182.tgz → sd-angular-core-1.3.183.tgz} +0 -0
|
@@ -1979,8 +1979,39 @@
|
|
|
1979
1979
|
}); });
|
|
1980
1980
|
_getExportColumns.set(this, function () {
|
|
1981
1981
|
var _a, _b;
|
|
1982
|
-
var
|
|
1983
|
-
|
|
1982
|
+
var gridColumns = [];
|
|
1983
|
+
_this.tableOption.columns
|
|
1984
|
+
.filter(function (e) { var _a; return !((_a = e.export) === null || _a === void 0 ? void 0 : _a.disabled); })
|
|
1985
|
+
.forEach(function (column) {
|
|
1986
|
+
var _a;
|
|
1987
|
+
if (column.type === 'children') {
|
|
1988
|
+
(_a = column.children) === null || _a === void 0 ? void 0 : _a.filter(function (e) { var _a; return !((_a = e.export) === null || _a === void 0 ? void 0 : _a.disabled); }).forEach(function (childColumn) {
|
|
1989
|
+
gridColumns.push(childColumn);
|
|
1990
|
+
});
|
|
1991
|
+
return;
|
|
1992
|
+
}
|
|
1993
|
+
gridColumns.push(column);
|
|
1994
|
+
});
|
|
1995
|
+
if (_this.configuration) {
|
|
1996
|
+
var columns_4 = __spread(gridColumns);
|
|
1997
|
+
var _10 = _this.configuration, firstColumns = _10.firstColumns, secondColumns = _10.secondColumns;
|
|
1998
|
+
var displayColumns = __spread(firstColumns, secondColumns).reduce(function (first, next) {
|
|
1999
|
+
var column = _this.tableOption.columns.find(function (e) { return e.field === next.field; });
|
|
2000
|
+
if (!column) {
|
|
2001
|
+
return first;
|
|
2002
|
+
}
|
|
2003
|
+
if (column.type !== 'children') {
|
|
2004
|
+
return __spread(first, [column]);
|
|
2005
|
+
}
|
|
2006
|
+
var children = column.children;
|
|
2007
|
+
return __spread(first, children);
|
|
2008
|
+
}, []);
|
|
2009
|
+
gridColumns = displayColumns
|
|
2010
|
+
.map(function (e) { return (Object.assign(Object.assign({}, e), { data: columns_4.find(function (e1) { return e1.field === e.field; }) })); })
|
|
2011
|
+
.filter(function (e) { return !!e.data; })
|
|
2012
|
+
.map(function (e) { return e.data; });
|
|
2013
|
+
}
|
|
2014
|
+
return __spread(gridColumns, (((_b = (_a = _this.tableOption.export) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.filter(function (e) { var _a; return !((_a = e.export) === null || _a === void 0 ? void 0 : _a.disabled); })) || []));
|
|
1984
2015
|
});
|
|
1985
2016
|
this.exportExcel = function () {
|
|
1986
2017
|
__classPrivateFieldGet(_this, _onExport).call(_this);
|
|
@@ -2085,7 +2116,7 @@
|
|
|
2085
2116
|
};
|
|
2086
2117
|
this.detectChanges = function () { return _this.ref.detectChanges(); };
|
|
2087
2118
|
_loadValues.set(this, function (columns) { return __awaiter(_this, void 0, void 0, function () {
|
|
2088
|
-
var promises, _loop_2, this_1,
|
|
2119
|
+
var promises, _loop_2, this_1, columns_5, columns_5_1, column, results, _loop_3, this_2, results_3, results_3_1, result;
|
|
2089
2120
|
var e_10, _10, e_11, _11;
|
|
2090
2121
|
return __generator(this, function (_12) {
|
|
2091
2122
|
switch (_12.label) {
|
|
@@ -2126,15 +2157,15 @@
|
|
|
2126
2157
|
};
|
|
2127
2158
|
this_1 = this;
|
|
2128
2159
|
try {
|
|
2129
|
-
for (
|
|
2130
|
-
column =
|
|
2160
|
+
for (columns_5 = __values(columns), columns_5_1 = columns_5.next(); !columns_5_1.done; columns_5_1 = columns_5.next()) {
|
|
2161
|
+
column = columns_5_1.value;
|
|
2131
2162
|
_loop_2(column);
|
|
2132
2163
|
}
|
|
2133
2164
|
}
|
|
2134
2165
|
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
2135
2166
|
finally {
|
|
2136
2167
|
try {
|
|
2137
|
-
if (
|
|
2168
|
+
if (columns_5_1 && !columns_5_1.done && (_10 = columns_5.return)) _10.call(columns_5);
|
|
2138
2169
|
}
|
|
2139
2170
|
finally { if (e_10) throw e_10.error; }
|
|
2140
2171
|
}
|
|
@@ -2172,7 +2203,7 @@
|
|
|
2172
2203
|
});
|
|
2173
2204
|
}); });
|
|
2174
2205
|
_format.set(this, function (rawItems, columns) { return __awaiter(_this, void 0, void 0, function () {
|
|
2175
|
-
var _5, _6, _7, _8, _9, items, _loop_4, this_3,
|
|
2206
|
+
var _5, _6, _7, _8, _9, items, _loop_4, this_3, columns_6, columns_6_1, column, e_12_1;
|
|
2176
2207
|
var e_12, _10;
|
|
2177
2208
|
var _this = this;
|
|
2178
2209
|
return __generator(this, function (_11) {
|
|
@@ -2344,17 +2375,17 @@
|
|
|
2344
2375
|
_11.label = 1;
|
|
2345
2376
|
case 1:
|
|
2346
2377
|
_11.trys.push([1, 6, 7, 8]);
|
|
2347
|
-
|
|
2378
|
+
columns_6 = __values(columns), columns_6_1 = columns_6.next();
|
|
2348
2379
|
_11.label = 2;
|
|
2349
2380
|
case 2:
|
|
2350
|
-
if (!!
|
|
2351
|
-
column =
|
|
2381
|
+
if (!!columns_6_1.done) return [3 /*break*/, 5];
|
|
2382
|
+
column = columns_6_1.value;
|
|
2352
2383
|
return [5 /*yield**/, _loop_4(column)];
|
|
2353
2384
|
case 3:
|
|
2354
2385
|
_11.sent();
|
|
2355
2386
|
_11.label = 4;
|
|
2356
2387
|
case 4:
|
|
2357
|
-
|
|
2388
|
+
columns_6_1 = columns_6.next();
|
|
2358
2389
|
return [3 /*break*/, 2];
|
|
2359
2390
|
case 5: return [3 /*break*/, 8];
|
|
2360
2391
|
case 6:
|
|
@@ -2363,7 +2394,7 @@
|
|
|
2363
2394
|
return [3 /*break*/, 8];
|
|
2364
2395
|
case 7:
|
|
2365
2396
|
try {
|
|
2366
|
-
if (
|
|
2397
|
+
if (columns_6_1 && !columns_6_1.done && (_10 = columns_6.return)) _10.call(columns_6);
|
|
2367
2398
|
}
|
|
2368
2399
|
finally { if (e_12) throw e_12.error; }
|
|
2369
2400
|
return [7 /*endfinally*/];
|