@qn-pandora/pandora-component 4.4.3 → 4.4.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +34 -0
- package/CHANGELOG.md +15 -1
- package/es/components/FileResumable/index.js +53 -62
- package/es/components/FileResumable/utils.d.ts +2 -0
- package/es/components/FileResumable/utils.js +17 -0
- package/es/components/Table/ColumnSetting/index.d.ts +1 -0
- package/es/components/Table/ColumnSetting/index.js +16 -8
- package/es/components/Table/ColumnSetting/style.css +10 -1
- package/es/components/Table/ColumnSetting/style.less +6 -1
- package/es/components/Table/constant.d.ts +3 -1
- package/es/components/Table/constant.js +2 -0
- package/es/components/Table/index.d.ts +38 -4
- package/es/components/Table/index.js +290 -37
- package/es/components/Table/style.css +1 -0
- package/es/components/Table/style.less +1 -0
- package/es/index.css +7338 -7328
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.less +16 -16
- package/lib/components/FileResumable/index.js +52 -61
- package/lib/components/FileResumable/utils.d.ts +2 -0
- package/lib/components/FileResumable/utils.js +21 -0
- package/lib/components/Table/ColumnSetting/index.d.ts +1 -0
- package/lib/components/Table/ColumnSetting/index.js +15 -7
- package/lib/components/Table/ColumnSetting/style.css +10 -1
- package/lib/components/Table/ColumnSetting/style.less +6 -1
- package/lib/components/Table/constant.d.ts +3 -1
- package/lib/components/Table/constant.js +2 -0
- package/lib/components/Table/index.d.ts +38 -4
- package/lib/components/Table/index.js +289 -36
- package/lib/components/Table/style.css +1 -0
- package/lib/components/Table/style.less +1 -0
- package/lib/index.css +8990 -8980
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/index.less +17 -17
- package/package.json +4 -3
@@ -66,7 +66,7 @@ import * as React from 'react';
|
|
66
66
|
import classnames from 'classnames';
|
67
67
|
import { observer } from 'mobx-react';
|
68
68
|
import { observable, action, computed } from 'mobx';
|
69
|
-
import { size, xor, union, unionBy, differenceBy, get, isEqual, includes, isNumber } from 'lodash';
|
69
|
+
import { size, xor, union, unionBy, differenceBy, get, isEqual, includes, isNumber, isArray } from 'lodash';
|
70
70
|
import { Table as AntTable, Checkbox } from 'antd';
|
71
71
|
import { ConfigContext } from 'antd/es/config-provider';
|
72
72
|
import { toaster as toasterStore } from '@qn-pandora/app-sdk';
|
@@ -78,6 +78,11 @@ import { TableLocale } from '../../constants/language/table/type';
|
|
78
78
|
import { ColumnTag } from './ColumnTag/ColumnTag';
|
79
79
|
import ColumnSetting from './ColumnSetting';
|
80
80
|
import ResizableTitle from './ResizableTitle';
|
81
|
+
export var ETableSettingType;
|
82
|
+
(function (ETableSettingType) {
|
83
|
+
ETableSettingType["SORT"] = "sort";
|
84
|
+
ETableSettingType["RESIZE"] = "resize";
|
85
|
+
})(ETableSettingType || (ETableSettingType = {}));
|
81
86
|
/**
|
82
87
|
* pandora2.0风格的表格
|
83
88
|
*/
|
@@ -89,6 +94,12 @@ var Table = /** @class */ (function (_super) {
|
|
89
94
|
_this.checkAll = false;
|
90
95
|
_this.hiddenColumn = _this.props.hiddenColumns;
|
91
96
|
_this.columns = [];
|
97
|
+
_this.sortConfig = {
|
98
|
+
sortKeys: [],
|
99
|
+
fixedRightKeys: [],
|
100
|
+
fixedLeftKeys: []
|
101
|
+
};
|
102
|
+
_this.settingFields = [];
|
92
103
|
return _this;
|
93
104
|
}
|
94
105
|
Table.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
|
@@ -119,13 +130,23 @@ var Table = /** @class */ (function (_super) {
|
|
119
130
|
: selectedRowsOfCurrentPage);
|
120
131
|
}
|
121
132
|
}
|
122
|
-
if (isEqual(nextProps.hiddenColumns, this.props.hiddenColumns)) {
|
133
|
+
if (!isEqual(nextProps.hiddenColumns, this.props.hiddenColumns)) {
|
123
134
|
this.setHiddenColumn(nextProps.hiddenColumns);
|
124
135
|
}
|
125
136
|
if (nextProps.columns !== this.props.columns) {
|
126
|
-
|
127
|
-
|
128
|
-
|
137
|
+
if ((nextProps.scroll && nextProps.draggable === true) ||
|
138
|
+
nextProps.draggable === ETableSettingType.RESIZE) {
|
139
|
+
this.updateSettingConfig(nextProps.columns);
|
140
|
+
this.setColumns(this.getResizeColumns(nextProps.columns));
|
141
|
+
}
|
142
|
+
else {
|
143
|
+
this.setColumns(nextProps.columns || []);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
};
|
147
|
+
Table.prototype.componentWillUnmount = function () {
|
148
|
+
if (this.props.saveSettingKey) {
|
149
|
+
localStorage.setItem(this.props.saveSettingKey, JSON.stringify(this.settingFields));
|
129
150
|
}
|
130
151
|
};
|
131
152
|
Object.defineProperty(Table.prototype, "selectedRowKeys", {
|
@@ -202,7 +223,9 @@ var Table = /** @class */ (function (_super) {
|
|
202
223
|
});
|
203
224
|
}
|
204
225
|
});
|
205
|
-
return
|
226
|
+
return this.sortConfig.sortKeys
|
227
|
+
.map(function (key) { return options.find(function (option) { return option.value === key; }); })
|
228
|
+
.filter(function (f) { return !!f; });
|
206
229
|
},
|
207
230
|
enumerable: true,
|
208
231
|
configurable: true
|
@@ -233,6 +256,100 @@ var Table = /** @class */ (function (_super) {
|
|
233
256
|
enumerable: true,
|
234
257
|
configurable: true
|
235
258
|
});
|
259
|
+
Object.defineProperty(Table.prototype, "resizable", {
|
260
|
+
get: function () {
|
261
|
+
var _a, _b;
|
262
|
+
return ((((_a = this.props) === null || _a === void 0 ? void 0 : _a.draggable) === true ||
|
263
|
+
((_b = this.props) === null || _b === void 0 ? void 0 : _b.draggable) === ETableSettingType.RESIZE) &&
|
264
|
+
this.props.scroll);
|
265
|
+
},
|
266
|
+
enumerable: true,
|
267
|
+
configurable: true
|
268
|
+
});
|
269
|
+
Object.defineProperty(Table.prototype, "sortable", {
|
270
|
+
get: function () {
|
271
|
+
var _a, _b;
|
272
|
+
return (((_a = this.props) === null || _a === void 0 ? void 0 : _a.draggable) === true ||
|
273
|
+
((_b = this.props) === null || _b === void 0 ? void 0 : _b.draggable) === ETableSettingType.SORT);
|
274
|
+
},
|
275
|
+
enumerable: true,
|
276
|
+
configurable: true
|
277
|
+
});
|
278
|
+
Table.prototype.updateSettingConfig = function (columns) {
|
279
|
+
this.updateSettingFields(columns, this.settingFields);
|
280
|
+
};
|
281
|
+
Table.prototype.initSettingConfig = function () {
|
282
|
+
var saveSettingKey = this.props.saveSettingKey;
|
283
|
+
var settingFields = [];
|
284
|
+
if (saveSettingKey) {
|
285
|
+
var settingStr = localStorage.getItem(saveSettingKey);
|
286
|
+
var settingConfig = !!settingStr && JSON.parse(settingStr);
|
287
|
+
if (isArray(settingConfig)) {
|
288
|
+
settingFields = settingConfig;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
this.updateSettingFields(this.props.columns, settingFields);
|
292
|
+
};
|
293
|
+
Table.prototype.updateSettingFields = function (columns, settingFields) {
|
294
|
+
var _a = this.props.hiddenColumns, hiddenColumns = _a === void 0 ? [] : _a;
|
295
|
+
var sortableColumns = [];
|
296
|
+
var leftColumns = [];
|
297
|
+
var rightColumns = [];
|
298
|
+
var hideKeys = [];
|
299
|
+
// 已配置的列和实际的对不上
|
300
|
+
// 可能新增或者删除列的情况
|
301
|
+
var newSettingFields = [];
|
302
|
+
// 已配置列
|
303
|
+
// 旧类型数据为对象类型,未配置
|
304
|
+
settingFields.map(function (field) {
|
305
|
+
var find = columns.find(function (column) { var _a; return ((_a = column) === null || _a === void 0 ? void 0 : _a.dataIndex) === field.field; });
|
306
|
+
if (find) {
|
307
|
+
if (field.hide) {
|
308
|
+
hideKeys.push(field.field);
|
309
|
+
}
|
310
|
+
if (!find.fixed) {
|
311
|
+
sortableColumns.push(field);
|
312
|
+
}
|
313
|
+
else if (find.fixed === 'left' || find.fixed === true) {
|
314
|
+
leftColumns.push(field);
|
315
|
+
}
|
316
|
+
else {
|
317
|
+
rightColumns.push(field);
|
318
|
+
}
|
319
|
+
}
|
320
|
+
});
|
321
|
+
// 未配置过的列
|
322
|
+
columns
|
323
|
+
.filter(function (f) { return !settingFields.find(function (field) { return field.field === f.dataIndex; }); })
|
324
|
+
.map(function (column) {
|
325
|
+
if (column.dataIndex) {
|
326
|
+
if (!column.fixed) {
|
327
|
+
sortableColumns.push({
|
328
|
+
field: column.dataIndex.toString(),
|
329
|
+
fixed: column.fixed
|
330
|
+
});
|
331
|
+
}
|
332
|
+
else if (column.fixed === 'left' || column.fixed === true) {
|
333
|
+
leftColumns.push({
|
334
|
+
field: column.dataIndex.toString(),
|
335
|
+
fixed: column.fixed
|
336
|
+
});
|
337
|
+
}
|
338
|
+
else {
|
339
|
+
rightColumns.push({
|
340
|
+
field: column.dataIndex.toString(),
|
341
|
+
fixed: column.fixed
|
342
|
+
});
|
343
|
+
}
|
344
|
+
}
|
345
|
+
});
|
346
|
+
this.setFixedLeftKeys(leftColumns.map(function (t) { return t.field; }));
|
347
|
+
this.setFixedRightKeys(rightColumns.map(function (t) { return t.field; }));
|
348
|
+
this.setSortKeys(sortableColumns.map(function (t) { return t.field; }));
|
349
|
+
this.setHiddenColumn(__spread(new Set(__spread(hiddenColumns, hideKeys))));
|
350
|
+
newSettingFields = __spread(leftColumns, sortableColumns, rightColumns);
|
351
|
+
this.setSettingFields(newSettingFields);
|
352
|
+
};
|
236
353
|
// 隐藏key
|
237
354
|
Table.prototype.handleHideColumnsChange = function (keys) {
|
238
355
|
var _a, _b;
|
@@ -241,33 +358,55 @@ var Table = /** @class */ (function (_super) {
|
|
241
358
|
// 提示。至少需要勾选一列
|
242
359
|
return toasterStore.warning(formatString(TableLocale.hide_column_tooltip, this.context.locale));
|
243
360
|
}
|
361
|
+
var newSettingFields = this.settingFields.map(function (field) {
|
362
|
+
if (includes(keys, field.field)) {
|
363
|
+
return __assign(__assign({}, field), { hide: true });
|
364
|
+
}
|
365
|
+
return __assign(__assign({}, field), { hide: false });
|
366
|
+
});
|
244
367
|
this.setHiddenColumn(keys);
|
368
|
+
this.setSettingFields(newSettingFields);
|
245
369
|
(_b = (_a = this.props).onHiddenColumnsChange) === null || _b === void 0 ? void 0 : _b.call(_a, keys);
|
246
370
|
};
|
247
|
-
Table.prototype.
|
248
|
-
var
|
371
|
+
Table.prototype.getSortedColumns = function () {
|
372
|
+
var _this = this;
|
249
373
|
var hiddenColumn = this.hiddenColumn || [];
|
250
|
-
if (!showColumnSetting) {
|
251
|
-
return this.columns;
|
252
|
-
}
|
253
|
-
// 获取到列设置的options
|
254
|
-
var columnsSettingOptions = this.columnsSettingOptions;
|
255
374
|
var selectedCols = __spread((this.columns || []).filter(function (item) {
|
256
375
|
if (item.configurable === false || !includes(hiddenColumn, item.key)) {
|
257
376
|
return true;
|
258
377
|
}
|
259
378
|
return false;
|
260
379
|
}));
|
261
|
-
var
|
380
|
+
var fixedRightColumn = this.columns.filter(function (column) {
|
381
|
+
return includes(_this.sortConfig.fixedRightKeys, column.key);
|
382
|
+
});
|
383
|
+
var fixedLeftColumn = this.columns.filter(function (column) {
|
384
|
+
return includes(_this.sortConfig.fixedLeftKeys, column.key);
|
385
|
+
});
|
386
|
+
return __spread(fixedLeftColumn, this.getSortCoulmns(selectedCols), fixedRightColumn);
|
387
|
+
};
|
388
|
+
Table.prototype.getColumns = function () {
|
389
|
+
var _a = this.props, showColumnSetting = _a.showColumnSetting, columnSettingOverlayClass = _a.columnSettingOverlayClass;
|
390
|
+
if (!showColumnSetting) {
|
391
|
+
return this.columns;
|
392
|
+
}
|
393
|
+
// 获取到列设置的options
|
394
|
+
var columnsSettingOptions = this.columnsSettingOptions;
|
395
|
+
var allCols = this.getSortedColumns();
|
396
|
+
var length = allCols.length;
|
262
397
|
if (length > 0) {
|
263
|
-
var lastCol = selectedCols.pop();
|
264
398
|
var title = (React.createElement("span", { className: SDK_PREFIX + "-last-column-title" },
|
265
|
-
lastCol.title,
|
266
399
|
React.createElement("span", { className: SDK_PREFIX + "-last-column-setting" },
|
267
|
-
React.createElement(ColumnSetting, { options: columnsSettingOptions, hiddenKeys: this.hiddenColumn, onHiddenKeysChange: this.handleHideColumnsChange, overlayClass: columnSettingOverlayClass }))));
|
268
|
-
|
400
|
+
React.createElement(ColumnSetting, { options: columnsSettingOptions, hiddenKeys: this.hiddenColumn, onHiddenKeysChange: this.handleHideColumnsChange, onMove: this.setSortKeys, overlayClass: columnSettingOverlayClass }))));
|
401
|
+
allCols.push({
|
402
|
+
title: title,
|
403
|
+
dataIndex: '__setting__',
|
404
|
+
key: '__setting__',
|
405
|
+
width: 40,
|
406
|
+
fixed: 'right'
|
407
|
+
});
|
269
408
|
}
|
270
|
-
return
|
409
|
+
return allCols;
|
271
410
|
};
|
272
411
|
Table.prototype.getRowKey = function (row, index) {
|
273
412
|
var rowKey = this.props.rowKey;
|
@@ -276,6 +415,11 @@ var Table = /** @class */ (function (_super) {
|
|
276
415
|
}
|
277
416
|
return rowKey ? row[rowKey] : index;
|
278
417
|
};
|
418
|
+
Table.prototype.getSortCoulmns = function (columns) {
|
419
|
+
return this.sortConfig.sortKeys
|
420
|
+
.map(function (key) { return columns.find(function (column) { return column.dataIndex === key; }); })
|
421
|
+
.filter(function (f) { return !!f; });
|
422
|
+
};
|
279
423
|
Table.prototype.setIndeterminate = function (indeterminate) {
|
280
424
|
this.indeterminate = indeterminate;
|
281
425
|
};
|
@@ -288,6 +432,29 @@ var Table = /** @class */ (function (_super) {
|
|
288
432
|
Table.prototype.setColumns = function (columns) {
|
289
433
|
this.columns = columns;
|
290
434
|
};
|
435
|
+
Table.prototype.setSortKeys = function (columns) {
|
436
|
+
var right = this.settingFields.filter(function (f) { return f.fixed === 'right'; });
|
437
|
+
var left = this.settingFields.filter(function (f) { return f.fixed === true || f.fixed === 'left'; });
|
438
|
+
var center = this.settingFields.filter(function (f) { return !f.fixed; });
|
439
|
+
var newCenter = [];
|
440
|
+
columns.map(function (column) {
|
441
|
+
var find = center.find(function (f) { return f.field === column; });
|
442
|
+
if (find) {
|
443
|
+
newCenter.push(find);
|
444
|
+
}
|
445
|
+
});
|
446
|
+
this.setSettingFields(__spread(left, newCenter, right));
|
447
|
+
this.sortConfig = __assign(__assign({}, this.sortConfig), { sortKeys: columns });
|
448
|
+
};
|
449
|
+
Table.prototype.setSettingFields = function (columns) {
|
450
|
+
this.settingFields = columns;
|
451
|
+
};
|
452
|
+
Table.prototype.setFixedRightKeys = function (columns) {
|
453
|
+
this.sortConfig = __assign(__assign({}, this.sortConfig), { fixedRightKeys: columns });
|
454
|
+
};
|
455
|
+
Table.prototype.setFixedLeftKeys = function (columns) {
|
456
|
+
this.sortConfig = __assign(__assign({}, this.sortConfig), { fixedLeftKeys: columns });
|
457
|
+
};
|
291
458
|
// 设置全选checkout的状态
|
292
459
|
Table.prototype.setCheckboxStatus = function (selectedRowsOfCurrentPage, dataSource) {
|
293
460
|
if (selectedRowsOfCurrentPage === void 0) { selectedRowsOfCurrentPage = []; }
|
@@ -364,35 +531,38 @@ var Table = /** @class */ (function (_super) {
|
|
364
531
|
}
|
365
532
|
});
|
366
533
|
var sizeMap = {};
|
534
|
+
var setttingFields = this.settingFields;
|
367
535
|
newColumns.forEach(function (element) {
|
368
536
|
if (element.dataIndex && isNumber(element.width)) {
|
369
537
|
sizeMap[element.dataIndex] = element.width;
|
370
538
|
}
|
371
539
|
});
|
372
|
-
if (this.props.
|
373
|
-
this.props.
|
540
|
+
if (this.props.onSettingChange) {
|
541
|
+
this.props.onSettingChange(setttingFields);
|
374
542
|
}
|
375
|
-
else if (this.props.
|
376
|
-
|
543
|
+
else if (this.resizable && this.props.saveSettingKey) {
|
544
|
+
setttingFields.forEach(function (field) {
|
545
|
+
if (sizeMap[field.field]) {
|
546
|
+
field.width = sizeMap[field.field];
|
547
|
+
}
|
548
|
+
});
|
549
|
+
this.setSettingFields(setttingFields);
|
377
550
|
}
|
378
551
|
this.setColumns(newColumns);
|
379
552
|
};
|
380
553
|
Table.prototype.getResizeColumns = function (columns) {
|
381
554
|
var _this = this;
|
382
|
-
var
|
383
|
-
if (
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
return isNumber(width) ? __assign(__assign({}, col), { width: width }) : col;
|
391
|
-
});
|
392
|
-
}
|
555
|
+
var fields = this.settingFields;
|
556
|
+
if ((fields === null || fields === void 0 ? void 0 : fields.length) && isArray(fields)) {
|
557
|
+
columns = columns === null || columns === void 0 ? void 0 : columns.map(function (col) {
|
558
|
+
var _a;
|
559
|
+
var dataIndex = get(col, 'dataIndex');
|
560
|
+
var width = (_a = fields === null || fields === void 0 ? void 0 : fields.find(function (f) { return f.field === dataIndex; })) === null || _a === void 0 ? void 0 : _a.width;
|
561
|
+
return isNumber(width) ? __assign(__assign({}, col), { width: width }) : col;
|
562
|
+
});
|
393
563
|
}
|
394
564
|
var transformColumns = columns === null || columns === void 0 ? void 0 : columns.map(function (it) {
|
395
|
-
if (get(it, 'resizable') && _this.
|
565
|
+
if (get(it, 'resizable') && _this.resizable) {
|
396
566
|
return __assign(__assign({}, it), { ellipsis: {
|
397
567
|
showTitle: true
|
398
568
|
}, onHeaderCell: function (col) { return ({
|
@@ -409,7 +579,11 @@ var Table = /** @class */ (function (_super) {
|
|
409
579
|
return transformColumns;
|
410
580
|
};
|
411
581
|
Table.prototype.componentDidMount = function () {
|
412
|
-
|
582
|
+
var _a;
|
583
|
+
if (this.sortable || this.resizable) {
|
584
|
+
this.initSettingConfig();
|
585
|
+
}
|
586
|
+
this.setColumns(this.resizable && ((_a = this.settingFields) === null || _a === void 0 ? void 0 : _a.length)
|
413
587
|
? this.getResizeColumns(this.props.columns)
|
414
588
|
: this.props.columns);
|
415
589
|
};
|
@@ -423,7 +597,7 @@ var Table = /** @class */ (function (_super) {
|
|
423
597
|
// getCheckboxProps只能放到tableBatchWrapper里,因为selectedRowKeys在那个组件计算
|
424
598
|
rowSelection: batchOptions && this.props.rowSelection
|
425
599
|
? this.rowSelection
|
426
|
-
: this.props.rowSelection, rowClassName: this.getRowClassName, components: __assign(__assign({}, (components || {})), (
|
600
|
+
: this.props.rowSelection, rowClassName: this.getRowClassName, components: __assign(__assign({}, (components || {})), (this.resizable
|
427
601
|
? {
|
428
602
|
header: {
|
429
603
|
cell: ResizableTitle
|
@@ -466,6 +640,14 @@ var Table = /** @class */ (function (_super) {
|
|
466
640
|
observable.ref,
|
467
641
|
__metadata("design:type", Array)
|
468
642
|
], Table.prototype, "columns", void 0);
|
643
|
+
__decorate([
|
644
|
+
observable.ref,
|
645
|
+
__metadata("design:type", Object)
|
646
|
+
], Table.prototype, "sortConfig", void 0);
|
647
|
+
__decorate([
|
648
|
+
observable.ref,
|
649
|
+
__metadata("design:type", Array)
|
650
|
+
], Table.prototype, "settingFields", void 0);
|
469
651
|
__decorate([
|
470
652
|
computed,
|
471
653
|
__metadata("design:type", Object),
|
@@ -501,12 +683,49 @@ var Table = /** @class */ (function (_super) {
|
|
501
683
|
__metadata("design:type", Object),
|
502
684
|
__metadata("design:paramtypes", [])
|
503
685
|
], Table.prototype, "columnKeys", null);
|
686
|
+
__decorate([
|
687
|
+
computed,
|
688
|
+
__metadata("design:type", Object),
|
689
|
+
__metadata("design:paramtypes", [])
|
690
|
+
], Table.prototype, "resizable", null);
|
691
|
+
__decorate([
|
692
|
+
computed,
|
693
|
+
__metadata("design:type", Object),
|
694
|
+
__metadata("design:paramtypes", [])
|
695
|
+
], Table.prototype, "sortable", null);
|
696
|
+
__decorate([
|
697
|
+
bind,
|
698
|
+
action,
|
699
|
+
__metadata("design:type", Function),
|
700
|
+
__metadata("design:paramtypes", [Array]),
|
701
|
+
__metadata("design:returntype", void 0)
|
702
|
+
], Table.prototype, "updateSettingConfig", null);
|
703
|
+
__decorate([
|
704
|
+
bind,
|
705
|
+
action,
|
706
|
+
__metadata("design:type", Function),
|
707
|
+
__metadata("design:paramtypes", []),
|
708
|
+
__metadata("design:returntype", void 0)
|
709
|
+
], Table.prototype, "initSettingConfig", null);
|
710
|
+
__decorate([
|
711
|
+
bind,
|
712
|
+
action,
|
713
|
+
__metadata("design:type", Function),
|
714
|
+
__metadata("design:paramtypes", [Array, Array]),
|
715
|
+
__metadata("design:returntype", void 0)
|
716
|
+
], Table.prototype, "updateSettingFields", null);
|
504
717
|
__decorate([
|
505
718
|
bind,
|
506
719
|
__metadata("design:type", Function),
|
507
720
|
__metadata("design:paramtypes", [Array]),
|
508
721
|
__metadata("design:returntype", void 0)
|
509
722
|
], Table.prototype, "handleHideColumnsChange", null);
|
723
|
+
__decorate([
|
724
|
+
bind,
|
725
|
+
__metadata("design:type", Function),
|
726
|
+
__metadata("design:paramtypes", []),
|
727
|
+
__metadata("design:returntype", void 0)
|
728
|
+
], Table.prototype, "getSortedColumns", null);
|
510
729
|
__decorate([
|
511
730
|
bind,
|
512
731
|
__metadata("design:type", Function),
|
@@ -519,6 +738,12 @@ var Table = /** @class */ (function (_super) {
|
|
519
738
|
__metadata("design:paramtypes", [Object, Number]),
|
520
739
|
__metadata("design:returntype", void 0)
|
521
740
|
], Table.prototype, "getRowKey", null);
|
741
|
+
__decorate([
|
742
|
+
bind,
|
743
|
+
__metadata("design:type", Function),
|
744
|
+
__metadata("design:paramtypes", [Array]),
|
745
|
+
__metadata("design:returntype", void 0)
|
746
|
+
], Table.prototype, "getSortCoulmns", null);
|
522
747
|
__decorate([
|
523
748
|
bind,
|
524
749
|
action,
|
@@ -547,6 +772,34 @@ var Table = /** @class */ (function (_super) {
|
|
547
772
|
__metadata("design:paramtypes", [Array]),
|
548
773
|
__metadata("design:returntype", void 0)
|
549
774
|
], Table.prototype, "setColumns", null);
|
775
|
+
__decorate([
|
776
|
+
bind,
|
777
|
+
action,
|
778
|
+
__metadata("design:type", Function),
|
779
|
+
__metadata("design:paramtypes", [Array]),
|
780
|
+
__metadata("design:returntype", void 0)
|
781
|
+
], Table.prototype, "setSortKeys", null);
|
782
|
+
__decorate([
|
783
|
+
bind,
|
784
|
+
action,
|
785
|
+
__metadata("design:type", Function),
|
786
|
+
__metadata("design:paramtypes", [Array]),
|
787
|
+
__metadata("design:returntype", void 0)
|
788
|
+
], Table.prototype, "setSettingFields", null);
|
789
|
+
__decorate([
|
790
|
+
bind,
|
791
|
+
action,
|
792
|
+
__metadata("design:type", Function),
|
793
|
+
__metadata("design:paramtypes", [Array]),
|
794
|
+
__metadata("design:returntype", void 0)
|
795
|
+
], Table.prototype, "setFixedRightKeys", null);
|
796
|
+
__decorate([
|
797
|
+
bind,
|
798
|
+
action,
|
799
|
+
__metadata("design:type", Function),
|
800
|
+
__metadata("design:paramtypes", [Array]),
|
801
|
+
__metadata("design:returntype", void 0)
|
802
|
+
], Table.prototype, "setFixedLeftKeys", null);
|
550
803
|
__decorate([
|
551
804
|
bind,
|
552
805
|
__metadata("design:type", Function),
|
@@ -1724,6 +1724,7 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1724
1724
|
}
|
1725
1725
|
.pandora-sdk-last-column-title .pandora-sdk-last-column-setting {
|
1726
1726
|
position: absolute;
|
1727
|
+
top: 12px;
|
1727
1728
|
right: 12px;
|
1728
1729
|
}
|
1729
1730
|
.ant-table-thead > tr > th > .ant-table-column-sorters {
|