fantasy-ngzorro 1.0.60 → 1.1.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/bundles/fantasy-ngzorro.umd.js +292 -77
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +2 -2
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/fantasy-ngzorro.js +2 -2
- package/esm2015/hd-button/hd-button.component.js +9 -5
- package/esm2015/hd-button/hd-button.service.js +7 -1
- package/esm2015/hd-table/hd-table.component.js +227 -60
- package/esm2015/hd-table/hd-table.service.js +24 -4
- package/esm2015/index.js +2 -2
- package/esm2015/model/colWidth.js +31 -0
- package/esm2015/public-api.js +2 -2
- package/esm5/fantasy-ngzorro.js +2 -2
- package/esm5/hd-button/hd-button.component.js +9 -5
- package/esm5/hd-button/hd-button.service.js +7 -1
- package/esm5/hd-table/hd-table.component.js +250 -64
- package/esm5/hd-table/hd-table.service.js +28 -7
- package/esm5/index.js +2 -2
- package/esm5/model/colWidth.js +31 -0
- package/esm5/public-api.js +2 -2
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +260 -64
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +285 -70
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-button/hd-button.component.d.ts +3 -2
- package/hd-button/hd-button.service.d.ts +4 -0
- package/hd-table/hd-table.component.d.ts +16 -6
- package/hd-table/hd-table.service.d.ts +7 -2
- package/model/colWidth.d.ts +14 -0
- package/package.json +2 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('localforage'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'localforage', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal, global.dropdown, global.popconfirm, global.resizable, global.tooltip, global.tree, global.localforage, global.rxjs, global.rxjs.operators));
|
|
5
|
-
}(this, (function (exports, core, common, forms, ngZorroAntd, core$1, lodash, dragDrop, table, modal, dropdown, popconfirm, resizable, tooltip, tree, localforage, rxjs, operators) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('fantasy-ngzorro/model/colWidth'), require('localforage'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'fantasy-ngzorro/model/colWidth', 'localforage', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
+
(global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal, global.dropdown, global.popconfirm, global.resizable, global.tooltip, global.tree, global.colWidth, global.localforage, global.rxjs, global.rxjs.operators));
|
|
5
|
+
}(this, (function (exports, core, common, forms, ngZorroAntd, core$1, lodash, dragDrop, table, modal, dropdown, popconfirm, resizable, tooltip, tree, colWidth, localforage, rxjs, operators) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -297,6 +297,11 @@
|
|
|
297
297
|
reset: 'reset',
|
|
298
298
|
add: 'add',
|
|
299
299
|
};
|
|
300
|
+
/** @enum {string} */
|
|
301
|
+
var ButtonSize = {
|
|
302
|
+
normal: 'normal',
|
|
303
|
+
small: 'small',
|
|
304
|
+
};
|
|
300
305
|
var HdButtonService = /** @class */ (function () {
|
|
301
306
|
function HdButtonService() {
|
|
302
307
|
}
|
|
@@ -319,6 +324,7 @@
|
|
|
319
324
|
function HdButtonComponent() {
|
|
320
325
|
// 默认default
|
|
321
326
|
this.type = ButtonType.default;
|
|
327
|
+
this.size = ButtonSize.normal;
|
|
322
328
|
this.disabled = false;
|
|
323
329
|
this.clickAction = new core.EventEmitter();
|
|
324
330
|
this.nzOnConfirm = new core.EventEmitter();
|
|
@@ -371,14 +377,15 @@
|
|
|
371
377
|
HdButtonComponent.decorators = [
|
|
372
378
|
{ type: core.Component, args: [{
|
|
373
379
|
selector: 'hd-button',
|
|
374
|
-
template: "<nz-content class=\"hd-button-container\">\n <button nz-button [nzType]=\"type\" [disabled]=\"disabled\" [nzLoading]=\"loading\"
|
|
375
|
-
styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-button-container{display:inline-block}.hd-button-container button{height:28px;line-height:28px;padding:0 16px!important;border:0;font-size:12px;border-radius:4px}.hd-button-container button[disabled]{background-color:#c8c8c8;color:#fff}.hd-button-container .ant-btn-reset{color:#fff;background:#5d7267}.hd-button-container .ant-btn-reset:hover{background:#72877b}.hd-button-container .ant-btn-default{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-default:hover{color:#12a34f;border:1px solid #12a34f}.hd-button-container .ant-btn-warning{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-warning:hover{color:#f05b24;border:1px solid #f05b24}"]
|
|
380
|
+
template: "<nz-content class=\"hd-button-container\">\n <button nz-button [nzType]=\"type\" [disabled]=\"disabled\" [nzLoading]=\"loading\"\n [class]=\"size==='small'? 'hd-button-small' : '' + type==='add'? 'ant-btn-primary' : ''\"\n (click)=\"innerClickAction($event)\">\n <i nz-icon *ngIf=\"type==='add'\" nzType=\"plus\" style=\"margin-right: 4px;\"></i>\n <!-- \u63D2\u69FD -->\n <ng-content></ng-content>\n </button>\n</nz-content>",
|
|
381
|
+
styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-button-container{display:inline-block}.hd-button-container button{height:28px;line-height:28px;padding:0 16px!important;border:0;font-size:12px;border-radius:4px}.hd-button-container .hd-button-small{padding:0 6px!important}.hd-button-container button[disabled]{background-color:#c8c8c8;color:#fff}.hd-button-container .ant-btn-reset{color:#fff;background:#5d7267}.hd-button-container .ant-btn-reset:hover{background:#72877b}.hd-button-container .ant-btn-default{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-default:hover{color:#12a34f;border:1px solid #12a34f}.hd-button-container .ant-btn-warning{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-warning:hover{color:#f05b24;border:1px solid #f05b24}"]
|
|
376
382
|
}] }
|
|
377
383
|
];
|
|
378
384
|
/** @nocollapse */
|
|
379
385
|
HdButtonComponent.ctorParameters = function () { return []; };
|
|
380
386
|
HdButtonComponent.propDecorators = {
|
|
381
387
|
type: [{ type: core.Input }],
|
|
388
|
+
size: [{ type: core.Input }],
|
|
382
389
|
loading: [{ type: core.Input }],
|
|
383
390
|
disabled: [{ type: core.Input }],
|
|
384
391
|
clickAction: [{ type: core.Output }],
|
|
@@ -398,6 +405,8 @@
|
|
|
398
405
|
/** @type {?} */
|
|
399
406
|
HdButtonComponent.prototype.type;
|
|
400
407
|
/** @type {?} */
|
|
408
|
+
HdButtonComponent.prototype.size;
|
|
409
|
+
/** @type {?} */
|
|
401
410
|
HdButtonComponent.prototype.loading;
|
|
402
411
|
/** @type {?} */
|
|
403
412
|
HdButtonComponent.prototype.disabled;
|
|
@@ -3340,16 +3349,36 @@
|
|
|
3340
3349
|
/** @type {?} */
|
|
3341
3350
|
TableCacheOption.prototype.cols;
|
|
3342
3351
|
}
|
|
3343
|
-
|
|
3344
|
-
|
|
3352
|
+
// 设置列 树组件对象
|
|
3353
|
+
var
|
|
3354
|
+
// 设置列 树组件对象
|
|
3355
|
+
TreeGrid = /** @class */ (function () {
|
|
3356
|
+
function TreeGrid() {
|
|
3357
|
+
this.title = '';
|
|
3358
|
+
this.key = '';
|
|
3359
|
+
this.disabled = false;
|
|
3360
|
+
this.checked = false;
|
|
3361
|
+
this.selectable = false;
|
|
3362
|
+
this.isLeaf = true;
|
|
3363
|
+
this.expanded = false;
|
|
3345
3364
|
}
|
|
3346
|
-
return
|
|
3365
|
+
return TreeGrid;
|
|
3347
3366
|
}());
|
|
3348
3367
|
if (false) {
|
|
3349
3368
|
/** @type {?} */
|
|
3350
|
-
|
|
3369
|
+
TreeGrid.prototype.title;
|
|
3370
|
+
/** @type {?} */
|
|
3371
|
+
TreeGrid.prototype.key;
|
|
3372
|
+
/** @type {?} */
|
|
3373
|
+
TreeGrid.prototype.disabled;
|
|
3374
|
+
/** @type {?} */
|
|
3375
|
+
TreeGrid.prototype.checked;
|
|
3351
3376
|
/** @type {?} */
|
|
3352
|
-
|
|
3377
|
+
TreeGrid.prototype.selectable;
|
|
3378
|
+
/** @type {?} */
|
|
3379
|
+
TreeGrid.prototype.isLeaf;
|
|
3380
|
+
/** @type {?} */
|
|
3381
|
+
TreeGrid.prototype.expanded;
|
|
3353
3382
|
}
|
|
3354
3383
|
|
|
3355
3384
|
/**
|
|
@@ -3389,34 +3418,52 @@
|
|
|
3389
3418
|
this.showTable = false;
|
|
3390
3419
|
this.selectColListNodes = [];
|
|
3391
3420
|
this.selectColListNodesCache = [];
|
|
3421
|
+
this.showListNodes = false;
|
|
3422
|
+
this.isDropdownVisible = false;
|
|
3423
|
+
// 设置列的可见操作数组
|
|
3424
|
+
this.nowListNodes = [];
|
|
3425
|
+
// 设置列的不可见操作数组
|
|
3426
|
+
this.hideListNodes = [];
|
|
3427
|
+
// 点击时需要有临时数组存放两个tree,用于取消时候恢复调整前的状态
|
|
3428
|
+
this.cancelNowListNodes = [];
|
|
3429
|
+
this.cancelHideListNodes = [];
|
|
3392
3430
|
// 拖拽操作
|
|
3393
3431
|
this.beforeDrop = (/**
|
|
3394
3432
|
* @param {?} arg
|
|
3395
3433
|
* @return {?}
|
|
3396
3434
|
*/
|
|
3397
3435
|
function (arg) {
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3436
|
+
if (arg.node.origin.disabled || !arg.dragNode.origin.checked) {
|
|
3437
|
+
return rxjs.of(false);
|
|
3438
|
+
}
|
|
3439
|
+
else {
|
|
3440
|
+
/** @type {?} */
|
|
3441
|
+
var node = new TreeGrid();
|
|
3442
|
+
node.checked = arg.dragNode.origin.checked;
|
|
3443
|
+
node.disabled = arg.dragNode.origin.disabled;
|
|
3444
|
+
node.expanded = arg.dragNode.origin.expanded;
|
|
3445
|
+
node.isLeaf = arg.dragNode.origin.isLeaf;
|
|
3446
|
+
node.key = arg.dragNode.origin.key;
|
|
3447
|
+
node.selectable = arg.dragNode.origin.selectable;
|
|
3448
|
+
node.title = arg.dragNode.origin.title;
|
|
3449
|
+
// 拖拽元素下标
|
|
3450
|
+
/** @type {?} */
|
|
3451
|
+
var dragNodeIndex = _this.nowListNodes.findIndex((/**
|
|
3452
|
+
* @param {?} item
|
|
3453
|
+
* @return {?}
|
|
3454
|
+
*/
|
|
3455
|
+
function (item) { return item.title == arg.dragNode.origin.title; }));
|
|
3456
|
+
// 目标位置的下标
|
|
3457
|
+
/** @type {?} */
|
|
3458
|
+
var nodeIndex = _this.nowListNodes.findIndex((/**
|
|
3459
|
+
* @param {?} item
|
|
3460
|
+
* @return {?}
|
|
3461
|
+
*/
|
|
3462
|
+
function (item) { return item.title == arg.node.origin.title; })) + (arg.pos === -1 ? 0 : arg.pos);
|
|
3463
|
+
_this.nowListNodes.splice(nodeIndex, 0, node);
|
|
3464
|
+
_this.nowListNodes.splice(nodeIndex >= dragNodeIndex ? dragNodeIndex : dragNodeIndex + 1, 1);
|
|
3465
|
+
return rxjs.of(true).pipe(operators.delay(100));
|
|
3466
|
+
}
|
|
3420
3467
|
});
|
|
3421
3468
|
}
|
|
3422
3469
|
/**
|
|
@@ -3460,7 +3507,7 @@
|
|
|
3460
3507
|
if (!_this.tableCacheOption.colWidths) {
|
|
3461
3508
|
_this.tableCacheOption.colWidths = new Map();
|
|
3462
3509
|
}
|
|
3463
|
-
_this.initTable(
|
|
3510
|
+
_this.initTable();
|
|
3464
3511
|
})).catch((/**
|
|
3465
3512
|
* @param {?} err
|
|
3466
3513
|
* @return {?}
|
|
@@ -3470,49 +3517,94 @@
|
|
|
3470
3517
|
_this.tablePageSize = 10;
|
|
3471
3518
|
_this.tableCacheOption.pageSize = 10;
|
|
3472
3519
|
_this.tableCacheOption.colWidths = new Map();
|
|
3473
|
-
_this.initTable(
|
|
3520
|
+
_this.initTable();
|
|
3474
3521
|
}));
|
|
3475
3522
|
};
|
|
3476
3523
|
/**
|
|
3477
|
-
* @param {?=} initTree
|
|
3478
3524
|
* @return {?}
|
|
3479
3525
|
*/
|
|
3480
3526
|
HdTableComponent.prototype.initTable = /**
|
|
3481
|
-
* @param {?=} initTree
|
|
3482
3527
|
* @return {?}
|
|
3483
3528
|
*/
|
|
3484
|
-
function (
|
|
3485
|
-
if (initTree === void 0) { initTree = false; }
|
|
3529
|
+
function () {
|
|
3486
3530
|
this.showTable = false;
|
|
3487
3531
|
if (!this.uuid) {
|
|
3488
3532
|
throw 'hd-table缺失uuid参数,请使用编辑器插件生成并给hd-table赋予uuid属性';
|
|
3489
3533
|
}
|
|
3490
3534
|
if (this.judgeRepeatCols()) {
|
|
3491
3535
|
this.dealCols();
|
|
3492
|
-
this.setCols(
|
|
3536
|
+
this.setCols();
|
|
3493
3537
|
this.dealScroll();
|
|
3494
3538
|
this.dealOperateBtn();
|
|
3495
3539
|
this.showTable = true;
|
|
3496
3540
|
}
|
|
3497
3541
|
};
|
|
3542
|
+
// 设置列点击取消
|
|
3543
|
+
// 设置列点击取消
|
|
3544
|
+
/**
|
|
3545
|
+
* @return {?}
|
|
3546
|
+
*/
|
|
3547
|
+
HdTableComponent.prototype.cancelDropdown =
|
|
3548
|
+
// 设置列点击取消
|
|
3549
|
+
/**
|
|
3550
|
+
* @return {?}
|
|
3551
|
+
*/
|
|
3552
|
+
function () {
|
|
3553
|
+
this.isDropdownVisible = false;
|
|
3554
|
+
this.hideListNodes = JSON.parse(JSON.stringify(this.cancelHideListNodes));
|
|
3555
|
+
this.nowListNodes = JSON.parse(JSON.stringify(this.cancelNowListNodes));
|
|
3556
|
+
};
|
|
3557
|
+
// 点击触发设置列
|
|
3558
|
+
// 点击触发设置列
|
|
3559
|
+
/**
|
|
3560
|
+
* @return {?}
|
|
3561
|
+
*/
|
|
3562
|
+
HdTableComponent.prototype.confirmDropdown =
|
|
3563
|
+
// 点击触发设置列
|
|
3564
|
+
/**
|
|
3565
|
+
* @return {?}
|
|
3566
|
+
*/
|
|
3567
|
+
function () {
|
|
3568
|
+
// 临时存放下,取消的时候恢复原来的状态 深拷贝下对象数组
|
|
3569
|
+
this.cancelHideListNodes = JSON.parse(JSON.stringify(this.hideListNodes));
|
|
3570
|
+
this.cancelNowListNodes = JSON.parse(JSON.stringify(this.nowListNodes));
|
|
3571
|
+
this.isDropdownVisible = true;
|
|
3572
|
+
};
|
|
3573
|
+
/**
|
|
3574
|
+
* @return {?}
|
|
3575
|
+
*/
|
|
3576
|
+
HdTableComponent.prototype.submitGrids = /**
|
|
3577
|
+
* @return {?}
|
|
3578
|
+
*/
|
|
3579
|
+
function () {
|
|
3580
|
+
var _this = this;
|
|
3581
|
+
this.tableCacheOption.cols = [];
|
|
3582
|
+
this.nowListNodes.forEach((/**
|
|
3583
|
+
* @param {?} item
|
|
3584
|
+
* @return {?}
|
|
3585
|
+
*/
|
|
3586
|
+
function (item) {
|
|
3587
|
+
_this.tableCacheOption.cols.push(item.title);
|
|
3588
|
+
}));
|
|
3589
|
+
this.saveTableCacheOption();
|
|
3590
|
+
this.initTable();
|
|
3591
|
+
this.isDropdownVisible = false;
|
|
3592
|
+
};
|
|
3498
3593
|
// 从缓存设置列
|
|
3499
3594
|
// 从缓存设置列
|
|
3500
3595
|
/**
|
|
3501
|
-
* @param {?=} initTree
|
|
3502
3596
|
* @return {?}
|
|
3503
3597
|
*/
|
|
3504
3598
|
HdTableComponent.prototype.setCols =
|
|
3505
3599
|
// 从缓存设置列
|
|
3506
3600
|
/**
|
|
3507
|
-
* @param {?=} initTree
|
|
3508
3601
|
* @return {?}
|
|
3509
3602
|
*/
|
|
3510
|
-
function (
|
|
3603
|
+
function () {
|
|
3511
3604
|
var _this = this;
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
}
|
|
3605
|
+
this.showListNodes = false;
|
|
3606
|
+
this.nowListNodes = [];
|
|
3607
|
+
this.hideListNodes = [];
|
|
3516
3608
|
if (this.tableCacheOption.cols) {
|
|
3517
3609
|
var _a = this.tableColsCache.reduce((/**
|
|
3518
3610
|
* @param {?} acc
|
|
@@ -3546,24 +3638,35 @@
|
|
|
3546
3638
|
function (element, index) {
|
|
3547
3639
|
if (_this.tableCacheOption.cols) {
|
|
3548
3640
|
element.isShow = _this.tableCacheOption.cols.includes(element.title) ? true : false;
|
|
3549
|
-
if (
|
|
3550
|
-
_this.
|
|
3641
|
+
if (element.isShow) {
|
|
3642
|
+
_this.nowListNodes.push({
|
|
3551
3643
|
title: element.title,
|
|
3552
3644
|
key: element.title,
|
|
3645
|
+
disabled: element.fixed ? true : false,
|
|
3646
|
+
selectable: false,
|
|
3553
3647
|
checked: _this.tableCacheOption.cols.includes(element.title) ? true : false
|
|
3554
3648
|
});
|
|
3555
3649
|
}
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
element.isShow = true;
|
|
3559
|
-
if (initTree) {
|
|
3560
|
-
_this.selectColListNodes.push({
|
|
3650
|
+
else {
|
|
3651
|
+
_this.hideListNodes.push({
|
|
3561
3652
|
title: element.title,
|
|
3562
3653
|
key: element.title,
|
|
3563
|
-
|
|
3654
|
+
disabled: element.fixed ? true : false,
|
|
3655
|
+
selectable: false,
|
|
3656
|
+
checked: _this.tableCacheOption.cols.includes(element.title) ? true : false
|
|
3564
3657
|
});
|
|
3565
3658
|
}
|
|
3566
3659
|
}
|
|
3660
|
+
else {
|
|
3661
|
+
element.isShow = true;
|
|
3662
|
+
_this.nowListNodes.push({
|
|
3663
|
+
title: element.title,
|
|
3664
|
+
key: element.title,
|
|
3665
|
+
checked: true,
|
|
3666
|
+
selectable: false,
|
|
3667
|
+
disabled: element.fixed ? true : false
|
|
3668
|
+
});
|
|
3669
|
+
}
|
|
3567
3670
|
}));
|
|
3568
3671
|
// 调整列宽为缓存宽度
|
|
3569
3672
|
if (this.tableCacheOption && this.tableCacheOption.colWidths && this.tableCacheOption.colWidths.size !== 0) {
|
|
@@ -3578,10 +3681,12 @@
|
|
|
3578
3681
|
}));
|
|
3579
3682
|
}
|
|
3580
3683
|
this.dealCols();
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3684
|
+
setTimeout((/**
|
|
3685
|
+
* @return {?}
|
|
3686
|
+
*/
|
|
3687
|
+
function () {
|
|
3688
|
+
_this.showListNodes = true;
|
|
3689
|
+
}), 0);
|
|
3585
3690
|
};
|
|
3586
3691
|
/**
|
|
3587
3692
|
* @param {?} arr
|
|
@@ -3614,9 +3719,6 @@
|
|
|
3614
3719
|
function (item) { return item.title === elementToMoveTitle; }));
|
|
3615
3720
|
/** @type {?} */
|
|
3616
3721
|
var newIndex = pos < 0 ? (targetIndex + pos) : targetIndex;
|
|
3617
|
-
console.log('elementIndex', elementIndex);
|
|
3618
|
-
console.log('targetIndex', targetIndex);
|
|
3619
|
-
console.log('newIndex', newIndex);
|
|
3620
3722
|
// 移除目标元素,并插入到新的位置
|
|
3621
3723
|
/** @type {?} */
|
|
3622
3724
|
var removedElement = tmpArray.splice(elementIndex, 1);
|
|
@@ -3636,13 +3738,112 @@
|
|
|
3636
3738
|
* @return {?}
|
|
3637
3739
|
*/
|
|
3638
3740
|
function (event) {
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3741
|
+
// 勾选只有在hideListNodes,取消勾选只有在nowListNodes
|
|
3742
|
+
if (event.node.origin.checked) {
|
|
3743
|
+
/** @type {?} */
|
|
3744
|
+
var node = new TreeGrid();
|
|
3745
|
+
node = this.hideListNodes.find((/**
|
|
3746
|
+
* @param {?} item
|
|
3747
|
+
* @return {?}
|
|
3748
|
+
*/
|
|
3749
|
+
function (item) {
|
|
3750
|
+
return item.title === event.node.origin.title;
|
|
3751
|
+
}));
|
|
3752
|
+
node.checked = true;
|
|
3753
|
+
// 找到第一个fixed属性为right的title,找到插入元素的位置
|
|
3754
|
+
/** @type {?} */
|
|
3755
|
+
var title_1 = null;
|
|
3756
|
+
for (var i = this.tableColsCache.length - 1; i >= 0; i--) {
|
|
3757
|
+
if (this.tableColsCache[i].fixed === 'right') {
|
|
3758
|
+
title_1 = this.tableColsCache[i].title;
|
|
3759
|
+
break;
|
|
3760
|
+
}
|
|
3761
|
+
}
|
|
3762
|
+
/** @type {?} */
|
|
3763
|
+
var temporaryNodeList = this.nowListNodes.slice(0);
|
|
3764
|
+
if (!title_1) {
|
|
3765
|
+
temporaryNodeList.push(node);
|
|
3766
|
+
}
|
|
3767
|
+
else {
|
|
3768
|
+
/** @type {?} */
|
|
3769
|
+
var index = this.nowListNodes.findIndex((/**
|
|
3770
|
+
* @param {?} node
|
|
3771
|
+
* @return {?}
|
|
3772
|
+
*/
|
|
3773
|
+
function (node) { return node.title === title_1; }));
|
|
3774
|
+
temporaryNodeList.splice(index, 0, node);
|
|
3775
|
+
}
|
|
3776
|
+
this.nowListNodes = temporaryNodeList;
|
|
3777
|
+
this.hideListNodes = this.hideListNodes.filter((/**
|
|
3778
|
+
* @param {?} item
|
|
3779
|
+
* @return {?}
|
|
3780
|
+
*/
|
|
3781
|
+
function (item) {
|
|
3782
|
+
return item.title !== event.node.origin.title;
|
|
3783
|
+
}));
|
|
3784
|
+
}
|
|
3785
|
+
else {
|
|
3786
|
+
if (this.hideListNodes.length === 0 && this.tableCacheOption && this.tableCacheOption.cols) {
|
|
3787
|
+
this.hideListNodes = this.getHideListNodes();
|
|
3788
|
+
}
|
|
3789
|
+
else {
|
|
3790
|
+
/** @type {?} */
|
|
3791
|
+
var temporaryNodeList_1 = this.hideListNodes.slice(0);
|
|
3792
|
+
this.nowListNodes.forEach((/**
|
|
3793
|
+
* @param {?} item
|
|
3794
|
+
* @return {?}
|
|
3795
|
+
*/
|
|
3796
|
+
function (item) {
|
|
3797
|
+
if (item.title === event.node.origin.title) {
|
|
3798
|
+
/** @type {?} */
|
|
3799
|
+
var innerItem = JSON.parse(JSON.stringify(item));
|
|
3800
|
+
innerItem.checked = true;
|
|
3801
|
+
temporaryNodeList_1.push(item);
|
|
3802
|
+
}
|
|
3803
|
+
}));
|
|
3804
|
+
this.hideListNodes = temporaryNodeList_1;
|
|
3805
|
+
}
|
|
3806
|
+
// 为了防止未选择的数组顺序因为push方法而改变,通过初始数据获取显示的字段列表
|
|
3807
|
+
this.nowListNodes = this.nowListNodes.filter((/**
|
|
3808
|
+
* @param {?} item
|
|
3809
|
+
* @return {?}
|
|
3810
|
+
*/
|
|
3811
|
+
function (item) {
|
|
3812
|
+
return item.title !== event.node.origin.title;
|
|
3813
|
+
}));
|
|
3814
|
+
}
|
|
3815
|
+
};
|
|
3816
|
+
// 防止未选择的数组顺序因为push方法而改变,从初始数据获取隐藏未显示的字段列表
|
|
3817
|
+
// 防止未选择的数组顺序因为push方法而改变,从初始数据获取隐藏未显示的字段列表
|
|
3818
|
+
/**
|
|
3819
|
+
* @return {?}
|
|
3820
|
+
*/
|
|
3821
|
+
HdTableComponent.prototype.getHideListNodes =
|
|
3822
|
+
// 防止未选择的数组顺序因为push方法而改变,从初始数据获取隐藏未显示的字段列表
|
|
3823
|
+
/**
|
|
3824
|
+
* @return {?}
|
|
3825
|
+
*/
|
|
3826
|
+
function () {
|
|
3827
|
+
var _this = this;
|
|
3828
|
+
/** @type {?} */
|
|
3829
|
+
var temporaryNodeList = [];
|
|
3830
|
+
// 从tableColsCache里面找没有在storage里面出现的字段,组成hideList
|
|
3831
|
+
this.tableColsCache.forEach((/**
|
|
3832
|
+
* @param {?} item
|
|
3833
|
+
* @return {?}
|
|
3834
|
+
*/
|
|
3835
|
+
function (item) {
|
|
3836
|
+
if (!_this.tableCacheOption.cols.includes(item.title)) {
|
|
3837
|
+
/** @type {?} */
|
|
3838
|
+
var nodeItem = new TreeGrid();
|
|
3839
|
+
nodeItem.title = item.title;
|
|
3840
|
+
nodeItem.key = item.title;
|
|
3841
|
+
nodeItem.disabled = item.fixed ? true : false;
|
|
3842
|
+
nodeItem.checked = false;
|
|
3843
|
+
temporaryNodeList.push(nodeItem);
|
|
3844
|
+
}
|
|
3845
|
+
}));
|
|
3846
|
+
return temporaryNodeList;
|
|
3646
3847
|
};
|
|
3647
3848
|
/**
|
|
3648
3849
|
* @return {?}
|
|
@@ -3676,8 +3877,6 @@
|
|
|
3676
3877
|
if (!this.tableColsCache || this.tableColsCache.length === 0) {
|
|
3677
3878
|
// 缓存一下表格的数据
|
|
3678
3879
|
this.tableColsCache = __spread(this.tableCols);
|
|
3679
|
-
console.log('dealCols里面的tableCols', this.tableCols);
|
|
3680
|
-
console.log('dealCols里面的缓存', this.tableColsCache);
|
|
3681
3880
|
}
|
|
3682
3881
|
};
|
|
3683
3882
|
/**
|
|
@@ -3785,18 +3984,21 @@
|
|
|
3785
3984
|
*/
|
|
3786
3985
|
function () {
|
|
3787
3986
|
/** @type {?} */
|
|
3788
|
-
var colWidth = 0;
|
|
3987
|
+
var colWidth$1 = 0;
|
|
3789
3988
|
if (this.showSelected) {
|
|
3790
|
-
colWidth += 40;
|
|
3989
|
+
colWidth$1 += 40;
|
|
3791
3990
|
}
|
|
3792
3991
|
this.tableCols.forEach((/**
|
|
3793
3992
|
* @param {?} item
|
|
3794
3993
|
* @return {?}
|
|
3795
3994
|
*/
|
|
3796
3995
|
function (item) {
|
|
3996
|
+
if (!item.width) {
|
|
3997
|
+
item.width = colWidth.ColWidth.fixColWidth;
|
|
3998
|
+
}
|
|
3797
3999
|
if (item.isShow) {
|
|
3798
|
-
item.fixedWidth = colWidth;
|
|
3799
|
-
colWidth += item.width;
|
|
4000
|
+
item.fixedWidth = colWidth$1;
|
|
4001
|
+
colWidth$1 += item.width;
|
|
3800
4002
|
}
|
|
3801
4003
|
}));
|
|
3802
4004
|
this.scroll = {
|
|
@@ -3974,8 +4176,8 @@
|
|
|
3974
4176
|
HdTableComponent.decorators = [
|
|
3975
4177
|
{ type: core.Component, args: [{
|
|
3976
4178
|
selector: 'hd-table',
|
|
3977
|
-
template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet=\"tableRightButton\"></ng-container>\n
|
|
3978
|
-
styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.nz-resizable-preview{position:absolute;top:0;left:0;z-index:8;border:1px dashed #d1d1d1}.nz-resizable-handle{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:9}.nz-resizable-handle-top{width:100%;height:10px;top:-5px;left:0}.nz-resizable-handle-right{width:10px;height:100%;top:0;right:-5px}.nz-resizable-handle-bottom{width:100%;height:10px;bottom:-5px;left:0}.nz-resizable-handle-left{width:10px;height:100%;top:0;left:-5px}.nz-resizable-handle-topRight{width:20px;height:20px;top:-5px;right:-5px;z-index:10}.nz-resizable-handle-bottomRight{width:20px;height:20px;right:-5px;bottom:-5px;z-index:10}.nz-resizable-handle-bottomLeft{width:20px;height:20px;bottom:-5px;left:-5px;z-index:10}.nz-resizable-handle-topLeft{width:20px;height:20px;top:-5px;left:-5px;z-index:10}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottom,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-top{cursor:row-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-left,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-right{cursor:col-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomRight,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topLeft{cursor:nwse-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomLeft,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topRight{cursor:nesw-resize}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}.resize-trigger{height:15px;background:#e8e8e8;position:absolute}.nz-resizable-preview{border-width:0 1px 0 0}"]
|
|
4179
|
+
template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet=\"tableRightButton\"></ng-container>\n <hd-button type=\"primary\" nz-dropdown nzTrigger=\"click\" [nzDropdownMenu]=\"menu\" (clickAction)=\"confirmDropdown()\"\n [nzVisible]=\"isDropdownVisible\">\u8BBE\u7F6E\u5217</hd-button>\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <div style=\"max-height: 400px;overflow-y: scroll;\">\n <div nz-menu style=\"padding: 5px 10px;\">\n <nz-tree *ngIf=\"showListNodes\" [nzData]=\"nowListNodes\" nzCheckable nzDraggable nzBlockNode\n nzShowExpand=\"false\" (nzCheckBoxChange)=\"checkAction($event)\" [nzBeforeDrop]=\"beforeDrop\">\n </nz-tree>\n </div>\n <div *ngIf=\"showListNodes && hideListNodes.length > 0\" nz-menu style=\"padding: 5px 10px;\">\n <nz-tree *ngIf=\"showListNodes\" [nzData]=\"hideListNodes\" nzCheckable nzShowExpand=\"false\"\n (nzCheckBoxChange)=\"checkAction($event)\">\n </nz-tree>\n </div>\n </div>\n <div style=\"text-align: right;background: #fff;padding: 4px;\">\n <hd-button style=\"margin-right: 4px;\" type=\"default\" size=\"small\" (clickAction)=\"cancelDropdown()\">\u53D6\u6D88\n </hd-button>\n <hd-button type=\"primary\" size=\"small\" (clickAction)=\"submitGrids()\">\u5B8C\u6210</hd-button>\n </div>\n </nz-dropdown-menu>\n </ng-template>\n </hd-button-group>\n <hd-space type=\"row\" size=\"12\"></hd-space>\n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n <hd-space *ngIf=\"tableTotal\" type=\"row\" size=\"12\"></hd-space>\n <nz-table *ngIf=\"showTable\" #hdTable class=\"hd-table-container\" [nzScroll]=\"scroll\" nzShowSizeChanger\n nzShowSizeChanger nzShowQuickJumper nzFrontPagination=\"false\" nzSize=\"middle\" [nzData]=\"tableData.content\"\n [nzTotal]=\"tableData.totalElements\" [(nzPageIndex)]=\"tablePageIndex\" [nzLoading]=\"tableLoading\"\n [nzPageSizeOptions]=\"[ 10, 50, 100, 200 ]\" [(nzPageSize)]=\"tablePageSize\" (nzPageSizeChange)=\"search(true)\"\n (nzPageIndexChange)=\"search(false)\" (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\"\n [nzShowTotal]=\"tableTotalTemplate\">\n <thead>\n <tr>\n <th nzWidth=\"40px\" nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngFor=\"let col of tableCols\">\n <th *ngIf=\"col.isShow\" [nzWidth]=\"col.width + 'px'\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\" nz-resizable nzBounds=\"window\"\n (nzResizeEnd)=\"onResize($event, col.title)\">\n {{ col.title }}\n <nz-resize-handle nzDirection=\"right\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\"\n (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngFor=\"let col of tableCols\">\n <td *ngIf=\"col.isShow\" [ngStyle]=\"{'max-width': col.width + 'px'}\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\">\n <ng-container *ngIf=\"col.title === '\u64CD\u4F5C';else notOperateTemplate\">\n <div class=\"common-btn-group\">\n <ng-container *ngFor=\"let btn of col.btnList\">\n <ng-container *ngIf=\"!btn.showConfirm;else showConfirmTemplate\">\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\"\n (click)=\"triggerEvent(btn.click || null, data)\">{{ btn.name }}</a>\n </ng-container>\n <ng-template #showConfirmTemplate>\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\" nz-popconfirm\n [nzPopconfirmTitle]=\"'\u786E\u8BA4\u8981' + btn.name + '\u5417?'\"\n (nzOnConfirm)=\"triggerEvent(btn.click || null, data)\">{{\n btn.name }}</a>\n </ng-template>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notOperateTemplate>\n <ng-container *ngIf=\"col.name === 'state';else otherTemplate\">\n <hd-status [status]=\"data['state']\">{{ col.render ? col.render(data) : data['state'] }}\n </hd-status>\n </ng-container>\n <ng-template #otherTemplate>\n <ng-container *ngIf=\"col.click;else noClickTemplate\">\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-container>\n <ng-template #overflowTemplate>\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-template>\n </ng-container>\n <ng-template #noClickTemplate>\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\">{{ col.render ? col.render(data) :\n data[col.name]}}</span>\n </ng-container>\n <ng-template #overflowTemplate>\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\">\n {{ col.render ? col.render(data) : data[col.name]}}</span>\n </ng-template>\n </ng-template>\n </ng-template>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n <!-- \u5408\u8BA1\u6240\u6709\u6570\u636E\u533A\u57DF \u9700\u8981\u540E\u7AEF\u63A5\u53E3\u914D\u5408 -->\n <tr *ngIf=\"showTableTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let tableTotalOption of tableTotalOptionList\">\n <td>{{ tableTotalOption }}</td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #tableTotalTemplate>\n \u5171 {{tableData.totalElements}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>",
|
|
4180
|
+
styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset;padding:0 6px!important}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.nz-resizable-preview{position:absolute;top:0;left:0;z-index:8;border:1px dashed #d1d1d1}.nz-resizable-handle{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:9}.nz-resizable-handle-top{width:100%;height:10px;top:-5px;left:0}.nz-resizable-handle-right{width:10px;height:100%;top:0;right:-5px}.nz-resizable-handle-bottom{width:100%;height:10px;bottom:-5px;left:0}.nz-resizable-handle-left{width:10px;height:100%;top:0;left:-5px}.nz-resizable-handle-topRight{width:20px;height:20px;top:-5px;right:-5px;z-index:10}.nz-resizable-handle-bottomRight{width:20px;height:20px;right:-5px;bottom:-5px;z-index:10}.nz-resizable-handle-bottomLeft{width:20px;height:20px;bottom:-5px;left:-5px;z-index:10}.nz-resizable-handle-topLeft{width:20px;height:20px;top:-5px;left:-5px;z-index:10}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottom,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-top{cursor:row-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-left,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-right{cursor:col-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomRight,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topLeft{cursor:nwse-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomLeft,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topRight{cursor:nesw-resize}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}.resize-trigger{height:15px;background:#e8e8e8;position:absolute}.nz-resizable-preview{border-width:0 1px 0 0}::ng-deep .ant-dropdown-menu{border-radius:0}::ng-deep .ant-dropdown{margin-top:8px!important}"]
|
|
3979
4181
|
}] }
|
|
3980
4182
|
];
|
|
3981
4183
|
/** @nocollapse */
|
|
@@ -4082,6 +4284,18 @@
|
|
|
4082
4284
|
/** @type {?} */
|
|
4083
4285
|
HdTableComponent.prototype.selectColListNodesCache;
|
|
4084
4286
|
/** @type {?} */
|
|
4287
|
+
HdTableComponent.prototype.showListNodes;
|
|
4288
|
+
/** @type {?} */
|
|
4289
|
+
HdTableComponent.prototype.isDropdownVisible;
|
|
4290
|
+
/** @type {?} */
|
|
4291
|
+
HdTableComponent.prototype.nowListNodes;
|
|
4292
|
+
/** @type {?} */
|
|
4293
|
+
HdTableComponent.prototype.hideListNodes;
|
|
4294
|
+
/** @type {?} */
|
|
4295
|
+
HdTableComponent.prototype.cancelNowListNodes;
|
|
4296
|
+
/** @type {?} */
|
|
4297
|
+
HdTableComponent.prototype.cancelHideListNodes;
|
|
4298
|
+
/** @type {?} */
|
|
4085
4299
|
HdTableComponent.prototype.beforeDrop;
|
|
4086
4300
|
/**
|
|
4087
4301
|
* @type {?}
|
|
@@ -4758,6 +4972,7 @@
|
|
|
4758
4972
|
arrayToSelectOptionList: (ɵ2)
|
|
4759
4973
|
};
|
|
4760
4974
|
|
|
4975
|
+
exports.ButtonSize = ButtonSize;
|
|
4761
4976
|
exports.ButtonType = ButtonType;
|
|
4762
4977
|
exports.ColorOption = ColorOption;
|
|
4763
4978
|
exports.ExplainOption = ExplainOption;
|