fantasy-ngzorro 2.1.29 → 2.1.30
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 +158 -9
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-table/hd-table.component.js +145 -9
- package/esm5/hd-table/hd-table.component.js +160 -11
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +143 -7
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +158 -9
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +12 -4
- package/package.json +1 -1
|
@@ -7406,10 +7406,11 @@
|
|
|
7406
7406
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7407
7407
|
*/
|
|
7408
7408
|
var HdTableComponent = /** @class */ (function () {
|
|
7409
|
-
function HdTableComponent(cdr, commonSessionService) {
|
|
7409
|
+
function HdTableComponent(cdr, commonSessionService, elementRef) {
|
|
7410
7410
|
var _this = this;
|
|
7411
7411
|
this.cdr = cdr;
|
|
7412
7412
|
this.commonSessionService = commonSessionService;
|
|
7413
|
+
this.elementRef = elementRef;
|
|
7413
7414
|
this.tableCols = [];
|
|
7414
7415
|
this.showSelected = false;
|
|
7415
7416
|
this.showOperateColWarpButton = false;
|
|
@@ -7469,6 +7470,11 @@
|
|
|
7469
7470
|
* 可见列总宽,用于判断是否需要横向滚动
|
|
7470
7471
|
*/
|
|
7471
7472
|
this.tableColWidthTotal = 0;
|
|
7473
|
+
/**
|
|
7474
|
+
* 监听列表容器尺寸变化,重新计算 scroll.y
|
|
7475
|
+
*/
|
|
7476
|
+
this.resizeObserver = null;
|
|
7477
|
+
this.resizeRaf = 0;
|
|
7472
7478
|
this.trackByRow = (/**
|
|
7473
7479
|
* @param {?} index
|
|
7474
7480
|
* @param {?} data
|
|
@@ -7593,6 +7599,23 @@
|
|
|
7593
7599
|
console.log("localforage加载异常step1", e);
|
|
7594
7600
|
throw "localforage加载异常";
|
|
7595
7601
|
}));
|
|
7602
|
+
this.bindContainerResize();
|
|
7603
|
+
};
|
|
7604
|
+
/**
|
|
7605
|
+
* @return {?}
|
|
7606
|
+
*/
|
|
7607
|
+
HdTableComponent.prototype.ngOnDestroy = /**
|
|
7608
|
+
* @return {?}
|
|
7609
|
+
*/
|
|
7610
|
+
function () {
|
|
7611
|
+
if (this.resizeRaf) {
|
|
7612
|
+
cancelAnimationFrame(this.resizeRaf);
|
|
7613
|
+
this.resizeRaf = 0;
|
|
7614
|
+
}
|
|
7615
|
+
if (this.resizeObserver) {
|
|
7616
|
+
this.resizeObserver.disconnect();
|
|
7617
|
+
this.resizeObserver = null;
|
|
7618
|
+
}
|
|
7596
7619
|
};
|
|
7597
7620
|
/**
|
|
7598
7621
|
* @param {?} changes
|
|
@@ -7727,6 +7750,11 @@
|
|
|
7727
7750
|
var maxOffset = this.tableTotal ? 180 : 140;
|
|
7728
7751
|
/** @type {?} */
|
|
7729
7752
|
var estimatedHeight = rowCount * this.effectiveVirtualItemSize;
|
|
7753
|
+
/** @type {?} */
|
|
7754
|
+
var available = this.measureAvailableBodyHeight();
|
|
7755
|
+
if (available > 0) {
|
|
7756
|
+
return estimatedHeight > available;
|
|
7757
|
+
}
|
|
7730
7758
|
if (typeof window !== "undefined") {
|
|
7731
7759
|
return estimatedHeight > window.innerHeight - maxOffset;
|
|
7732
7760
|
}
|
|
@@ -8532,22 +8560,123 @@
|
|
|
8532
8560
|
}
|
|
8533
8561
|
return !!btn.showConfirm;
|
|
8534
8562
|
};
|
|
8535
|
-
/**
|
|
8563
|
+
/** 虚拟滚动 / 表体纵向高度:优先按列表容器剩余空间测量 */
|
|
8536
8564
|
/**
|
|
8537
|
-
*
|
|
8565
|
+
* 虚拟滚动 / 表体纵向高度:优先按列表容器剩余空间测量
|
|
8538
8566
|
* @private
|
|
8539
8567
|
* @param {?} maxOffset
|
|
8540
8568
|
* @return {?}
|
|
8541
8569
|
*/
|
|
8542
8570
|
HdTableComponent.prototype.getVirtualScrollY = /**
|
|
8543
|
-
*
|
|
8571
|
+
* 虚拟滚动 / 表体纵向高度:优先按列表容器剩余空间测量
|
|
8544
8572
|
* @private
|
|
8545
8573
|
* @param {?} maxOffset
|
|
8546
8574
|
* @return {?}
|
|
8547
8575
|
*/
|
|
8548
8576
|
function (maxOffset) {
|
|
8577
|
+
/** @type {?} */
|
|
8578
|
+
var measured = this.measureAvailableBodyHeight();
|
|
8579
|
+
if (measured >= 120) {
|
|
8580
|
+
return measured + "px";
|
|
8581
|
+
}
|
|
8549
8582
|
return "calc(100vh - " + maxOffset + "px)";
|
|
8550
8583
|
};
|
|
8584
|
+
/** 列表容器内,表体可用高度(扣掉按钮区、表头、分页等) */
|
|
8585
|
+
/**
|
|
8586
|
+
* 列表容器内,表体可用高度(扣掉按钮区、表头、分页等)
|
|
8587
|
+
* @private
|
|
8588
|
+
* @return {?}
|
|
8589
|
+
*/
|
|
8590
|
+
HdTableComponent.prototype.measureAvailableBodyHeight = /**
|
|
8591
|
+
* 列表容器内,表体可用高度(扣掉按钮区、表头、分页等)
|
|
8592
|
+
* @private
|
|
8593
|
+
* @return {?}
|
|
8594
|
+
*/
|
|
8595
|
+
function () {
|
|
8596
|
+
if (typeof window === "undefined") {
|
|
8597
|
+
return 0;
|
|
8598
|
+
}
|
|
8599
|
+
/** @type {?} */
|
|
8600
|
+
var host = this.elementRef.nativeElement;
|
|
8601
|
+
if (!host) {
|
|
8602
|
+
return 0;
|
|
8603
|
+
}
|
|
8604
|
+
/** @type {?} */
|
|
8605
|
+
var area = (/** @type {?} */ ((host.closest(".common-search-table-area") ||
|
|
8606
|
+
host.parentElement)));
|
|
8607
|
+
if (!area || area.clientHeight < 80) {
|
|
8608
|
+
return 0;
|
|
8609
|
+
}
|
|
8610
|
+
/** @type {?} */
|
|
8611
|
+
var areaRect = area.getBoundingClientRect();
|
|
8612
|
+
/** @type {?} */
|
|
8613
|
+
var hostTop = host.getBoundingClientRect().top;
|
|
8614
|
+
/** @type {?} */
|
|
8615
|
+
var padBottom = parseFloat(getComputedStyle(area).paddingBottom) || 0;
|
|
8616
|
+
/** @type {?} */
|
|
8617
|
+
var used = 0;
|
|
8618
|
+
/** @type {?} */
|
|
8619
|
+
var tableHost = (/** @type {?} */ (host.querySelector(".hd-table-container")));
|
|
8620
|
+
if (tableHost) {
|
|
8621
|
+
used += Math.max(0, tableHost.getBoundingClientRect().top - hostTop);
|
|
8622
|
+
}
|
|
8623
|
+
else {
|
|
8624
|
+
used += this.tableTotal ? 100 : 52;
|
|
8625
|
+
}
|
|
8626
|
+
/** @type {?} */
|
|
8627
|
+
var thead = (/** @type {?} */ (host.querySelector(".ant-table-thead")));
|
|
8628
|
+
used += thead ? thead.getBoundingClientRect().height : 40;
|
|
8629
|
+
/** @type {?} */
|
|
8630
|
+
var pagination = (/** @type {?} */ (host.querySelector(".ant-table-pagination, .ant-pagination")));
|
|
8631
|
+
used += pagination
|
|
8632
|
+
? pagination.getBoundingClientRect().height + 16
|
|
8633
|
+
: 64;
|
|
8634
|
+
return Math.floor(areaRect.bottom - padBottom - hostTop - used);
|
|
8635
|
+
};
|
|
8636
|
+
/**
|
|
8637
|
+
* @private
|
|
8638
|
+
* @return {?}
|
|
8639
|
+
*/
|
|
8640
|
+
HdTableComponent.prototype.bindContainerResize = /**
|
|
8641
|
+
* @private
|
|
8642
|
+
* @return {?}
|
|
8643
|
+
*/
|
|
8644
|
+
function () {
|
|
8645
|
+
var _this = this;
|
|
8646
|
+
/** @type {?} */
|
|
8647
|
+
var ResizeObserverCtor = ((/** @type {?} */ (window))).ResizeObserver;
|
|
8648
|
+
if (!ResizeObserverCtor) {
|
|
8649
|
+
return;
|
|
8650
|
+
}
|
|
8651
|
+
/** @type {?} */
|
|
8652
|
+
var host = this.elementRef.nativeElement;
|
|
8653
|
+
/** @type {?} */
|
|
8654
|
+
var area = (/** @type {?} */ ((host.closest(".common-search-table-area") ||
|
|
8655
|
+
host.parentElement)));
|
|
8656
|
+
if (!area) {
|
|
8657
|
+
return;
|
|
8658
|
+
}
|
|
8659
|
+
this.resizeObserver = new ResizeObserverCtor((/**
|
|
8660
|
+
* @return {?}
|
|
8661
|
+
*/
|
|
8662
|
+
function () {
|
|
8663
|
+
if (_this.resizeRaf) {
|
|
8664
|
+
cancelAnimationFrame(_this.resizeRaf);
|
|
8665
|
+
}
|
|
8666
|
+
_this.resizeRaf = requestAnimationFrame((/**
|
|
8667
|
+
* @return {?}
|
|
8668
|
+
*/
|
|
8669
|
+
function () {
|
|
8670
|
+
_this.resizeRaf = 0;
|
|
8671
|
+
if (!_this.showTable) {
|
|
8672
|
+
return;
|
|
8673
|
+
}
|
|
8674
|
+
_this.dealScroll();
|
|
8675
|
+
_this.cdr.markForCheck();
|
|
8676
|
+
}));
|
|
8677
|
+
}));
|
|
8678
|
+
this.resizeObserver.observe(area);
|
|
8679
|
+
};
|
|
8551
8680
|
/**
|
|
8552
8681
|
* @private
|
|
8553
8682
|
* @return {?}
|
|
@@ -8659,23 +8788,26 @@
|
|
|
8659
8788
|
var useVirtual = this.useVirtualScroll;
|
|
8660
8789
|
/** @type {?} */
|
|
8661
8790
|
var scrollX = this.resolveScrollX(colWidth);
|
|
8791
|
+
/** @type {?} */
|
|
8792
|
+
var scrollY = this.getVirtualScrollY(maxOffset);
|
|
8793
|
+
// 有列表容器高度时始终限制表体高度,避免外侧出现滚动条
|
|
8662
8794
|
if (this.virtualScroll && !useVirtual) {
|
|
8663
8795
|
this.scroll = {
|
|
8664
8796
|
x: scrollX,
|
|
8665
|
-
y:
|
|
8797
|
+
y: scrollY,
|
|
8666
8798
|
};
|
|
8667
8799
|
return;
|
|
8668
8800
|
}
|
|
8669
8801
|
if (!this.virtualScroll) {
|
|
8670
8802
|
this.scroll = {
|
|
8671
8803
|
x: scrollX,
|
|
8672
|
-
y:
|
|
8804
|
+
y: scrollY,
|
|
8673
8805
|
};
|
|
8674
8806
|
return;
|
|
8675
8807
|
}
|
|
8676
8808
|
this.scroll = {
|
|
8677
8809
|
x: scrollX,
|
|
8678
|
-
y:
|
|
8810
|
+
y: scrollY,
|
|
8679
8811
|
};
|
|
8680
8812
|
};
|
|
8681
8813
|
// 表格勾选逻辑
|
|
@@ -8841,13 +8973,14 @@
|
|
|
8841
8973
|
selector: "hd-table",
|
|
8842
8974
|
template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n <hd-button *ngIf=\"showOperateColWarpButton\" type=\"default\" (click)=\"toggleShowDetail()\">{{showDetail ?\n '\u7F29\u7565\u663E\u793A': '\u5C55\u5F00\u663E\u793A'}}</hd-button>\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 *ngIf=\"showListNodes && nowListNodes.length > 0\" 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 [nzTreeTemplate]=\"nzTreeTemplate\">\n </nz-tree>\n <ng-template #nzTreeTemplate let-node>\n <span\n class=\"ng-tns-c31-110 draggable ng-star-inserted ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close\"\n [title]=\"node.key\" draggable=\"true\" aria-grabbed=\"true\">\n <span class=\"ant-tree-title\">\n <div class=\"hd-table-tree-node\">\n <span>{{node.key}}</span>\n <div *ngIf=\"!node.origin.disabled\" class=\"hd-table-tree-node-img\">\n <i nz-icon nzType=\"caret-up\" nzTheme=\"outline\"></i>\n <i nz-icon nzType=\"caret-down\" nzTheme=\"outline\"></i>\n </div>\n </div>\n </span>\n </span>\n </ng-template>\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\" [class.hd-table--virtual]=\"useVirtualScroll\" [nzScroll]=\"scroll\"\n nzShowSizeChanger nzShowQuickJumper nzFrontPagination=\"false\" nzSize=\"middle\" [nzData]=\"tableData.content\"\n [nzTotal]=\"tableData.totalElements\" [(nzPageIndex)]=\"tablePageIndex\" [nzLoading]=\"tableLoading\"\n [nzPageSizeOptions]=\"[ 10, 50, 100, 200, 500, 1000 ]\" [(nzPageSize)]=\"tablePageSize\" (nzPageSizeChange)=\"search(true)\"\n (nzPageIndexChange)=\"search(false)\" (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\"\n [nzShowTotal]=\"tableTotalTemplate\" [nzVirtualScroll]=\"useVirtualScroll\" [nzVirtualItemSize]=\"useVirtualScroll ? effectiveVirtualItemSize : 0\"\n [nzVirtualForTrackBy]=\"virtualTrackByRow\">\n <thead (nzSortChange)=\"sort($event)\" nzSingleSort>\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]=\"getLeftSticky(col)\"\n [nzRight]=\"getRightSticky(col)\" nz-resizable nzBounds=\"window\" nzPreview\n (nzResizeEnd)=\"onResize($event, col)\" [nzShowSort]=\"col.canSort\" [nzSortKey]=\"col.name\">\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 <ng-template *ngIf=\"useVirtualScroll\" nz-virtual-scroll let-data let-index=\"index\">\n <tr class=\"hd-table-virtual-row\">\n <ng-container *ngTemplateOutlet=\"tableCells; context: { $implicit: data, index: index }\"></ng-container>\n </tr>\n </ng-template>\n <ng-container *ngIf=\"!useVirtualScroll\">\n <tr *ngFor=\"let data of hdTable.data; trackBy: trackByRow; index as i\">\n <ng-container *ngTemplateOutlet=\"tableCells; context: { $implicit: data, index: i }\"></ng-container>\n </tr>\n </ng-container>\n </tbody>\n <tfoot *ngIf=\"showTableTotal\">\n <tr 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 </tfoot>\n <ng-template #tableTotalTemplate>\n \u5171 {{tableData.totalElements}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>\n\n<ng-template #tableCells let-data let-index=\"index\">\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; trackBy: trackByCol\">\n <td *ngIf=\"col.isShow\" [ngStyle]=\"{'max-width': col.width + 'px'}\" [nzAlign]=\"col.align\"\n [nzLeft]=\"getLeftSticky(col)\"\n [nzRight]=\"getRightSticky(col)\"\n [ngClass]=\"(col.canWarp && showDetail) ? 'common-td-wrap' : ''\">\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=\"!needShowConfirm(btn, data);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' || col.isState;else otherTemplate\">\n <hd-status [status]=\"data[getStateField(col)]\">\n <ng-container *ngIf=\"(data | hdTableCell:col) as cell\">\n <span *ngIf=\"cell.overflow && !(col.canWarp && showDetail)\" nz-tooltip [nzTooltipTitle]=\"cell.title\">{{ cell.display }}</span>\n <span *ngIf=\"!cell.overflow || (col.canWarp && showDetail)\">{{ cell.display }}</span>\n </ng-container>\n </hd-status>\n </ng-container>\n <ng-template #otherTemplate>\n <ng-container *ngIf=\"col.click;else noClickTemplate\">\n <ng-container *ngIf=\"(data | hdTableCell:col) as cell\">\n <a *ngIf=\"cell.overflow && !(col.canWarp && showDetail)\" nz-tooltip [nzTooltipTitle]=\"cell.title\"\n [ngStyle]=\"{'color': cell.isEmpty ? '#2A3634' : (col?.color ? col.color : null)}\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ cell.display }}</a>\n <a *ngIf=\"!cell.overflow || (col.canWarp && showDetail)\"\n [ngStyle]=\"{'color': cell.isEmpty ? '#2A3634' : (col?.color ? col.color : null)}\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ cell.display }}</a>\n </ng-container>\n </ng-container>\n <ng-template #noClickTemplate>\n <ng-container *ngIf=\"(data | hdTableCell:col) as cell\">\n <span *ngIf=\"cell.overflow && !(col.canWarp && showDetail)\" nz-tooltip [nzTooltipTitle]=\"cell.title\"\n [ngStyle]=\"{'color': col?.color ? col.color : null}\">{{ cell.display }}</span>\n <span *ngIf=\"!cell.overflow || (col.canWarp && showDetail)\"\n [ngStyle]=\"{'color': col?.color ? col.color : null}\">{{ cell.display }}</span>\n </ng-container>\n </ng-template>\n </ng-template>\n </ng-template>\n </td>\n </ng-container>\n</ng-template>\n",
|
|
8843
8975
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
8844
|
-
styles: ["::ng-deep .common-btn-group>a{font-size:14px;font-weight:400;color:#20b95d!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;font-size:14px}::ng-deep .ant-input-number-input{height:32px}::ng-deep .ant-input-number{height:32px}textarea.ant-input{height:auto;min-height:32px}::ng-deep .ant-select-selection--multiple{min-height:32px}::ng-deep .ant-select-selection__rendered>ul>li{height:26px!important;margin-top:3px!important;line-height:26px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:32px!important}::ng-deep .ant-input{height:32px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:32px!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}::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-right-sticky{z-index:2;transform:translateZ(0)}::ng-deep .hd-table-container .ant-table-thead>tr>th.ant-table-th-right-sticky{background:#f5f8f6!important}::ng-deep .hd-table-container .ant-table-tbody>tr>td.ant-table-td-right-sticky{background:#fff}::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#e6f7ff!important}::ng-deep .hd-table-container .ant-table-scroll-position-left .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-left .ant-table-th-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-middle .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-middle .ant-table-th-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-right .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-right .ant-table-th-right-sticky{box-shadow:none!important}::ng-deep .hd-table-container .ant-table-fixed-right{right:0!important}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:14px;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:14px;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-pagination-options .ant-select,::ng-deep .ant-pagination-options .ant-select-selection--single{min-width:100px}::ng-deep .ant-pagination-options-size-changer.ant-select{min-width:100px}::ng-deep .ant-time-picker{width:100%}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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{height:100%}.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;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}.hd-table-container ::ng-deep cdk-virtual-scroll-viewport.ant-table-body .hd-table-virtual-row>td{box-sizing:border-box}
|
|
8976
|
+
styles: ["::ng-deep .common-btn-group>a{font-size:14px;font-weight:400;color:#20b95d!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;font-size:14px}::ng-deep .ant-input-number-input{height:32px}::ng-deep .ant-input-number{height:32px}textarea.ant-input{height:auto;min-height:32px}::ng-deep .ant-select-selection--multiple{min-height:32px}::ng-deep .ant-select-selection__rendered>ul>li{height:26px!important;margin-top:3px!important;line-height:26px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:32px!important}::ng-deep .ant-input{height:32px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:32px!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}::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-right-sticky{z-index:2;transform:translateZ(0)}::ng-deep .hd-table-container .ant-table-thead>tr>th.ant-table-th-right-sticky{background:#f5f8f6!important}::ng-deep .hd-table-container .ant-table-tbody>tr>td.ant-table-td-right-sticky{background:#fff}::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#e6f7ff!important}::ng-deep .hd-table-container .ant-table-scroll-position-left .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-left .ant-table-th-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-middle .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-middle .ant-table-th-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-right .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-scroll-position-right .ant-table-th-right-sticky{box-shadow:none!important}::ng-deep .hd-table-container .ant-table-fixed-right{right:0!important}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:14px;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:14px;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-pagination-options .ant-select,::ng-deep .ant-pagination-options .ant-select-selection--single{min-width:100px}::ng-deep .ant-pagination-options-size-changer.ant-select{min-width:100px}::ng-deep .ant-time-picker{width:100%}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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{height:100%}.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}:host{display:block;height:100%;min-height:0;box-sizing:border-box}.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;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}.hd-table-container ::ng-deep cdk-virtual-scroll-viewport.ant-table-body .hd-table-virtual-row>td{box-sizing:border-box}::ng-deep .ant-dropdown-menu{border-radius:0}::ng-deep .ant-dropdown{margin-top:8px!important}.common-td-wrap{white-space:normal!important;word-break:break-all}.nz-resizable-preview{border-width:0 1px 0 0}.resize-trigger{width:10px;height:15px;position:relative;top:calc((100% - 15px)/ 2)}.resize-trigger::after{position:absolute;top:calc((100% - 15px)/ 2);left:0;background:#d5d5d5;content:'';width:1px;height:15px;z-index:1}.nz-resizable-handle-right{position:absolute;width:10px;top:0;right:-5px;z-index:inherit}::ng-deep .ant-table-th-right-sticky .nz-resizable-handle-right{right:0}.hd-table-tree-node{display:inline-flex;align-items:center;padding-right:10px}.hd-table-tree-node .hd-table-tree-node-img{display:flex;flex-direction:column;position:absolute;right:0;margin-top:-2.5px}.hd-table-tree-node .hd-table-tree-node-img i{opacity:.3}.hd-table-tree-node .hd-table-tree-node-img i:last-child{margin-top:-5px}img{width:20px;height:20px}.ant-table-th-left-sticky{z-index:2}::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}"]
|
|
8845
8977
|
}] }
|
|
8846
8978
|
];
|
|
8847
8979
|
/** @nocollapse */
|
|
8848
8980
|
HdTableComponent.ctorParameters = function () { return [
|
|
8849
8981
|
{ type: core.ChangeDetectorRef },
|
|
8850
|
-
{ type: CommonSessionService }
|
|
8982
|
+
{ type: CommonSessionService },
|
|
8983
|
+
{ type: core.ElementRef }
|
|
8851
8984
|
]; };
|
|
8852
8985
|
HdTableComponent.propDecorators = {
|
|
8853
8986
|
uuid: [{ type: core.Input }],
|
|
@@ -9015,6 +9148,17 @@
|
|
|
9015
9148
|
* @private
|
|
9016
9149
|
*/
|
|
9017
9150
|
HdTableComponent.prototype.tableColWidthTotal;
|
|
9151
|
+
/**
|
|
9152
|
+
* 监听列表容器尺寸变化,重新计算 scroll.y
|
|
9153
|
+
* @type {?}
|
|
9154
|
+
* @private
|
|
9155
|
+
*/
|
|
9156
|
+
HdTableComponent.prototype.resizeObserver;
|
|
9157
|
+
/**
|
|
9158
|
+
* @type {?}
|
|
9159
|
+
* @private
|
|
9160
|
+
*/
|
|
9161
|
+
HdTableComponent.prototype.resizeRaf;
|
|
9018
9162
|
/** @type {?} */
|
|
9019
9163
|
HdTableComponent.prototype.nzTableComponent;
|
|
9020
9164
|
/** @type {?} */
|
|
@@ -9038,6 +9182,11 @@
|
|
|
9038
9182
|
* @private
|
|
9039
9183
|
*/
|
|
9040
9184
|
HdTableComponent.prototype.commonSessionService;
|
|
9185
|
+
/**
|
|
9186
|
+
* @type {?}
|
|
9187
|
+
* @private
|
|
9188
|
+
*/
|
|
9189
|
+
HdTableComponent.prototype.elementRef;
|
|
9041
9190
|
}
|
|
9042
9191
|
|
|
9043
9192
|
/**
|