fantasy-ngzorro 2.2.8 → 2.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -1
- package/bundles/fantasy-ngzorro.umd.js +298 -12
- 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-status/hd-status.service.js +5 -4
- package/esm2015/hd-table/hd-table.component.js +186 -5
- package/esm2015/hd-table/hd-table.module.js +5 -1
- package/esm2015/hd-table/hd-table.service.js +56 -4
- package/esm2015/index.js +2 -2
- package/esm2015/public-api.js +2 -2
- package/esm5/fantasy-ngzorro.js +2 -2
- package/esm5/hd-status/hd-status.service.js +5 -4
- package/esm5/hd-table/hd-table.component.js +231 -7
- package/esm5/hd-table/hd-table.module.js +5 -1
- package/esm5/hd-table/hd-table.service.js +66 -4
- package/esm5/index.js +2 -2
- package/esm5/public-api.js +2 -2
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +247 -11
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +298 -13
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +14 -2
- package/hd-table/hd-table.service.d.ts +29 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ng-zorro-antd"),require("@angular/cdk/drag-drop"),require("ng-zorro-antd/table"),require("lodash"),require("ng-zorro-antd/core"),require("rxjs"),require("rxjs/operators"),require("localforage"),require("ng-zorro-antd/modal"),require("ng-zorro-antd/dropdown"),require("ng-zorro-antd/icon"),require("ng-zorro-antd/popconfirm"),require("ng-zorro-antd/resizable"),require("ng-zorro-antd/tooltip"),require("ng-zorro-antd/tree"),require("@angular/router")):"function"==typeof define&&define.amd?define("fantasy-ngzorro",["exports","@angular/core","@angular/common","@angular/forms","ng-zorro-antd","@angular/cdk/drag-drop","ng-zorro-antd/table","lodash","ng-zorro-antd/core","rxjs","rxjs/operators","localforage","ng-zorro-antd/modal","ng-zorro-antd/dropdown","ng-zorro-antd/icon","ng-zorro-antd/popconfirm","ng-zorro-antd/resizable","ng-zorro-antd/tooltip","ng-zorro-antd/tree","@angular/router"],t):t((e=e||self)["fantasy-ngzorro"]={},e.ng.core,e.ng.common,e.ng.forms,e.ngZorroAntd,e.ng.cdk["drag-drop"],e.table,e.lodash,e.core$1,e.rxjs,e.rxjs.operators,e.localforage,e.modal,e.dropdown,e.icon,e.popconfirm,e.resizable,e.tooltip,e.tree,e.ng.router)}(this,(function(e,t,n,i,o,a,r,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ng-zorro-antd"),require("@angular/cdk/drag-drop"),require("ng-zorro-antd/table"),require("lodash"),require("ng-zorro-antd/core"),require("rxjs"),require("rxjs/operators"),require("localforage"),require("ng-zorro-antd/modal"),require("ng-zorro-antd/dropdown"),require("ng-zorro-antd/icon"),require("ng-zorro-antd/popconfirm"),require("ng-zorro-antd/resizable"),require("ng-zorro-antd/tooltip"),require("ng-zorro-antd/tree"),require("@angular/router")):"function"==typeof define&&define.amd?define("fantasy-ngzorro",["exports","@angular/core","@angular/common","@angular/forms","ng-zorro-antd","@angular/cdk/drag-drop","ng-zorro-antd/table","lodash","ng-zorro-antd/core","rxjs","rxjs/operators","localforage","ng-zorro-antd/modal","ng-zorro-antd/dropdown","ng-zorro-antd/icon","ng-zorro-antd/popconfirm","ng-zorro-antd/resizable","ng-zorro-antd/tooltip","ng-zorro-antd/tree","@angular/router"],t):t((e=e||self)["fantasy-ngzorro"]={},e.ng.core,e.ng.common,e.ng.forms,e.ngZorroAntd,e.ng.cdk["drag-drop"],e.table,e.lodash,e.core$1,e.rxjs,e.rxjs.operators,e.localforage,e.modal,e.dropdown,e.icon,e.popconfirm,e.resizable,e.tooltip,e.tree,e.ng.router)}(this,(function(e,t,n,i,o,a,l,r,s,d,c,p,h,m,g,u,f,b,y,v){"use strict";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var x=function(){return(x=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function w(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function I(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function S(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function C(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(z(arguments[t]));return e}var k=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:t.Component,args:[{selector:"hd-button-group",template:'<nz-content class="hd-button-group-container">\n <div class="hd-button-group-left">\n <ng-container *ngTemplateOutlet="buttonGroupLeft"></ng-container>\n </div>\n <div class="hd-button-group-right">\n <ng-container *ngTemplateOutlet="buttonGroupRight"></ng-container>\n </div>\n</nz-content>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-button-group-container{display:flex;align-items:center;justify-content:space-between}.hd-button-group-container .hd-button-group-left{display:inline-flex;align-items:center}.hd-button-group-container .hd-button-group-left ::ng-deep hd-button{margin-right:12px}.hd-button-group-container .hd-button-group-right{display:inline-flex;align-items:center}.hd-button-group-container .hd-button-group-right ::ng-deep hd-button{margin-left:12px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={buttonGroupLeft:[{type:t.ContentChild,args:["buttonGroupLeft",{static:!1}]}],buttonGroupRight:[{type:t.ContentChild,args:["buttonGroupRight",{static:!1}]}]},e}();var L=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.NgZorroAntdModule],declarations:[k],exports:[k]}]}],e}(),O={primary:"primary",dashed:"dashed",danger:"danger",default:"default",link:"link",submit:"submit",reset:"reset",add:"add"},D={normal:"normal",small:"small"},T=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),N=function(){function e(){this.type=O.default,this.size=D.normal,this.disabled=!1,this.clickAction=new t.EventEmitter,this.nzOnConfirm=new t.EventEmitter}return e.prototype.ngOnInit=function(){if((!1===this.loading||!0===this.loading)&&0===this.clickAction.observers.length&&0===this.nzOnConfirm.observers.length)throw"存在loading效果的hd-button组件禁止使用click绑定点击事件,请使用clickAction绑定!";if("submit"===this.type)throw"禁止使用submit类型的按钮,请使用普通按钮+click事件触发表单提交!"},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.loading},enumerable:!0,configurable:!0}),e.prototype.innerClickAction=function(e){this.loading||this.clickAction.emit(e)},e.decorators=[{type:t.Component,args:[{selector:"hd-button",template:'<nz-content class="hd-button-container">\n <button nz-button [nzType]="type" [disabled]="isDisabled" [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 \x3c!-- 插槽 --\x3e\n <ng-content></ng-content>\n </button>\n</nz-content>',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-button-container{display:inline-block}.hd-button-container button{height:32px;line-height:32px;padding:0 16px!important;border:0;font-size:14px;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 #e5e6eb;font-size:14px;font-weight:400;color:#2a3634;height:32px;line-height:30px}.hd-button-container .ant-btn-default:hover{color:#20b95d;border:1px solid #20b95d}.hd-button-container .ant-btn-warning{background:#fff;border-radius:4px;border:1px solid #e5e6eb;font-size:14px;font-weight:400;color:#2a3634;height:32px;line-height:30px}.hd-button-container .ant-btn-warning:hover{color:#f05b24;border:1px solid #f05b24}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={type:[{type:t.Input}],size:[{type:t.Input}],loading:[{type:t.Input}],disabled:[{type:t.Input}],clickAction:[{type:t.Output}],nzOnConfirm:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"loading",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"disabled",void 0),e}();var F=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.NgZorroAntdModule],declarations:[N],exports:[N]}]}],e}(),A={Text:"text",Accessory:"accessory"};var E=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),M=function(){function e(){this.formCols=new Array,this.nzColumn=4,this.imageClick=new t.EventEmitter,this.HdDetailFormFieldType=A,this.previewVisible=!1,this.previewImagePath="",this.previewTitle="图片预览",this.previewImages=[],this.previewIndex=0,this.imageListCache=new Map,this.displayListCache=new Map}return Object.defineProperty(e.prototype,"canPreviewPrev",{get:function(){return this.previewIndex>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canPreviewNext",{get:function(){return this.previewIndex<this.previewImages.length-1},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.formCols&&this.formCols.length>0&&(this.formCols=this.formCols.filter((function(e){return!e.hide}))),this.refreshImageCache()},e.prototype.ngOnChanges=function(e){e.formCols&&JSON.stringify(e.formCols.currentValue)!==JSON.stringify(e.formCols.previousValue)&&(this.formCols&&this.formCols.length>0&&(this.formCols=this.formCols.filter((function(e){return!e.hide}))),this.refreshImageCache())},e.prototype.isAccessory=function(e){return!(!e||e.type!==A.Accessory&&"accessory"!==e.type)},e.prototype.refreshImageCache=function(){var e=this;this.imageListCache.clear(),this.displayListCache.clear(),(this.formCols||[]).forEach((function(t){e.isAccessory(t)&&e.imageListCache.set(t,e.parseImageList(t))}))},e.prototype.parseImageList=function(e){var t=e&&e.value;if(null==t||""===t)return[];var n=Array.isArray(t)?t:[t],i=[];return n.forEach((function(e){if(null!=e&&""!==e)if("string"!=typeof e){var t=e.path||e.url||e.address||"";t&&i.push({name:e.name||e.fileName,path:String(t)})}else i.push({path:e})})),i},e.prototype.getImageList=function(e){return this.imageListCache.has(e)||this.imageListCache.set(e,this.parseImageList(e)),this.imageListCache.get(e)||[]},e.prototype.hasImages=function(e){return this.getImageList(e).length>0},e.prototype.getDisplayImages=function(e){if(this.displayListCache.has(e))return this.displayListCache.get(e);var t=this.getImageList(e).slice(0,4);return this.displayListCache.set(e,t),t},e.prototype.getMoreCount=function(e){var t=this.getImageList(e).length;return t>4?t-4:0},e.prototype.getImagePath=function(e){return e&&(e.path||e.url)||""},e.prototype.trackByImage=function(e,t){return t&&(t.path||t.url)||String(e)},e.prototype.onImageClick=function(e,t,n,i){var o=this;i&&(i.preventDefault(),i.stopPropagation());var a=this.getImagePath(t);this.imageClick.emit({image:t,path:a,index:n}),a&&(this.previewImages=this.getImageList(e).slice(),this.previewIndex=n>=0?n:0,this.applyPreviewImage(),setTimeout((function(){o.previewVisible=!0})))},e.prototype.previewPrev=function(e){e&&(e.preventDefault(),e.stopPropagation()),this.canPreviewPrev&&(this.previewIndex-=1,this.applyPreviewImage())},e.prototype.previewNext=function(e){e&&(e.preventDefault(),e.stopPropagation()),this.canPreviewNext&&(this.previewIndex+=1,this.applyPreviewImage())},e.prototype.applyPreviewImage=function(){var e=this.previewImages[this.previewIndex],t=this.getImagePath(e);this.previewImagePath=t,this.previewTitle=e&&e.name||"图片"+(this.previewIndex+1)},e.prototype.closePreview=function(){this.previewVisible=!1,this.previewImages=[],this.previewIndex=0,this.previewImagePath=""},e.prototype.getColSpan=function(e){var t=e&&null!=e.width?Number(e.width):1;return!t||t<1||isNaN(t)?1:t>4?4:Math.floor(t)},e.prototype.triggerEvent=function(e){e&&e(event)},e.prototype.onEditClick=function(e,t){e&&(e.preventDefault(),e.stopPropagation()),t&&t.edit&&t.edit(t)},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-form",template:'<nz-content class="hd-detail-form-container">\n <nz-descriptions [nzColumn]="nzColumn">\n <ng-container *ngFor="let col of formCols">\n \x3c!-- 附件图片:最多展示 4 张,超出末张蒙版 +n --\x3e\n <nz-descriptions-item *ngIf="isAccessory(col)" [nzTitle]="col.label" [nzSpan]="getColSpan(col)">\n <div class="hd-detail-form-images" *ngIf="hasImages(col)">\n <div class="hd-detail-form-image-item"\n *ngFor="let image of getDisplayImages(col); let i = index; trackBy: trackByImage"\n (click)="onImageClick(col, image, i, $event)">\n <img class="hd-detail-form-image"\n [src]="getImagePath(image)"\n [alt]="image.name || (\'图片\' + (i + 1))"\n [attr.title]="image.name || (\'图片\' + (i + 1))" />\n <span class="hd-detail-form-image-mask"\n *ngIf="getMoreCount(col) > 0 && i === getDisplayImages(col).length - 1">\n +{{ getMoreCount(col) }}\n </span>\n </div>\n </div>\n <span *ngIf="!hasImages(col)"><空></span>\n </nz-descriptions-item>\n \x3c!-- 普通文本 --\x3e\n <nz-descriptions-item *ngIf="!isAccessory(col) && !col.click" [nzTitle]="col.label" [nzSpan]="getColSpan(col)">\n <span class="hd-detail-form-field-value"\n [class.hd-detail-form-field-value--edit]="col.editable"\n [ngStyle]="{\'color\': col?.color ? col.color : null}">\n <span>{{(col.value === \'0\' || col.value === 0 || col.value)? col.value : \'<空>\'}}</span>\n <ng-container *ngTemplateOutlet="editIconTpl; context: { $implicit: col }"></ng-container>\n </span>\n </nz-descriptions-item>\n \x3c!-- 可点击 --\x3e\n <nz-descriptions-item *ngIf="!isAccessory(col) && col.click" [nzTitle]="col.label" [nzSpan]="getColSpan(col)">\n <span class="hd-detail-form-field-value"\n [class.hd-detail-form-field-value--edit]="col.editable"\n [ngStyle]="{\'color\': col?.color ? col.color : null}" *ngIf="col.clickText">\n <span>{{(col.value === \'0\' || col.value === 0 || col.value)? col.value : \'<空>\'}}</span>\n <a (click)="triggerEvent(col.click || null)"> {{ col.clickText }}</a>\n <a *ngIf="col.clickText1" (click)="triggerEvent(col.click1 || null)"> {{ col.clickText1\n }}</a>\n <ng-container *ngTemplateOutlet="editIconTpl; context: { $implicit: col }"></ng-container>\n </span>\n <span class="hd-detail-form-field-value"\n [class.hd-detail-form-field-value--edit]="col.editable"\n [ngStyle]="{\'color\': col?.color ? col.color : null}" *ngIf="!col.clickText">\n <a (click)="triggerEvent(col.click || null)">{{(col.value === \'0\' || col.value === 0 || col.value\n )? col.value : \'<空>\'}}</a>\n <a *ngIf="col.clickText1" (click)="triggerEvent(col.click1 || null)"> {{ col.clickText1\n }}</a>\n <ng-container *ngTemplateOutlet="editIconTpl; context: { $implicit: col }"></ng-container>\n </span>\n </nz-descriptions-item>\n </ng-container>\n </nz-descriptions>\n</nz-content>\n\n<ng-template #editIconTpl let-col>\n <a *ngIf="col.editable" class="hd-detail-form-edit-icon" href="javascript:;" title="编辑"\n (click)="onEditClick($event, col)">\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M8.10797 1.42626C8.44968 1.08456 9.0037 1.08456 9.34541 1.42626L10.9746 3.05542C11.3163 3.39713 11.3163 3.95115 10.9746 4.29286L5.01002 10.2574C4.87077 10.3967 4.68863 10.4849 4.49305 10.5078L2.72936 10.7142C2.18281 10.7782 1.71357 10.3278 1.7551 9.77914L1.89441 7.93871C1.9102 7.73007 2.00024 7.53399 2.14819 7.38604L8.10797 1.42626ZM7.67304 3.51111L8.88972 4.72779L9.94337 3.67414L8.72669 2.45746L7.67304 3.51111ZM8.06477 5.55274L6.84808 4.33606L3.04959 8.13456L2.94515 9.51434L4.25672 9.36079L8.06477 5.55274ZM12.25 12.8333L1.75 12.8333V11.6666L12.25 11.6666V12.8333Z"\n fill="currentColor" />\n </svg>\n </a>\n</ng-template>\n\n<nz-modal [(nzVisible)]="previewVisible" [nzTitle]="previewTitle" [nzFooter]="null" [nzWidth]="960"\n [nzContent]="previewModalContent" (nzOnCancel)="closePreview()">\n</nz-modal>\n<ng-template #previewModalContent>\n <div class="hd-detail-form-preview">\n <button type="button" class="hd-detail-form-preview-nav hd-detail-form-preview-nav--prev"\n *ngIf="previewImages.length > 1" [disabled]="!canPreviewPrev" (click)="previewPrev($event)"\n title="上一张">\n <i nz-icon nzType="left" nzTheme="outline"></i>\n </button>\n <div class="hd-detail-form-preview-body">\n <img *ngIf="previewImagePath" [src]="previewImagePath" [alt]="previewTitle" />\n <div class="hd-detail-form-preview-index" *ngIf="previewImages.length > 1">\n {{ previewIndex + 1 }} / {{ previewImages.length }}\n </div>\n </div>\n <button type="button" class="hd-detail-form-preview-nav hd-detail-form-preview-nav--next"\n *ngIf="previewImages.length > 1" [disabled]="!canPreviewNext" (click)="previewNext($event)"\n title="下一张">\n <i nz-icon nzType="right" nzTheme="outline"></i>\n </button>\n </div>\n</ng-template>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-detail-form-container{font-size:14px}.hd-detail-form-container ::ng-deep td.ant-descriptions-item{vertical-align:top;padding-top:6px!important;padding-bottom:6px!important;padding-left:0!important;font-size:14px}.hd-detail-form-container ::ng-deep .ant-descriptions-item>span{vertical-align:top}.hd-detail-form-container ::ng-deep .ant-descriptions-item-label{color:#4b504e;font-size:14px;line-height:22px;padding-top:1px;vertical-align:top}.hd-detail-form-container ::ng-deep .ant-descriptions-item-content{word-break:break-all;color:rgba(0,0,0,.85);font-weight:400;font-size:14px;vertical-align:top;line-height:22px}.hd-detail-form-container ::ng-deep a{font-size:14px}.hd-detail-form-container .hd-detail-form-field-value--edit{display:inline-flex;align-items:center;flex-wrap:wrap;min-width:0}.hd-detail-form-container .hd-detail-form-edit-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin-left:2px;width:14px;height:14px;color:#20b95d;line-height:1;cursor:pointer}.hd-detail-form-container .hd-detail-form-edit-icon:hover{color:#20bd62}.hd-detail-form-container .hd-detail-form-edit-icon svg{display:block;width:14px;height:14px}.hd-detail-form-container ::ng-deep td{white-space:unset!important}.hd-detail-form-container .hd-detail-form-images{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:6px}.hd-detail-form-container .hd-detail-form-image-item{position:relative;flex-shrink:0;box-sizing:border-box;width:48px;height:48px;overflow:hidden;border:1px solid #e5e6eb;border-radius:4px;cursor:pointer}.hd-detail-form-container .hd-detail-form-image-item:hover{border-color:#20b95d}.hd-detail-form-container .hd-detail-form-image{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.hd-detail-form-container .hd-detail-form-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45);color:#fff;font-size:14px;line-height:22px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.hd-detail-form-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:200px;max-height:70vh}.hd-detail-form-preview .hd-detail-form-preview-body{flex:1;min-width:0;text-align:center;max-height:70vh;overflow:auto}.hd-detail-form-preview img{display:inline-block;max-width:100%;max-height:calc(70vh - 32px);-o-object-fit:contain;object-fit:contain}.hd-detail-form-preview .hd-detail-form-preview-index{margin-top:8px;color:#4b504e;font-size:14px;line-height:22px}.hd-detail-form-preview .hd-detail-form-preview-nav{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 8px;padding:0;border:1px solid #e5e6eb;border-radius:50%;background:#fff;color:rgba(0,0,0,.85);cursor:pointer;outline:0}.hd-detail-form-preview .hd-detail-form-preview-nav i{font-size:16px}.hd-detail-form-preview .hd-detail-form-preview-nav:hover:not(:disabled){border-color:#20b95d;color:#20b95d}.hd-detail-form-preview .hd-detail-form-preview-nav:disabled{color:#c9cdd4;cursor:not-allowed;background:#f7f8fa}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={formCols:[{type:t.Input}],nzColumn:[{type:t.Input}],imageClick:[{type:t.Output}]},e}();var P=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule],exports:[M],declarations:[M]}]}],e}(),V="row",R=function(){};!function(){function e(){}e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"})}();var B=function(){function e(){this.type=V,this.background="inherit",this.style=new R}return e.prototype.ngOnInit=function(){this.style.background=this.background,this.type===V?(this.style.width="100%",this.style.height=this.size+"px"):(this.style.height="100%",this.style.width=this.size+"px")},e.decorators=[{type:t.Component,args:[{selector:"hd-space",template:'<nz-content>\n <div [ngStyle]="style"></div>\n</nz-content>\n',styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={type:[{type:t.Input}],size:[{type:t.Input}],background:[{type:t.Input}]},e}();var H=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule],declarations:[B],exports:[B]}]}],e}(),j=function(){this.totalPages=0,this.totalElements=0,this.pageNumber=0,this.pageSize=10,this.hasContent=!1,this.hasNext=!1,this.content=[]};var W=function(){};var _=function(){this.showLabelAndValue=!1,this.hdDropdownMatchSelectWidth=!1,this.hdServerSearch=!1,this.hdShowItemCode=!1,this.hdShowSearch=!0,this.hdAllowClear=!0};var K=function(){this.showLabelAndValue=!1};var q=function(){this.showLabelAndValue=!1};var U=function(){};var Z=function(){};var J=function(){this.min=0,this.max=99999999,this.step=1,this.precision=4};var Y=function(){};function G(e,t){if(void 0===t&&(t="hd-table-container"),!e||!e.tableMainElement)return 0;var n=e.tableMainElement.nativeElement,i=n.querySelector(".ant-table-body");if(i&&i.clientWidth>0)return i.clientWidth;var o=n.closest(".ant-table-wrapper");if(o&&o.clientWidth>0)return o.clientWidth;var a=n.closest("."+t);return a&&a.clientWidth>0?a.clientWidth:0}function Q(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.left="-99999px",t.style.top="0",t.style.visibility="hidden",t.style.width="max-content",t.style.tableLayout="auto",document.body.appendChild(t);var n=t.scrollWidth;return document.body.removeChild(t),n}function $(e){var t=Array.from(e.querySelectorAll(".ant-table-thead > tr > th"));if(!t.length)return 0;var n=0,i=!1;return t.forEach((function(e){var t=function(e){if(!e)return 0;var t=parseInt(String(e).replace(/px/i,""),10);return Number.isNaN(t)?0:t}(e.style.width);t>0?n+=t:(i=!0,n+=e.scrollWidth||e.offsetWidth||150)})),i?0:n}function X(e){if(!e||!e.tableMainElement)return 0;var t=e.tableMainElement.nativeElement,n=Array.from(t.querySelectorAll(".ant-table-header table, .ant-table-body table, .cdk-virtual-scroll-content-wrapper table")).reduce((function(e,t){return Math.max(e,t.scrollWidth||0)}),0),i=G(e);if(i<=0||n<=i){var o=t.querySelector(".ant-table-header table"),a=t.querySelector(".ant-table-body table");o&&(n=Math.max(n,Q(o))),a&&(n=Math.max(n,Q(a))),n=Math.max(n,$(t))}return n}function ee(e,t,n){if(!t)return null;var i=null!=n&&n>0?n:X(e);if(i<=0)return null;var o=G(e);return o>0?i>o?{x:Math.ceil(i)+"px"}:null:"undefined"!=typeof window&&i>window.innerWidth-32?{x:Math.ceil(i)+"px"}:null}function te(e){if(!e)return{header:null,body:null};var t=e,n=t.tableHeaderNativeElement||null,i=t.mixTableBodyNativeElement||t.tableBodyNativeElement||null,o=t.tableMainElement&&t.tableMainElement.nativeElement;return o&&(n||(n=o.querySelector(".ant-table-header")),i||(i=o.querySelector("cdk-virtual-scroll-viewport.ant-table-body")||o.querySelector(".ant-table-body"))),{header:n,body:i}}function ne(e){var t=te(e);if(!t.header||!t.body)return null;var n=t.header,i=t.body,o=function(){n.scrollLeft!==i.scrollLeft&&(n.scrollLeft=i.scrollLeft)};return i.addEventListener("scroll",o),o(),function(){i.removeEventListener("scroll",o)}}var ie=function(){function e(e){this.cdr=e,this.showSelected=!1,this.allowDrop=!1,this.showSearch=!1,this.searchFields=[],this.scroll={x:"1px"},this.tableScroll=null,this.selectField="billNumber",this.selectEvent=new t.EventEmitter,this.showTotal=!1,this.totalOption=[],this.columnsNumber=0,this.hdFrontPagination=!1,this.totalOptionList=[],this.tableData=new j,this.tableLoading=!1,this.tablePageIndex=1,this.tablePageSize=100,this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.listOfAllData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.displayLines=[],this.isFilterData=!1,this.storeFormLinesData=[],this.showTable=!0,this.unbindBodyScroll=null}return Object.defineProperty(e.prototype,"effectiveScroll",{get:function(){return null!=this.scroll?this.scroll:this.tableScroll},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.syncStoreFromLinesInput(),this.applyDisplayFromStore(),this.countSelected(),this.calculateTotal()},e.prototype.ngAfterViewInit=function(){this.scheduleSyncHorizontalScroll()},e.prototype.ngOnDestroy=function(){this.unbindHeaderBodyScrollSync()},e.prototype.ngOnChanges=function(e){e.lines&&(this.isFilterData?this.storeFormLinesData&&0!==this.storeFormLinesData.length||this.syncStoreFromLinesInput():(this.syncStoreFromLinesInput(),this.displayLines=this.lines||[])),this.countSelected(),this.calculateTotal(),(e.lines||e.showSelected)&&this.scheduleSyncHorizontalScroll()},e.prototype.scheduleSyncHorizontalScroll=function(e){var t=this;void 0===e&&(e=0),setTimeout((function(){null==t.scroll&&t.syncHorizontalScroll(),t.bindHeaderBodyScrollSync(0);var n=t.effectiveScroll&&t.effectiveScroll.x||t.tableScroll&&t.tableScroll.x;null==t.scroll&&e<5&&t.displayLines&&t.displayLines.length>0&&!n&&0===X(t.nzTableComponent)&&t.scheduleSyncHorizontalScroll(e+1)}),0===e?0:50)},e.prototype.syncHorizontalScroll=function(){if(null==this.scroll){var e=!(!this.displayLines||!this.displayLines.length),t=ee(this.nzTableComponent,e),n=t?t.x:null;if(!this.tableScroll||this.tableScroll.x!==n||this.tableScroll.y){var i=!(!this.tableScroll||!this.tableScroll.y);this.tableScroll=n?{x:n}:null,i?this.remountTable():(this.cdr.markForCheck(),this.bindHeaderBodyScrollSync(0))}}},e.prototype.remountTable=function(){var e=this;this.unbindHeaderBodyScrollSync(),setTimeout((function(){e.showTable=!1,e.cdr.markForCheck(),setTimeout((function(){e.showTable=!0,e.cdr.markForCheck(),setTimeout((function(){return e.bindHeaderBodyScrollSync(0)}))}))}))},e.prototype.bindHeaderBodyScrollSync=function(e){var t=this;if(void 0===e&&(e=0),this.unbindHeaderBodyScrollSync(),this.nzTableComponent&&this.effectiveScroll&&this.effectiveScroll.x){var n=ne(this.nzTableComponent);n?this.unbindBodyScroll=n:e<8&&setTimeout((function(){return t.bindHeaderBodyScrollSync(e+1)}),50)}},e.prototype.unbindHeaderBodyScrollSync=function(){this.unbindBodyScroll&&(this.unbindBodyScroll(),this.unbindBodyScroll=null)},e.prototype.syncStoreFromLinesInput=function(e){var t=e||this.lines;this.storeFormLinesData=t?JSON.parse(JSON.stringify(t)):[]},e.prototype.applyDisplayFromStore=function(){this.lines&&this.lines.length>0?this.displayLines=this.lines:this.displayLines=this.storeFormLinesData?JSON.parse(JSON.stringify(this.storeFormLinesData)):[]},e.prototype.restoreFromStore=function(){this.isFilterData=!1,this.applyDisplayFromStore(),this.tableLoading=!1,this.countSelected(),this.calculateTotal(),this.scheduleSyncHorizontalScroll()},e.prototype.searchLines=function(){var e=this;if(!this.filterStr||!this.filterStr.trim()){if(!this.storeFormLinesData||this.storeFormLinesData.length<1)return;return this.tableLoading=!0,void this.restoreFromStore()}if(this.storeFormLinesData&&!(this.storeFormLinesData.length<1)){this.tableLoading=!0;var t=this.filterStr.trim().toLowerCase();this.isFilterData=!0;var n=this.storeFormLinesData.filter((function(n){var i,o,a,r;if(!e.searchFields||0===e.searchFields.length){try{for(var l=S(Object.keys(n)),s=l.next();!s.done;s=l.next()){if(n[p=s.value]&&n[p].toString().toLowerCase().includes(t))return!0}}catch(e){i={error:e}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return!1}try{for(var d=S(e.searchFields),c=d.next();!c.done;c=d.next()){var p;if(n[p=c.value]&&n[p].toString().toLowerCase().includes(t))return!0}}catch(e){a={error:e}}finally{try{c&&!c.done&&(r=d.return)&&r.call(d)}finally{if(a)throw a.error}}return!1}));this.displayLines=JSON.parse(JSON.stringify(n)),this.tableLoading=!1,this.countSelected(),this.calculateTotal(),this.scheduleSyncHorizontalScroll()}},e.prototype.countSelected=function(){var e=this;this.showSelected&&this.selectedField&&this.displayLines&&this.displayLines.length&&(this.displayLines.forEach((function(t){!0!==t[e.selectedField]||e.isSelectDisabled(t)||(e.mapOfCheckedId[t[e.selectField]]=!0,e.mapOfCheckList[t[e.selectField]]=t)})),this.displayLines.length===Object.keys(this.mapOfCheckList).length&&(this.isAllDisplayDataChecked=!0,this.isIndeterminate=!0))},Object.defineProperty(e.prototype,"LodashRound",{get:function(){return l.round},enumerable:!0,configurable:!0}),e.prototype.drop=function(e){a.moveItemInArray(this.displayLines,e.previousIndex,e.currentIndex),this.displayLines=JSON.parse(JSON.stringify(this.displayLines)),this.isFilterData||(this.storeFormLinesData=JSON.parse(JSON.stringify(this.displayLines)))},e.prototype.calculateTotal=function(){var e=this;this.showTotal&&this.displayLines&&this.displayLines.length&&(this.totalOptionList=new Array(Number(this.columnsNumber)-1).fill(""),this.totalOption.forEach((function(t){t.insertIndex&&(t.insertValue||0===t.insertValue)&&(e.totalOptionList[t.insertIndex-1]={value:t.insertValue,align:t.align||"right",showDecimal:t.showDecimal||!1,preserveNumber:null!=t.preserveNumber?t.preserveNumber:2,isHide:t.isHide||!1})})))},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.scheduleSyncHorizontalScroll()},e.prototype.resetStatus=function(){this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([])},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),t){if(e&&this.isSelectDisabled(t))return;this.mapOfCheckedId[t[this.selectField]]=e,e?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]]}var i=this.listOfDisplayData.filter((function(e){return!n.isSelectDisabled(e)}));this.isAllDisplayDataChecked=i.length>0&&i.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=i.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent&&this.selectEvent.emit(Object.values(this.mapOfCheckList))},e.prototype.checkAll=function(e){var t=this;this.listOfDisplayData.forEach((function(n){t.isSelectDisabled(n)||(e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e)})),this.refreshStatus()},e.prototype.isSelectDisabled=function(e){return!(!this.selectDisabledField||!e||!0!==e[this.selectDisabledField])},e.prototype.isInvalidRow=function(e){return!(!this.rowInvalidField||!e||!0!==e[this.rowInvalidField])},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-lines",template:'<ng-container>\n <hd-button-group *ngIf="showSearch">\n <ng-template #buttonGroupLeft>\n <nz-input-group [nzSuffix]="suffixIconSearch">\n <input type="text" nz-input (keyup.enter)="searchLines()" placeholder="请输入内容搜索" style="width: 300px;"\n [(ngModel)]="filterStr" />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <i nz-icon nzType="search" (click)="searchLines()"></i>\n </ng-template>\n </ng-template>\n </hd-button-group>\n\n <hd-space *ngIf="showSearch" background="transparent" type="row" size="16"></hd-space>\n\n <nz-table *ngIf="showTable" #hdTable class="hd-table-container"\n [class.hd-detail-lines--scroll-y]="!!(effectiveScroll && effectiveScroll.y)"\n [class.hd-detail-lines--scroll-x]="!!(effectiveScroll && effectiveScroll.x)"\n [class.hd-detail-lines--with-search]="showSearch"\n [nzScroll]="effectiveScroll" nzShowSizeChanger\n [nzFrontPagination]="hdFrontPagination" [nzShowQuickJumper]="hdFrontPagination" [nzShowTotal]="tableTotalTemplate"\n nzSize="middle" [nzData]="displayLines" [nzLoading]="tableLoading" [(nzPageSize)]="tablePageSize"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]"\n (nzCurrentPageDataChange)="showSelected ? currentPageDataChange($event) : null">\n <thead>\n <tr>\n <th *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox [(nzChecked)]="isAllDisplayDataChecked"\n [nzIndeterminate]="isIndeterminate" (nzCheckedChange)="checkAll($event)"></th>\n <ng-container *ngTemplateOutlet="detailLineHead"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf="!allowDrop;else allowDropTemplate">\n <tr *ngFor="let data of hdTable.data;index as i" [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: i}"></ng-container>\n </tr>\n \x3c!-- 合计区域 --\x3e\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #allowDropTemplate>\n <tbody cdkDropList (cdkDropListDropped)="drop($event)">\n <tr *ngFor="let data of hdTable.data;index as i" cdkDrag [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: i}"></ng-container>\n </tr>\n \x3c!-- 合计区域 --\x3e\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value\n === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </ng-template>\n <ng-template #tableTotalTemplate>\n 共 {{displayLines.length}} 条数据\n </ng-template>\n </nz-table>\n</ng-container>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-right-sticky{background:#f7f8fa!important;color:#868a9c!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a{color:#20b95d!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a:hover{color:#20bd62!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group .common-danger-btn:hover{color:#f05b24!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-table-cell-value>a,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td>a{color:#20b95d}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-billNumber>a{color:#3b77e3}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-status-text{color:#868a9c!important}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-body{max-height:calc(100vh - 280px)!important;overflow-y:auto!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y).hd-detail-lines--with-search ::ng-deep .ant-table-body{max-height:calc(100vh - 320px)!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-thead>tr>th{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:#fafafa}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-left-sticky,.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-right-sticky{z-index:4;background:#fafafa!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-left-sticky,.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-right-sticky{z-index:3}.hd-table-container:not(.hd-detail-lines--scroll-y):not(.hd-detail-lines--scroll-x) ::ng-deep .ant-table-body{max-height:none!important;overflow-y:visible!important}"]}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e.propDecorators={nzTableComponent:[{type:t.ViewChild,args:["hdTable",{static:!1}]}],lines:[{type:t.Input}],showSelected:[{type:t.Input}],allowDrop:[{type:t.Input}],showSearch:[{type:t.Input}],searchFields:[{type:t.Input}],scroll:[{type:t.Input}],selectField:[{type:t.Input}],selectedField:[{type:t.Input}],selectDisabledField:[{type:t.Input}],rowInvalidField:[{type:t.Input}],selectEvent:[{type:t.Output}],detailLineHead:[{type:t.ContentChild,args:["detailLineHead",{static:!1}]}],detailLineBody:[{type:t.ContentChild,args:["detailLineBody",{static:!1}]}],showTotal:[{type:t.Input}],totalOption:[{type:t.Input}],columnsNumber:[{type:t.Input}],hdFrontPagination:[{type:t.Input}],tablePageSize:[{type:t.Input}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"allowDrop",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSearch",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTotal",void 0),e}();var oe=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,r.NzTableModule,a.DragDropModule,i.FormsModule,o.NgZorroAntdModule,H,F,L],declarations:[ie],exports:[ie],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),ae=function(){function e(e){this.cdr=e,this.lines=[],this.tableData=new j,this.showSelected=!1,this.allowDrop=!1,this.virtualScroll=!0,this.scroll={x:"1px"},this.tableScroll=null,this.selectField="billNumber",this.selectEvent=new t.EventEmitter,this.showTotal=!1,this.totalOption=[],this.columnsNumber=0,this.tableLoading=!1,this.tablePageIndex=1,this.tablePageSize=100,this.tablePageIndexChange=new t.EventEmitter,this.tablePageSizeChange=new t.EventEmitter,this.pageChange=new t.EventEmitter,this.totalOptionList=[],this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.isCrossPageSelectLocal=!1,this.showTable=!0,this.measuredVirtualItemSize=47,this.virtualScrollActive=null,this.unbindBodyScroll=null,this.virtualTrackByRow=function(e){return e}}return Object.defineProperty(e.prototype,"effectiveScroll",{get:function(){return null!=this.scroll?this.scroll:this.tableScroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"effectiveVirtualItemSize",{get:function(){return null!=this.virtualItemSize&&this.virtualItemSize>0?this.virtualItemSize:this.measuredVirtualItemSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needsVerticalScroll",{get:function(){var e=this.displayLines?this.displayLines.length:0;if(e<=0)return!1;var t=this.effectiveScroll;if(t&&t.y)return e>20;var n=e*this.effectiveVirtualItemSize;return"undefined"!=typeof window?n>window.innerHeight-200:e>100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useVirtualScroll",{get:function(){return!(!this.virtualScroll||this.allowDrop)&&this.needsVerticalScroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resolvedScroll",{get:function(){var e=this.effectiveScroll?x({},this.effectiveScroll):{};return this.useVirtualScroll&&!e.y&&(e.y=this.getAutoScrollY()),e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!0===this.isCrossPageSelect&&(this.isCrossPageSelectLocal=this.isCrossPageSelect),this.countSelected(),this.calculateTotal()},e.prototype.ngAfterViewInit=function(){this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!0)},e.prototype.ngOnDestroy=function(){this.unbindHeaderBodyScrollSync()},e.prototype.ngOnChanges=function(e){if(e&&e.tableData&&e.tableData.currentValue&&e.tableData.previousValue){if(e.tableData.currentValue.pageSize!==e.tableData.previousValue.pageSize||e.tableData.currentValue.pageNumber!==e.tableData.previousValue.pageNumber)return this.countSelected(),this.calculateTotal(),void this.applyTableScrollMode(!1);this.isCrossPageSelectLocal||this.resetStatus()}this.countSelected(),this.calculateTotal(),(e.lines||e.tableData||e.showSelected||e.scroll||e.virtualScroll||e.allowDrop)&&(this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!1))},e.prototype.applyTableScrollMode=function(e){var t=this;void 0===e&&(e=!1);var n=this.useVirtualScroll,i=null!==this.virtualScrollActive&&this.virtualScrollActive!==n;if(this.virtualScrollActive=n,e||i)return this.unbindHeaderBodyScrollSync(),void setTimeout((function(){t.showTable=!1,t.cdr.markForCheck(),setTimeout((function(){t.showTable=!0,t.cdr.markForCheck(),setTimeout((function(){t.afterTableRender(n)}))}))}));this.cdr.markForCheck(),this.afterTableRender(n)},e.prototype.afterTableRender=function(e){this.scheduleSyncHorizontalScroll(),this.bindHeaderBodyScrollSync(0),e&&this.refreshVirtualScrollViewport(!0)},e.prototype.refreshVirtualScrollViewport=function(e){var t=this;void 0===e&&(e=!1),this.useVirtualScroll?setTimeout((function(){t.measureVirtualItemSize(e);var n=t.nzTableComponent&&t.nzTableComponent.cdkVirtualScrollViewport;n&&n.checkViewportSize(),t.bindHeaderBodyScrollSync(0),t.cdr.markForCheck()})):this.bindHeaderBodyScrollSync(0)},e.prototype.measureVirtualItemSize=function(e){if(void 0===e&&(e=!1),!(null!=this.virtualItemSize&&this.virtualItemSize>0)||e){var t=this.nzTableComponent&&this.nzTableComponent.cdkVirtualScrollViewport;if(t&&t.elementRef&&t.elementRef.nativeElement){var n=t.elementRef.nativeElement.querySelector("tr.hd-detail-lines-page-virtual-row");n&&n.offsetHeight>0&&(this.measuredVirtualItemSize=n.offsetHeight)}}},e.prototype.scheduleSyncHorizontalScroll=function(e){var t=this;void 0===e&&(e=0),setTimeout((function(){null==t.scroll&&t.syncHorizontalScroll(),t.bindHeaderBodyScrollSync(0);var n=t.resolvedScroll&&t.resolvedScroll.x||t.tableScroll&&t.tableScroll.x;null==t.scroll&&e<5&&t.displayLines&&t.displayLines.length>0&&!n&&0===X(t.nzTableComponent)&&t.scheduleSyncHorizontalScroll(e+1)}),0===e?0:50)},e.prototype.getAutoScrollY=function(){return"calc(100vh - 280px)"},e.prototype.syncHorizontalScroll=function(){if(null==this.scroll){var e=!(!this.displayLines||!this.displayLines.length),t=ee(this.nzTableComponent,e),n=t?t.x:null,i=this.useVirtualScroll?this.getAutoScrollY():null,o=!(!this.tableScroll||!this.tableScroll.y),a=!!i;this.tableScroll&&this.tableScroll.x===n&&this.tableScroll.y===i||(this.tableScroll=n||i?i?{x:n,y:i}:{x:n}:null,o===a?(this.cdr.markForCheck(),this.bindHeaderBodyScrollSync(0)):this.applyTableScrollMode(!0))}},e.prototype.bindHeaderBodyScrollSync=function(e){var t=this;if(void 0===e&&(e=0),this.unbindHeaderBodyScrollSync(),this.nzTableComponent&&this.resolvedScroll&&this.resolvedScroll.x){var n=ne(this.nzTableComponent);n?this.unbindBodyScroll=n:e<8&&setTimeout((function(){return t.bindHeaderBodyScrollSync(e+1)}),50)}},e.prototype.unbindHeaderBodyScrollSync=function(){this.unbindBodyScroll&&(this.unbindBodyScroll(),this.unbindBodyScroll=null)},Object.defineProperty(e.prototype,"displayLines",{get:function(){return this.lines&&this.lines.length?this.lines:this.tableData&&this.tableData.content||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalCount",{get:function(){return this.tableData&&null!=this.tableData.totalElements?this.tableData.totalElements:this.displayLines.length},enumerable:!0,configurable:!0}),e.prototype.getRowIndex=function(e){return(this.tablePageIndex-1)*this.tablePageSize+e},e.prototype.onPageIndexChange=function(e){this.tablePageIndex=e,this.tablePageIndexChange.emit(this.tablePageIndex),this.pageChange.emit(),this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!1)},e.prototype.onPageSizeChange=function(e){this.tablePageSize=e,this.tablePageIndex=1,this.tablePageSizeChange.emit(this.tablePageSize),this.tablePageIndexChange.emit(this.tablePageIndex),this.pageChange.emit(),this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!0)},e.prototype.countSelected=function(){var e=this;this.showSelected&&this.selectedField&&this.displayLines&&this.displayLines.length&&(this.displayLines.forEach((function(t){!0!==t[e.selectedField]||e.isSelectDisabled(t)||(e.mapOfCheckedId[t[e.selectField]]=!0,e.mapOfCheckList[t[e.selectField]]=t)})),this.displayLines.length===Object.keys(this.mapOfCheckList).length&&(this.isAllDisplayDataChecked=!0,this.isIndeterminate=!0))},Object.defineProperty(e.prototype,"LodashRound",{get:function(){return l.round},enumerable:!0,configurable:!0}),e.prototype.drop=function(e){var t=C(this.displayLines);a.moveItemInArray(t,e.previousIndex,e.currentIndex),this.lines=t},e.prototype.calculateTotal=function(){var e=this;this.showTotal&&this.displayLines&&this.displayLines.length&&(this.totalOptionList=new Array(Number(this.columnsNumber)-1).fill(""),this.totalOption.forEach((function(t){t.insertIndex&&(t.insertValue||0===t.insertValue)&&(e.totalOptionList[t.insertIndex-1]={value:t.insertValue,align:t.align||"right",showDecimal:t.showDecimal||!1,preserveNumber:null!=t.preserveNumber?t.preserveNumber:2,isHide:t.isHide||!1})})))},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.isCrossPageSelectLocal||this.resetStatus(),this.scheduleSyncHorizontalScroll()},e.prototype.resetStatus=function(){this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([])},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),t){if(e&&this.isSelectDisabled(t))return;this.mapOfCheckedId[t[this.selectField]]=e,e?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]]}var i=((this.listOfDisplayData&&this.listOfDisplayData.length?this.listOfDisplayData:this.displayLines)||[]).filter((function(e){return!n.isSelectDisabled(e)}));this.isAllDisplayDataChecked=i.length>0&&i.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=i.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent&&this.selectEvent.emit(Object.values(this.mapOfCheckList))},e.prototype.checkAll=function(e){var t=this;((this.listOfDisplayData&&this.listOfDisplayData.length?this.listOfDisplayData:this.displayLines)||[]).forEach((function(n){t.isSelectDisabled(n)||(e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e)})),this.refreshStatus()},e.prototype.isSelectDisabled=function(e){return!(!this.selectDisabledField||!e||!0!==e[this.selectDisabledField])},e.prototype.isInvalidRow=function(e){return!(!this.rowInvalidField||!e||!0!==e[this.rowInvalidField])},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-lines-page",template:'<ng-container>\n <nz-table\n *ngIf="showTable"\n #hdTable\n class="hd-table-container"\n [class.hd-detail-lines-page--virtual]="useVirtualScroll"\n [class.hd-detail-lines-page--scroll-y]="!!(resolvedScroll && resolvedScroll.y)"\n [class.hd-detail-lines-page--scroll-x]="!!(resolvedScroll && resolvedScroll.x)"\n [nzScroll]="resolvedScroll"\n nzShowSizeChanger\n nzShowQuickJumper\n nzFrontPagination="false"\n nzSize="middle"\n [nzData]="displayLines"\n [nzTotal]="totalCount"\n [(nzPageIndex)]="tablePageIndex"\n [(nzPageSize)]="tablePageSize"\n [nzLoading]="tableLoading"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]"\n (nzPageIndexChange)="onPageIndexChange($event)"\n (nzPageSizeChange)="onPageSizeChange($event)"\n [nzShowTotal]="tableTotalTemplate"\n (nzCurrentPageDataChange)="showSelected ? currentPageDataChange($event) : null"\n [nzVirtualScroll]="useVirtualScroll"\n [nzVirtualItemSize]="useVirtualScroll ? effectiveVirtualItemSize : 0"\n [nzVirtualForTrackBy]="virtualTrackByRow"\n >\n <thead>\n <tr>\n <th *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox [(nzChecked)]="isAllDisplayDataChecked"\n [nzIndeterminate]="isIndeterminate" (nzCheckedChange)="checkAll($event)"></th>\n <ng-container *ngTemplateOutlet="detailLineHead"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf="!allowDrop;else allowDropTemplate">\n <ng-template *ngIf="useVirtualScroll" nz-virtual-scroll let-data let-index="index">\n <tr class="hd-detail-lines-page-virtual-row" [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container\n *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: getRowIndex(index)}"></ng-container>\n </tr>\n </ng-template>\n <ng-container *ngIf="!useVirtualScroll">\n <tr *ngFor="let data of hdTable.data;index as i" [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container\n *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: getRowIndex(i)}"></ng-container>\n </tr>\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n <tfoot *ngIf="useVirtualScroll && showTotal">\n <tr class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tfoot>\n <ng-template #allowDropTemplate>\n <tbody cdkDropList (cdkDropListDropped)="drop($event)">\n <tr *ngFor="let data of hdTable.data;index as i" cdkDrag [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container\n *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: getRowIndex(i)}"></ng-container>\n </tr>\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value\n === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </ng-template>\n <ng-template #tableTotalTemplate>\n 共 {{totalCount}} 条数据\n </ng-template>\n </nz-table>\n</ng-container>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-right-sticky{background:#f7f8fa!important;color:#868a9c!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a{color:#20b95d!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a:hover{color:#20bd62!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group .common-danger-btn:hover{color:#f05b24!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-table-cell-value>a,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td>a{color:#20b95d}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-billNumber>a{color:#3b77e3}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-status-text{color:#868a9c!important}.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-detail-lines-page-virtual-row>td{box-sizing:border-box}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-body{max-height:calc(100vh - 280px)!important;overflow-y:auto!important}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-thead>tr>th{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:#fafafa}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-left-sticky,.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-right-sticky{z-index:4;background:#fafafa!important}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-left-sticky,.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-right-sticky{z-index:3}.hd-table-container:not(.hd-detail-lines-page--scroll-y):not(.hd-detail-lines-page--scroll-x) ::ng-deep .ant-table-body{max-height:none!important;overflow-y:visible!important}"]}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e.propDecorators={nzTableComponent:[{type:t.ViewChild,args:["hdTable",{static:!1}]}],lines:[{type:t.Input}],tableData:[{type:t.Input}],showSelected:[{type:t.Input}],allowDrop:[{type:t.Input}],virtualScroll:[{type:t.Input}],virtualItemSize:[{type:t.Input}],scroll:[{type:t.Input}],selectField:[{type:t.Input}],selectedField:[{type:t.Input}],selectDisabledField:[{type:t.Input}],rowInvalidField:[{type:t.Input}],isCrossPageSelect:[{type:t.Input}],selectEvent:[{type:t.Output}],detailLineHead:[{type:t.ContentChild,args:["detailLineHead",{static:!1}]}],detailLineBody:[{type:t.ContentChild,args:["detailLineBody",{static:!1}]}],showTotal:[{type:t.Input}],totalOption:[{type:t.Input}],columnsNumber:[{type:t.Input}],tableLoading:[{type:t.Input}],tablePageIndex:[{type:t.Input}],tablePageSize:[{type:t.Input}],tablePageIndexChange:[{type:t.Output}],tablePageSizeChange:[{type:t.Output}],pageChange:[{type:t.Output}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"allowDrop",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"virtualScroll",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTotal",void 0),e}();var re=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,r.NzTableModule,a.DragDropModule],declarations:[ae],exports:[ae],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),le={"#FAB13B":["partshipped","partShipped","committed","COMMITTED","partValid","confirm","picking","prepareSubmitted","prepareConfirmed","receiving","shipping","delivering","approving","tendering","forPick","forPickup","forMove","forLoss","forMachiningTask","forReturn","forTransfer","forWholesale","outTransit","unconfirmedPrice","reSubmitted","submit","firstReview","Locked","beingUsed","transferLock","agvTransferLock","suspend","collected","merged","planCared","toBeConfirm","toBePaid","UNRECEIVED","开票中","红冲开票中","待生效"],"#9FA4A2":["initial","INITIAL","INIT","uncommitted","OFF_LINE","UN_PRINTED","unpublish","pastpublish","TO_COMMIT","unpublished","UNPUBLISHED","未审核","returned","saved","SAVED","unaudited","UN_AUDIT","unlock","free","unKnow","noSign","NOT_INVOICED","notConfirm","unshipped","unPlanCar","UNREAD","UNSEND","未提交","未确认","已保存"],"#F5222D":["delete","deleted","DELETED","abort","ABORTED","aborted","rejected","REJECTED","停用","禁用","已停用","unpicked","AUDIT_REJECT","invalid","INVALID","disabled","DISABLED","","canceled","cancelled","BLANK_OUT","complaintRejected","prepareRejected","returnedBeforeAudit","RETURNED_BEFORE_AUDIT","returnedBeforeConfirm","handleReturned","TAKE_DOWN","expired","paidFailed","submitFailed","exception","已作废","已删除","已失效"],"#3B77E3":["audited","adjusted","invoiced","INVOICED","audit","submitted","SUBMITTED","TO_AUDIT","已审核","处理中","processing","firstReviewed","awaiting_effective","AWAITING_EFFECTIVE","checking","reviewed","running","SENT","uploaded","snapped","handling","已提交","已初审","已复审","已分配","已生成费用单"],"#20B95D":["shipped","SHIPPED","received","RECEIVED","checked","using","USING","reverse","valid","approved","ON_LINE","finished","FINISHED","finish","opened","PRINTED","启用","picked","published","PUBLISHED","AUDITED","已收票","付款完成","收款完成","已收款","accepted","offered","confirmed","effective","EFFECTIVE","已发布","paid","successful","READ","signed","ON_SALE","enabled","entrucked","normal","statemented","已付款","已核销","已开票","已完成","已确认","已红冲","已结束","已发货","已收货","生效中"],"#F05B24":["partialReceived","partDelete","tender","MODIFIED_AFTER_PRINTED","部分付款","部分收款","partPublished","partOffered","partInvoiced","partStatemented","部分核销","willExpired","supplierConfirmed"]},se=(function(){function e(){}e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"})}(),function(){function e(){this.tip="详情"}return e.prototype.ngOnInit=function(){this.setStatusColor()},e.prototype.ngOnChanges=function(){this.setStatusColor()},e.prototype.setStatusColor=function(){var e="";for(var t in le)!this.state||-1===le[t].indexOf(this.state)&&-1===le[t].indexOf(this.state.toUpperCase())&&-1===le[t].indexOf(this.state.toLowerCase())||(e=t);this.statusColor=e||"#9FA4A2"},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-tip",template:'<nz-content class="hd-detail-tip-container">\n <div *ngIf="stateText" class="hd-detail-tip-state" [ngStyle]="{\'background\': statusColor || \'#9FA4A2\'}">{{stateText}}\n </div>\n <div class="hd-detail-tip-billNumber">{{billNumber}}</div>\n <div *ngIf="tip" class="hd-detail-tip-name"> / {{tip}}</div>\n</nz-content>',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-detail-tip-container{display:flex;align-items:center}.hd-detail-tip-container .hd-detail-tip-state{padding:2px 6px;border-radius:2px;font-size:14px;font-weight:500;color:#fff;margin-right:8px}.hd-detail-tip-container .hd-detail-tip-billNumber{font-size:16px;font-weight:500;color:#2a3634}.hd-detail-tip-container .hd-detail-tip-name{font-size:14px;font-weight:500;color:#5d7267}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={state:[{type:t.Input}],stateText:[{type:t.Input}],billNumber:[{type:t.Input}],tip:[{type:t.Input}]},e}());var de=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.NgZorroAntdModule],declarations:[se],exports:[se]}]}],e}(),ce=function(){this.value=null,this.inputNumber=new J,this.showTime=!1,this.require=!1};var pe={Input:0,Select:1,Date:2,DateRange:3,MultipleSelect:4,Cascader:5,Month:6,InputNumber:7};pe[pe.Input]="Input",pe[pe.Select]="Select",pe[pe.Date]="Date",pe[pe.DateRange]="DateRange",pe[pe.MultipleSelect]="MultipleSelect",pe[pe.Cascader]="Cascader",pe[pe.Month]="Month",pe[pe.InputNumber]="InputNumber";var he=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),me=function(){this.require=!1,this.width=1,this.hide=!1,this.totalWidth=0,this.isRowFirst=0,this.value=null,this.inputNumber=new J,this.hdShowToday=!0,this.showTime=!1};var ge=function(){};var ue={Input:0,Select:1,Date:2,DateRange:3,TextArea:4,InputNumber:5,MultipleSelect:6,ViewDom:7,Switch:8,Time:9,Cascader:10,Radio:11,Checkbox:12,RegionAddress:13};ue[ue.Input]="Input",ue[ue.Select]="Select",ue[ue.Date]="Date",ue[ue.DateRange]="DateRange",ue[ue.TextArea]="TextArea",ue[ue.InputNumber]="InputNumber",ue[ue.MultipleSelect]="MultipleSelect",ue[ue.ViewDom]="ViewDom",ue[ue.Switch]="Switch",ue[ue.Time]="Time",ue[ue.Cascader]="Cascader",ue[ue.Radio]="Radio",ue[ue.Checkbox]="Checkbox",ue[ue.RegionAddress]="RegionAddress";var fe=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}();function be(e,t,n){if(void 0===n&&(n="pinyin"),!e)return!0;var i=e.trim().toLowerCase();return t.some((function(e){var t=null!=e.label?String(e.label).toLowerCase():"",o=null!=e.value?String(e.value).toLowerCase():"",a=null!=e[n]?String(e[n]).toLowerCase():"";return t&&-1!==t.indexOf(i)||o&&-1!==o.indexOf(i)||a&&-1!==a.indexOf(i)}))}function ye(e){if(!e)return!0;if(!1===e.showSearch)return!1;if(e.showSearch&&"object"==typeof e.showSearch)return e.showSearch;var t=e.pinyinField||"pinyin";return{filter:function(e,n){return be(e,n,t)}}}function ve(e){var t=e&&e.menuClassName?String(e.menuClassName).trim():"";return t?-1!==t.indexOf("hd-cascader-menus")?t:"hd-cascader-menus "+t:"hd-cascader-menus"}function xe(e){if(!e)return null;var t={};if(e.menuStyle&&Object.keys(e.menuStyle).forEach((function(n){t[n]=e.menuStyle[n]})),null!=e.dropdownMinWidth){var n="number"==typeof e.dropdownMinWidth?e.dropdownMinWidth+"px":String(e.dropdownMinWidth);null==t["--hd-cascader-menu-min-width"]&&(t["--hd-cascader-menu-min-width"]=n)}return Object.keys(t).length?t:null}var we=function(){};var Ie=function(){};var Se=new t.InjectionToken("HD_FILTER_SCHEME_STORE"),ze=function(){function e(e,n){var i=this;this.fb=e,this.schemeStore=n,this.enableFilterScheme=!1,this.searchEvent=new t.EventEmitter,this.resetEvent=new t.EventEmitter,this.isShowMore=!0,this.filterListModular=0,this.searchSubject=new d.Subject,this.debounceTimeout=0,this.defaultFilterValues={},this.defaultValuesCaptured=!1,this.schemeList=[],this.currentScheme=null,this.currentSchemeName="默认条件",this.schemeLoading=!1,this.schemeSaving=!1,this.switchModalVisible=!1,this.switchFormList=[],this.saveAsModalVisible=!1,this.saveAsFormList=[],this.defaultSchemeName="默认条件",this.switchDefaultKey="__DEFAULT__",this.getCascaderShowSearch=ye,this.getCascaderMenuClassName=ve,this.getCascaderMenuStyle=xe,this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,o=e.selectOption;return i.triggerEvent(t,n,o)}))}return e.prototype.ngOnInit=function(){this.init(),this.tryLoadSchemes(!0)},e.prototype.ngOnChanges=function(e){e.filterList&&this.init(),(e.enableFilterScheme||e.filterSchemeKey)&&this.tryLoadSchemes(!0)},e.prototype.ngOnDestroy=function(){this.searchSubscription&&this.searchSubscription.unsubscribe(),this.schemeLoadSub&&this.schemeLoadSub.unsubscribe(),this.schemeActionSub&&this.schemeActionSub.unsubscribe()},Object.defineProperty(e.prototype,"canUseScheme",{get:function(){return!!(this.enableFilterScheme&&this.filterSchemeKey&&this.schemeStore)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;if(this.isShowMore=!0,!this.checkList(this.filterList))throw"filter组件数据格式不规范";this.filterList||(this.filterList=[]),this.filterListModular=this.filterList.length%4;var t={};this.filterList.forEach((function(n,i){t[n.name]=e.fb.control(n.value,[]),n.show=i<7})),this.validateFilterForm=this.fb.group(t),this.defaultValuesCaptured||(this.defaultFilterValues=this.clonePlain(this.getFilterData()),this.defaultValuesCaptured=!0),this.filterList.forEach((function(t){t.onChangeEvent&&(t.onChangeEventDebounceTime?e.validateFilterForm.get(t.name).valueChanges.pipe(c.debounceTime(t.onChangeEventDebounceTime)).subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)})):e.validateFilterForm.get(t.name).valueChanges.subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)})))}))},e.prototype.onSearchEvent=function(e,t,n,i){var o=this;n?(this.debounceTimeout=n,this.searchSubscription&&this.searchSubscription.unsubscribe(),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.selectOption;return o.triggerEvent(t,n,i)})),this.searchSubject.next({fn:e,event:t,selectOption:i})):this.triggerEvent(e,t,i)},e.prototype.triggerEvent=function(e,t,n){if(e&&n)e(t,n);else{if(!e)return;e(t)}},e.prototype.computeOffset=function(){return 4===this.filterList.length?18:this.isShowMore?0===this.filterListModular||this.filterList.length>7?0:6*(3-this.filterListModular):0===this.filterListModular?18:6*(3-this.filterListModular)},e.prototype.checkList=function(e){if(!e||e&&0===e.length)return!0;var t=[];if(e.forEach((function(e){t.push(e.name)})),C(new Set(t)).length!==e.length)throw"filter组件数据格式不规范,存在重复name值!";return!0},e.prototype.submitForm=function(){this.searchEvent.emit(this.validateFilterForm.getRawValue())},e.prototype.resetForm=function(){this.resetFilterFormWithValue(),this.resetEvent.observers.length>0?this.resetEvent.emit(this.validateFilterForm.getRawValue()):this.searchEvent.emit(this.validateFilterForm.getRawValue())},e.prototype.resetFilterFormWithValue=function(){var e={};this.filterList.forEach((function(t){e[t.name]=t.value})),this.validateFilterForm.patchValue(e)},e.prototype.getFilterData=function(){return this.validateFilterForm.getRawValue()},e.prototype.showMore=function(){var e=this;this.isShowMore=!this.isShowMore,this.filterList.forEach((function(t,n){t.show=!e.isShowMore||n<7}))},e.prototype.inputClean=function(e){var t={};t[e.name]=null,this.validateFilterForm.patchValue(t)},e.prototype.isAllowClear=function(e){return!e||(null!=e.hdAllowClear?!!e.hdAllowClear:!e.selectOption||null==e.selectOption.hdAllowClear||!!e.selectOption.hdAllowClear)},e.prototype.tryLoadSchemes=function(e){var t=this;if(!this.canUseScheme)return this.schemeList=[],this.currentScheme=null,void(this.currentSchemeName="默认条件");this.schemeLoading=!0,this.schemeLoadSub&&this.schemeLoadSub.unsubscribe(),this.schemeLoadSub=this.schemeStore.queryByFilterKey(this.filterSchemeKey).subscribe((function(n){if(t.schemeLoading=!1,t.schemeList=n||[],e)t.applySchemeByName("默认条件",!0);else if(t.currentScheme&&t.currentScheme.uuid){var i=t.schemeList.find((function(e){return e.uuid===t.currentScheme.uuid}));t.currentScheme=i||null,t.currentSchemeName=i?i.templateName:"默认条件"}}),(function(n){t.schemeLoading=!1,t.showError("加载筛选模版失败:"+(n||"")),e&&t.applySchemeByName("默认条件",!0)}))},e.prototype.getDisplaySchemeList=function(){var e=[],t=this.schemeList.find((function(e){return"默认条件"===e.templateName}));return t?e.push(t):e.push({filterKey:this.filterSchemeKey,templateName:"默认条件",filterValue:JSON.stringify(this.defaultFilterValues||{})}),(this.schemeList||[]).forEach((function(t){"默认条件"!==t.templateName&&e.push(t)})),e},e.prototype.openSwitchModal=function(){if(this.canUseScheme){var e=this.currentScheme||{filterKey:this.filterSchemeKey,templateName:this.currentSchemeName||"默认条件",filterValue:""};this.buildSwitchFormList(this.getSwitchOptionKey(e)),this.switchModalVisible=!0}},e.prototype.closeSwitchModal=function(){this.switchModalVisible=!1},e.prototype.switchFormChangeEvent=function(e){this.switchValidateForm=e},e.prototype.getSwitchOptionKey=function(e){return e&&e.uuid?e.uuid:this.switchDefaultKey},e.prototype.buildSwitchFormList=function(e){var t=this,n=this.getDisplaySchemeList().map((function(e){return{value:t.getSwitchOptionKey(e),label:e.templateName}}));this.switchFormList=[{type:ue.Select,label:"筛选组",name:"schemeKey",require:!0,width:4,value:e,placeholder:"请选择筛选组",selectOption:{value:"value",label:"label",hdShowSearch:!0,selectList:n}}]},e.prototype.confirmSwitch=function(){if(!this.switchValidateForm||!this.switchValidateForm.valid)return this.showError("请选择筛选组"),!1;var e=this.switchValidateForm.getRawValue().schemeKey;if(null==e||""===e)return this.showError("请选择筛选组"),!1;var t=this.getDisplaySchemeList(),n=null;return(n=e===this.switchDefaultKey?t.find((function(e){return"默认条件"===e.templateName&&!e.uuid}))||t.find((function(e){return"默认条件"===e.templateName})):t.find((function(t){return t.uuid===e})))?(this.applyScheme(n,!0),this.switchModalVisible=!1,!0):(this.showError("请选择筛选组"),!1)},e.prototype.isDefaultScheme=function(e){return!(!e||"默认条件"!==e.templateName)},e.prototype.canDeleteCurrent=function(){return!(!this.currentScheme||!this.currentScheme.uuid||"默认条件"===this.currentScheme.templateName)},e.prototype.saveCurrentScheme=function(){var e=this;if(this.canUseScheme){var t=this.currentSchemeName||"默认条件",n={uuid:this.currentScheme&&this.currentScheme.uuid?this.currentScheme.uuid:null,filterKey:this.filterSchemeKey,templateName:t,filterValue:this.serializeFilterValue()};this.schemeSaving=!0,this.schemeActionSub&&this.schemeActionSub.unsubscribe(),this.schemeActionSub=this.schemeStore.save(n).subscribe((function(t){e.schemeSaving=!1,e.showSuccess("保存成功"),e.currentScheme=t,e.currentSchemeName=t.templateName,e.refreshSchemeListKeepCurrent()}),(function(t){e.schemeSaving=!1,e.showError("保存失败:"+(t||""))}))}},e.prototype.openSaveAsModal=function(){this.buildSaveAsFormList(),this.saveAsModalVisible=!0},e.prototype.closeSaveAsModal=function(){this.saveAsModalVisible=!1},e.prototype.saveAsFormChangeEvent=function(e){this.saveAsValidateForm=e},e.prototype.buildSaveAsFormList=function(){this.saveAsFormList=[{type:ue.Input,label:"筛选组名称",name:"templateName",require:!0,width:4,maxLength:50,value:null,placeholder:"请输入筛选组名称"}]},e.prototype.confirmSaveAs=function(){var e=this;if(!this.saveAsValidateForm||!this.saveAsValidateForm.valid)return this.showError("请输入筛选组名称"),!1;var t=(this.saveAsValidateForm.getRawValue().templateName||"").trim();if(!t)return this.showError("请输入筛选组名称"),!1;if("默认条件"===t)return this.showError("不能使用「默认条件」作为筛选组名称,请使用「保存为当前」覆盖默认条件"),!1;if((this.schemeList||[]).some((function(e){return e.templateName===t})))return this.showError("筛选组名称已存在"),!1;var n={filterKey:this.filterSchemeKey,templateName:t,filterValue:this.serializeFilterValue()};return this.schemeSaving=!0,this.schemeActionSub&&this.schemeActionSub.unsubscribe(),this.schemeActionSub=this.schemeStore.save(n).subscribe((function(t){e.schemeSaving=!1,e.saveAsModalVisible=!1,e.showSuccess("另存为成功"),e.currentScheme=t,e.currentSchemeName=t.templateName,e.refreshSchemeListKeepCurrent()}),(function(t){e.schemeSaving=!1,e.showError("另存为失败:"+(t||""))})),!1},e.prototype.deleteCurrentScheme=function(){var e=this;if(this.canDeleteCurrent()){var t=this.currentScheme.uuid;this.schemeSaving=!0,this.schemeActionSub&&this.schemeActionSub.unsubscribe(),this.schemeActionSub=this.schemeStore.delete(t).subscribe((function(){e.schemeSaving=!1,e.showSuccess("删除成功"),e.schemeList=(e.schemeList||[]).filter((function(e){return e.uuid!==t})),e.applySchemeByName("默认条件",!0)}),(function(t){e.schemeSaving=!1,e.showError("删除失败:"+(t||""))}))}},e.prototype.refreshSchemeListKeepCurrent=function(){var e=this;this.canUseScheme&&this.schemeStore.queryByFilterKey(this.filterSchemeKey).subscribe((function(t){if(e.schemeList=t||[],e.currentScheme&&e.currentScheme.uuid){var n=e.schemeList.find((function(t){return t.uuid===e.currentScheme.uuid}));n&&(e.currentScheme=n,e.currentSchemeName=n.templateName)}}),(function(){}))},e.prototype.applySchemeByName=function(e,t){var n=this.getDisplaySchemeList().find((function(t){return t.templateName===e}));n&&this.applyScheme(n,t)},e.prototype.applyScheme=function(e,t){this.currentScheme=e&&e.uuid?e:{filterKey:this.filterSchemeKey,templateName:e?e.templateName:"默认条件",filterValue:e?e.filterValue:JSON.stringify(this.defaultFilterValues||{})},this.currentSchemeName=this.currentScheme.templateName||"默认条件";var n={};if("默认条件"!==this.currentSchemeName||e&&e.uuid){try{n=JSON.parse(e.filterValue||"{}")}catch(e){n={}}"默认条件"===this.currentSchemeName&&(n=Object.assign({},this.defaultFilterValues||{},n||{}))}else n=this.clonePlain(this.defaultFilterValues||{});this.patchFilterValues(n),t&&this.submitForm()},e.prototype.serializeFilterValue=function(){return JSON.stringify(this.getFilterData()||{})},e.prototype.patchFilterValues=function(e){var t=this;if(this.validateFilterForm&&this.filterList){var n={};this.filterList.forEach((function(i){e&&Object.prototype.hasOwnProperty.call(e,i.name)&&(n[i.name]=t.reviveFilterValue(i,e[i.name]))})),this.validateFilterForm.patchValue(n)}},e.prototype.reviveFilterValue=function(e,t){var n=this;return null==t?t:e.type===pe.DateRange?Array.isArray(t)?t.map((function(e){return n.parseDateLike(e)})):t:e.type===pe.Date||e.type===pe.Month?this.parseDateLike(t):t},e.prototype.parseDateLike=function(e){if(null==e||e instanceof Date)return e;if("string"==typeof e&&/^\d{4}-\d{2}-\d{2}/.test(e)){var t=new Date(e);return isNaN(t.getTime())?e:t}if("number"==typeof e){t=new Date(e);return isNaN(t.getTime())?e:t}return e},e.prototype.clonePlain=function(e){try{return JSON.parse(JSON.stringify(null==e?{}:e))}catch(e){return{}}},e.prototype.showSuccess=function(e){"undefined"!=typeof window&&window.hdMessageService&&window.hdMessageService.prototype.success(e)},e.prototype.showError=function(e){"undefined"!=typeof window&&window.hdMessageService?window.hdMessageService.prototype.error(e):console.error(e)},e.decorators=[{type:t.Component,args:[{selector:"hd-filter",template:'<form nz-form [formGroup]="validateFilterForm" class="ant-advanced-search-form hd-filter-container">\n \x3c!-- 整体结构 --\x3e\n <div nz-row [nzGutter]="24">\n \x3c!-- 对组件列表循环处理 --\x3e\n <ng-container *ngFor="let filter of filterList">\n <div nz-col [nzSpan]="6" [hidden]="!filter.show">\n <nz-form-item nzFlex>\n <nz-form-label class="hd-filter-label" [nzNoColon]="true"><span class="hd-red" *ngIf="filter.require">*</span>{{ filter.label }}\n </nz-form-label>\n <nz-form-control class="hd-filter-control">\n <ng-container [ngSwitch]="filter.type">\n \x3c!-- 这里数字对应枚举类型,可在hd-filter.service.ts文件中查看对应关系 --\x3e\n <ng-container *ngSwitchCase="0">\n <nz-input-group [nzSuffix]="inputCleanTemplate">\n <input nz-input [placeholder]="filter.placeholder ? filter.placeholder : \'请输入\' + filter.label"\n [formControlName]="filter.name"\n (blur)="triggerEvent(filter.onBlurEvent || null, validateFilterForm.get(filter.name).value)"/>\n </nz-input-group>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill"\n nzType="close-circle" *ngIf="isAllowClear(filter) && validateFilterForm.get(filter.name).value"\n (click)="inputClean(filter)"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="1">\n <nz-select\n [nzShowSearch]="filter.selectOption.hdShowSearch != null ? filter.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(filter)"\n [nzServerSearch]="filter.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="filter.selectOption.hdDropdownMatchSelectWidth ? filter.selectOption.hdDropdownMatchSelectWidth : false"\n (nzOnSearch)="onSearchEvent(filter.onSearchEvent || null, $event, filter.onSearchEventEventDebounceTime, filter.selectOption)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name">\n <nz-option *ngFor="let selectItem of filter.selectOption.selectList"\n [nzValue]="selectItem[filter.selectOption.value]" [nzLabel]="filter.selectOption.showLabelAndValue ? \'[\'+ selectItem[filter.selectOption.value] +\']\' +\n selectItem[filter.selectOption.label] : selectItem[filter.selectOption.label]"></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="2">\n <nz-date-picker *ngIf="filter.showTime"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name" [nzDisabledDate]="filter.hdDisabledDate"\n [nzAllowClear]="isAllowClear(filter)"\n nzShowTime nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n <nz-date-picker *ngIf="!filter.showTime"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name" [nzDisabledDate]="filter.hdDisabledDate"\n [nzAllowClear]="isAllowClear(filter)">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase="3">\n <nz-range-picker [nzPlaceHolder]="[\'开始日期\',\'结束日期\']" [nzDisabledDate]="filter.hdDisabledDate"\n [nzAllowClear]="isAllowClear(filter)" [formControlName]="filter.name">\n </nz-range-picker>\n </ng-container>\n \x3c!-- 多项选择器 --\x3e\n <ng-container *ngSwitchCase="4">\n <nz-select\n [nzDropdownMatchSelectWidth]="filter.selectOption.hdDropdownMatchSelectWidth ? filter.selectOption.hdDropdownMatchSelectWidth : false"\n nzMode="multiple"\n [nzShowSearch]="filter.selectOption.hdShowSearch != null ? filter.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(filter)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name" [nzServerSearch]="filter.selectOption.hdServerSearch || false"\n (nzOnSearch)="onSearchEvent(filter.onSearchEvent || null, $event, filter.onSearchEventEventDebounceTime, filter.selectOption)">\n <nz-option *ngFor="let selectItem of filter.selectOption.selectList"\n [nzValue]="selectItem[filter.selectOption.value]" [nzLabel]="filter.selectOption.showLabelAndValue ? \'[\'+ selectItem[filter.selectOption.value] +\']\' +\n selectItem[filter.selectOption.label] : selectItem[filter.selectOption.label]"></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="5">\n <nz-cascader [nzOptions]="filter.cascaderOption.options" [formControlName]="filter.name"\n [nzAllowClear]="isAllowClear(filter)"\n [nzShowSearch]="getCascaderShowSearch(filter.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(filter.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(filter.cascaderOption)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label">\n </nz-cascader>\n </ng-container>\n <ng-container *ngSwitchCase="6">\n <nz-month-picker [formControlName]="filter.name"\n [nzAllowClear]="isAllowClear(filter)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"></nz-month-picker>\n </ng-container>\n <ng-container *ngSwitchCase="7">\n <nz-input-number [formControlName]="filter.name" [nzMin]="filter?.inputNumber?.min || 0"\n [nzMax]="filter?.inputNumber?.max || 99999999" [nzStep]="filter?.inputNumber?.step || 1"\n [nzPlaceHolder]="\'请输入\' + filter.label"\n [nzPrecision]="filter?.inputNumber?.precision != null ? filter.inputNumber.precision : 4"\n (nzBlur)="triggerEvent(filter.onBlurEvent || null, validateFilterForm.get(filter.name).value)">\n </nz-input-number>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n </ng-container>\n\n <div class="hd-filter-btn" nz-col [nzSpan]="6" [nzOffset]="computeOffset()">\n \x3c!-- 稿面顺序:默认条件 → 操作(齿轮) → 收起 → 查询 → 重置 --\x3e\n <ng-container *ngIf="canUseScheme">\n <a class="hd-filter-scheme-name" (click)="openSwitchModal()" nz-tooltip [nzTitle]="currentSchemeName">\n <span class="hd-filter-scheme-name-text">{{ currentSchemeName }}</span>\n <i nz-icon nzType="down" nzTheme="outline"></i>\n </a>\n <a class="hd-filter-scheme-op" nz-dropdown [nzDropdownMenu]="schemeOpMenu" nzTrigger="click">\n <i nz-icon nzType="setting" nzTheme="outline"></i>\n 操作\n </a>\n <nz-dropdown-menu #schemeOpMenu="nzDropdownMenu">\n <ul nz-menu>\n <li nz-menu-item (click)="saveCurrentScheme()">保存为当前</li>\n <li nz-menu-item (click)="openSaveAsModal()">另存为</li>\n <li nz-menu-item *ngIf="canDeleteCurrent()"\n class="hd-filter-scheme-op-delete"\n nz-popconfirm\n nzTitle="确定删除当前筛选组吗?"\n nzPopconfirmPlacement="bottomRight"\n (nzOnConfirm)="deleteCurrentScheme()">删除</li>\n </ul>\n </nz-dropdown-menu>\n </ng-container>\n <a *ngIf="filterList.length > 7" class="hd-filter-more" (click)="showMore()">\n {{ isShowMore ? \'展开\' : \'收起\' }}\n <i nz-icon [nzType]="isShowMore ? \'down\' : \'up\'"></i>\n </a>\n <hd-button type="primary" (click)="submitForm()">查询</hd-button>\n <hd-button type="reset" (click)="resetForm()">重置</hd-button>\n </div>\n </div>\n</form>\n\n\x3c!-- 选择筛选组:*ngIf 避免未打开时 hd-form 空 formList 导致 formGroup 未初始化报错 --\x3e\n<nz-modal\n [(nzVisible)]="switchModalVisible"\n nzTitle="选择筛选组"\n nzWidth="560px"\n [nzOkLoading]="schemeLoading"\n (nzOnCancel)="closeSwitchModal()"\n (nzOnOk)="confirmSwitch()">\n <hd-form *ngIf="switchModalVisible" [formList]="switchFormList" (changeEvent)="switchFormChangeEvent($event)"></hd-form>\n</nz-modal>\n\n\x3c!-- 另存为 --\x3e\n<nz-modal\n [(nzVisible)]="saveAsModalVisible"\n nzTitle="保存筛选组"\n nzWidth="560px"\n [nzOkLoading]="schemeSaving"\n (nzOnCancel)="closeSaveAsModal()"\n (nzOnOk)="confirmSaveAs()">\n <hd-form *ngIf="saveAsModalVisible" [formList]="saveAsFormList" (changeEvent)="saveAsFormChangeEvent($event)"></hd-form>\n</nz-modal>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-filter-container{padding:20px 23px;background:#fff;border-radius:4px;margin-bottom:8px!important;font-size:14px}.hd-filter-container .ant-row{display:flex;flex-wrap:wrap;align-items:flex-start;row-gap:4px;margin-right:0!important;margin-left:0!important}.hd-filter-container .ant-row::after,.hd-filter-container .ant-row::before{display:none}.hd-filter-container .ant-col-6{float:none;padding-left:0!important;padding-right:0!important}.hd-filter-container .hd-filter-label{width:124px;word-break:break-all;font-size:14px}.hd-filter-container .hd-filter-label ::ng-deep label{font-size:14px}.hd-filter-container .hd-filter-control{width:calc(100% - 124px)}.hd-filter-container ::ng-deep .ant-calendar-picker{width:100%}.hd-filter-container .hd-filter-more{color:#20b95d;white-space:nowrap;flex-shrink:0}.hd-filter-container .hd-filter-btn{height:40px;display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;max-width:100%;min-width:0;padding-left:12px;box-sizing:border-box}.hd-filter-container hd-button{margin-left:0;flex-shrink:0}.hd-filter-container ::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}.hd-filter-container ::ng-deep .ant-select-selection--single{height:32px!important}.hd-filter-container ::ng-deep .ant-input{height:32px!important}.hd-filter-container ::ng-deep .ant-calendar-range-picker-input{text-align:left!important}.hd-filter-container .ant-input-number{width:100%}.hd-filter-container .hd-red{color:#f5222d}.hd-filter-container .hd-filter-scheme-name,.hd-filter-container .hd-filter-scheme-op{color:#4e5369;white-space:nowrap;display:inline-flex;align-items:center;gap:4px;padding:3px;margin:0;box-sizing:border-box}.hd-filter-container .hd-filter-scheme-name i[nz-icon],.hd-filter-container .hd-filter-scheme-op i[nz-icon]{font-size:14px;flex-shrink:0}.hd-filter-container .hd-filter-scheme-name{flex:0 1 auto;max-width:160px;min-width:0;overflow:hidden}.hd-filter-container .hd-filter-scheme-name .hd-filter-scheme-name-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hd-filter-container .hd-filter-scheme-name i[nz-icon]{font-size:12px}.hd-filter-container .hd-filter-scheme-op{flex-shrink:0}::ng-deep .hd-filter-scheme-op-delete{color:#f5222d!important}"]}]}],e.ctorParameters=function(){return[{type:i.FormBuilder},{type:Ie,decorators:[{type:t.Optional},{type:t.Inject,args:[Se]}]}]},e.propDecorators={filterList:[{type:t.Input}],enableFilterScheme:[{type:t.Input}],filterSchemeKey:[{type:t.Input}],searchEvent:[{type:t.Output}],resetEvent:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Object)],e.prototype,"enableFilterScheme",void 0),e}();var Ce=function(){function e(e){var n=this;this.fb=e,this.changeEvent=new t.EventEmitter,this.searchSubject=new d.Subject,this.debounceTimeout=0,this.openChangeSubject=new d.Subject,this.openChangeDebounceTimeout=0,this.inputNumberDefaultFormatter=function(e){return e},this.inputNumberDefaultParser=function(e){return e},this.getCascaderShowSearch=ye,this.getCascaderMenuClassName=ve,this.getCascaderMenuStyle=xe,this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,i=e.event;return n.triggerEvent(t,i)})),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,i=e.event;i&&n.triggerEvent(t,i)}))}return e.prototype.ngOnInit=function(){this.formList&&0!==this.formList.length?this.init():this.validateHdForm=this.fb.group({})},e.prototype.ngOnChanges=function(e){if(e.formList&&JSON.stringify(e.formList.currentValue)!==JSON.stringify(e.formList.previousValue)){if(!this.formList||0===this.formList.length)return void(this.validateHdForm=this.fb.group({}));this.init()}},e.prototype.onSearchEvent=function(e,t,n){var i=this;if(e){var o=null!=n?n:0;o?(this.debounceTimeout=o,this.searchSubscription&&this.searchSubscription.unsubscribe(),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event;return i.triggerEvent(t,n)})),this.searchSubject.next({fn:e,event:t})):this.triggerEvent(e,t)}},e.prototype.onOpenChangeEvent=function(e,t,n,i){var o=this;if(e){t&&this.clearSelectOptionsOnOpen(i);var a=null!=n?n:0;a?(this.openChangeDebounceTimeout=a,this.openChangeSubscription&&this.openChangeSubscription.unsubscribe(),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event;n&&o.triggerEvent(t,n)})),this.openChangeSubject.next({fn:e,event:t})):t&&this.triggerEvent(e,t)}},e.prototype.clearSelectOptionsOnOpen=function(e){if(e&&e.selectOption){var t=e.selectOption;null!=t.selectList&&(t.selectList=[])}},e.prototype.triggerEvent=function(e,t){e&&e(t)},e.prototype.init=function(){var e=this;if(!this.checkList(this.formList))throw"form组件数据格式不规范";this.formList.forEach((function(e){e.type===ue.RegionAddress&&(e.width=2)})),this.dealRow();var t={};this.formList.forEach((function(n,o){if(2===n.type&&n.value){var a=z(n.value.toString().split("-").map((function(e){return parseInt(e)})),3),r=a[0],l=a[1],s=a[2],d=new Date(r,l-1,s).toLocaleDateString("zh-Hans-CN",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,"-");n.validator?t[n.name]=e.fb.control({value:new Date(d),disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:new Date(d),disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(3===n.type&&n.value){var c=JSON.parse(JSON.stringify(n.value));if(!(c&&c instanceof Array))throw"form组件中DateRange控件value值格式不规范,正确示例['2020-01-22', '2020-01-23']";c=c.map((function(e){var t=z(e.split("-").map((function(e){return parseInt(e)})),3),n=t[0],i=t[1],o=t[2],a=new Date(n,i-1,o).toLocaleDateString("zh-Hans-CN",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,"-");e=new Date(a)})),n.validator?t[n.name]=e.fb.control({value:c,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:c,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(n.type===ue.Checkbox&&n.checkboxOption){var p=Array.isArray(n.value)?n.value:[];n.validator?t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(n.type===ue.Checkbox){p=null!=n.value&&n.value;n.validator?t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(n.type===ue.RegionAddress){var h=Array.isArray(n.value)?n.value:null,m=null!=n.addressValue?n.addressValue:null,g=n.require&&!n.hide?[i.Validators.required]:[];n.validator?t[n.name]=e.fb.control({value:h,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[n.validator]):t[n.name]=e.fb.control({value:h,disabled:n.disabled},g),t[n.addressName]=e.fb.control({value:m,disabled:n.disabled},g)}else n.validator?t[n.name]=e.fb.control({value:n.value,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:n.value,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])})),this.validateHdForm=this.fb.group(t),this.formList.forEach((function(t){if(t.onChangeEvent){var n=null!=t.onChangeEventDebounceTime?t.onChangeEventDebounceTime:0,i=e.validateHdForm.get(t.name);n>0?i.valueChanges.pipe(c.debounceTime(n)).subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)})):i.valueChanges.subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)}))}})),this.validateHdForm.valueChanges.subscribe((function(t){return e.onHdFormValueChanged(t)})),this.onHdFormValueChanged()},e.prototype.dealRow=function(){for(var e=this.formList.length,t=0,n=0;n<e;n++)if(!this.formList[n].hide)if(0===n)this.formList[n].totalWidth=this.formList[n].width||1,this.formList[n].isRowFirst=1,t+=4;else for(var i=n-1;i>=0;i--)if(this.formList[i].totalWidth){this.formList[n].totalWidth=this.formList[i].totalWidth+(this.formList[n].width||1),this.formList[i].totalWidth+(this.formList[n].width||1)>t&&this.formList[i].totalWidth<=t?(t+=4,this.formList[n].isRowFirst=1):this.formList[n].isRowFirst=0;break}for(var o=0;o<e;o++)if(1===this.formList[o].isRowFirst){this.formList[o].columnItems=[];for(var a=0,r=1;r<e-o&&(4!==a&&1!==this.formList[o+r].isRowFirst);r++)!this.formList[o+r].hide&&this.formList[o+r]&&0===this.formList[o+r].isRowFirst&&(this.formList[o].columnItems.push(this.formList[o+r]),a++)}},e.prototype.onHdFormValueChanged=function(e){this.changeEvent.emit(this.validateHdForm)},e.prototype.checkList=function(e){if(!e||e&&0===e.length)return!1;var t=[];if(e.forEach((function(e){if(e.type===ue.RegionAddress&&!e.addressName)throw"form组件 RegionAddress 必须配置 addressName";if(!(e.type!==ue.RegionAddress||e.cascaderOption&&e.cascaderOption.options))throw"form组件 RegionAddress 必须配置 cascaderOption.options";t.push(e.name),e.type===ue.RegionAddress&&t.push(e.addressName)})),C(new Set(t)).length!==t.length)throw"form组件数据格式不规范,存在重复name值!";return!0},e.prototype.getRegionAddressValidateStatus=function(e){if(!this.validateHdForm)return"";var t=this.validateHdForm.get(e.name),n=e.addressName?this.validateHdForm.get(e.addressName):null,i=function(e){return e&&e.dirty&&e.invalid};return i(t)||i(n)?"error":""},e.prototype.getRegionAddressErrorTip=function(e){if(!this.validateHdForm)return"";var t=this.validateHdForm.get(e.name),n=e.addressName?this.validateHdForm.get(e.addressName):null;if(t&&t.dirty&&t.hasError("required"))return e.label+"不能为空";if(n&&n.dirty&&n.hasError("required"))return"详细地址不能为空";if(e.validatorKeys&&t)for(var i=0;i<e.validatorKeys.length;i++){var o=e.validatorKeys[i];if(t.hasError(o.key))return o.label}return e.label+"不能为空"},e.prototype.submitForm=function(){Object.values(this.validateHdForm.controls).forEach((function(e){e.markAsDirty(),e.updateValueAndValidity()})),this.changeEvent.emit(this.validateHdForm.getRawValue())},e.prototype.resetForm=function(){this.validateHdForm.reset(),Object.values(this.validateHdForm.controls).forEach((function(e){e.markAsDirty(),e.updateValueAndValidity()})),this.changeEvent.emit(this.validateHdForm.getRawValue())},e.prototype.inputClean=function(e){var t={};t[e.name]=null,this.validateHdForm.patchValue(t)},e.prototype.isAllowClear=function(e){return!e||(null!=e.hdAllowClear?!!e.hdAllowClear:!e.selectOption||null==e.selectOption.hdAllowClear||!!e.selectOption.hdAllowClear)},e.prototype.isCheckboxChecked=function(e,t){var n=this.validateHdForm.get(e),i=n?n.value:null;return Array.isArray(i)&&-1!==i.indexOf(t)},e.prototype.onCheckboxItemChange=function(e,t,n){var i=this.validateHdForm.get(e);if(i){var o=Array.isArray(i.value)?C(i.value):[],a=o.indexOf(t);n&&-1===a?o.push(t):n||-1===a||o.splice(a,1),i.setValue(o),i.markAsDirty(),i.updateValueAndValidity()}},e.decorators=[{type:t.Component,args:[{selector:"hd-form",template:'<form nz-form [formGroup]="validateHdForm" class="ant-advanced-search-form hd-formItem-container">\n \x3c!-- 整体结构 --\x3e\n <div nz-row [nzGutter]="24">\n \x3c!-- 对组件列表循环处理 --\x3e\n <ng-container *ngFor="let formItem of formList;index as i">\n <div nz-row *ngIf="formItem.isRowFirst && formItem.isRowFirst === 1">\n <div nz-col *ngIf="!formItem.hide" [nzSpan]="formItem.width? formItem.width * 6 : 6">\n <nz-form-item nzFlex>\n <nz-form-label class="hd-formItem-label" [nzNoColon]="true">\n <div class="hd-formItem-label-flex">\n <span>\n <span class="hd-formItem-label-require" *ngIf="formItem.require">*</span>\n <span [ngStyle]="{\'color\': formItem?.labelColor ? formItem.labelColor : null}">{{ formItem.label\n }}</span>\n </span>\n <ng-container *ngIf="formItem.explain">\n <span class="hd-formItem-label-explain">{{ formItem.explain }}</span>\n </ng-container>\n </div>\n </nz-form-label>\n <nz-form-control class="hd-formItem-control" [nzErrorTip]="formItemErrorTpl"\n [nzValidateStatus]="formItem.type === 13 ? getRegionAddressValidateStatus(formItem) : null">\n <ng-template #formItemErrorTpl let-control>\n <ng-container *ngIf="formItem.type === 13; else formItemDefaultErrorTpl">\n {{ getRegionAddressErrorTip(formItem) }}\n </ng-container>\n <ng-template #formItemDefaultErrorTpl>\n <ng-container *ngFor="let validatorKey of formItem.validatorKeys;index as i">\n <ng-container *ngIf="control.hasError(validatorKey.key)">\n {{ validatorKey.label }}\n </ng-container>\n </ng-container>\n <ng-container *ngIf="control.hasError(\'required\')">\n {{ formItem.label + \'不能为空\' }}\n </ng-container>\n </ng-template>\n </ng-template>\n <ng-container [ngSwitch]="formItem.type">\n <ng-container *ngSwitchCase="0">\n <nz-input-group [nzSuffix]="inputCleanTemplate"\n [nzPrefix]="formItem.prefixIcon ? inputPrefixIconTemplate : formItem.prefix">\n <input nz-input [ngStyle]="{\'color\': formItem?.color ? formItem.color : null}"\n [maxlength]="formItem.maxLength || null"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [formControlName]="formItem.name" />\n </nz-input-group>\n <ng-template #inputPrefixIconTemplate><i nz-icon [nzType]="formItem.prefixIcon"></i></ng-template>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill"\n nzType="close-circle"\n *ngIf="isAllowClear(formItem) && validateHdForm.get(formItem.name).value && !formItem.disabled && !validateHdForm.get(formItem.name).disabled"\n (click)="inputClean(formItem)"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="1">\n <nz-select\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, formItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of formItem.selectOption.selectList"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]"></nz-option>\n <nz-option *ngIf="formItem.defaultLabel" [nzLabel]="formItem.defaultLabel"\n [nzValue]="formItem.value" nzHide></nz-option>\n <nz-option\n *ngIf="formItem.selectOption.label && validateHdForm.get(formItem.name) && validateHdForm.get(formItem.selectOption.label)?.value && validateHdForm.get(formItem.selectOption.value)?.value"\n [nzLabel]="(formItem.selectOption.showLabelAndValue || formItem.selectOption.hdShowItemCode) ? (\'[\'+ validateHdForm.get(formItem.selectOption.value).value + \']\' + validateHdForm.get(formItem.selectOption.label).value) : validateHdForm.get(formItem.selectOption.label).value"\n [nzValue]="validateHdForm.get(formItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="2">\n <nz-date-picker *ngIf="!formItem.showTime" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name">\n </nz-date-picker>\n <nz-date-picker *ngIf="formItem.showTime" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" nzShowTime nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase="3">\n <nz-range-picker [nzPlaceHolder]="formItem.showTime ? [\'开始时间\',\'结束时间\'] : [\'开始日期\',\'结束日期\']"\n [nzDisabledDate]="formItem.hdDisabledDate" [formControlName]="formItem.name"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzShowTime]="formItem.showTime ? true : false">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase="4">\n <textarea [ngStyle]="{\'color\': formItem?.color ? formItem.color : null}"\n [rows]="formItem.textAreaRows ? formItem.textAreaRows : 1"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label" rows="1"\n nz-input [maxlength]="formItem.maxLength || null" [formControlName]="formItem.name"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase="5">\n <nz-input-number [ngStyle]="{\'color\': formItem?.color ? formItem.color : null}"\n [formControlName]="formItem.name" [nzMin]="formItem?.inputNumber?.min || 0"\n [nzMax]="formItem?.inputNumber?.max || 99999999" [nzStep]="formItem?.inputNumber?.step || 1"\n [nzPlaceHolder]="\'请输入\' + formItem.label"\n [nzFormatter]="formItem?.inputNumber?.nzFormatter || inputNumberDefaultFormatter"\n [nzParser]="formItem?.inputNumber?.nzParser || inputNumberDefaultParser"\n [nzPrecision]="formItem?.inputNumber?.precision != null ? formItem.inputNumber.precision : 4">\n </nz-input-number>\n </ng-container>\n \x3c!-- 多项选择器 --\x3e\n <ng-container *ngSwitchCase="6">\n <nz-select [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n nzMode="multiple"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, formItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of formItem.selectOption.selectList"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]"></nz-option>\n <ng-container *ngIf="formItem.defaultLabel">\n <nz-option *ngFor="let option of formItem.defaultLabel;index as i" [nzLabel]="option"\n [nzValue]="formItem.value[i]" nzHide></nz-option>\n </ng-container>\n <ng-container\n *ngIf="formItem.selectOption.label && validateHdForm.get(formItem.name) && validateHdForm.get(formItem.selectOption.label)?.value && validateHdForm.get(formItem.selectOption.value)?.value">\n <nz-option *ngFor="let option of validateHdForm.get(formItem.selectOption.value).value;index as i"\n [nzLabel]="validateHdForm.get(formItem.selectOption.label).value[i]" [nzValue]="option" nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="7">\n <span>{{ formItem.value || validateHdForm.get(formItem.name).value }}</span>\n </ng-container>\n <ng-container *ngSwitchCase="8">\n <nz-switch [formControlName]="formItem.name"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchCase="9">\n <nz-time-picker [formControlName]="formItem.name" [nzFormat]="formItem.format"\n [nzAllowEmpty]="isAllowClear(formItem) && !formItem.disabled"></nz-time-picker>\n </ng-container>\n <ng-container *ngSwitchCase="10">\n <nz-cascader [nzOptions]="formItem.cascaderOption.options" [formControlName]="formItem.name"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzShowSearch]="getCascaderShowSearch(formItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(formItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(formItem.cascaderOption)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label">\n </nz-cascader>\n </ng-container>\n <ng-container *ngSwitchCase="11">\n <nz-radio-group [formControlName]="formItem.name">\n <label nz-radio *ngFor="let radioItem of formItem.radioOption.optionList"\n [nzValue]="radioItem[formItem.radioOption.value]">\n {{ formItem.radioOption.showLabelAndValue ? \'[\' + radioItem[formItem.radioOption.value] + \']\' +\n radioItem[formItem.radioOption.label] : radioItem[formItem.radioOption.label] }}\n </label>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngSwitchCase="12">\n <ng-container *ngIf="formItem.checkboxOption; else singleCheckboxTpl">\n <label nz-checkbox\n *ngFor="let checkboxItem of formItem.checkboxOption.optionList"\n [nzDisabled]="formItem.disabled || validateHdForm.get(formItem.name).disabled"\n [ngModel]="isCheckboxChecked(formItem.name, checkboxItem[formItem.checkboxOption.value])"\n (ngModelChange)="onCheckboxItemChange(formItem.name, checkboxItem[formItem.checkboxOption.value], $event)"\n [ngModelOptions]="{standalone: true}">\n {{ formItem.checkboxOption.showLabelAndValue\n ? \'[\' + checkboxItem[formItem.checkboxOption.value] + \']\' + checkboxItem[formItem.checkboxOption.label]\n : checkboxItem[formItem.checkboxOption.label] }}\n </label>\n </ng-container>\n <ng-template #singleCheckboxTpl>\n <label nz-checkbox [formControlName]="formItem.name"></label>\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="13">\n <div class="hd-form-region-address">\n <nz-cascader class="hd-form-region-address__cascader"\n [nzOptions]="formItem.cascaderOption.options" [formControlName]="formItem.name"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzShowSearch]="getCascaderShowSearch(formItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(formItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(formItem.cascaderOption)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择省市区\'">\n </nz-cascader>\n <input nz-input class="hd-form-region-address__detail"\n [formControlName]="formItem.addressName"\n [maxlength]="formItem.addressMaxLength || null"\n [placeholder]="formItem.addressPlaceholder ? formItem.addressPlaceholder : \'请输入详细地址\'" />\n </div>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n \x3c!-- 循环最多四次 --\x3e\n <ng-container *ngFor="let columnItem of formItem.columnItems;index as columnItemIndex">\n <div nz-col *ngIf="!columnItem.hide" [nzSpan]="columnItem.width? columnItem.width * 6 : 6">\n <nz-form-item nzFlex>\n <nz-form-label class="hd-formItem-label" [nzNoColon]="true">\n <div class="hd-formItem-label-flex">\n <span>\n <span class="hd-formItem-label-require" *ngIf="columnItem.require">*</span>\n <span [ngStyle]="{\'color\': columnItem?.labelColor ? columnItem.labelColor : null}">{{\n columnItem.label }}</span>\n </span>\n <ng-container *ngIf="columnItem.explain">\n <span class="hd-formItem-label-explain">{{ columnItem.explain }}</span>\n </ng-container>\n </div>\n </nz-form-label>\n <nz-form-control class="hd-formItem-control" [nzErrorTip]="columnItemErrorTpl"\n [nzValidateStatus]="columnItem.type === 13 ? getRegionAddressValidateStatus(columnItem) : null">\n <ng-template #columnItemErrorTpl let-control>\n <ng-container *ngIf="columnItem.type === 13; else columnItemDefaultErrorTpl">\n {{ getRegionAddressErrorTip(columnItem) }}\n </ng-container>\n <ng-template #columnItemDefaultErrorTpl>\n <ng-container *ngFor="let validatorKey of columnItem.validatorKeys;index as i">\n <ng-container *ngIf="control.hasError(validatorKey.key)">\n {{ validatorKey.label }}\n </ng-container>\n </ng-container>\n <ng-container *ngIf="control.hasError(\'required\')">\n {{ columnItem.label + \'不能为空\' }}\n </ng-container>\n </ng-template>\n </ng-template>\n <ng-container [ngSwitch]="columnItem.type">\n <ng-container *ngSwitchCase="0">\n <nz-input-group [nzSuffix]="inputCleanTemplate"\n [nzPrefix]="columnItem.prefixIcon ? inputPrefixIconTemplate : columnItem.prefix">\n <input *ngIf="columnItem.disabled === true;else inputTemplate" nz-input\n [ngStyle]="{\'color\': columnItem?.color ? columnItem.color : null}" [disabled]="true"\n [attr.disabled]="true" [maxlength]="columnItem.maxLength || null"\n [placeholder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [formControlName]="columnItem.name" />\n <ng-template #inputTemplate>\n <input nz-input [ngStyle]="{\'color\': columnItem?.color ? formItem.color : null}"\n [maxlength]="columnItem.maxLength || null"\n [placeholder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [formControlName]="columnItem.name" />\n </ng-template>\n </nz-input-group>\n <ng-template #inputPrefixIconTemplate><i nz-icon [nzType]="columnItem.prefixIcon"></i></ng-template>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill"\n nzType="close-circle"\n *ngIf="isAllowClear(columnItem) && validateHdForm.get(columnItem.name).value && !columnItem.disabled && !validateHdForm.get(formItem.name).disabled"\n (click)="inputClean(columnItem)"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="1">\n <nz-select [nzServerSearch]="columnItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzShowSearch]="columnItem.selectOption.hdShowSearch != null ? columnItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name"\n (nzOpenChange)="onOpenChangeEvent(columnItem.onOpenChangeEvent || null, $event, columnItem.onOpenChangeEventDebounceTime, columnItem)"\n (nzOnSearch)="onSearchEvent(columnItem.onSearchEvent || null, $event, columnItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of columnItem.selectOption.selectList"\n [nzValue]="selectItem[columnItem.selectOption.value]" [nzLabel]="columnItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[columnItem.selectOption.value] +\']\' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]">\n </nz-option>\n <nz-option\n *ngIf="columnItem.selectOption.label && validateHdForm.get(columnItem.name) && validateHdForm.get(columnItem.selectOption.label)?.value && validateHdForm.get(columnItem.selectOption.value)?.value"\n [nzLabel]="(columnItem.selectOption.showLabelAndValue || columnItem.selectOption.hdShowItemCode) ? (\'[\'+ validateHdForm.get(columnItem.selectOption.value).value + \']\' + validateHdForm.get(columnItem.selectOption.label).value) : validateHdForm.get(columnItem.selectOption.label).value"\n [nzValue]="validateHdForm.get(columnItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="2">\n <nz-date-picker *ngIf="columnItem.showTime" [nzDisabledDate]="columnItem.hdDisabledDate"\n [nzShowToday]="columnItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name" nzShowTime nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n <nz-date-picker *ngIf="!columnItem.showTime" [nzDisabledDate]="columnItem.hdDisabledDate"\n [nzShowToday]="columnItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase="3">\n <nz-range-picker [nzPlaceHolder]="columnItem.showTime ? [\'开始时间\',\'结束时间\'] : [\'开始日期\',\'结束日期\']"\n [nzDisabledDate]="columnItem.hdDisabledDate" [formControlName]="columnItem.name"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzShowTime]="columnItem.showTime ? true : false">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase="4">\n <textarea [ngStyle]="{\'color\': columnItem?.color ? columnItem.color : null}"\n [rows]="columnItem.textAreaRows ? columnItem.textAreaRows : 1" rows="1" nz-input\n [placeholder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [maxlength]="columnItem.maxLength || null" [formControlName]="columnItem.name"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase="5">\n <nz-input-number [ngStyle]="{\'color\': columnItem?.color ? columnItem.color : null}"\n [formControlName]="columnItem.name" [nzMin]="columnItem?.inputNumber?.min || 0"\n [nzMax]="columnItem?.inputNumber?.max || 99999999" [nzStep]="columnItem?.inputNumber?.step || 1"\n [nzFormatter]="columnItem?.inputNumber?.nzFormatter || inputNumberDefaultFormatter"\n [nzParser]="columnItem?.inputNumber?.nzParser || inputNumberDefaultParser"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [nzPrecision]="columnItem?.inputNumber?.precision != null ? columnItem.inputNumber.precision : 4">\n </nz-input-number>\n </ng-container>\n \x3c!-- 多项选择器 --\x3e\n <ng-container *ngSwitchCase="6">\n <nz-select [nzServerSearch]="columnItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false"\n nzMode="multiple"\n [nzShowSearch]="columnItem.selectOption.hdShowSearch != null ? columnItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name"\n (nzOpenChange)="onOpenChangeEvent(columnItem.onOpenChangeEvent || null, $event, columnItem.onOpenChangeEventDebounceTime, columnItem)"\n (nzOnSearch)="onSearchEvent(columnItem.onSearchEvent || null, $event, columnItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of columnItem.selectOption.selectList"\n [nzValue]="selectItem[columnItem.selectOption.value]" [nzLabel]="columnItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[columnItem.selectOption.value] +\']\' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]">\n </nz-option>\n <ng-container *ngIf="columnItem.defaultLabel">\n <nz-option *ngFor="let option of columnItem.defaultLabel;index as i" [nzLabel]="option"\n [nzValue]="columnItem.value[i]" nzHide></nz-option>\n </ng-container>\n <ng-container\n *ngIf="columnItem.selectOption.label && validateHdForm.get(columnItem.name) && validateHdForm.get(columnItem.selectOption.label)?.value && validateHdForm.get(columnItem.selectOption.value)?.value">\n <nz-option\n *ngFor="let option of validateHdForm.get(columnItem.selectOption.value).value;index as i"\n [nzLabel]="validateHdForm.get(columnItem.selectOption.label).value[i]" [nzValue]="option"\n nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="7">\n <span>{{ columnItem.value || validateHdForm.get(columnItem.name).value }}</span>\n </ng-container>\n <ng-container *ngSwitchCase="8">\n <nz-switch [formControlName]="columnItem.name"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchCase="9">\n <nz-time-picker [formControlName]="columnItem.name" [nzFormat]="columnItem.format"\n [nzAllowEmpty]="isAllowClear(columnItem) && !columnItem.disabled"></nz-time-picker>\n </ng-container>\n <ng-container *ngSwitchCase="10">\n <nz-cascader [nzOptions]="columnItem.cascaderOption.options" [formControlName]="columnItem.name"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzShowSearch]="getCascaderShowSearch(columnItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(columnItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(columnItem.cascaderOption)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label">\n </nz-cascader>\n </ng-container>\n <ng-container *ngSwitchCase="11">\n <nz-radio-group [formControlName]="columnItem.name">\n <label nz-radio *ngFor="let radioItem of columnItem.radioOption.optionList"\n [nzValue]="radioItem[columnItem.radioOption.value]">\n {{ columnItem.radioOption.showLabelAndValue ? \'[\' + radioItem[columnItem.radioOption.value] + \']\' +\n radioItem[columnItem.radioOption.label] : radioItem[columnItem.radioOption.label] }}\n </label>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngSwitchCase="12">\n <ng-container *ngIf="columnItem.checkboxOption; else singleColumnCheckboxTpl">\n <label nz-checkbox\n *ngFor="let checkboxItem of columnItem.checkboxOption.optionList"\n [nzDisabled]="columnItem.disabled || validateHdForm.get(columnItem.name).disabled"\n [ngModel]="isCheckboxChecked(columnItem.name, checkboxItem[columnItem.checkboxOption.value])"\n (ngModelChange)="onCheckboxItemChange(columnItem.name, checkboxItem[columnItem.checkboxOption.value], $event)"\n [ngModelOptions]="{standalone: true}">\n {{ columnItem.checkboxOption.showLabelAndValue\n ? \'[\' + checkboxItem[columnItem.checkboxOption.value] + \']\' + checkboxItem[columnItem.checkboxOption.label]\n : checkboxItem[columnItem.checkboxOption.label] }}\n </label>\n </ng-container>\n <ng-template #singleColumnCheckboxTpl>\n <label nz-checkbox [formControlName]="columnItem.name"></label>\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="13">\n <div class="hd-form-region-address">\n <nz-cascader class="hd-form-region-address__cascader"\n [nzOptions]="columnItem.cascaderOption.options" [formControlName]="columnItem.name"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzShowSearch]="getCascaderShowSearch(columnItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(columnItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(columnItem.cascaderOption)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择省市区\'">\n </nz-cascader>\n <input nz-input class="hd-form-region-address__detail"\n [formControlName]="columnItem.addressName"\n [maxlength]="columnItem.addressMaxLength || null"\n [placeholder]="columnItem.addressPlaceholder ? columnItem.addressPlaceholder : \'请输入详细地址\'" />\n </div>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n</form>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-formItem-container .hd-formItem-label{width:124px;word-break:break-all;text-align:right}.hd-formItem-container .hd-formItem-control{width:calc(100% - 124px)}.hd-formItem-container .ant-input-number{width:100%}.hd-formItem-container .hd-formItem-label-flex{display:inline-flex;flex-direction:column}.hd-formItem-container .hd-formItem-label-flex span{display:inline-block}.hd-formItem-container .hd-formItem-label-flex .hd-formItem-label-require{margin-right:4px;color:#f5222d;font-size:14px;font-family:SimSun,sans-serif}.hd-formItem-container .hd-formItem-label-flex .hd-formItem-label-explain{margin-top:-13px;color:#f5222d}.hd-formItem-container textarea{margin-top:8px}.hd-formItem-container ::ng-deep label[nz-checkbox]{margin-right:12px;line-height:32px}.hd-formItem-container .hd-form-region-address{display:flex;width:100%;height:40px;align-items:center}.hd-formItem-container .hd-form-region-address .hd-form-region-address__cascader{flex:0 0 calc(50% - 74px);max-width:calc(50% - 74px);min-width:0;height:32px;line-height:32px;position:relative;z-index:1}.hd-formItem-container .hd-form-region-address .hd-form-region-address__detail{flex:1;min-width:0;margin-left:-1px;box-sizing:border-box;height:32px;line-height:30px;border-radius:0 4px 4px 0;position:relative;z-index:0}.hd-formItem-container .hd-form-region-address .hd-form-region-address__detail:focus{z-index:2}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker{display:block;position:relative;z-index:1;width:100%;height:32px;line-height:32px;border-radius:4px 0 0 4px}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker-focused,.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker:focus{z-index:2}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker .ant-cascader-input{height:32px;border-radius:4px 0 0 4px}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker-label{height:30px;line-height:30px;top:0;margin-top:0;display:flex;align-items:center}"]}]}],e.ctorParameters=function(){return[{type:i.FormBuilder}]},e.propDecorators={formList:[{type:t.Input}],changeEvent:[{type:t.Output}]},e}();var ke=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule,F],declarations:[Ce],exports:[Ce]}]}],e}(),Le=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule,F,ke],declarations:[ze],exports:[ze]}]}],e}(),Oe=function(){function e(){}return e.prototype.putSession=function(e,t){t?window.sessionStorage.setItem(e,JSON.stringify(t)):window.sessionStorage.removeItem(e)},e.prototype.getSession=function(e){return JSON.parse(window.sessionStorage.getItem(e))},e.prototype.removeSession=function(e){window.sessionStorage.removeItem(e)},e.decorators=[{type:t.Injectable}],e}(),De=function(){this.require=!1,this.hide=!1,this.hideViewDomValue=!1,this.isShow=!0,this.value=null,this.inputNumber=new J,this.hdShowToday=!0,this.showTime=!1,this.canSearch=!1};var Te=function(){};var Ne=function(){};var Fe={Input:"Input",Select:"Select",Date:"Date",DateRange:"DateRange",TextArea:"TextArea",InputNumber:"InputNumber",MultipleSelect:"MultipleSelect",ViewDom:"ViewDom",Switch:"Switch",Time:"Time"},Ae=function(){this.cols=[]};var Ee=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Me=function(){function e(e,n,i){var o=this;this.fb=e,this.cdr=n,this.commonSessionService=i,this.showLineNumber=!0,this.allowEmpty=!0,this.deleteLastLineEvent=new t.EventEmitter,this.showKeyboardOperateTip=!1,this.enableKeyboardOperate=!0,this.tableLoading=!1,this.showSearch=!1,this.showCheckbox=!1,this.showColSettings=!0,this.operateButtons=["add","delete"],this.scroll={x:"1px"},this.changeEvent=new t.EventEmitter,this.addLineEvent=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.showDeleteConfirm=!1,this.paginationPageIndex=1,this.paginationPageSize=10,this.showTotal=!1,this.totalOption=[],this.columnsNumber=0,this.totalOptionList=[],this.showForm=!1,this.storeFormLinesData=[],this.filterStoreFormLinesData=[],this.filterIndexStore=[],this.isFilterData=!1,this.formValid=!1,this.selectedRowIds=new Set,this.searchSubject=new d.Subject,this.debounceTimeout=0,this.openChangeSubject=new d.Subject,this.openChangeDebounceTimeout=0,this.collectDomList=[],this.activeDomX=null,this.activeDomY=null,this.activeDom=null,this.activeSelectedComponentOpen=!1,this.isDropdownVisible=!1,this.showListNodes=!1,this.nowListNodes=[],this.hideListNodes=[],this.cancelNowListNodes=[],this.cancelHideListNodes=[],this.formLinesCacheOption=new Ae,this.localforage=null,this.localtionTmp="",this.colsCacheLoaded=!1,this.deleteLineEvent=new t.EventEmitter,this.textWidthCache={},this.localforage=p.createInstance({driver:p.INDEXEDDB,name:"hd-fscm",version:1,storeName:"hd-fscm-store"}),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;return o.triggerEvent(t,n,i)})),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;n&&o.triggerEvent(t,n,i)}))}return e.prototype.ngOnInit=function(){this.localtionTmp=location.pathname,this.localtionTmp&&(this.localtionTmp=this.localtionTmp.replace(/\//g,"_")),this.userSession=this.commonSessionService.getSession("__jy_authorization_session__"),this.userSession||(this.userSession={userCode:"dev"}),this.storeFormLinesData=this.formLinesData,this.initColSettings(),this.init()},e.prototype.ngAfterViewInit=function(){var e=this;this.collectDomData(),this.formInputDomListSub=this.formInputDomList.changes.subscribe((function(){e.collectDomData()}))},e.prototype.ngOnDestroy=function(){this.searchSubscription&&this.searchSubscription.unsubscribe(),this.openChangeSubscription&&this.openChangeSubscription.unsubscribe(),this.formInputDomListSub&&this.formInputDomListSub.unsubscribe()},Object.defineProperty(e.prototype,"formLinesLength",{get:function(){return this.linesFormArray.controls.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operateColWidth",{get:function(){var e=(this.operateButtons||[]).filter((function(e){return["add","copy","delete"].includes(e)})).length;return Math.max(40*e,80)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTrulyEmptyAllowed",{get:function(){var e=(this.operateButtons||[]).filter((function(e){return["add","copy","delete"].includes(e)}));return this.allowEmpty&&1===e.length&&"delete"===e[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineNumberLeft",{get:function(){return this.showCheckbox?"40px":"0px"},enumerable:!0,configurable:!0}),e.prototype.generateRowId=function(){return"hd_row_"+Date.now()+"_"+Math.random().toString(36).slice(2,9)},e.prototype.getRowId=function(e){return e&&e.get("_hdRowId")?e.get("_hdRowId").value:null},e.prototype.getCurrentPageLines=function(){var e=(this.paginationPageIndex-1)*this.paginationPageSize,t=e+this.paginationPageSize;return this.linesFormArray.controls.slice(e,t)},e.prototype.isLineChecked=function(e){var t=this.getRowId(e);return!!t&&this.selectedRowIds.has(t)},e.prototype.isAllChecked=function(){var e=this,t=this.getCurrentPageLines();return t.length>0&&t.every((function(t){return e.isLineChecked(t)}))},e.prototype.isIndeterminate=function(){var e=this,t=this.getCurrentPageLines(),n=t.filter((function(t){return e.isLineChecked(t)})).length;return n>0&&n<t.length},e.prototype.onAllChecked=function(e){var t=this;this.getCurrentPageLines().forEach((function(n){var i=t.getRowId(n);i&&(e?t.selectedRowIds.add(i):t.selectedRowIds.delete(i))})),this.emitSelectionChange()},e.prototype.onLineCheckedChange=function(e,t){var n=this.getRowId(e);n&&(t?this.selectedRowIds.add(n):this.selectedRowIds.delete(n),this.emitSelectionChange())},e.prototype.emitSelectionChange=function(){this.selectionChange.emit(this.getSelectedLines()),this.cdr.markForCheck()},e.prototype.removeLineFromSelection=function(e){var t=this.getRowId(e);t&&this.selectedRowIds.has(t)&&(this.selectedRowIds.delete(t),this.emitSelectionChange())},e.prototype.applyValuesToLine=function(e,t,n){var i=this;Object.keys(t).forEach((function(o){var a=e.get(o);if(a||(e.addControl(o,i.fb.control(t[o])),a=e.get(o)),a.setValue(t[o],{emitEvent:!1}),a.markAsPristine({onlySelf:!0}),a.markAsUntouched({onlySelf:!0}),a.updateValueAndValidity({emitEvent:!1}),n){var r=i.formLines.find((function(e){return e.name===o}));r&&r.onChangeEvent&&i.triggerEvent(r.onChangeEvent,t[o],e)}})),this.cdr.detectChanges()},e.prototype.getControlValidateStatus=function(e,t){var n=e.get(t.name);if(!n||n.disabled)return"";var i=null===n.value||void 0===n.value||""===n.value;return(n.dirty||n.touched)&&i&&n.hasError("required")?"error":""},e.prototype.limitInputLength=function(e,t,n){if(n&&n.maxLength){var i=e.target;if(i&&i.value&&i.value.length>n.maxLength){var o=i.value.slice(0,n.maxLength);i.value=o;var a=t.get(n.name);a&&a.setValue(o)}}},e.prototype.getSelectedLines=function(){var e=this;return(this.linesFormArray.controls.filter((function(t){return e.isLineChecked(t)})))},e.prototype.getSelectedLinesData=function(){var e=this,t=[],n=new Map;return this.linesFormArray.controls.forEach((function(t){var i=e.getRowId(t);i&&e.selectedRowIds.has(i)&&n.set(i,t.getRawValue())})),(this.storeFormLinesData||[]).forEach((function(i){var o=i&&i._hdRowId;o&&e.selectedRowIds.has(o)&&t.push(n.has(o)?n.get(o):x({},i))})),this.selectedRowIds.forEach((function(e){!t.some((function(t){return t&&t._hdRowId===e}))&&n.has(e)&&t.push(n.get(e))})),t},e.prototype.batchFillSelected=function(e,t){var n=this;if(void 0===t&&(t=!0),!e||0===this.selectedRowIds.size)return 0;var i=new Map;this.linesFormArray.controls.forEach((function(e){var t=n.getRowId(e);t&&i.set(t,e)}));var o=0;return this.selectedRowIds.forEach((function(a){var r=i.get(a);if(r)return n.applyValuesToLine(r,e,t),void o++;var l=(n.storeFormLinesData||[]).find((function(e){return e&&e._hdRowId===a}));l&&(Object.keys(e).forEach((function(t){l[t]=e[t]})),o++)})),o},e.prototype.clearSelection=function(){0!==this.selectedRowIds.size&&(this.selectedRowIds.clear(),this.emitSelectionChange())},e.prototype.getSelectedCount=function(){return this.selectedRowIds.size},Object.defineProperty(e.prototype,"showToolbar",{get:function(){return!!this.showSearch||!!this.showCheckbox||!!this.formLinesLeftButton||!!this.formLinesRightButton||this.showColSettingsButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showColSettingsButton",{get:function(){return!!this.showColSettings&&this.getConfigurableFormLines().length>0},enumerable:!0,configurable:!0}),e.prototype.isColumnVisible=function(e){return!(!e||e.hide)&&(e.type!==Fe.ViewDom||!1!==e.isShow)},e.prototype.getConfigurableFormLines=function(){return this.formLines&&this.formLines.length?this.formLines.filter((function(e){return e.type===Fe.ViewDom&&!e.hide})):[]},e.prototype.getCacheKey=function(){return"hd-form-lines_"+(this.userSession&&this.userSession.userCode||"dev")+"_"+this.localtionTmp+"_"+this.uuid},e.prototype.initColSettings=function(){var e=this;this.colsCacheLoaded=!1,this.showColSettings&&this.formLines&&this.formLines.length&&this.uuid?this.localforage.ready().then((function(){e.localforage.getItem(e.getCacheKey()).then((function(t){t&&Array.isArray(t.cols)?(e.formLinesCacheOption=t,e.colsCacheLoaded=!0):(e.formLinesCacheOption=new Ae,e.colsCacheLoaded=!1),e.setCols()})).catch((function(){e.formLinesCacheOption=new Ae,e.colsCacheLoaded=!1,e.setCols()}))})).catch((function(t){console.log("localforage加载异常",t),e.formLinesCacheOption=new Ae,e.colsCacheLoaded=!1,e.setCols()})):this.setCols()},e.prototype.hasColsCache=function(){return this.colsCacheLoaded&&Array.isArray(this.formLinesCacheOption.cols)},e.prototype.saveFormLinesCacheOption=function(){this.uuid&&this.localforage.setItem(this.getCacheKey(),this.formLinesCacheOption)},e.prototype.sortNodesByFormLinesOrder=function(e){var t=this.getConfigurableFormLines().map((function(e){return e.name}));return e.slice().sort((function(e,n){return t.indexOf(e.key)-t.indexOf(n.key)}))},e.prototype.setCols=function(){var e=this;this.showListNodes=!1,this.nowListNodes=[],this.hideListNodes=[];var t=this.getConfigurableFormLines(),n=this.hasColsCache();t.forEach((function(t){n?t.isShow=e.formLinesCacheOption.cols.includes(t.name):void 0!==t.isShow&&null!==t.isShow||(t.isShow=!0);var i={title:t.label,key:t.name,checked:!1!==t.isShow,disabled:!1};!1!==t.isShow?e.nowListNodes.push(i):e.hideListNodes.push(i)})),this.nowListNodes=this.sortNodesByFormLinesOrder(this.nowListNodes),this.hideListNodes=this.sortNodesByFormLinesOrder(this.hideListNodes),setTimeout((function(){e.showListNodes=!0,e.cdr.markForCheck()}),0)},e.prototype.cancelDropdown=function(){this.isDropdownVisible=!1,this.hideListNodes=JSON.parse(JSON.stringify(this.cancelHideListNodes)),this.nowListNodes=JSON.parse(JSON.stringify(this.cancelNowListNodes)),this.cdr.markForCheck()},e.prototype.confirmDropdown=function(){this.cancelHideListNodes=JSON.parse(JSON.stringify(this.hideListNodes)),this.cancelNowListNodes=JSON.parse(JSON.stringify(this.nowListNodes)),this.isDropdownVisible=!0,this.cdr.markForCheck()},e.prototype.submitGrids=function(){var e=this.nowListNodes.map((function(e){return e.key}));this.getConfigurableFormLines().forEach((function(t){t.isShow=e.includes(t.name)})),this.formLinesCacheOption.cols=e,this.colsCacheLoaded=!0,this.saveFormLinesCacheOption(),this.isDropdownVisible=!1,this.cdr.markForCheck()},e.prototype.checkAction=function(e){if(e.node.origin.checked){var t=this.hideListNodes.find((function(t){return t.key===e.node.origin.key}));if(!t)return;t.checked=!0,this.hideListNodes=this.hideListNodes.filter((function(t){return t.key!==e.node.origin.key})),this.nowListNodes=this.sortNodesByFormLinesOrder(this.nowListNodes.concat([t]))}else{var n=this.hideListNodes.slice(0);this.nowListNodes.forEach((function(t){if(t.key===e.node.origin.key){var i=JSON.parse(JSON.stringify(t));i.checked=!1,n.push(i)}})),this.hideListNodes=this.sortNodesByFormLinesOrder(n),this.nowListNodes=this.nowListNodes.filter((function(t){return t.key!==e.node.origin.key}))}this.cdr.markForCheck()},e.prototype.setActiveSelectedComponentOpen=function(e){var t=this;this.activeSelectedComponentOpen=e,!0===e&&setTimeout((function(){var e=document.querySelectorAll(".ant-select-dropdown.hd-select-table");if(e.length>0){var n=e[0];n.querySelectorAll(".hd-option-header").forEach((function(e){return e.remove()}));var i=t.getOldDomIndex(t.activeDomY,t.formLines);n.insertBefore(t.createDOMStructure(t.formLines[i],t.linesFormArray.controls.slice((t.paginationPageIndex-1)*t.paginationPageSize,(t.paginationPageIndex-1)*t.paginationPageSize+t.paginationPageSize)[t.activeDomX]),n.firstChild)}}),0)},e.prototype.getSelectTableColumnStyle=function(e){return e&&e.width?{width:e.width+"px"}:{width:"unset"}},e.prototype.createDOMStructure=function(e,t){var n=this,i=document.createElement("div");return i.className="hd-option-header",i.style.paddingLeft="12px",i.style.paddingRight="12px",e.selectOption.tableColumns.forEach((function(e){var t=document.createElement("div");t.className="hd-option-header-column";var o=n.getSelectTableColumnStyle(e);if(t.style.width=o.width,e.label){var a=document.createTextNode(e.label);t.appendChild(a)}i.appendChild(t)})),i},e.prototype.collectDomData=function(){this.collectDomList=[];for(var e=this.formInputDomList.toArray(),t=(this.paginationPageIndex-1)*this.paginationPageSize,n=this.paginationPageIndex*this.paginationPageSize,i=(n>this.formLinesLength?this.formLinesLength:n)-t,o=e.length/i,a=0;a<i;a++)this.collectDomList.push(e.splice(0,o));this.disableInputNumberKeyboardStep()},e.prototype.disableInputNumberKeyboardStep=function(){if(this.enableKeyboardOperate)for(var e=0;e<this.collectDomList.length;e++)for(var t=function(t){var i=n.collectDomList[e][t];i instanceof o.NzInputNumberComponent&&(i.onKeyDown=function(e){38!==e.keyCode&&40!==e.keyCode&&13===e.keyCode&&i.setValidateValue()})},n=this,i=0;i<this.collectDomList[e].length;i++)t(i)},e.prototype.jumpToNextInput=function(e,t){null!==e&&null!==t&&this.collectDomList&&0!==this.collectDomList.length&&(this.activeDom instanceof o.NzSelectComponent||e!==this.collectDomList.length-1||t!==this.collectDomList[0].length-1?t===this.collectDomList[0].length-1?(console.log("执行过程1"),this.focusDom(e+1,0,"right")):(console.log("执行过程2"),this.focusDom(e,t+1,"right")):this.addNewLineAndFocus())},e.prototype.addNewLineAndFocus=function(){var e=this;this.activeDomX===this.paginationPageSize-1?this.paginationPageIndex<Math.ceil(this.formLinesLength/this.paginationPageSize)?(this.paginationPageIndex++,setTimeout((function(){e.collectDomData(),console.log("执行过程3"),e.focusDom(0,0,"right")}),0)):(this.addFormLine(),this.paginationPageIndex++,setTimeout((function(){e.collectDomData(),console.log("执行过程4"),e.focusDom(0,0)}),0)):this.addFormLine()},e.prototype.jumpToPrevInput=function(e,t){var n=this;null!==e&&null!==t&&this.collectDomList&&0!==this.collectDomList.length&&(0!==e||0!==t?0===t?(console.log("执行过程6"),this.focusDom(e-1,this.collectDomList[0].length-1,"left")):(console.log("执行过程7"),this.focusDom(e,t-1,"left")):this.paginationPageIndex>1&&(this.paginationPageIndex--,setTimeout((function(){n.collectDomData(),console.log("执行过程5"),n.focusDom(n.collectDomList.length-1,n.collectDomList[0].length-1)}),0)))},e.prototype.focusDom=function(e,n,i){if(void 0===i&&(i="right"),null!==e&&null!==n&&this.collectDomList&&0!==this.collectDomList.length&&(this.cleanFocusDom(this.activeDomX,this.activeDomY),this.collectDomList[e]&&this.collectDomList[e][n])){var a=this.collectDomList[e][n];if(a instanceof o.NzSelectComponent){if(a.nzDisabled)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));a.nzSelectTopControlComponent.inputElement.nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),"multiple"===a.nzSelectService.mode?setTimeout((function(){a.focus()}),0):a.focus()}else if(a instanceof o.NzInputNumberComponent){if(a.nzDisabled)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));var r=document.getElementById(a.nzId);r.focus(),r.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),setTimeout((function(){r.select()}),0)}else if(a instanceof t.ElementRef){if(a.nativeElement.disabled)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));a.nativeElement.focus(),a.nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),setTimeout((function(){a.nativeElement.select()}),0)}else if(a instanceof o.NzDatePickerComponent||a instanceof o.NzRangePickerComponent||a instanceof o.NzTimePickerComponent)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));this.setActiveDom(e,n)}},e.prototype.cleanFocusDom=function(e,n){if(null!==e&&null!==n&&this.collectDomList&&0!==this.collectDomList.length&&this.collectDomList[e]&&this.collectDomList[e][n]){var i=this.collectDomList[e][n];i instanceof o.NzSelectComponent?(i.blur(),i.nzOpen=!1):i instanceof o.NzInputNumberComponent?i.blur():i instanceof t.ElementRef&&i.nativeElement.blur()}},e.prototype.setActiveDom=function(e,t){this.activeDomX=e,this.activeDomY=t,this.activeDom=this.collectDomList[this.activeDomX][this.activeDomY],this.activeDom instanceof o.NzSelectComponent&&this.setActiveSelectedComponentOpen(this.activeDom.open)},e.prototype.setActiveDomInFormLines=function(e,t){this.activeDomX=e,this.activeDomY=this.getDomIndex(t,this.formLines),this.setActiveDom(this.activeDomX,this.activeDomY)},e.prototype.onKeyDown=function(e){var t=this;if(this.enableKeyboardOperate&&null!==this.activeDomX&&null!==this.activeDomY)switch(e.key){case"ArrowUp":if(this.activeDom instanceof o.NzSelectComponent&&this.activeSelectedComponentOpen)return;0!==this.activeDomX&&this.focusDom(this.activeDomX-1,this.activeDomY);break;case"ArrowDown":if(this.activeDom instanceof o.NzSelectComponent&&this.activeSelectedComponentOpen)return;if(this.activeDomX===this.collectDomList.length-1){this.cleanFocusDom(this.activeDomX,this.activeDomY),this.addNewLineAndFocus();break}this.focusDom(this.activeDomX+1,this.activeDomY);break;case"ArrowLeft":this.jumpToPrevInput(this.activeDomX,this.activeDomY);break;case"ArrowRight":this.jumpToNextInput(this.activeDomX,this.activeDomY);break;case"Enter":this.activeDom instanceof o.NzSelectComponent?(this.setActiveSelectedComponentOpen(this.activeDom.open),!1===this.activeSelectedComponentOpen&&this.focusDom(this.activeDomX,this.activeDomY)):this.activeDomX===this.collectDomList.length-1&&this.addNewLineAndFocus();break;case"Escape":if(this.activeDom instanceof o.NzSelectComponent){var n=this.activeDom;setTimeout((function(){t.setActiveSelectedComponentOpen(n.open),!1===t.activeSelectedComponentOpen&&("multiple"===n.nzSelectService.mode?setTimeout((function(){t.focusDom(t.activeDomX,t.activeDomY)}),0):t.focusDom(t.activeDomX,t.activeDomY))}),0)}break;default:if(this.activeDom instanceof o.NzSelectComponent&&!1===this.activeSelectedComponentOpen&&/^[0-9a-zA-Z]$/.test(e.key))this.activeDom.nzOpen=!0,this.setActiveSelectedComponentOpen(!0)}},e.prototype.getDomIndex=function(e,t){for(var n=["Input","Select","Date","DateRange","TextArea","InputNumber","MultipleSelect"],i=[],o=0;o<t.length;o++){if(o===e)return i.length;n.includes(t[o].type)&&!t[o].hide&&!1!==t[o].isShow&&i.push(t[o])}return null},e.prototype.getOldDomIndex=function(e,t){console.log("index",e),console.log("list",t);for(var n=["Input","Select","Date","DateRange","TextArea","InputNumber","MultipleSelect"],i=[],o=0;o<t.length;o++)if(n.includes(t[o].type)&&!t[o].hide&&!1!==t[o].isShow&&(i.push(t[o]),i.length===e+1))return o;return null},Object.defineProperty(e.prototype,"linesFormArray",{get:function(){return this.validateHdFormLines.get("lines")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"LodashRound",{get:function(){return l.round},enumerable:!0,configurable:!0}),e.prototype.getValid=function(){return this.formValid},e.prototype.onSearchEvent=function(e,t,n,i){var o=this;if(e){var a=null!=i?i:0;a?(this.debounceTimeout=a,this.searchSubscription&&this.searchSubscription.unsubscribe(),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;return o.triggerEvent(t,n,i)})),this.searchSubject.next({fn:e,event:t,line:n})):this.triggerEvent(e,t,n),setTimeout((function(){o.setActiveSelectedComponentOpen(!0)}),0)}},e.prototype.onOpenChangeEvent=function(e,t,n,i,o){var a=this;if(e){t&&this.clearSelectOptionsOnOpen(o,n);var r=null!=i?i:0;r?(this.openChangeDebounceTimeout=r,this.openChangeSubscription&&this.openChangeSubscription.unsubscribe(),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;n&&a.triggerEvent(t,n,i)})),this.openChangeSubject.next({fn:e,event:t,line:n})):t&&this.triggerEvent(e,t,n)}},e.prototype.clearSelectOptionsOnOpen=function(e,t){if(e&&e.selectOption){var n=e.selectOption;null!=n.selectList&&(n.selectList=[]),n.selectListName&&t&&t.get&&t.get(n.selectListName)&&t.get(n.selectListName).setValue([],{emitEvent:!1})}},e.prototype.triggerEvent=function(e,t,n){e&&e(t,n)},e.prototype.innerGetValid=function(){var e=this,t=this.fb.group({lines:this.fb.array([])});return this.storeFormLinesData.forEach((function(n){var o={};e.formLines.forEach((function(t){o[t.name]=e.fb.control({value:e.judgeValueIsNotEmpty(n[t.name])?n[t.name]:t.value||null,disabled:t.disabled},t.require?[i.Validators.required]:[]),t.selectOption&&t.selectOption.label&&(o[t.selectOption.label]=e.fb.control(n[t.selectOption.label]||null,[]))})),o.lineIndex=e.fb.control(t.get("lines").controls.length+1,[]);var a=e.fb.group(o);e.formLines.forEach((function(t){if(t.onChangeEvent){var n=null!=t.onChangeEventDebounceTime?t.onChangeEventDebounceTime:0,i=a.get(t.name);n>0?i.valueChanges.pipe(c.debounceTime(n)).subscribe((function(n){e.triggerEvent(t.onChangeEvent,n,a)})):i.valueChanges.subscribe((function(n){e.triggerEvent(t.onChangeEvent,n,a)}))}})),t.get("lines").insert(t.get("lines").controls.length,a)})),t.valid},e.prototype.getLines=function(){var e=this,t=[];return this.storeFormLinesData.forEach((function(n){var i={};e.formLines.forEach((function(e){i[e.name]=n[e.name]})),i.lineIndex=n.lineIndex,t.push(i)})),t},e.prototype.searchLines=function(){var e=this;if(!(this.storeFormLinesData.length<1)){if(this.tableLoading=!0,!this.filterStr)return this.isFilterData=!1,void this.setStoreData();var t=this.filterStr.trim().toLowerCase();this.isFilterData=!0,this.filterIndexStore=[];var n=this.storeFormLinesData.filter((function(n,i){var o,a;try{for(var r=S(e.formLines),l=r.next();!l.done;l=r.next()){var s=l.value;if(s.hide&&s.canSearch||!s.hide&&"uuid"!==s.name)if(console.log("item",s.name),(n[s.name]?n[s.name].toString().toLowerCase():"").includes(t))return e.filterIndexStore.push(i),!0}}catch(e){o={error:e}}finally{try{l&&!l.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return!1}));this.filterStoreFormLinesData=n,this.formLinesData=n,this.init(!0)}},e.prototype.setStoreData=function(){this.formLinesData=this.storeFormLinesData,this.init(!0)},e.prototype.getStyle=function(e,t,n){var i={"min-width":n};return t.style&&(i=x({},i,t.style)),t.colorOption&&t.colorOption.name&&e.get(t.colorOption.name).value&&(i=x({},i,{color:e.get(t.colorOption.name).value})),i},e.prototype.ngOnChanges=function(e){e.formLinesData&&JSON.stringify(e.formLinesData.currentValue)!==JSON.stringify(e.formLinesData.previousValue)&&(this.storeFormLinesData&&0===this.storeFormLinesData.length&&(this.storeFormLinesData=this.formLinesData),this.init()),e.formLines&&void 0!==e.formLines.previousValue&&JSON.stringify(e.formLines.currentValue)!==JSON.stringify(e.formLines.previousValue)&&this.initColSettings(),e.totalOption&&JSON.stringify(e.totalOption.currentValue)!==JSON.stringify(e.totalOption.previousValue)&&this.calculateTotal()},e.prototype.calculateTotal=function(){var e=this;this.showTotal&&(this.totalOptionList=new Array(Number(this.columnsNumber)-1).fill(""),this.totalOption.forEach((function(t){t.insertIndex&&(t.insertValue||0===t.insertValue)&&(e.totalOptionList[t.insertIndex-1]={value:t.insertValue,align:t.align||"left",showDecimal:t.showDecimal||!1,preserveNumber:null!=t.preserveNumber?t.preserveNumber:2})})))},e.prototype.init=function(e){var t=this;void 0===e&&(e=!1),this.paginationPageIndex=1,this.checkList(this.formLines)?(this.createForm(),e||this.formLinesData&&(!this.formLinesData||0!==this.formLinesData.length)?this.addFormLineWithData():(this.tableLoading=!1,this.isTrulyEmptyAllowed||this.addFormLine(null,!1),this.showForm=!0),this.validateHdFormLines.valueChanges.subscribe((function(e){return t.onHdFormValueChanged(e)})),this.onHdFormValueChanged()):this.tableLoading=!1},e.prototype.createForm=function(){this.validateHdFormLines=this.fb.group({lines:this.fb.array([])}),this.newLine=this.newLineItem()},e.prototype.delayJumpToNextInput=function(){var e=this;setTimeout((function(){e.jumpToNextInput(e.activeDomX,e.activeDomY)}),0)},e.prototype.newLineItem=function(){return this.createLineFromValues(null,!0)},e.prototype.createLineFromValues=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var a={};this.formLines.forEach((function(n){a[n.name]=o.fb.control({value:null!=e?e[n.name]:n.value,disabled:n.disabled},t?n.require&&!n.hide?[i.Validators.required]:[]:n.require?[i.Validators.required]:[]),n.selectOption&&n.selectOption.label&&(a[n.selectOption.label]=o.fb.control(null!=e&&e[n.selectOption.label]||null,[]))}));var r=!n&&e&&e._hdRowId?e._hdRowId:this.generateRowId();a._hdRowId=this.fb.control(r),e&&!e._hdRowId&&(e._hdRowId=r),e&&Object.keys(e).forEach((function(t){"lineIndex"!==t&&"isHdFormLineSearchAdd"!==t&&"_hdRowId"!==t&&(a[t]||(a[t]=o.fb.control(e[t])))})),a.lineIndex=this.fb.control(this.linesFormArray.controls.length+1,[]),a.isHdFormLineSearchAdd=this.fb.control(this.isFilterData,[]);var l=this.fb.group(a);return this.formLines.forEach((function(e){if(e.onChangeEvent){var t=null!=e.onChangeEventDebounceTime?e.onChangeEventDebounceTime:0,n=l.get(e.name),i=function(t){e.type===Fe.Select&&null!==t&&o.delayJumpToNextInput(),o.triggerEvent(e.onChangeEvent,t,l)};t>0?n.valueChanges.pipe(c.debounceTime(t)).subscribe(i):n.valueChanges.subscribe(i)}})),l},e.prototype.calculateLineNumber=function(){this.linesFormArray.controls.forEach((function(e,t){e.get("lineIndex").setValue(t+1,{emitEvent:!1})}))},e.prototype.addFormLineWithData=function(){var e=this;this.formLinesData.forEach((function(t){e.linesFormArray.insert(e.linesFormArray.controls.length,e.createLineFromValues(t))})),this.calculateLineNumber(),this.tableLoading=!1,this.showForm=!0},e.prototype.addFormLine=function(e,t){var n=this;void 0===t&&(t=!0);var i=this.getInsertIndexAfter(e),o=this.newLineItem();this.linesFormArray.insert(i,o),this.calculateLineNumber(),this.addLineEvent.emit(o),this.paginationPageIndex=Math.floor(i/this.paginationPageSize)+1,setTimeout((function(){n.collectDomData(),t&&(n.activeDomX=n.toPageLocalRowIndex(i),n.activeDomY=0,console.log("执行过程13"),n.focusDom(n.activeDomX,n.activeDomY))}),0)},e.prototype.copyFormLine=function(e){var t=this,n=this.linesFormArray.controls.indexOf(e);if(!(n<0)){var i=e.getRawValue(),o=n+1;this.linesFormArray.insert(o,this.createLineFromValues(i,!1,!0)),this.calculateLineNumber(),setTimeout((function(){t.collectDomData(),t.activeDomX=t.toPageLocalRowIndex(o),t.activeDomY=0,t.focusDom(t.activeDomX,t.activeDomY)}),0)}},e.prototype.deleteFormLine=function(e){var t=this,n=-1;if("number"==typeof e?n=e-1:e&&(n=this.linesFormArray.controls.indexOf(e)),console.log("index","number"==typeof e?e:n),!(n<0))if(1!==this.linesFormArray.controls.length||this.allowEmpty){var i=this.linesFormArray.at(n);if(this.linesFormArray.removeAt(n),this.removeLineFromSelection(i),this.isFilterData||!this.linesFormArray.controls||0!==this.linesFormArray.controls.length||this.isTrulyEmptyAllowed){var o=Math.max(1,Math.ceil(this.linesFormArray.controls.length/this.paginationPageSize));this.paginationPageIndex>o&&(this.paginationPageIndex=o),this.calculateLineNumber()}else this.addFormLine();setTimeout((function(){t.collectDomData()}),0)}else this.deleteLastLineEvent&&this.deleteLastLineEvent.emit()},e.prototype.getInsertIndexAfter=function(e){if(!e)return this.linesFormArray.controls.length;var t=this.linesFormArray.controls.indexOf(e);return t>=0?t+1:this.linesFormArray.controls.length},e.prototype.toPageLocalRowIndex=function(e){return e-(this.paginationPageIndex-1)*this.paginationPageSize},e.prototype.pageIndexChange=function(e){var t=this;this.paginationPageIndex=e,setTimeout((function(){t.collectDomData()}),0)},e.prototype.pageSizeChange=function(e){var t=this;this.paginationPageSize=e,setTimeout((function(){t.collectDomData()}),0)},e.prototype.onHdFormValueChanged=function(e){var t=this;if(this.isFilterData)if(e&&e.lines&&0!==this.filterIndexStore.length){var n=e.lines;if(n.length===this.filterIndexStore.length)this.filterIndexStore.forEach((function(e,i){t.storeFormLinesData[e]=x({},t.filterStoreFormLinesData[i],n[i])}));else if(n.length>this.filterIndexStore.length){for(var i=this.validateHdFormLines.getRawValue().lines,o=-1,a=0;a<i.length;a++)if(i[a].isHdFormLineSearchAdd){o=a;break}-1!==o&&this.storeFormLinesData.splice(this.filterIndexStore[o-1]+1,0,i[o]),this.filterIndexStore.push(this.filterIndexStore[o-1]+1)}else{var r=-1,l=0;if(0===n.length)r=0;else for(a=0;a<n.length;a++){if(n[a].lineIndex-l>1){r=a;break}l++}if(-1!==r){this.storeFormLinesData=this.storeFormLinesData.filter((function(e,n){return n!==t.filterIndexStore[r]})),this.filterIndexStore.splice(r,1);for(a=0;a<this.filterIndexStore.length;a++)a>=r&&this.filterIndexStore[a]--}else{var s=this.filterIndexStore[this.filterIndexStore.length-1];this.storeFormLinesData=this.storeFormLinesData.filter((function(e,t){return t!==s})),this.filterIndexStore.pop()}}}else e&&e.lines&&(this.storeFormLinesData=e.lines);else e&&e.lines&&(this.storeFormLinesData=e.lines);this.isFilterData?this.formValid?this.formValid=this.validateHdFormLines.valid:this.validateHdFormLines.valid?this.formValid=this.innerGetValid():this.formValid=this.validateHdFormLines.valid:this.formValid=this.validateHdFormLines.valid,this.changeEvent.emit(this.validateHdFormLines)},e.prototype.checkList=function(e){if(!e||e&&0===e.length)return!1;var t=[],n=[];if(e.forEach((function(i){if(t.push(i.name),i.onSearchEvent&&i.selectOption&&(n=[],e.forEach((function(e){e.name!==i.selectOption.value&&e.name!==i.selectOption.label||n.push(e.name)})),n.length<2))throw"formLines组件数据格式不规范,字段"+i.name+"的selectOption的value、label字段未能在formLines中找到对应字段!"})),C(new Set(t)).length!==e.length)throw"formLines组件数据格式不规范,存在重复name值!";return!0},e.prototype.submitForm=function(){this.changeEvent.emit(this.validateHdFormLines.getRawValue())},e.prototype.resetForm=function(){this.clearSelection();for(var e=this.linesFormArray.controls.length;e>=0;e--)this.deleteFormLine(e);this.paginationPageIndex=1},e.prototype.inputClean=function(e,t){t.get(e.name).setValue(null)},e.prototype.selectValue=function(e,t,n){document.querySelector(e).select(),this.setActiveDomInFormLines(t,n)},e.prototype.isTextOverflow=function(e,t){var n=this.textWidthCache[e];if(void 0!==n)return n+15>=t;var i=document.createElement("span");i.style.visibility="hidden",i.style.position="absolute",i.style.whiteSpace="nowrap",i.style.fontSize="14px",i.style.display="inline-block",i.innerText=e,document.body.appendChild(i);var o=i.offsetWidth+15>=t;return this.textWidthCache[e]=i.offsetWidth,i.style.display="none",document.body.removeChild(i),o},e.prototype.judgeColEmpty=function(e){return e||0===e?e:"<空>"},e.prototype.judgeValueIsNotEmpty=function(e){return null!==e||void 0!==e},e.decorators=[{type:t.Component,args:[{selector:"hd-form-lines",template:'<ng-container *ngIf="showForm && showToolbar">\n <hd-button-group class="hd-formLines-toolbar">\n <ng-template #buttonGroupLeft>\n \x3c!-- 有全局搜索:左侧放搜索框 --\x3e\n <ng-container *ngIf="showSearch">\n <nz-input-group [nzSuffix]="suffixIconSearch">\n <input type="text" nz-input (keyup.enter)="searchLines()" placeholder="请输入内容搜索" style="width: 300px;"\n [(ngModel)]="filterStr" />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <i nz-icon nzType="search" (click)="searchLines()"></i>\n </ng-template>\n </ng-container>\n \x3c!-- 无全局搜索:左侧放自定义按钮 --\x3e\n <ng-container *ngIf="!showSearch">\n <ng-container *ngTemplateOutlet="formLinesLeftButton"></ng-container>\n </ng-container>\n </ng-template>\n <ng-template #buttonGroupRight>\n \x3c!-- 有全局搜索:右侧范围再左右分开 --\x3e\n <div class="hd-formLines-toolbar-right" *ngIf="showSearch">\n <div class="hd-formLines-toolbar-right-left">\n <ng-container *ngTemplateOutlet="formLinesLeftButton"></ng-container>\n </div>\n <div class="hd-formLines-toolbar-right-right">\n <ng-container *ngTemplateOutlet="formLinesRightButton"></ng-container>\n <ng-container *ngTemplateOutlet="colSettingsTpl"></ng-container>\n </div>\n </div>\n \x3c!-- 无全局搜索:右侧只放自定义右侧按钮 + 列设置 --\x3e\n <ng-container *ngIf="!showSearch">\n <ng-container *ngTemplateOutlet="formLinesRightButton"></ng-container>\n <ng-container *ngTemplateOutlet="colSettingsTpl"></ng-container>\n </ng-container>\n </ng-template>\n </hd-button-group>\n <hd-space background="transparent" type="row" size="12"></hd-space>\n</ng-container>\n\n<ng-template #colSettingsTpl>\n <ng-container *ngIf="showColSettingsButton">\n <span class="hd-formLines-col-settings" nz-dropdown nzTrigger="click" [nzDropdownMenu]="colSettingsMenu"\n [nzVisible]="isDropdownVisible" (click)="confirmDropdown()" title="列设置">\n <svg class="hd-formLines-col-settings-icon" width="14" height="14" viewBox="0 0 14 14" fill="none"\n xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.92031 1.80756C5.02551 1.42884 5.37033 1.16675 5.76339 1.16675H8.23667C8.62973 1.16675 8.97455 1.42884 9.07975 1.80756L9.37802 2.88133L10.4571 2.60273C10.8377 2.50448 11.2371 2.67206 11.4336 3.01245L12.6703 5.15438C12.8668 5.49478 12.8122 5.92445 12.5369 6.20491L11.7561 7.00008L12.5369 7.79525C12.8122 8.07572 12.8668 8.50539 12.6703 8.84579L11.4336 10.9877C11.2371 11.3281 10.8377 11.4957 10.4571 11.3974L9.37802 11.1188L9.07975 12.1926C8.97455 12.5713 8.62973 12.8334 8.23667 12.8334H5.76339C5.37033 12.8334 5.02551 12.5713 4.92031 12.1926L4.62206 11.1189L3.54315 11.3974C3.16258 11.4957 2.76318 11.3281 2.56666 10.9877L1.33001 8.84579C1.13349 8.50539 1.18806 8.07572 1.46343 7.79525L2.24419 7.00008L1.46344 6.20491C1.18806 5.92445 1.13349 5.49478 1.33002 5.15438L2.56666 3.01245C2.76319 2.67206 3.16258 2.50448 3.54316 2.60273L4.62206 2.88127L4.92031 1.80756ZM4.54541 10.843L4.54552 10.8433L4.54541 10.843ZM5.98508 2.33341L5.66952 3.46945C5.54185 3.92906 5.06958 4.20173 4.60771 4.08249L3.46618 3.78778L2.45122 5.54572L3.2773 6.38705C3.6115 6.72742 3.6115 7.27275 3.2773 7.61312L2.45122 8.45444L3.46617 10.2124L4.60771 9.91768C5.06958 9.79844 5.54185 10.0711 5.66952 10.5307L5.98508 11.6667H8.01498L8.33056 10.5307C8.45823 10.071 8.9305 9.79838 9.39237 9.91762L10.5341 10.2124L11.5491 8.45444L10.723 7.61312C10.3888 7.27275 10.3888 6.72742 10.723 6.38705L11.5491 5.54572L10.5341 3.78778L9.39237 4.08254C8.9305 4.20178 8.45823 3.92912 8.33056 3.46951L8.01498 2.33341H5.98508ZM7.00003 5.83342C6.3557 5.83342 5.83337 6.35575 5.83337 7.00008C5.83337 7.64441 6.3557 8.16675 7.00003 8.16675C7.64436 8.16675 8.1667 7.64441 8.1667 7.00008C8.1667 6.35575 7.64436 5.83342 7.00003 5.83342ZM4.6667 7.00008C4.6667 5.71142 5.71137 4.66675 7.00003 4.66675C8.2887 4.66675 9.33337 5.71142 9.33337 7.00008C9.33337 8.28875 8.2887 9.33342 7.00003 9.33342C5.71137 9.33342 4.6667 8.28875 4.6667 7.00008Z"\n fill="currentColor" />\n </svg>\n </span>\n <nz-dropdown-menu #colSettingsMenu="nzDropdownMenu">\n <div class="hd-formLines-col-settings-dropdown">\n <div class="hd-formLines-col-settings-list">\n <div *ngIf="showListNodes && nowListNodes.length > 0" nz-menu style="padding: 5px 10px;">\n <nz-tree *ngIf="showListNodes" [nzData]="nowListNodes" nzCheckable nzBlockNode nzShowExpand="false"\n (nzCheckBoxChange)="checkAction($event)">\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 class="hd-formLines-col-settings-footer">\n <hd-button style="margin-right: 4px;" type="default" size="small" (clickAction)="cancelDropdown()">取消\n </hd-button>\n <hd-button type="primary" size="small" (clickAction)="submitGrids()">完成</hd-button>\n </div>\n </div>\n </nz-dropdown-menu>\n </ng-container>\n</ng-template>\n\n\x3c!-- <hd-button type="primary" (clickAction)="focusDom(0, 0)">聚焦第一个</hd-button> --\x3e\n\n<ng-container *ngIf="showForm">\n <ng-container *ngTemplateOutlet="tableTotal"></ng-container>\n <hd-space *ngIf="tableTotal" background="transparent" type="row" size="12"></hd-space>\n</ng-container>\n\n<form *ngIf="showForm" nz-form [formGroup]="validateHdFormLines" class="ant-advanced-search-form hd-formLines-container"\n (keydown)="onKeyDown($event)">\n <nz-table nzTemplateMode [nzFrontPagination]="false" [nzLoading]="tableLoading" [nzScroll]="scroll">\n <thead>\n <tr>\n <th nzWidth="40px" nzLeft="0px" *ngIf="showCheckbox">\n <label nz-checkbox\n [ngModel]="isAllChecked()"\n [nzIndeterminate]="isIndeterminate()"\n [ngModelOptions]="{standalone: true}"\n (ngModelChange)="onAllChecked($event)"></label>\n </th>\n <th nzWidth="58px" [nzLeft]="lineNumberLeft" *ngIf="showLineNumber">序号</th>\n <ng-container *ngFor="let item of formLines">\n <th *ngIf="isColumnVisible(item)" [nzAlign]="item.align ? item.align : \'left\'">\n <span *ngIf="item.require" style="color: red;">*</span>{{ item.label }}\n </th>\n </ng-container>\n <th [style.width.px]="operateColWidth" nzRight="0">操作</th>\n </tr>\n </thead>\n <tbody>\n <ng-container\n *ngFor="let line of linesFormArray.controls.slice((paginationPageIndex - 1) * paginationPageSize, (paginationPageIndex - 1) * paginationPageSize + paginationPageSize);index as dataIndex"\n formArrayName="lines">\n <tr [formGroup]="line">\n <td nzWidth="40px" nzLeft="0px" *ngIf="showCheckbox">\n <label nz-checkbox\n [ngModel]="isLineChecked(line)"\n [ngModelOptions]="{standalone: true}"\n (ngModelChange)="onLineCheckedChange(line, $event)"></label>\n </td>\n <td nzWidth="58px" [nzLeft]="lineNumberLeft" *ngIf="showLineNumber">\n {{ line.get(\'lineIndex\').value }}\n </td>\n <ng-container *ngFor="let formItem of formLines; index as innerIndex">\n <td *ngIf="isColumnVisible(formItem)" [nzAlign]="formItem.align ? formItem.align : \'left\'">\n <nz-form-item>\n <nz-form-control\n [nzValidateStatus]="getControlValidateStatus(line, formItem)"\n [nzErrorTip]="formItem.label + \'不能为空\'">\n <ng-container [ngSwitch]="formItem.type">\n <ng-container *ngSwitchCase="\'Input\'">\n <nz-input-group [nzSuffix]="inputCleanTemplate"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)">\n <input #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [ngStyle]="getStyle(line, formItem, \'100px\')" nz-input\n [ngStyle]="{\'color\': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}"\n [id]="\'input-\' + formItem.name + line.get(\'lineIndex\').value"\n (click)="formItem.isSelect ? selectValue(\'#input-\' + formItem.name + line.get(\'lineIndex\').value, dataIndex , innerIndex) : null"\n (input)="limitInputLength($event, line, formItem)"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [formControlName]="formItem.name" />\n </nz-input-group>\n <ng-template #inputCleanTemplate>\n <i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill" nzType="close-circle"\n *ngIf="line.get(formItem.name).value && !line.get(formItem.name).disabled"\n (click)="inputClean(formItem ,line)"></i>\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="\'Select\'">\n <nz-select #formInputDom (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n nzDropdownClassName="hd-select-table"\n *ngIf="formItem.selectOption.tableColumns;else nomarlSelectTemplate"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, line, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)"\n [ngStyle]="getStyle(line, formItem, \'200px\')">\n <div class="hd-select-empty"\n *ngIf="!(formItem.selectOption?.selectList?.length > 0 || line.get(formItem.selectOption.selectListName)?.value?.length > 0)">\n <img\n src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNjQgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NzIuMDAwMDAwLCAtMTMzNS4wMDAwMDApIj4KICAgICAgICAgICAgPGcgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDY0LjAwMDAwMCwgMTExNC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MC4wMDAwMDAsIDc4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNjguMDAwMDAwLCAxNDQuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxnID4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxlbGxpcHNlICBmaWxsPSIjRjVGNUY1IiBjeD0iMzIiIGN5PSIzMyIgcng9IjMyIiByeT0iNyI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGcgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5LjAwMDAwMCwgMC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTQ2LDEyLjc2MDU2MDQgTDM1Ljg1NDMwNDcsMS4yNTczOTYzMyBDMzUuMzY3NDQxNCwwLjQ3MzgyNjYwNSAzNC42NTU4Nzg5LDAgMzMuOTA2NzYxNywwIEwxMi4wOTMyMzgzLDAgQzExLjM0NDEyMTEsMCAxMC42MzI1NTg2LDAuNDczOTUwMjU1IDEwLjE0NTY5NTMsMS4yNTczOTYzMyBMMi42MTQ3OTcyN2UtMTIsMTIuNzYwNTYwNCBMMCwyMiBMNDYsMjIgTDQ2LDEyLjc2MDU2MDQgWiIgID48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTMyLjYxMzI4MTMsMTUuOTMxNSBDMzIuNjEzMjgxMywxNC4zMjU4NTExIDMzLjYwNjk1MzEsMTMuMDAwMjM0IDM0LjgzOTY5OTIsMTMgTDQ2LDEzIEw0NiwzMS4xMzcxMjc3IEM0NiwzMy4yNTg5NTc0IDQ0LjY3OTM4NjcsMzUgNDMuMDUwNDI5NywzNSBMMi45NDk1NzAzMSwzNSBDMS4zMjA1MjM0NCwzNSAwLDMzLjI1ODg0MDQgMCwzMS4xMzcxMjc3IEwwLDEzIEwxMS4xNjAzMDA4LDEzIEMxMi4zOTMwNDY5LDEzIDEzLjM4NjcxODgsMTQuMzIyODA4NSAxMy4zODY3MTg4LDE1LjkyODQ1NzQgTDEzLjM4NjcxODgsMTUuOTQ5NjM4MyBDMTMuMzg2NzE4OCwxNy41NTUyODcyIDE0LjM5MTcxMDksMTguODUxMTgwOSAxNS42MjQ0NTcsMTguODUxMTgwOSBMMzAuMzc1NTQzLDE4Ljg1MTE4MDkgQzMxLjYwODI4OTEsMTguODUxMTgwOSAzMi42MTMyODEzLDE3LjU0MzM1MTEgMzIuNjEzMjgxMywxNS45Mzc3MDIxIEwzMi42MTMyODEzLDE1LjkzMTUgWiIgIGZpbGw9IiNGQUZBRkEiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"\n alt="empty">\n <p class="ant-empty-description">暂无数据</p>\n </div>\n\n <nz-option nzCustomContent\n *ngFor="let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]">\n <div class="hd-option-line">\n <div *ngFor="let selectOptionTableColumn of formItem.selectOption.tableColumns"\n [ngStyle]="getSelectTableColumnStyle(selectOptionTableColumn)">\n <ng-container *ngIf="selectOptionTableColumn.icons;else notPictureTemplate">\n <div class="hd-option-icons">\n <ng-container *ngFor="let icon of selectOptionTableColumn.icons">\n <img *ngIf="icon.iconName === \'hd-recommend-star\' && selectItem[icon.fieldName]"\n src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVpJREFUOE+l07FLQkEcB/Dv7713Zg1GQ0SgW9AmTYVp1BRUokZBEI1u/QVBUBD1D0Rt0dQaPYmotXza1tKQzQ1Fk0iDHr5vPEOTUpO88e77+9zvjjtBh8HTOb8e0hu0eN8Xzz22ikonoGzHdgXcAVB16S75U/mbn/m2AK+mglqbBUAGvCIRuVCJ7HLXQCUTPQOxXi8Q4FolnYWuAH0+HaEpjrdxAyC3VSq33xKgPTWiYYUai8IjUCabw4Zw1XWNF2+OZrXoi+cLImBth4odfQAw0elCW6zdKvU2/wVkYs8ggzBlRqrcI/DrrK1wQ7DWAIToV8lsqGxHDwTY6qYbA1jpCVAux3oBSirhDPYCOL6kE/s/QB77UrnNJoDDVkCN6pI+BJH+6xINQdpKOCf1d/AEYBxgUUQC5PcLbPMDXy1lhGXx7r0G6ExklpBwI0xh2w7ID+UzL71iL/MJdzuZdDL/kXcAAAAASUVORK5CYII="\n style="width: 16px;height: 16px;">\n <img *ngIf="icon.iconName === \'hd-img-star\' && selectItem[icon.fieldName]"\n src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAyhJREFUWEe1ll1o1XYYxp8nPUmUihdCV3bAirvYzUC80Xpy3KwTZNR2CdOhDkTBwe6G32XzwqpjE3Qt4pUKZQqDyQZNTp1uY8yCJG0F2d2+LlWOOkShovQkaV45lcJpTdOTHJubBPI+z/Pj//H+/0TGR66uf8sPoz8A/Kstkp38YORxFitmEVU1vm1cBPlp9ZuQXtX0jmfxygQgvxSWBRWlDECvhgrwQFuqLufG4TAtRCaAwCl+IcDXtWEi2KFb7pUFBxCBEpSMMsDWGWEiNzXLe2/BASp2cTuJH+KCRMJ3dGvsrzQQqafAtw0XpBEfIhc00/tswQD8QWM1FP45d4A8V9XJN9k5Nl4vRKoR8G3jMshdyebRPs0cOftaAaRUbAsRrRRRhuczFsF/lPATNQrL3Hr7/nz1lGvvtkwGUSEC8gLkWfMGkAfQMp9J0n8ByhS5J+QDVr+BshBlUu6q3d5v9G3jIcg3GgnJqp2C853iCIB1WU0a1F2iOO2tPnK3CLQ1aJZKLpCfddPrmtoF8uuqZn9iyfcEzVQumYtlQDO9vS8PsprHd4xvAR7I7FuHUIBvdNP9crr0lT7g24U+UNlfh1f6Esrn2ofeuVphbCPyneJuAN+lT0jokZCduum9cobM2Qn9krEGEa6+hi36jEC3aro34vASW3FoG9si8sdGRoKCY6rlnpjLIxGgYhunSPY0AiAiP+mW93EmAN8ujoJobwgAuKOb7orUAHKjY1EwHjwFkGsEoKpVJ6WVH3n/p1oDwVBhk0TK742GV/UKYOZMt5QKoGIbX5E8mgwg4wCbADQn1c1uPvP2gWqB7xjDADck7OwBVan0QFFyQaj2A9wxV60A13XT7Uw1Ar5TlDiBQP6hRHs0a3Ss9n8wuK4jYtN5Em/H6B5ppht7r4jvhEOFtYiUGQEAnhDoV033ZNJwB45xRAS9IBfX1qnhRD7uhhQLENiFQ0Ll9LSBCM7olnu43gUpTjEfiPSB3D6tUQRbcpZ7bbZHLEBYKnRFogxV505rmjzIrtG/6w2fMS0l430RHAVoULBZtdybdQFkCcuqSXUtzxqSpHsBfmUdgJhaiDQAAAAASUVORK5CYII="\n style="width: 16px;height: 16px;">\n <span *ngIf="icon.iconName === \'hd-select-close\' && selectItem[icon.fieldName]"\n class="hd-select-close">\n 禁用\n </span>\n <span *ngIf="icon.iconName === \'hd-select-purchase\' && selectItem[icon.fieldName]"\n class="hd-select-purchase">\n 协\n </span>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notPictureTemplate>\n <ng-container\n *ngIf="!isTextOverflow(selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name], selectOptionTableColumn.width);else overflowTemplate">\n <div>{{\n judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])\n }}\n </div>\n </ng-container>\n <ng-template #overflowTemplate>\n <div class="hd-option-overflow" nz-tooltip\n [nzTooltipTitle]="selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name]">\n {{\n judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])\n }}\n </div>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </nz-option>\n <nz-option\n *ngIf="formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value"\n [nzLabel]="(formItem.selectOption.showLabelAndValue || formItem.selectOption.value === \'code\' || formItem.selectOption.value === \'productCode\' || formItem.selectOption.hdShowItemCode) ? (\'[\'+ line.get(formItem.selectOption.value).value + \']\' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value"\n [nzValue]="line.get(formItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n <ng-template #nomarlSelectTemplate>\n <nz-select #formInputDom (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, line, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)"\n [ngStyle]="getStyle(line, formItem, \'200px\')">\n <nz-option\n *ngFor="let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]">\n </nz-option>\n <nz-option\n *ngIf="formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value"\n [nzLabel]="(formItem.selectOption.showLabelAndValue || formItem.selectOption.value === \'code\' || formItem.selectOption.value === \'productCode\' || formItem.selectOption.hdShowItemCode) ? (\'[\'+ line.get(formItem.selectOption.value).value + \']\' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value"\n [nzValue]="line.get(formItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n </ng-template>\n\n </ng-container>\n <ng-container *ngSwitchCase="\'Date\'">\n <nz-date-picker #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)" *ngIf="formItem.showTime"\n [ngStyle]="getStyle(line, formItem, \'150px\')"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false" nzShowTime\n nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n <nz-date-picker #formInputDom *ngIf="!formItem.showTime"\n [ngStyle]="getStyle(line, formItem, \'150px\')"\n (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false">\n </nz-date-picker>\n <div *ngIf="formItem?.explainOptionRight?.show"\n [style.color]="formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null">\n {{ line.get(formItem.explainOptionRight.name).value }}\n </div>\n </ng-container>\n <ng-container *ngSwitchCase="\'DateRange\'">\n <nz-range-picker #formInputDom [ngStyle]="getStyle(line, formItem, \'200px\')"\n (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [nzDisabledDate]="formItem.hdDisabledDate" [nzPlaceHolder]="[\'开始日期\',\'结束日期\']"\n [formControlName]="formItem.name">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase="\'TextArea\'">\n <textarea #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [ngStyle]="{\'color\': formItem?.colorOption?.name ? line.get(formItem.colorOption.name).value : null}"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [maxlength]="formItem.maxLength || null" rows="4" nz-input\n [maxlength]="formItem.maxLength || null" [formControlName]="formItem.name"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase="\'InputNumber\'">\n <div style="display: flex;align-items: center;"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)">\n <nz-input-number #formInputDom [ngStyle]="getStyle(line, formItem, \'100px\')"\n [maxlength]="formItem.maxLength || null" [formControlName]="formItem.name"\n [nzMin]="formItem?.inputNumber?.min || 0" [nzMax]="formItem?.inputNumber?.max || 99999999"\n [nzStep]="formItem?.inputNumber?.step || 1"\n [nzPrecision]="formItem?.inputNumber?.precision != null ? formItem.inputNumber.precision : 2"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [nzId]="\'inputNumber-\' + formItem.name + line.get(\'lineIndex\').value"\n (click)="formItem.isSelect ? selectValue(\'#inputNumber-\' + formItem.name + line.get(\'lineIndex\').value, dataIndex , innerIndex) : setActiveDomInFormLines(dataIndex , innerIndex)">\n </nz-input-number>\n <div *ngIf="formItem?.explainOptionRight?.show"\n [style.color]="formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null">\n {{ line.get(formItem.explainOptionRight.name).value }}\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase="\'MultipleSelect\'">\n <nz-select #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)" nzMode="multiple"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" [ngStyle]="getStyle(line, formItem, \'200px\')"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, line, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of formItem.selectOption.selectList"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]"></nz-option>\n <ng-container\n *ngIf="formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value">\n <nz-option *ngFor="let option of line.get(formItem.selectOption.value).value;index as i"\n [nzLabel]="line.get(formItem.selectOption.label).value[i]" [nzValue]="option" nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="\'ViewDom\'">\n <span class="hd-formLines-viewDom" *ngIf="!formItem?.hideViewDomValue">\n {{\n (formItem.preserveNumber && line.get(formItem.name).value) ?\n LodashRound(line.get(formItem.name).value,\n formItem.preserveNumber).toFixed(formItem.preserveNumber)\n : line.get(formItem.name).value\n }}\n </span>\n <ng-container\n *ngTemplateOutlet="ViewDomRightTemplate;context:{formItem: formItem, formLine: line}"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Switch\'">\n <nz-switch (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [formControlName]="formItem.name"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchCase="\'Time\'">\n <nz-time-picker #formInputDom [ngStyle]="getStyle(line, formItem, \'200px\')"\n (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [formControlName]="formItem.name"></nz-time-picker>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n <div *ngIf="formItem?.explainOption?.show"\n [style.color]="formItem?.explainOption?.color ? formItem.explainOption.color : null">\n {{ line.get(formItem.explainOption.name).value }}\n </div>\n </td>\n </ng-container>\n <td [style.width.px]="operateColWidth" nzRight="0">\n <span class="common-btn-group">\n <a *ngIf="operateButtons.includes(\'add\')" (click)="addFormLine(line)">添加</a>\n <a *ngIf="operateButtons.includes(\'copy\')" (click)="copyFormLine(line)">复制</a>\n <a class="common-danger-btn" *ngIf="operateButtons.includes(\'delete\') && !showDeleteConfirm"\n (click)="deleteFormLine(line)">删除</a>\n <a class="common-danger-btn" *ngIf="operateButtons.includes(\'delete\') && showDeleteConfirm" nz-popconfirm\n nzPopconfirmTitle="确认要删除该行吗?" nzPopconfirmPlacement="bottom"\n (nzOnConfirm)="deleteFormLine(line)">删除</a>\n </span>\n </td>\n </tr>\n </ng-container>\n \x3c!-- 合计区域 --\x3e\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showCheckbox"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\'\n }}\n </td>\n </ng-container>\n </tr>\n </tbody>\n </nz-table>\n <nz-list\n *ngIf="linesFormArray.controls.slice((paginationPageIndex - 1) * paginationPageSize, (paginationPageIndex - 1) * paginationPageSize + paginationPageSize).length === 0"\n [nzDataSource]="[]"></nz-list>\n <ng-container>\n <hd-space background="transparent" type="row" size="16"></hd-space>\n <div class="hd-formLines-pagination">\n <div class="hd-formLines-pagination-left">\n <div *ngIf="showKeyboardOperateTip">支持键盘操作,使用\n <i nz-icon nzType="up-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <i nz-icon nzType="down-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <i nz-icon nzType="left-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <i nz-icon nzType="right-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <span style="font-size: 14px;margin-left: 4px;font-weight: bolder;">Enter</span>\n 键切换表单项\n </div>\n </div>\n <nz-pagination [nzSize]="\'small\'" style="text-align: right;" [nzPageIndex]="paginationPageIndex"\n [nzPageSize]="paginationPageSize" [nzPageSizeOptions]="[10, 20, 30, 40, 50]"\n [nzTotal]="linesFormArray.controls.length" nzShowSizeChanger (nzPageIndexChange)="pageIndexChange($event)"\n (nzPageSizeChange)="pageSizeChange($event)" [nzShowTotal]="totalTemplate"></nz-pagination>\n <ng-template #totalTemplate let-total>共 {{ linesFormArray.controls.length }} 条数据</ng-template>\n </div>\n\n </ng-container>\n</form>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-formLines-toolbar{display:block}.hd-formLines-toolbar ::ng-deep .hd-button-group-right{flex:1;min-width:0;display:flex;justify-content:flex-end}.hd-formLines-toolbar-right{display:flex;align-items:center;justify-content:space-between;width:100%;margin-left:16px}.hd-formLines-toolbar-right-left,.hd-formLines-toolbar-right-right{display:flex;align-items:center}.hd-formLines-col-settings{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;height:32px;padding:0;margin-left:12px;cursor:pointer;color:#2a3634;background:0 0;border:1px solid #e5e6eb;border-radius:4px;vertical-align:middle;flex-shrink:0}.hd-formLines-col-settings:hover{color:#20b95d;background:#f5f8f6;border-color:#20b95d}.hd-formLines-col-settings .hd-formLines-col-settings-icon{display:block;width:14px;height:14px;flex-shrink:0}.hd-formLines-col-settings-dropdown{background:#fff;border:1px solid #e5e6eb;border-radius:4px;box-shadow:0 6px 16px rgba(0,0,0,.08),0 3px 6px rgba(0,0,0,.06);overflow:hidden}.hd-formLines-col-settings-list{max-height:400px;overflow-y:auto}.hd-formLines-col-settings-footer{text-align:right;background:#fff;padding:4px;border-top:1px solid #f0f0f0}.hd-formLines-container ::ng-deep td{padding:4px 8px!important}.hd-formLines-container .ant-table-tbody>tr>td,.hd-formLines-container ::ng-deep .ant-table-thead>tr>th{padding:16px 8px}.hd-formLines-container ::ng-deep .hd-table-total>td{border:0!important}.hd-formLines-container ::ng-deep .ant-form-item{margin-bottom:0}.hd-formLines-container .ant-input-number{width:100%}.hd-formLines-container .hd-formLines-viewDom{font-size:14px}::ng-deep .hd-select-table .ant-select-dropdown-menu-item-disabled{background:#f5f8f6!important;border-bottom:1px solid #e8e8e8;position:-webkit-sticky;position:sticky;top:0;z-index:10;padding:0}::ng-deep .hd-select-table .ant-select-dropdown-menu-item-disabled:hover{background:#f5f8f6!important}::ng-deep .hd-option-header{display:flex;align-items:center;color:rgba(0,0,0,.85);background:#f5f8f6}::ng-deep .hd-option-header-column{padding:5px 0}.hd-option-line{display:flex;align-items:center}.hd-option-overflow{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-select-empty{display:flex;align-items:center;flex-direction:column;padding:20px 0;background:#fff}::ng-deep .ant-empty-small{background:#fff!important;padding:8px 0;margin:0}.hd-formLines-pagination{display:flex;align-items:center;justify-content:space-between}.hd-formLines-pagination .hd-formLines-pagination-left{margin-left:10px;display:flex;align-items:center}.hd-option-icons{display:flex;align-items:center}.hd-select-close{display:block;height:16px;line-height:14px;text-align:center;padding:0 4px;border:1px solid #f5222d;color:#f5222d;font-size:14px}.hd-select-purchase{display:block;height:16px;line-height:14px;text-align:center;padding:0 4px;border:1px solid #20bd62;color:#20bd62;font-size:14px}"]}]}],e.ctorParameters=function(){return[{type:i.FormBuilder},{type:t.ChangeDetectorRef},{type:Oe}]},e.propDecorators={formInputDomList:[{type:t.ViewChildren,args:["formInputDom"]}],showLineNumber:[{type:t.Input}],allowEmpty:[{type:t.Input}],deleteLastLineEvent:[{type:t.Output}],showKeyboardOperateTip:[{type:t.Input}],enableKeyboardOperate:[{type:t.Input}],tableLoading:[{type:t.Input}],showSearch:[{type:t.Input}],showCheckbox:[{type:t.Input}],showColSettings:[{type:t.Input}],uuid:[{type:t.Input}],formLines:[{type:t.Input}],formLinesData:[{type:t.Input}],operateButtons:[{type:t.Input}],scroll:[{type:t.Input}],changeEvent:[{type:t.Output}],addLineEvent:[{type:t.Output}],selectionChange:[{type:t.Output}],showDeleteConfirm:[{type:t.Input}],showTotal:[{type:t.Input}],totalOption:[{type:t.Input}],columnsNumber:[{type:t.Input}],ViewDomRightTemplate:[{type:t.ContentChild,args:["ViewDomRightTemplate",{static:!1}]}],formLinesLeftButton:[{type:t.ContentChild,args:["formLinesLeftButton",{static:!1}]}],formLinesRightButton:[{type:t.ContentChild,args:["formLinesRightButton",{static:!1}]}],tableTotal:[{type:t.ContentChild,args:["tableTotal",{static:!1}]}],deleteLineEvent:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showLineNumber",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"allowEmpty",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showKeyboardOperateTip",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"enableKeyboardOperate",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"tableLoading",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSearch",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showCheckbox",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showColSettings",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showDeleteConfirm",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTotal",void 0),e}();var Pe=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule,F,H,L],declarations:[Me],exports:[Me],providers:[Oe]}]}],e}(),Ve=function(){function e(){this.scroll={x:"1px"},this.showSelected=!1,this.selectField="billNumber",this.showTableTotal=!1,this.selectEvent=new t.EventEmitter,this.tableSearchEvent=new t.EventEmitter,this.tableLoading=!1,this.tablePageIndex=1,this.tablePageSize=10,this.tablePageIndexChange=new t.EventEmitter,this.tablePageSizeChange=new t.EventEmitter,this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.listOfAllData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.tableTotalOptionList=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){if(e&&e.tableData&&e.tableData.currentValue&&e.tableData.previousValue){if(e.tableData.currentValue.pageSize!==e.tableData.previousValue.pageSize||e.tableData.currentValue.pageNumber!==e.tableData.previousValue.pageNumber)return;this.resetStatus()}},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.resetStatus()},e.prototype.search=function(e){e?this.tablePageSizeChange.emit(this.tablePageSize):this.tablePageIndexChange.emit(this.tablePageIndex),this.tableSearchEvent.emit(e)},e.prototype.resetStatus=function(){this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([])},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),e&&t?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):!e&&t&&this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]],this.isAllDisplayDataChecked=this.listOfDisplayData.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=this.listOfDisplayData.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent){var i=Object.values(this.mapOfCheckList);this.selectEvent.emit(i)}0===this.tableData.content.length&&(this.isAllDisplayDataChecked=!1)},e.prototype.checkAll=function(e){var t=this;this.listOfDisplayData.forEach((function(n){e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e})),this.refreshStatus()},e.decorators=[{type:t.Component,args:[{selector:"hd-current-table",template:'<ng-container>\n <ng-container *ngTemplateOutlet="tableTotal"></ng-container>\n <hd-space *ngIf="tableTotal" type="row" size="12"></hd-space>\n <nz-table #hdTable class="hd-table-container" [nzScroll]="scroll" nzShowSizeChanger nzShowSizeChanger\n nzShowQuickJumper nzFrontPagination="false" nzSize="middle" [nzData]="tableData.content"\n [nzTotal]="tableData.totalElements" [(nzPageIndex)]="tablePageIndex" [nzLoading]="tableLoading"\n [(nzPageSize)]="tablePageSize" (nzPageSizeChange)="search(true)" (nzPageIndexChange)="search(false)"\n (nzCurrentPageDataChange)="showSelected ? currentPageDataChange($event) : null" [nzShowTotal]="tableTotalTemplate"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]">\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 *ngTemplateOutlet="tableHead"></ng-container>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let data of hdTable.data;index as i">\n <td nzWidth="40px" nzLeft="0px" *ngIf="showSelected" nzShowCheckbox\n [(nzChecked)]="mapOfCheckedId[data[selectField]]" (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container *ngTemplateOutlet="tableBody;context:{$implicit: data, index: i}"></ng-container>\n </tr>\n \x3c!-- 合计所有数据区域 需要后端接口配合 --\x3e\n <tr *ngIf="showTableTotal" class="hd-table-total">\n <td>合计</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 共 {{tableData.totalElements}} 条数据\n </ng-template>\n </nz-table>\n</ng-container>',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={tableData:[{type:t.Input}],scroll:[{type:t.Input}],showSelected:[{type:t.Input}],selectField:[{type:t.Input}],showTableTotal:[{type:t.Input}],tableTotalOption:[{type:t.Input}],selectEvent:[{type:t.Output}],tableSearchEvent:[{type:t.Output}],tableHead:[{type:t.ContentChild,args:["tableHead",{static:!1}]}],tableBody:[{type:t.ContentChild,args:["tableBody",{static:!1}]}],tableTotal:[{type:t.ContentChild,args:["tableTotal",{static:!1}]}],tableLoading:[{type:t.Input}],tablePageIndex:[{type:t.Input}],tablePageSize:[{type:t.Input}],tablePageIndexChange:[{type:t.Output}],tablePageSizeChange:[{type:t.Output}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTableTotal",void 0),e}();var Re=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,r.NzTableModule,H],declarations:[Ve],exports:[Ve],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),Be=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:t.Component,args:[{selector:"hd-log",template:'<hd-detail-lines [lines]="logs" hdFrontPagination="true">\n <ng-template #detailLineHead>\n <th class="hd-log-time">时间</th>\n <th class="hd-log-operate">操作人</th>\n <th class="hd-log-event">事件</th>\n <th class="hd-log-describe">描述</th>\n </ng-template>\n <ng-template #detailLineBody let-data let-index="index">\n <td class="hd-log-time">{{ data.createInfo.operateTime }}</td>\n <td class="hd-log-operate">{{ data.createInfo.operatorName }}</td>\n <td class="hd-log-event">{{ data.event }}</td>\n <td class="hd-log-describe" [innerHTML]="data.describe"></td>\n </ng-template>\n</hd-detail-lines>\n',styles:["td{white-space:wrap!important}.hd-log-time{width:150px}.hd-log-operate{width:100px;max-width:200px}.hd-log-event{width:80px;max-width:150px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={logs:[{type:t.Input}]},e}();var He=function(){function e(e){this.modalService=e}return e.prototype.showLogs=function(e){this.modalService.create({nzTitle:"操作日志",nzContent:Be,nzComponentParams:{logs:e},nzFooter:null,nzWidth:1e3})},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:o.NzModalService}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(h.NzModalService))},token:e,providedIn:"root"}),e}();var je=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule,oe],entryComponents:[Be],declarations:[Be],exports:[Be],providers:[He]}]}],e}(),We=function(){function e(){this.confirmOption=new t.EventEmitter,this.cancelOption=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.cancel=function(e){this.cancelOption.emit()},e.prototype.confirm=function(e){this.confirmOption.emit()},e.decorators=[{type:t.Component,args:[{selector:"hd-popconfirm",template:'<div class="popconfirm-content">\n <div class="popconfirm-arrow"></div>\n\n <div class="popconfirm-inner">\n <div class="message-content">\n <svg class="icon-warn" viewBox="64 64 896 896" fill="currentColor" width="1em" height="1em" data-icon="exclamation-circle" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"></path></svg>\n <p style="text-indent: 18px">{{message}}</p>\n </div>\n\n \x3c!-- 按钮提示 --\x3e\n <div class="btn-content">\n <button type="button" (click)="cancel($event)" nz-button nzType="default">取消</button>\n <button type="button" (click)="confirm($event)" nz-button nzType="primary">确认</button>\n </div>\n </div>\n</div>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.popconfirm-content{position:relative}.popconfirm-arrow{position:absolute;top:15px;left:-4px;display:block;width:8.5px;height:8.5px;background:0 0;border-style:solid;border-width:4.24264069px;transform:rotate(45deg);right:6px;box-shadow:-3px 3px 7px rgba(0,0,0,.07);border-color:transparent transparent #fff #fff}.popconfirm-inner{min-width:158px;background-color:#fff;padding:12px 16px;box-sizing:border-box;line-height:1.5;box-shadow:0 2px 8px rgba(0,0,0,.15);border-radius:4px;text-align:left}.message-content{position:relative}.icon-warn{color:#faad14;position:absolute;top:4px;font-size:14px}.btn-content{width:100%;text-align:right}:host ::ng-deep .btn-content>button{padding:0 7px!important;margin-left:8px!important;font-size:14px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={message:[{type:t.Input}],confirmOption:[{type:t.Output}],cancelOption:[{type:t.Output}]},e}();var _e=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[We],imports:[i.FormsModule,i.ReactiveFormsModule,n.CommonModule,o.NgZorroAntdModule],exports:[We],providers:[],bootstrap:[We]}]}],e}(),Ke=function(){var e,t,n=new Map,i=function(e){le[e].forEach((function(t){t&&n.set(t.toLowerCase(),e)}))};try{for(var o=S(Object.keys(le)),a=o.next();!a.done;a=o.next()){i(a.value)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n}(),qe=function(){function e(){}return e.prototype.ngOnInit=function(){this.setStatusColor()},e.prototype.ngOnChanges=function(){this.setStatusColor()},e.prototype.setStatusColor=function(){var e=this.status&&this.status.toLowerCase();this.statusColor=e&&Ke.has(e)?Ke.get(e):"#9FA4A2"},e.decorators=[{type:t.Component,args:[{selector:"hd-status",template:'<ng-container>\n <div class="hd-status">\n <div class="hd-status-dot" [ngStyle]="{\'background\': statusColor || \'#9FA4A2\'}"></div>\n <div class="hd-status-text">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-container>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-status{display:flex;justify-content:flex-start;align-items:center}.hd-status-dot{width:6px;height:6px;border-radius:50%;margin-right:6px}.hd-status-text{color:#2a3634;font-size:14px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={status:[{type:t.Input}]},e}();var Ue=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[qe],imports:[i.FormsModule,i.ReactiveFormsModule,n.CommonModule,o.NgZorroAntdModule],exports:[qe],providers:[],bootstrap:[qe]}]}],e}(),Ze={tableImageColWidth:25,tableTwoImageColWidth:40,billNumberColWidth:150,nameColWidth:150,codeColWidth:100,codeNameColWidth:200,enumColWidth:100,dateColWidth:100,dateTimeColWidth:150,dateRangeWidth:200,operateColWidth:150,numberColWidth:100,remarkColWidth:250,fixColWidth:150,maxColWidth:350};var Je=function(){function e(){}return e.prototype.transform=function(e,t){if(!e||!t)return{display:"<空>",title:null,isEmpty:!0,overflow:!1};var n=function(e,t){if(t.render)return t.render(e);var n=t.name;if("function"==typeof n)return n(e);if("string"==typeof n)return e[n];return}(e,t),i=!(n||0===n),o=i?"<空>":n,a=t.width||Ze.fixColWidth,r=!1,l=null;if(!i){var s=String(n);(r=function(e){for(var t=15,n=0;n<e.length;n++)t+=e.charCodeAt(n)>255?14:8;return t}(s)>=a)&&(l=s)}return{display:o,title:l,isEmpty:i,overflow:r}},e.decorators=[{type:t.Pipe,args:[{name:"hdTableCell",pure:!0}]}],e}();var Ye=function(){this.name=null,this.align="left",this.fixed=null,this.btnList=[],this.isShow=!0,this.canSort=!1,this.canWarp=!1};var Ge=function(){this.showConfirm=!1,this.isRepeat=!1};var Qe=function(){};var $e=function(){this.colWidths=new Map};var Xe=function(){this.title="",this.key="",this.disabled=!1,this.checked=!1,this.selectable=!1,this.isLeaf=!0,this.expanded=!1};var et=function(){function e(e,n){var i=this;this.cdr=e,this.commonSessionService=n,this.tableCols=[],this.showSelected=!1,this.showOperateColWarpButton=!1,this.virtualScroll=!0,this.selectField="billNumber",this.showTableTotal=!1,this.sortEvent=new t.EventEmitter,this.selectEvent=new t.EventEmitter,this.tableSearchEvent=new t.EventEmitter,this.tableLoading=!1,this.pagination=!0,this.frontPagination=!1,this.tablePageIndex=1,this.tablePageSize=100,this.tablePageIndexChange=new t.EventEmitter,this.tablePageSizeChange=new t.EventEmitter,this.tablePageSizeChangeEvent=new t.EventEmitter,this.scroll=null,this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.listOfAllData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.tableTotalOptionList=[],this.tableCacheOption=new $e,this.tableColsCache=[],this.showTable=!1,this.selectColListNodes=[],this.selectColListNodesCache=[],this.showListNodes=!1,this.isDropdownVisible=!1,this.nowListNodes=[],this.hideListNodes=[],this.cancelNowListNodes=[],this.cancelHideListNodes=[],this.showDetail=!1,this.localforage=null,this.localtionTmp="",this.isFirstEntrySearchLocal=!0,this.isCrossPageSelectLocal=!1,this.measuredVirtualItemSize=47,this.virtualScrollActive=null,this.tableColWidthTotal=0,this.pendingResetScrollTop=!1,this.currentSortKey=null,this.currentSortValue=null,this.trackByRow=function(e,t){var n=t&&t[i.selectField];return null!=n?String(n):"row-"+e},this.virtualTrackByRow=function(e){return e},this.trackByCol=function(e,t){return t.title},this.beforeDrop=function(e){if(e.node.origin.disabled||!e.dragNode.origin.checked||0===e.pos)return d.of(!1);var t=new Xe;t.checked=e.dragNode.origin.checked,t.disabled=e.dragNode.origin.disabled,t.expanded=e.dragNode.origin.expanded,t.isLeaf=e.dragNode.origin.isLeaf,t.key=e.dragNode.origin.key,t.selectable=e.dragNode.origin.selectable,t.title=e.dragNode.origin.title;var n=i.nowListNodes.findIndex((function(t){return t.title==e.dragNode.origin.title})),o=i.nowListNodes.findIndex((function(t){return t.title==e.node.origin.title}))+(-1===e.pos?0:e.pos);return i.nowListNodes.splice(o,0,t),i.nowListNodes.splice(o>=n?n:n+1,1),d.of(!0).pipe(c.delay(100))},this.localforage=p.createInstance({driver:p.INDEXEDDB,name:"hd-fscm",version:1,storeName:"hd-fscm-store"})}return e.prototype.ngOnInit=function(){var e=this;!1===this.isFirstEntrySearch&&(this.isFirstEntrySearchLocal=this.isFirstEntrySearch),!0===this.isCrossPageSelect&&(this.isCrossPageSelectLocal=this.isCrossPageSelect),this.localtionTmp=location.pathname,this.localtionTmp&&(this.localtionTmp=this.localtionTmp.replace(/\//g,"_")),this.userSession=this.commonSessionService.getSession("__jy_authorization_session__"),this.userSession||(this.userSession={userCode:"dev"}),this.deleteHideItem(),this.tableCols&&0!==this.tableCols.length&&this.localforage.ready().then((function(){e.getInitLocalforage()})).catch((function(e){throw console.log("localforage加载异常step1",e),"localforage加载异常"}))},e.prototype.ngOnChanges=function(e){var t=this;if(e&&e.tableData&&e.tableData.currentValue&&e.tableData.previousValue){if(e.tableData.currentValue.pageSize!==e.tableData.previousValue.pageSize||e.tableData.currentValue.pageNumber!==e.tableData.previousValue.pageNumber)return this.pendingResetScrollTop=!0,this.virtualScroll&&this.applyTableScrollMode(!1),void this.scheduleResetTableBodyScrollTop();this.isCrossPageSelectLocal||this.resetStatus()}if(e.tableData&&(this.pendingResetScrollTop=!0,this.virtualScroll&&this.applyTableScrollMode(!1),this.scheduleResetTableBodyScrollTop()),e.tableCols&&JSON.stringify(e.tableCols.currentValue)!==JSON.stringify(e.tableCols.previousValue)&&void 0!==e.tableCols.previousValue){if(this.deleteHideItem(),!this.tableCols||0===this.tableCols.length)return;this.localforage.ready().then((function(){t.getInitLocalforage()})).catch((function(e){throw console.log("localforage加载异常step2",e),"localforage加载异常"}))}(e.pagination&&!e.pagination.firstChange||e.frontPagination&&!e.frontPagination.firstChange)&&(this.tablePageIndex=1,this.applyTableScrollMode(!0),this.cdr.markForCheck())},Object.defineProperty(e.prototype,"useFrontPagination",{get:function(){return!!this.pagination&&!!this.frontPagination},enumerable:!0,configurable:!0}),e.prototype.deleteHideItem=function(){this.tableCols=this.tableCols.filter((function(e){return!e.hasOwnProperty("isShow")||!0===e.isShow}))},e.prototype.sort=function(e){this.currentSortKey=e&&e.key,this.currentSortValue=e&&e.value,this.sortEvent.emit(e)},e.prototype.getColSort=function(e){return e&&e.canSort&&this.currentSortKey&&e.name===this.currentSortKey?this.currentSortValue:null},e.prototype.toggleShowDetail=function(){this.showDetail=!this.showDetail,this.cdr.markForCheck(),this.refreshVirtualScrollViewport(!0)},Object.defineProperty(e.prototype,"effectiveVirtualItemSize",{get:function(){return null!=this.virtualItemSize&&this.virtualItemSize>0?this.virtualItemSize:this.measuredVirtualItemSize},enumerable:!0,configurable:!0}),e.prototype.getScrollYMaxOffset=function(){return 216+(this.tableTotal?180:140)},e.prototype.getVisibleRowCount=function(){var e=(this.tableData&&this.tableData.content?this.tableData.content:[]).length;if(!this.useFrontPagination)return e;if(e<=0)return 0;var t=Number(this.tablePageSize)>0?Number(this.tablePageSize):10,n=((Number(this.tablePageIndex)>0?Number(this.tablePageIndex):1)-1)*t;return n>=e?0:Math.min(t,e-n)},Object.defineProperty(e.prototype,"needsVerticalScroll",{get:function(){var e=this.getVisibleRowCount();if(e<=0)return!1;var t=this.getScrollYMaxOffset(),n=e*this.effectiveVirtualItemSize;return"undefined"!=typeof window?n>window.innerHeight-t:e>100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useVirtualScroll",{get:function(){return!!this.virtualScroll&&this.needsVerticalScroll},enumerable:!0,configurable:!0}),e.prototype.getRightSticky=function(e){return"right"===e.fixed?(e.fixedRightWidth||0)+"px":null},e.prototype.getLeftSticky=function(e){return"left"===e.fixed?(e.fixedWidth||0)+"px":null},e.prototype.getInitLocalforage=function(){var e=this;this.localforage.getItem("hd-table_"+this.userSession.userCode+"_"+this.localtionTmp+"_"+this.uuid).then((function(t){t?(e.tableCacheOption=t,e.normalizeTableCacheOption(),e.pagination&&e.tableCacheOption.pageSize&&e.tableCacheOption.pageSize>10&&(e.tablePageSize=e.tableCacheOption.pageSize,e.tablePageSizeChange.emit(e.tablePageSize))):(e.tableCacheOption=new $e,e.tableCacheOption.pageSize=e.tablePageSize),e.pagination&&!e.frontPagination&&e.isFirstEntrySearchLocal?e.tablePageSizeChangeEvent.emit(e.tablePageSize):e.isFirstEntrySearchLocal=!0,e.initTable()})).catch((function(t){e.tableCacheOption=new $e,e.tableCacheOption.pageSize=e.tablePageSize,e.initTable()}))},e.prototype.initTable=function(){if(this.showTable=!1,!this.uuid)throw"hd-table缺失uuid参数,请使用编辑器插件生成并给hd-table赋予uuid属性";this.judgeRepeatCols()&&(this.dealCols(),this.setCols(),this.dealOperateBtn(),this.virtualScrollActive=null,this.applyTableScrollMode(!0))},e.prototype.applyTableScrollMode=function(e){var t=this;void 0===e&&(e=!1);var n=this.useVirtualScroll,i=null!==this.virtualScrollActive&&this.virtualScrollActive!==n;if(this.virtualScrollActive=n,e||i)return this.presetScrollBeforeRemount(n),this.showTable=!1,this.cdr.markForCheck(),void setTimeout((function(){t.showTable=!0,t.cdr.markForCheck(),setTimeout((function(){t.dealScroll(),t.cdr.markForCheck(),t.afterTableRender(n)}))}));var o=!(!this.scroll||!this.scroll.y);if(this.dealScroll(),o!==!(!this.scroll||!this.scroll.y))return this.showTable=!1,this.cdr.markForCheck(),void setTimeout((function(){t.showTable=!0,t.cdr.markForCheck(),setTimeout((function(){t.afterTableRender(n)}))}));this.cdr.markForCheck(),this.afterTableRender(n)},e.prototype.presetScrollBeforeRemount=function(e){var t=this.getScrollYMaxOffset(),n=this.scroll?this.scroll.x:null;!this.virtualScroll||e?this.scroll={x:n,y:"calc(100vh - "+t+"px)"}:this.scroll={x:n,y:null}},e.prototype.afterTableRender=function(e){var t=this;e?this.refreshVirtualScrollViewport(!0):this.virtualScroll&&(this.measureVirtualItemSize(!0),this.useVirtualScroll)?this.applyTableScrollMode(!1):setTimeout((function(){t.syncHorizontalScroll(),t.flushResetTableBodyScrollTop()}))},e.prototype.refreshVirtualScrollViewport=function(e){var t=this;if(void 0===e&&(e=!1),!this.useVirtualScroll)return e&&(this.measureVirtualItemSize(e),this.dealScroll(),this.cdr.markForCheck()),void this.flushResetTableBodyScrollTop();setTimeout((function(){var n=t.nzTableComponent&&t.nzTableComponent.cdkVirtualScrollViewport;if(!n)return t.syncHorizontalScroll(),void t.flushResetTableBodyScrollTop();t.measureVirtualItemSize(e)?(t.dealScroll(),t.cdr.markForCheck(),n.checkViewportSize(),setTimeout((function(){t.measureVirtualItemSize(e),t.syncHorizontalScroll(),n.checkViewportSize(),t.flushResetTableBodyScrollTop()}))):(n.checkViewportSize(),t.syncHorizontalScroll(),t.flushResetTableBodyScrollTop())}))},e.prototype.resetTableBodyScrollTop=function(){if(this.nzTableComponent){var e=this.nzTableComponent,t=this.nzTableComponent.cdkVirtualScrollViewport;if(t){"function"==typeof t.scrollToOffset&&t.scrollToOffset(0),"function"==typeof t.scrollToIndex&&t.scrollToIndex(0);var n=t.elementRef&&t.elementRef.nativeElement;n&&(n.scrollTop=0)}[e.mixTableBodyNativeElement,e.tableBodyNativeElement,e.tableBodyElement&&e.tableBodyElement.nativeElement].forEach((function(e){e&&(e.scrollTop=0)}));var i=e.tableMainElement&&e.tableMainElement.nativeElement;if(i){var o=i.querySelectorAll(".ant-table-body, cdk-virtual-scroll-viewport");Array.prototype.forEach.call(o,(function(e){e.scrollTop=0}))}}},e.prototype.scheduleResetTableBodyScrollTop=function(){var e=this,t=[0,50,100];t.forEach((function(n,i){setTimeout((function(){e.resetTableBodyScrollTop(),i===t.length-1&&(e.pendingResetScrollTop=!1)}),n)}))},e.prototype.flushResetTableBodyScrollTop=function(){this.pendingResetScrollTop&&this.resetTableBodyScrollTop()},e.prototype.measureVirtualItemSize=function(e){if(void 0===e&&(e=!1),null!=this.virtualItemSize&&this.virtualItemSize>0&&!e)return!1;var t=this.nzTableComponent&&this.nzTableComponent.cdkVirtualScrollViewport,n=this.nzTableComponent&&this.nzTableComponent.tableBodyNativeElement,i=t&&t.elementRef.nativeElement.querySelector("tr.hd-table-virtual-row")||n&&n.querySelector("tbody tr");if(!i||i.offsetHeight<=0)return!1;var o=i.offsetHeight;return o!==this.measuredVirtualItemSize&&(this.measuredVirtualItemSize=o,!0)},e.prototype.cancelDropdown=function(){this.isDropdownVisible=!1,this.hideListNodes=JSON.parse(JSON.stringify(this.cancelHideListNodes)),this.nowListNodes=JSON.parse(JSON.stringify(this.cancelNowListNodes)),this.cdr.markForCheck()},e.prototype.confirmDropdown=function(){this.cancelHideListNodes=JSON.parse(JSON.stringify(this.hideListNodes)),this.cancelNowListNodes=JSON.parse(JSON.stringify(this.nowListNodes)),this.isDropdownVisible=!0,this.cdr.markForCheck()},e.prototype.submitGrids=function(){var e=this;this.tableCacheOption.cols=[],this.nowListNodes.forEach((function(t){e.tableCacheOption.cols.push(t.title)})),this.saveTableCacheOption(),this.initTable(),this.isDropdownVisible=!1,this.cdr.markForCheck()},e.prototype.setCols=function(){var e=this;if(this.showListNodes=!1,this.nowListNodes=[],this.hideListNodes=[],this.hasColsCache()){var t=this.tableColsCache.reduce((function(t,n){return e.tableCacheOption.cols.includes(n.title)?t.incols.push(n):t.notIncols.push(n),t}),{notIncols:[],incols:[]}),n=t.notIncols,i=t.incols;i.sort((function(t,n){return e.tableCacheOption.cols.indexOf(t.title)-e.tableCacheOption.cols.indexOf(n.title)})),this.tableCols=i.concat(n)}this.tableCols.forEach((function(t,n){e.hasColsCache()?(t.isShow=!!e.tableCacheOption.cols.includes(t.title),t.isShow?e.nowListNodes.push({title:t.title,key:t.title,disabled:!!t.fixed,checked:!!e.tableCacheOption.cols.includes(t.title)}):e.hideListNodes.push({title:t.title,key:t.title,disabled:!!t.fixed,checked:!!e.tableCacheOption.cols.includes(t.title)})):(t.isShow=!0,e.nowListNodes.push({title:t.title,key:t.title,checked:!0,disabled:!!t.fixed}))})),this.tableCacheOption&&this.tableCacheOption.colWidths&&0!==this.tableCacheOption.colWidths.size&&this.tableCols.forEach((function(t){e.tableCacheOption.colWidths.has(t.title)&&(t.width=e.tableCacheOption.colWidths.get(t.title))})),this.dealCols(),setTimeout((function(){e.showListNodes=!0}),0)},e.prototype.moveElementNearby=function(e,t,n,i){var o=JSON.parse(JSON.stringify(e)),a=o.findIndex((function(e){return e.title===n})),r=o.findIndex((function(e){return e.title===t})),l=i<0?a+i:a,s=o.splice(r,1);return o.splice(l+1,0,s[0]),o},e.prototype.checkAction=function(e){if(e.node.origin.checked){var t=new Xe;(t=this.hideListNodes.find((function(t){return t.title===e.node.origin.title}))).checked=!0;for(var n=null,i=this.tableColsCache.length-1;i>=0;i--)if("right"===this.tableColsCache[i].fixed){n=this.tableColsCache[i].title;break}var o=this.nowListNodes.slice(0);if(n){var a=this.nowListNodes.findIndex((function(e){return e.title===n}));o.splice(a,0,t)}else o.push(t);this.nowListNodes=o,this.hideListNodes=this.hideListNodes.filter((function(t){return t.title!==e.node.origin.title}))}else{var r=this.hideListNodes.slice(0);this.nowListNodes.forEach((function(t){if(t.title===e.node.origin.title){var n=JSON.parse(JSON.stringify(t));n.checked=!1,r.push(n)}})),this.hideListNodes=r,this.nowListNodes=this.nowListNodes.filter((function(t){return t.title!==e.node.origin.title}))}this.cdr.markForCheck()},e.prototype.getHideListNodes=function(){var e=this,t=[];return this.tableColsCache.forEach((function(n){if(!e.tableCacheOption.cols.includes(n.title)){var i=new Xe;i.title=n.title,i.key=n.title,i.disabled=!!n.fixed,i.checked=!1,t.push(i)}})),t},e.prototype.dealCols=function(){this.tableCols[0].minWidth||this.tableCols.forEach((function(e){var t=document.createElement("span");t.style.visibility="hidden",t.style.position="absolute",t.style.whiteSpace="nowrap",t.style.fontSize="14px",t.style.display="inline-block",t.innerText=e.title,document.body.appendChild(t),e.minWidth=t.offsetWidth+16,t.style.display="none",document.body.removeChild(t)}));var e=this.tableCols.filter((function(e){return"left"===e.fixed})),t=this.tableCols.filter((function(e){return"right"===e.fixed})),n=this.tableCols.filter((function(e){return!e.fixed})),i=e.concat(n).concat(t);this.tableCols=i,this.tableColsCache&&0!==this.tableColsCache.length||(this.tableColsCache=C(this.tableCols))},e.prototype.normalizeTableCacheOption=function(){var e=this;if(this.tableCacheOption.colWidths){if(!(this.tableCacheOption.colWidths instanceof Map)){var t=new Map;Object.keys(this.tableCacheOption.colWidths).forEach((function(n){t.set(n,e.tableCacheOption.colWidths[n])})),this.tableCacheOption.colWidths=t}}else this.tableCacheOption.colWidths=new Map},e.prototype.hasColsCache=function(){return!!(this.tableCacheOption&&this.tableCacheOption.cols&&this.tableCacheOption.cols.length>0)},e.prototype.saveTableCacheOption=function(){this.localforage.setItem("hd-table_"+this.userSession.userCode+"_"+this.localtionTmp+"_"+this.uuid,this.tableCacheOption)},e.prototype.judgeRepeatCols=function(){for(var e=0;e<this.tableCols.length;e++)for(var t=e+1;t<this.tableCols.length;t++)if(this.tableCols[e].title===this.tableCols[t].title)throw"hd-table组件中列名 "+this.tableCols[e].title+" 重复";return!0},e.prototype.onResize=function(e,t){var n=e.width;this.normalizeTableCacheOption();var i=0;i=n>t.minWidth?n:t.minWidth,this.tableCacheOption.colWidths.set(t.title,i),this.saveTableCacheOption(),this.tableCols=this.tableCols.map((function(e){return e.title===t.title?x({},e,{width:i}):e})),this.dealScroll(),this.cdr.markForCheck()},e.prototype.dealOperateBtn=function(){var e=this.tableCols.find((function(e){return"操作"===e.title}))||null;if(e){var t="";e.btnList.forEach((function(e){e.isRepeat||(t+="function"==typeof e.name?"操作":e.name)}));var n=document.createElement("a");n.style.visibility="hidden",n.style.position="absolute",n.style.whiteSpace="nowrap",n.style.fontSize="14px",n.style.display="inline-block",n.innerText=t,document.body.appendChild(n),e.width=n.offsetWidth+4*(e.btnList.filter((function(e){return!e.isRepeat})).length-1)+16,n.style.display="none",document.body.removeChild(n)}},e.prototype.triggerEvent=function(e,t){e&&e(t)},e.prototype.needShowConfirm=function(e,t){return"function"==typeof e.showConfirm?e.showConfirm(t):!!e.showConfirm},e.prototype.getBtnName=function(e,t){return"function"==typeof e.name?e.name(t)||"":null!=e.name?String(e.name):""},e.prototype.isDangerBtn=function(e,t){return"删除"===this.getBtnName(e,t)},e.prototype.getVirtualScrollY=function(e){return"calc(100vh - "+e+"px)"},e.prototype.hasTableData=function(){return!!(this.tableData&&this.tableData.content&&this.tableData.content.length)},e.prototype.resolveScrollX=function(e){var t=e;if(this.nzTableComponent){var n=X(this.nzTableComponent);n>t&&(t=n)}var i=ee(this.nzTableComponent,this.hasTableData(),t);return i?i.x:null},e.prototype.syncHorizontalScroll=function(){var e=this,t=this.resolveScrollX(this.tableColWidthTotal),n=this.scroll?this.scroll.y:null;this.scroll&&this.scroll.x===t&&this.scroll.y===n||(this.scroll={x:t,y:n},this.cdr.markForCheck(),setTimeout((function(){return e.syncHeaderBodyScrollLeft()})))},e.prototype.syncHeaderBodyScrollLeft=function(){if(this.nzTableComponent&&this.scroll&&this.scroll.x){var e=this.nzTableComponent.tableHeaderNativeElement,t=this.nzTableComponent.mixTableBodyNativeElement;e&&t&&e.scrollLeft!==t.scrollLeft&&(e.scrollLeft=t.scrollLeft)}},e.prototype.dealScroll=function(){var e=0;this.showSelected&&(e+=40),this.tableCols.forEach((function(t){t.width||(t.width=Ze.fixColWidth),t.isShow&&(t.fixedWidth=e,e+=t.width)}));for(var t=0,n=this.tableCols.length-1;n>=0;n--){var i=this.tableCols[n];i.isShow&&("right"===i.fixed?(i.fixedRightWidth=t,t+=i.width):i.fixedRightWidth=0)}this.tableColWidthTotal=e;var o=this.getScrollYMaxOffset(),a=this.useVirtualScroll,r=this.resolveScrollX(e);!this.virtualScroll||a?this.virtualScroll?this.scroll={x:r,y:this.getVirtualScrollY(o)}:this.scroll={x:r,y:"calc(100vh - "+o+"px)"}:this.scroll={x:r,y:null}},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.isCrossPageSelectLocal||this.resetStatus(),this.cdr.markForCheck()},e.prototype.search=function(e){if(this.pagination){if(this.frontPagination)return e?(this.tablePageIndex=1,this.tablePageSizeChange.emit(this.tablePageSize)):this.tablePageIndexChange.emit(this.tablePageIndex),this.tableCacheOption.pageSize=this.tablePageSize,this.saveTableCacheOption(),this.pendingResetScrollTop=!0,this.applyTableScrollMode(!1),this.scheduleResetTableBodyScrollTop(),void this.cdr.markForCheck();this.tableCacheOption.pageSize=this.tablePageSize,this.saveTableCacheOption(),e?(this.tablePageSizeChange.emit(this.tablePageSize),this.tablePageSizeChangeEvent.emit(this.tablePageSize)):(this.tablePageIndexChange.emit(this.tablePageIndex),this.tableSearchEvent.emit(e))}},e.prototype.getTableTotalCount=function(){return this.tableData?!this.pagination||this.frontPagination?this.tableData.content?this.tableData.content.length:0:null!=this.tableData.totalElements?this.tableData.totalElements:0:0},e.prototype.resetStatus=function(){var e=this;this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,Object.keys(this.mapOfCheckList).forEach((function(t){e.mapOfCheckedId[t]=!1})),this.listOfDisplayData.forEach((function(t){var n=t[e.selectField];null!=n&&(e.mapOfCheckedId[n]=!1)})),this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([]),this.cdr.markForCheck()},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),t){if(e&&this.isSelectDisabled(t))return void this.cdr.markForCheck();this.mapOfCheckedId[t[this.selectField]]=e,e?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]]}var i=this.listOfDisplayData.filter((function(e){return!n.isSelectDisabled(e)}));if(this.isAllDisplayDataChecked=i.length>0&&i.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=i.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent){var o=Object.values(this.mapOfCheckList);this.selectEvent.emit(o)}0===this.tableData.content.length&&(this.isAllDisplayDataChecked=!1),this.cdr.markForCheck()},e.prototype.checkAll=function(e){var t=this;this.listOfDisplayData.forEach((function(n){t.isSelectDisabled(n)||(e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e)})),this.refreshStatus(),this.cdr.markForCheck()},e.prototype.isSelectDisabled=function(e){return!(!this.selectDisabledField||!e||!0!==e[this.selectDisabledField])},e.prototype.isInvalidRow=function(e){return!(!this.rowInvalidField||!e||!0!==e[this.rowInvalidField])},e.prototype.resolveCellColor=function(e,t){return e&&null!=e.color&&""!==e.color?"function"==typeof e.color?e.color(t)||null:e.color:null},e.prototype.getLinkCellColor=function(e,t,n){return n?"#2A3634":this.resolveCellColor(e,t)},e.prototype.getPlainCellColor=function(e,t){return this.isInvalidRow(t)?"#868A9C":this.resolveCellColor(e,t)},e.prototype.judgeColEmpty=function(e){return e||0===e?e:"<空>"},e.prototype.getStateField=function(e){return e.isState?e.name:e.stateField||"state"},e.prototype.hasRowNo=function(e){return!(!e||!(!0===e.rowNo||"string"==typeof e.rowNo&&e.rowNo))},e.prototype.getRowNoText=function(e,t,n){if(!this.hasRowNo(e))return"";if("string"==typeof e.rowNo){var i=t?t[e.rowNo]:null;return null==i||""===i?"":String(i)}var o=Number(this.tablePageIndex)>0?Number(this.tablePageIndex):1,a=Number(this.tablePageSize)>0?Number(this.tablePageSize):0,r=Number(n)>=0?Number(n):0;return String((o-1)*a+r+1)},e.prototype.getTitleParts=function(e){if(!this.hasRowNo(e)||!e||!e.title||String(e.title).indexOf("|")<0)return null;var t=String(e.title).split("|");return t.length<2?null:[t[0].trim(),t.slice(1).join("|").trim()]},e.prototype.isEditable=function(e,t){return!(!e||null==e.editable||!1===e.editable)&&("function"==typeof e.editable?!!e.editable(t):!!e.editable)},e.prototype.onEditClick=function(e,t,n){e&&(e.preventDefault(),e.stopPropagation()),this.triggerEvent(t.edit||null,n)},e.decorators=[{type:t.Component,args:[{selector:"hd-table",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 \'缩略显示\': \'展开显示\'}}</hd-button>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet="tableRightButton"></ng-container>\n <span class="hd-table-col-settings" nz-dropdown nzTrigger="click" [nzDropdownMenu]="menu"\n [nzVisible]="isDropdownVisible" (click)="confirmDropdown()" title="列设置">\n <svg class="hd-table-col-settings-icon" width="14" height="14" viewBox="0 0 14 14" fill="none"\n xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.92031 1.80756C5.02551 1.42884 5.37033 1.16675 5.76339 1.16675H8.23667C8.62973 1.16675 8.97455 1.42884 9.07975 1.80756L9.37802 2.88133L10.4571 2.60273C10.8377 2.50448 11.2371 2.67206 11.4336 3.01245L12.6703 5.15438C12.8668 5.49478 12.8122 5.92445 12.5369 6.20491L11.7561 7.00008L12.5369 7.79525C12.8122 8.07572 12.8668 8.50539 12.6703 8.84579L11.4336 10.9877C11.2371 11.3281 10.8377 11.4957 10.4571 11.3974L9.37802 11.1188L9.07975 12.1926C8.97455 12.5713 8.62973 12.8334 8.23667 12.8334H5.76339C5.37033 12.8334 5.02551 12.5713 4.92031 12.1926L4.62206 11.1189L3.54315 11.3974C3.16258 11.4957 2.76318 11.3281 2.56666 10.9877L1.33001 8.84579C1.13349 8.50539 1.18806 8.07572 1.46343 7.79525L2.24419 7.00008L1.46344 6.20491C1.18806 5.92445 1.13349 5.49478 1.33002 5.15438L2.56666 3.01245C2.76319 2.67206 3.16258 2.50448 3.54316 2.60273L4.62206 2.88127L4.92031 1.80756ZM4.54541 10.843L4.54552 10.8433L4.54541 10.843ZM5.98508 2.33341L5.66952 3.46945C5.54185 3.92906 5.06958 4.20173 4.60771 4.08249L3.46618 3.78778L2.45122 5.54572L3.2773 6.38705C3.6115 6.72742 3.6115 7.27275 3.2773 7.61312L2.45122 8.45444L3.46617 10.2124L4.60771 9.91768C5.06958 9.79844 5.54185 10.0711 5.66952 10.5307L5.98508 11.6667H8.01498L8.33056 10.5307C8.45823 10.071 8.9305 9.79838 9.39237 9.91762L10.5341 10.2124L11.5491 8.45444L10.723 7.61312C10.3888 7.27275 10.3888 6.72742 10.723 6.38705L11.5491 5.54572L10.5341 3.78778L9.39237 4.08254C8.9305 4.20178 8.45823 3.92912 8.33056 3.46951L8.01498 2.33341H5.98508ZM7.00003 5.83342C6.3557 5.83342 5.83337 6.35575 5.83337 7.00008C5.83337 7.64441 6.3557 8.16675 7.00003 8.16675C7.64436 8.16675 8.1667 7.64441 8.1667 7.00008C8.1667 6.35575 7.64436 5.83342 7.00003 5.83342ZM4.6667 7.00008C4.6667 5.71142 5.71137 4.66675 7.00003 4.66675C8.2887 4.66675 9.33337 5.71142 9.33337 7.00008C9.33337 8.28875 8.2887 9.33342 7.00003 9.33342C5.71137 9.33342 4.6667 8.28875 4.6667 7.00008Z"\n fill="currentColor" />\n </svg>\n </span>\n <nz-dropdown-menu #menu="nzDropdownMenu">\n <div class="hd-table-col-settings-dropdown">\n <div class="hd-table-col-settings-list">\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 class="hd-table-col-settings-footer">\n <hd-button style="margin-right: 4px;" type="default" size="small" (clickAction)="cancelDropdown()">取消\n </hd-button>\n <hd-button type="primary" size="small" (clickAction)="submitGrids()">完成</hd-button>\n </div>\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"\n [class.hd-table--scroll-y]="!!(scroll && scroll.y)" [class.hd-table--scroll-x]="!!(scroll && scroll.x)"\n [nzScroll]="scroll"\n [nzShowPagination]="pagination" [nzShowSizeChanger]="pagination" [nzShowQuickJumper]="pagination"\n [nzFrontPagination]="useFrontPagination" nzSize="middle" [nzData]="tableData.content"\n [nzTotal]="getTableTotalCount()" [(nzPageIndex)]="tablePageIndex" [nzLoading]="tableLoading"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]" [(nzPageSize)]="tablePageSize"\n (nzPageSizeChange)="pagination ? search(true) : null"\n (nzPageIndexChange)="pagination ? search(false) : null"\n (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 [nzSort]="getColSort(col)">\n <ng-container *ngIf="getTitleParts(col) as titleParts; else plainTitle">\n <span class="hd-table-title-with-bar">{{ titleParts[0] }}<i class="hd-table-row-no-bar"></i>{{ titleParts[1] }}</span>\n </ng-container>\n <ng-template #plainTitle>{{ col.title }}</ng-template>\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" [class.hd-table-row-invalid]="isInvalidRow(data)">\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 [class.hd-table-row-invalid]="isInvalidRow(data)">\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>合计</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 共 {{ getTableTotalCount() }} 条数据\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 [nzDisabled]="isSelectDisabled(data)" (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 === \'操作\';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]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'"\n (click)="triggerEvent(btn.click || null, data)">{{ getBtnName(btn, data) }}</a>\n </ng-container>\n <ng-template #showConfirmTemplate>\n <a *ngIf="btn.permission ? btn.permission(data) : true"\n [class]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'" nz-popconfirm\n [nzPopconfirmTitle]="\'确认要\' + getBtnName(btn, data) + \'吗?\'"\n (nzOnConfirm)="triggerEvent(btn.click || null, data)">{{\n getBtnName(btn, data) }}</a>\n </ng-template>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notOperateTemplate>\n <div [class.hd-table-cell-with-actions]="col.btnList && col.btnList.length">\n <div class="hd-table-cell-value"\n [class.hd-table-cell-value--rowno]="hasRowNo(col)"\n [class.hd-table-cell-value--edit]="isEditable(col, data)">\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)" class="hd-table-cell-ellipsis" nz-tooltip\n [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 && (!col.canClick || col.canClick(data));else noClickTemplate">\n <ng-container *ngIf="(data | hdTableCell:col) as cell">\n <a *ngIf="cell.overflow && !(col.canWarp && showDetail)" class="hd-table-cell-ellipsis" nz-tooltip\n [nzTooltipTitle]="cell.title"\n [ngStyle]="{\'color\': getLinkCellColor(col, data, cell.isEmpty)}"\n (click)="triggerEvent(col.click || null, data)">{{ cell.display }}</a>\n <a *ngIf="!cell.overflow || (col.canWarp && showDetail)"\n [ngStyle]="{\'color\': getLinkCellColor(col, data, cell.isEmpty)}"\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)" class="hd-table-cell-ellipsis" nz-tooltip\n [nzTooltipTitle]="cell.title"\n [ngStyle]="{\'color\': getPlainCellColor(col, data)}">{{ cell.display }}</span>\n <span *ngIf="!cell.overflow || (col.canWarp && showDetail)"\n [ngStyle]="{\'color\': getPlainCellColor(col, data)}">{{ cell.display }}</span>\n </ng-container>\n </ng-template>\n </ng-template>\n <span class="hd-table-row-no" *ngIf="hasRowNo(col) && getRowNoText(col, data, index)">\n <i class="hd-table-row-no-bar"></i>{{ getRowNoText(col, data, index) }}\n </span>\n <a *ngIf="isEditable(col, data)" class="hd-table-edit-icon" href="javascript:;" title="编辑"\n (click)="onEditClick($event, col, data)">\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"\n aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M8.10797 1.42626C8.44968 1.08456 9.0037 1.08456 9.34541 1.42626L10.9746 3.05542C11.3163 3.39713 11.3163 3.95115 10.9746 4.29286L5.01002 10.2574C4.87077 10.3967 4.68863 10.4849 4.49305 10.5078L2.72936 10.7142C2.18281 10.7782 1.71357 10.3278 1.7551 9.77914L1.89441 7.93871C1.9102 7.73007 2.00024 7.53399 2.14819 7.38604L8.10797 1.42626ZM7.67304 3.51111L8.88972 4.72779L9.94337 3.67414L8.72669 2.45746L7.67304 3.51111ZM8.06477 5.55274L6.84808 4.33606L3.04959 8.13456L2.94515 9.51434L4.25672 9.36079L8.06477 5.55274ZM12.25 12.8333L1.75 12.8333V11.6666L12.25 11.6666V12.8333Z"\n fill="currentColor" />\n </svg>\n </a>\n </div>\n <div class="common-btn-group hd-table-cell-actions" *ngIf="col.btnList && col.btnList.length">\n <ng-container *ngFor="let btn of col.btnList">\n <ng-container *ngIf="!needShowConfirm(btn, data);else cellActionConfirmTpl">\n <a *ngIf="btn.permission ? btn.permission(data) : true"\n [class]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'"\n (click)="triggerEvent(btn.click || null, data)">{{ getBtnName(btn, data) }}</a>\n </ng-container>\n <ng-template #cellActionConfirmTpl>\n <a *ngIf="btn.permission ? btn.permission(data) : true"\n [class]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'" nz-popconfirm\n [nzPopconfirmTitle]="\'确认要\' + getBtnName(btn, data) + \'吗?\'"\n (nzOnConfirm)="triggerEvent(btn.click || null, data)">{{\n getBtnName(btn, data) }}</a>\n </ng-template>\n </ng-container>\n </div>\n </div>\n </ng-template>\n </td>\n </ng-container>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.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-col-settings{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;height:32px;padding:0;margin-left:12px;cursor:pointer;color:#2a3634;background:0 0;border:1px solid #e5e6eb;border-radius:4px;vertical-align:middle;flex-shrink:0}.hd-table-col-settings:hover{color:#20b95d;background:#f5f8f6;border-color:#20b95d}.hd-table-col-settings .hd-table-col-settings-icon{display:block;width:14px;height:14px;flex-shrink:0}.hd-table-cell-with-actions{display:inline-flex;flex-wrap:wrap;align-items:center;-moz-column-gap:12px;column-gap:12px;row-gap:6px;max-width:100%}.hd-table-cell-with-actions .hd-table-cell-value{min-width:0}.hd-table-cell-with-actions .hd-table-cell-actions{flex-shrink:0}.hd-table-col-settings-dropdown{background:#fff;border:1px solid #e5e6eb;border-radius:4px;box-shadow:0 6px 16px rgba(0,0,0,.08),0 3px 6px rgba(0,0,0,.06);overflow:hidden}.hd-table-col-settings-list{max-height:400px;overflow-y:auto}.hd-table-col-settings-footer{text-align:right;background:#fff;padding:4px;border-top:1px solid #f0f0f0}.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 .hd-table-cell-value--edit,.hd-table-container .hd-table-cell-value--rowno{display:inline-flex;align-items:center;min-width:0}.hd-table-container .hd-table-cell-value--edit>a:not(.hd-table-edit-icon),.hd-table-container .hd-table-cell-value--edit>hd-status,.hd-table-container .hd-table-cell-value--edit>span:not(.hd-table-row-no),.hd-table-container .hd-table-cell-value--rowno>a:not(.hd-table-edit-icon),.hd-table-container .hd-table-cell-value--rowno>hd-status,.hd-table-container .hd-table-cell-value--rowno>span:not(.hd-table-row-no){min-width:0}.hd-table-container .hd-table-row-no{display:inline-flex;flex-shrink:0;align-items:center;margin-left:4px;color:#1d1f29;font-size:14px;line-height:22px}.hd-table-container .hd-table-row-no-bar{display:inline-block;flex:0 0 auto;align-self:center;width:1px;height:14px;margin-right:4px;background:#1d1f29;vertical-align:middle}.hd-table-container .hd-table-edit-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin-left:2px;width:14px;height:14px;color:#20b95d;line-height:1;cursor:pointer}.hd-table-container .hd-table-edit-icon:hover{color:#20bd62}.hd-table-container .hd-table-edit-icon svg{display:block;width:14px;height:14px}.hd-table-container .hd-table-title-with-bar{display:inline-flex;align-items:center}.hd-table-container .hd-table-title-with-bar .hd-table-row-no-bar{width:1px;height:14px;margin:0 4px;align-self:center}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-right-sticky{background:#f7f8fa!important;color:#868a9c!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a{color:#20b95d!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a:hover{color:#20bd62!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group .common-danger-btn:hover{color:#f05b24!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-table-cell-value>a{color:#20b95d}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-billNumber>a{color:#3b77e3}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-status-text{color:#868a9c!important}.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}.hd-table-container:not(.hd-table--scroll-y):not(.hd-table--scroll-x) ::ng-deep .ant-table-body{max-height:none!important;overflow-y:visible!important}::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}.hd-table-cell-ellipsis{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.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}"]}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Oe}]},e.propDecorators={uuid:[{type:t.Input}],tableCols:[{type:t.Input}],tableData:[{type:t.Input}],showSelected:[{type:t.Input}],showOperateColWarpButton:[{type:t.Input}],virtualScroll:[{type:t.Input}],virtualItemSize:[{type:t.Input}],selectField:[{type:t.Input}],selectDisabledField:[{type:t.Input}],rowInvalidField:[{type:t.Input}],showTableTotal:[{type:t.Input}],tableTotalOption:[{type:t.Input}],sortEvent:[{type:t.Output}],selectEvent:[{type:t.Output}],tableSearchEvent:[{type:t.Output}],tableLoading:[{type:t.Input}],pagination:[{type:t.Input}],frontPagination:[{type:t.Input}],tablePageIndex:[{type:t.Input}],tablePageSize:[{type:t.Input}],isFirstEntrySearch:[{type:t.Input}],isCrossPageSelect:[{type:t.Input}],tablePageIndexChange:[{type:t.Output}],tablePageSizeChange:[{type:t.Output}],tablePageSizeChangeEvent:[{type:t.Output}],tableTotal:[{type:t.ContentChild,args:["tableTotal",{static:!1}]}],tableLeftButton:[{type:t.ContentChild,args:["tableLeftButton",{static:!1}]}],tableRightButton:[{type:t.ContentChild,args:["tableRightButton",{static:!1}]}],nzTableComponent:[{type:t.ViewChild,args:["hdTable",{static:!1}]}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showOperateColWarpButton",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"virtualScroll",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTableTotal",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"pagination",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"frontPagination",void 0),e}();var tt=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,r.NzTableModule,H,Ue,F,L,b.NzToolTipModule,u.NzPopconfirmModule,f.NzResizableModule,m.NzDropDownModule,y.NzTreeModule,g.NzIconModule],declarations:[et,Je],providers:[Oe],exports:[et],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),nt=function(){function e(){this.showIcon=!0,this.showCollapse=!1,this.expanded=!0,this.expandedChange=new t.EventEmitter}return e.prototype.expand=function(){this.setExpanded(!0)},e.prototype.collapse=function(){this.setExpanded(!1)},e.prototype.toggle=function(){this.setExpanded(!this.expanded)},e.prototype.setExpanded=function(e){this.expanded!==e&&(this.expanded=e,this.expandedChange.emit(this.expanded))},e.decorators=[{type:t.Component,args:[{selector:"hd-tip",template:'<nz-content>\n <div class="hd-tip-wrap" [class.hd-tip-wrap--collapse]="showCollapse">\n <div *ngIf="showIcon; else noIcon" class="hd-tip"\n [ngStyle]="fontSize ? {\'font-size\': fontSize + \'px\'} : null">\n {{title}}\n </div>\n <ng-template #noIcon>\n <div class="hd-tip-no-icon" [ngStyle]="fontSize ? {\'font-size\': fontSize + \'px\'} : null">\n {{title}}\n </div>\n </ng-template>\n <a *ngIf="showCollapse" class="hd-tip-collapse" href="javascript:;" (click)="toggle()">\n {{ expanded ? \'收起\' : \'展开\' }}\n <i nz-icon [nzType]="expanded ? \'up\' : \'down\'"></i>\n </a>\n </div>\n</nz-content>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-tip-wrap{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:0}.hd-tip-wrap--collapse{justify-content:space-between}.hd-tip{display:flex;position:relative;font-size:14px;font-weight:600;color:#2a3634;padding-left:8px;line-height:22px;min-width:0}.hd-tip-no-icon{font-size:14px;font-weight:600;color:#2a3634;line-height:22px;min-width:0}.hd-tip::before{position:absolute;left:0;top:calc((100% - 14px)/ 2);width:4px;height:14px;background:#20b95d;border-radius:2px;content:''}.hd-tip-collapse{flex-shrink:0;margin-left:16px;font-size:14px;font-weight:400;line-height:22px;color:#20b95d;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hd-tip-collapse:hover{color:#20bd62}.hd-tip-collapse i{margin-left:4px;font-size:12px}"]}]}],e.propDecorators={showIcon:[{type:t.Input}],fontSize:[{type:t.Input}],title:[{type:t.Input}],showCollapse:[{type:t.Input}],expanded:[{type:t.Input}],expandedChange:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showCollapse",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"expanded",void 0),e}();var it=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule],exports:[nt],declarations:[nt]}]}],e}(),ot=function(){function e(){var e=this;this.groups=[],this.labelColon=!0,this.autoOpen=!0,this.fileClick=new t.EventEmitter,this.trackByGroup=function(e,t){return t&&t.name||e},this.trackByFile=function(t,n){return e.getFilePath(n)||e.getFileName(n)||t}}return e.prototype.ngOnInit=function(){},e.prototype.getFileName=function(e){return e&&null!=e.name?String(e.name):""},e.prototype.getFilePath=function(e){return e&&null!=e.path?String(e.path):""},e.prototype.getFileSizeText=function(e){if(!e)return"";var t=e.size;if(null==t||""===t)return"";if("string"==typeof t)return t;var n=Number(t);return isNaN(n)||n<0?"":n<1024?n+" B":n<1048576?(n/1024).toFixed(n<10240?1:0)+" KB":(n/1048576).toFixed(n<10485760?1:0)+" MB"},e.prototype.getLabelText=function(e){var t=e&&null!=e.name?String(e.name):"";return t?this.labelColon?/[::]$/.test(t)?t:t+":":t:""},e.prototype.onFileClick=function(e,t,n){n&&n.preventDefault();var i=this.getFilePath(t);this.fileClick.emit({group:e,file:t,path:i}),this.autoOpen&&i&&window.open(i,"_blank")},e.decorators=[{type:t.Component,args:[{selector:"hd-accessory-list",template:'<div class="hd-accessory-list" *ngIf="groups && groups.length">\n <div class="hd-accessory-group" *ngFor="let group of groups; trackBy: trackByGroup">\n <div class="hd-accessory-group-label" *ngIf="getLabelText(group)">\n {{ getLabelText(group) }}\n </div>\n <div class="hd-accessory-files" *ngIf="group.accessoryList && group.accessoryList.length">\n <a class="hd-accessory-file" *ngFor="let file of group.accessoryList; trackBy: trackByFile"\n href="javascript:void(0)"\n (click)="onFileClick(group, file, $event)"\n [attr.title]="getFileName(file)">\n <span class="hd-accessory-file-main">\n <i nz-icon class="hd-accessory-file-icon" nzType="link" nzTheme="outline"></i>\n <span class="hd-accessory-file-name">{{ getFileName(file) || \'未命名文件\' }}</span>\n </span>\n <span class="hd-accessory-file-size" *ngIf="getFileSizeText(file)">{{ getFileSizeText(file) }}</span>\n </a>\n </div>\n <div class="hd-accessory-empty" *ngIf="!group.accessoryList || !group.accessoryList.length">\n 暂无附件\n </div>\n </div>\n</div>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-accessory-list{width:100%;font-size:14px;line-height:22px}.hd-accessory-list .hd-accessory-group+.hd-accessory-group{margin-top:16px}.hd-accessory-list .hd-accessory-group-label{padding:5px 0;min-height:32px;box-sizing:border-box;color:#4e5369;line-height:22px}.hd-accessory-list .hd-accessory-files{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hd-accessory-list .hd-accessory-empty{padding:7px 0;color:#8d918f;font-size:14px;line-height:22px}.hd-accessory-list .hd-accessory-file{display:flex;align-items:center;gap:12px;min-width:0;padding:7px 12px;box-sizing:border-box;background:#f7f8fa;border-radius:4px;color:#20b95d;text-decoration:none;cursor:pointer}.hd-accessory-list .hd-accessory-file:hover .hd-accessory-file-icon,.hd-accessory-list .hd-accessory-file:hover .hd-accessory-file-name{color:#20bd62}.hd-accessory-list .hd-accessory-file-main{display:flex;flex:1;min-width:0;align-items:center;gap:4px}.hd-accessory-list .hd-accessory-file-icon{flex-shrink:0;font-size:16px;color:inherit}.hd-accessory-list .hd-accessory-file-name{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:inherit;font-size:14px;line-height:22px}.hd-accessory-list .hd-accessory-file-size{flex-shrink:0;color:#8d918f;font-size:12px;line-height:18px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={groups:[{type:t.Input}],labelColon:[{type:t.Input}],autoOpen:[{type:t.Input}],fileClick:[{type:t.Output}]},e}();var at=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule],declarations:[ot],exports:[ot]}]}],e}(),rt=function(){function e(e){this.router=e,this.started=!1,this.start()}return e.prototype.start=function(){var e=this;this.started||"undefined"==typeof document||(this.started=!0,document.addEventListener("mousedown",(function(){return e.clearStuckTooltips()}),!0),this.router&&this.router.events.pipe(c.filter((function(e){return e instanceof v.NavigationStart}))).subscribe((function(){return e.clearStuckTooltips()})))},e.prototype.clearStuckTooltips=function(){"undefined"!=typeof document&&document.querySelectorAll(".cdk-overlay-container .ant-tooltip").forEach((function(e){var t=e.closest(".cdk-overlay-pane");t&&t.parentNode&&t.parentNode.removeChild(t)}))},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:v.Router,decorators:[{type:t.Optional}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(v.Router,8))},token:e,providedIn:"root"}),e}();var lt=function(){function e(e){}return e.decorators=[{type:t.NgModule,args:[{exports:[F,L,P,oe,re,de,Le,ke,Pe,H,Ue,Re,tt,it,at,_e,je]}]}],e.ctorParameters=function(){return[{type:rt}]},e}(),st=function(){function e(e){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],exports:[lt],providers:[],entryComponents:[Be]}]}],e.ctorParameters=function(){return[{type:rt}]},e}(),dt=function(){};var ct=function(){this.accessoryList=[]};var pt=function(){this.value=null};var ht=function(){};var mt=function(){};var gt={fillSelectOption:function(e,t,n){var i=e;if(!i||!i.length)return i;for(var o=e.length,a=0;a<o;a++)i[a].name===t&&(i[a].selectOption.selectList=n);return i},fillArrayFormItem:function(e,t){if(!e||!e.length)return[];for(var n=e.length,i=0;i<n;i++)t[e[i].name]&&(e[i].value=t[e[i].name]);return e},arrayToSelectOptionList:function(e,t){var n=[];return e&&e.length?(t?t.labelTip&&t.valueTip?e.forEach((function(e){var i=e;i.label=e[t.label],i.value=e[t.value],t.valueTip&&(i[t.valueTip]=e[t.value]),t.labelTip&&(i[t.labelTip]=e[t.label]),n.push(i)})):e.forEach((function(e){var i=e;i.label=e[t.label],i.value=e[t.value],n.push(i)})):e.forEach((function(e){var t={};t.label=e,t.value=e,n.push(t)})),n):n},add:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");var o=0;try{for(var a=S(e),r=a.next();!r.done;r=a.next()){o+=r.value}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return l.round(o,t)},subtract:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");if(e.length<2)throw new Error("减法入参数量至少要2个!");var o=e.shift();try{for(var a=S(e),r=a.next();!r.done;r=a.next()){o-=r.value}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return l.round(o,t)},multiply:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");var o=1;try{for(var a=S(e),r=a.next();!r.done;r=a.next()){o*=r.value}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return l.round(o,t)},divide:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");if(e.length<2)throw new Error("除法入参数量至少要2个!");var o=e.shift();try{for(var a=S(e),r=a.next();!r.done;r=a.next()){var s=r.value;if(0===s)throw new Error("除数不能为0!");o/=s}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return l.round(o,t)}};e.ButtonSize=D,e.ButtonType=O,e.CascaderOption=Y,e.CheckboxOption=q,e.ColWidth=Ze,e.ColorOption=Te,e.ExplainOption=Ne,e.FantasyNgzorroModule=st,e.Filter=ce,e.FilterListType=pe,e.FormItem=me,e.FormLine=De,e.FormLineType=Fe,e.FormLinesCacheOption=Ae,e.FormListType=ue,e.HD_CASCADER_MENU_CLASS="hd-cascader-menus",e.HD_FILTER_DEFAULT_SCHEME_NAME="默认条件",e.HD_FILTER_SCHEME_STORE=Se,e.HdAccessoryFile=dt,e.HdAccessoryGroup=ct,e.HdAccessoryListComponent=ot,e.HdButtonService=T,e.HdCurrentTableComponent=Ve,e.HdDetailFormFieldType=A,e.HdDetailFormService=E,e.HdFilterScheme=we,e.HdFilterSchemeStore=Ie,e.HdFilterService=he,e.HdFormLinesService=Ee,e.HdFormService=fe,e.HdLogComponent=Be,e.HdLogService=He,e.HdOption=W,e.HdOverlayCleanupService=rt,e.HdTableColumn=Ye,e.HdTableTotalOption=Qe,e.InputNumber=J,e.OperateBtn=Ge,e.Page=j,e.RadioOption=K,e.SelectOption=_,e.SelectOptionTableColumn=U,e.SelectOptionTableColumnIcon=Z,e.StaticConst={MaxPageSize:99999999},e.TableCacheOption=$e,e.TableColumn=pt,e.TableTotalOption=ht,e.TotalOption=mt,e.TreeGrid=Xe,e.Utils=gt,e.ValidatorKey=ge,e.cascaderPinyinFilter=be,e.getCascaderMenuClassName=ve,e.getCascaderMenuStyle=xe,e.getCascaderShowSearch=ye,e.ɵa=lt,e.ɵb=F,e.ɵba=et,e.ɵbb=Je,e.ɵbc=it,e.ɵbd=nt,e.ɵbe=at,e.ɵbf=_e,e.ɵbg=We,e.ɵbh=je,e.ɵc=N,e.ɵd=L,e.ɵe=k,e.ɵf=P,e.ɵg=M,e.ɵh=oe,e.ɵi=H,e.ɵj=B,e.ɵk=ie,e.ɵl=re,e.ɵm=ae,e.ɵn=de,e.ɵo=se,e.ɵp=Le,e.ɵq=ke,e.ɵr=Ce,e.ɵs=ze,e.ɵt=Pe,e.ɵu=Me,e.ɵv=Oe,e.ɵw=Ue,e.ɵx=qe,e.ɵy=Re,e.ɵz=tt,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var x=function(){return(x=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function w(e,t,n,i){var o,a=arguments.length,l=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,i);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(l=(a<3?o(l):a>3?o(t,n,l):o(t,n))||l);return a>3&&l&&Object.defineProperty(t,n,l),l}function I(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function S(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function C(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(z(arguments[t]));return e}var k=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:t.Component,args:[{selector:"hd-button-group",template:'<nz-content class="hd-button-group-container">\n <div class="hd-button-group-left">\n <ng-container *ngTemplateOutlet="buttonGroupLeft"></ng-container>\n </div>\n <div class="hd-button-group-right">\n <ng-container *ngTemplateOutlet="buttonGroupRight"></ng-container>\n </div>\n</nz-content>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-button-group-container{display:flex;align-items:center;justify-content:space-between}.hd-button-group-container .hd-button-group-left{display:inline-flex;align-items:center}.hd-button-group-container .hd-button-group-left ::ng-deep hd-button{margin-right:12px}.hd-button-group-container .hd-button-group-right{display:inline-flex;align-items:center}.hd-button-group-container .hd-button-group-right ::ng-deep hd-button{margin-left:12px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={buttonGroupLeft:[{type:t.ContentChild,args:["buttonGroupLeft",{static:!1}]}],buttonGroupRight:[{type:t.ContentChild,args:["buttonGroupRight",{static:!1}]}]},e}();var L=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.NgZorroAntdModule],declarations:[k],exports:[k]}]}],e}(),O={primary:"primary",dashed:"dashed",danger:"danger",default:"default",link:"link",submit:"submit",reset:"reset",add:"add"},D={normal:"normal",small:"small"},T=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),N=function(){function e(){this.type=O.default,this.size=D.normal,this.disabled=!1,this.clickAction=new t.EventEmitter,this.nzOnConfirm=new t.EventEmitter}return e.prototype.ngOnInit=function(){if((!1===this.loading||!0===this.loading)&&0===this.clickAction.observers.length&&0===this.nzOnConfirm.observers.length)throw"存在loading效果的hd-button组件禁止使用click绑定点击事件,请使用clickAction绑定!";if("submit"===this.type)throw"禁止使用submit类型的按钮,请使用普通按钮+click事件触发表单提交!"},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.loading},enumerable:!0,configurable:!0}),e.prototype.innerClickAction=function(e){this.loading||this.clickAction.emit(e)},e.decorators=[{type:t.Component,args:[{selector:"hd-button",template:'<nz-content class="hd-button-container">\n <button nz-button [nzType]="type" [disabled]="isDisabled" [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 \x3c!-- 插槽 --\x3e\n <ng-content></ng-content>\n </button>\n</nz-content>',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-button-container{display:inline-block}.hd-button-container button{height:32px;line-height:32px;padding:0 16px!important;border:0;font-size:14px;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 #e5e6eb;font-size:14px;font-weight:400;color:#2a3634;height:32px;line-height:30px}.hd-button-container .ant-btn-default:hover{color:#20b95d;border:1px solid #20b95d}.hd-button-container .ant-btn-warning{background:#fff;border-radius:4px;border:1px solid #e5e6eb;font-size:14px;font-weight:400;color:#2a3634;height:32px;line-height:30px}.hd-button-container .ant-btn-warning:hover{color:#f05b24;border:1px solid #f05b24}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={type:[{type:t.Input}],size:[{type:t.Input}],loading:[{type:t.Input}],disabled:[{type:t.Input}],clickAction:[{type:t.Output}],nzOnConfirm:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"loading",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"disabled",void 0),e}();var F=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.NgZorroAntdModule],declarations:[N],exports:[N]}]}],e}(),A={Text:"text",Accessory:"accessory"};var E=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),M=function(){function e(){this.formCols=new Array,this.nzColumn=4,this.imageClick=new t.EventEmitter,this.HdDetailFormFieldType=A,this.previewVisible=!1,this.previewImagePath="",this.previewTitle="图片预览",this.previewImages=[],this.previewIndex=0,this.imageListCache=new Map,this.displayListCache=new Map}return Object.defineProperty(e.prototype,"canPreviewPrev",{get:function(){return this.previewIndex>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canPreviewNext",{get:function(){return this.previewIndex<this.previewImages.length-1},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.formCols&&this.formCols.length>0&&(this.formCols=this.formCols.filter((function(e){return!e.hide}))),this.refreshImageCache()},e.prototype.ngOnChanges=function(e){e.formCols&&JSON.stringify(e.formCols.currentValue)!==JSON.stringify(e.formCols.previousValue)&&(this.formCols&&this.formCols.length>0&&(this.formCols=this.formCols.filter((function(e){return!e.hide}))),this.refreshImageCache())},e.prototype.isAccessory=function(e){return!(!e||e.type!==A.Accessory&&"accessory"!==e.type)},e.prototype.refreshImageCache=function(){var e=this;this.imageListCache.clear(),this.displayListCache.clear(),(this.formCols||[]).forEach((function(t){e.isAccessory(t)&&e.imageListCache.set(t,e.parseImageList(t))}))},e.prototype.parseImageList=function(e){var t=e&&e.value;if(null==t||""===t)return[];var n=Array.isArray(t)?t:[t],i=[];return n.forEach((function(e){if(null!=e&&""!==e)if("string"!=typeof e){var t=e.path||e.url||e.address||"";t&&i.push({name:e.name||e.fileName,path:String(t)})}else i.push({path:e})})),i},e.prototype.getImageList=function(e){return this.imageListCache.has(e)||this.imageListCache.set(e,this.parseImageList(e)),this.imageListCache.get(e)||[]},e.prototype.hasImages=function(e){return this.getImageList(e).length>0},e.prototype.getDisplayImages=function(e){if(this.displayListCache.has(e))return this.displayListCache.get(e);var t=this.getImageList(e).slice(0,4);return this.displayListCache.set(e,t),t},e.prototype.getMoreCount=function(e){var t=this.getImageList(e).length;return t>4?t-4:0},e.prototype.getImagePath=function(e){return e&&(e.path||e.url)||""},e.prototype.trackByImage=function(e,t){return t&&(t.path||t.url)||String(e)},e.prototype.onImageClick=function(e,t,n,i){var o=this;i&&(i.preventDefault(),i.stopPropagation());var a=this.getImagePath(t);this.imageClick.emit({image:t,path:a,index:n}),a&&(this.previewImages=this.getImageList(e).slice(),this.previewIndex=n>=0?n:0,this.applyPreviewImage(),setTimeout((function(){o.previewVisible=!0})))},e.prototype.previewPrev=function(e){e&&(e.preventDefault(),e.stopPropagation()),this.canPreviewPrev&&(this.previewIndex-=1,this.applyPreviewImage())},e.prototype.previewNext=function(e){e&&(e.preventDefault(),e.stopPropagation()),this.canPreviewNext&&(this.previewIndex+=1,this.applyPreviewImage())},e.prototype.applyPreviewImage=function(){var e=this.previewImages[this.previewIndex],t=this.getImagePath(e);this.previewImagePath=t,this.previewTitle=e&&e.name||"图片"+(this.previewIndex+1)},e.prototype.closePreview=function(){this.previewVisible=!1,this.previewImages=[],this.previewIndex=0,this.previewImagePath=""},e.prototype.getColSpan=function(e){var t=e&&null!=e.width?Number(e.width):1;return!t||t<1||isNaN(t)?1:t>4?4:Math.floor(t)},e.prototype.triggerEvent=function(e){e&&e(event)},e.prototype.onEditClick=function(e,t){e&&(e.preventDefault(),e.stopPropagation()),t&&t.edit&&t.edit(t)},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-form",template:'<nz-content class="hd-detail-form-container">\n <nz-descriptions [nzColumn]="nzColumn">\n <ng-container *ngFor="let col of formCols">\n \x3c!-- 附件图片:最多展示 4 张,超出末张蒙版 +n --\x3e\n <nz-descriptions-item *ngIf="isAccessory(col)" [nzTitle]="col.label" [nzSpan]="getColSpan(col)">\n <div class="hd-detail-form-images" *ngIf="hasImages(col)">\n <div class="hd-detail-form-image-item"\n *ngFor="let image of getDisplayImages(col); let i = index; trackBy: trackByImage"\n (click)="onImageClick(col, image, i, $event)">\n <img class="hd-detail-form-image"\n [src]="getImagePath(image)"\n [alt]="image.name || (\'图片\' + (i + 1))"\n [attr.title]="image.name || (\'图片\' + (i + 1))" />\n <span class="hd-detail-form-image-mask"\n *ngIf="getMoreCount(col) > 0 && i === getDisplayImages(col).length - 1">\n +{{ getMoreCount(col) }}\n </span>\n </div>\n </div>\n <span *ngIf="!hasImages(col)"><空></span>\n </nz-descriptions-item>\n \x3c!-- 普通文本 --\x3e\n <nz-descriptions-item *ngIf="!isAccessory(col) && !col.click" [nzTitle]="col.label" [nzSpan]="getColSpan(col)">\n <span class="hd-detail-form-field-value"\n [class.hd-detail-form-field-value--edit]="col.editable"\n [ngStyle]="{\'color\': col?.color ? col.color : null}">\n <span>{{(col.value === \'0\' || col.value === 0 || col.value)? col.value : \'<空>\'}}</span>\n <ng-container *ngTemplateOutlet="editIconTpl; context: { $implicit: col }"></ng-container>\n </span>\n </nz-descriptions-item>\n \x3c!-- 可点击 --\x3e\n <nz-descriptions-item *ngIf="!isAccessory(col) && col.click" [nzTitle]="col.label" [nzSpan]="getColSpan(col)">\n <span class="hd-detail-form-field-value"\n [class.hd-detail-form-field-value--edit]="col.editable"\n [ngStyle]="{\'color\': col?.color ? col.color : null}" *ngIf="col.clickText">\n <span>{{(col.value === \'0\' || col.value === 0 || col.value)? col.value : \'<空>\'}}</span>\n <a (click)="triggerEvent(col.click || null)"> {{ col.clickText }}</a>\n <a *ngIf="col.clickText1" (click)="triggerEvent(col.click1 || null)"> {{ col.clickText1\n }}</a>\n <ng-container *ngTemplateOutlet="editIconTpl; context: { $implicit: col }"></ng-container>\n </span>\n <span class="hd-detail-form-field-value"\n [class.hd-detail-form-field-value--edit]="col.editable"\n [ngStyle]="{\'color\': col?.color ? col.color : null}" *ngIf="!col.clickText">\n <a (click)="triggerEvent(col.click || null)">{{(col.value === \'0\' || col.value === 0 || col.value\n )? col.value : \'<空>\'}}</a>\n <a *ngIf="col.clickText1" (click)="triggerEvent(col.click1 || null)"> {{ col.clickText1\n }}</a>\n <ng-container *ngTemplateOutlet="editIconTpl; context: { $implicit: col }"></ng-container>\n </span>\n </nz-descriptions-item>\n </ng-container>\n </nz-descriptions>\n</nz-content>\n\n<ng-template #editIconTpl let-col>\n <a *ngIf="col.editable" class="hd-detail-form-edit-icon" href="javascript:;" title="编辑"\n (click)="onEditClick($event, col)">\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M8.10797 1.42626C8.44968 1.08456 9.0037 1.08456 9.34541 1.42626L10.9746 3.05542C11.3163 3.39713 11.3163 3.95115 10.9746 4.29286L5.01002 10.2574C4.87077 10.3967 4.68863 10.4849 4.49305 10.5078L2.72936 10.7142C2.18281 10.7782 1.71357 10.3278 1.7551 9.77914L1.89441 7.93871C1.9102 7.73007 2.00024 7.53399 2.14819 7.38604L8.10797 1.42626ZM7.67304 3.51111L8.88972 4.72779L9.94337 3.67414L8.72669 2.45746L7.67304 3.51111ZM8.06477 5.55274L6.84808 4.33606L3.04959 8.13456L2.94515 9.51434L4.25672 9.36079L8.06477 5.55274ZM12.25 12.8333L1.75 12.8333V11.6666L12.25 11.6666V12.8333Z"\n fill="currentColor" />\n </svg>\n </a>\n</ng-template>\n\n<nz-modal [(nzVisible)]="previewVisible" [nzTitle]="previewTitle" [nzFooter]="null" [nzWidth]="960"\n [nzContent]="previewModalContent" (nzOnCancel)="closePreview()">\n</nz-modal>\n<ng-template #previewModalContent>\n <div class="hd-detail-form-preview">\n <button type="button" class="hd-detail-form-preview-nav hd-detail-form-preview-nav--prev"\n *ngIf="previewImages.length > 1" [disabled]="!canPreviewPrev" (click)="previewPrev($event)"\n title="上一张">\n <i nz-icon nzType="left" nzTheme="outline"></i>\n </button>\n <div class="hd-detail-form-preview-body">\n <img *ngIf="previewImagePath" [src]="previewImagePath" [alt]="previewTitle" />\n <div class="hd-detail-form-preview-index" *ngIf="previewImages.length > 1">\n {{ previewIndex + 1 }} / {{ previewImages.length }}\n </div>\n </div>\n <button type="button" class="hd-detail-form-preview-nav hd-detail-form-preview-nav--next"\n *ngIf="previewImages.length > 1" [disabled]="!canPreviewNext" (click)="previewNext($event)"\n title="下一张">\n <i nz-icon nzType="right" nzTheme="outline"></i>\n </button>\n </div>\n</ng-template>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-detail-form-container{font-size:14px}.hd-detail-form-container ::ng-deep td.ant-descriptions-item{vertical-align:top;padding-top:6px!important;padding-bottom:6px!important;padding-left:0!important;font-size:14px}.hd-detail-form-container ::ng-deep .ant-descriptions-item>span{vertical-align:top}.hd-detail-form-container ::ng-deep .ant-descriptions-item-label{color:#4b504e;font-size:14px;line-height:22px;padding-top:1px;vertical-align:top}.hd-detail-form-container ::ng-deep .ant-descriptions-item-content{word-break:break-all;color:rgba(0,0,0,.85);font-weight:400;font-size:14px;vertical-align:top;line-height:22px}.hd-detail-form-container ::ng-deep a{font-size:14px}.hd-detail-form-container .hd-detail-form-field-value--edit{display:inline-flex;align-items:center;flex-wrap:wrap;min-width:0}.hd-detail-form-container .hd-detail-form-edit-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin-left:2px;width:14px;height:14px;color:#20b95d;line-height:1;cursor:pointer}.hd-detail-form-container .hd-detail-form-edit-icon:hover{color:#20bd62}.hd-detail-form-container .hd-detail-form-edit-icon svg{display:block;width:14px;height:14px}.hd-detail-form-container ::ng-deep td{white-space:unset!important}.hd-detail-form-container .hd-detail-form-images{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:6px}.hd-detail-form-container .hd-detail-form-image-item{position:relative;flex-shrink:0;box-sizing:border-box;width:48px;height:48px;overflow:hidden;border:1px solid #e5e6eb;border-radius:4px;cursor:pointer}.hd-detail-form-container .hd-detail-form-image-item:hover{border-color:#20b95d}.hd-detail-form-container .hd-detail-form-image{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.hd-detail-form-container .hd-detail-form-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45);color:#fff;font-size:14px;line-height:22px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.hd-detail-form-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:200px;max-height:70vh}.hd-detail-form-preview .hd-detail-form-preview-body{flex:1;min-width:0;text-align:center;max-height:70vh;overflow:auto}.hd-detail-form-preview img{display:inline-block;max-width:100%;max-height:calc(70vh - 32px);-o-object-fit:contain;object-fit:contain}.hd-detail-form-preview .hd-detail-form-preview-index{margin-top:8px;color:#4b504e;font-size:14px;line-height:22px}.hd-detail-form-preview .hd-detail-form-preview-nav{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 8px;padding:0;border:1px solid #e5e6eb;border-radius:50%;background:#fff;color:rgba(0,0,0,.85);cursor:pointer;outline:0}.hd-detail-form-preview .hd-detail-form-preview-nav i{font-size:16px}.hd-detail-form-preview .hd-detail-form-preview-nav:hover:not(:disabled){border-color:#20b95d;color:#20b95d}.hd-detail-form-preview .hd-detail-form-preview-nav:disabled{color:#c9cdd4;cursor:not-allowed;background:#f7f8fa}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={formCols:[{type:t.Input}],nzColumn:[{type:t.Input}],imageClick:[{type:t.Output}]},e}();var P=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule],exports:[M],declarations:[M]}]}],e}(),V="row",R=function(){};!function(){function e(){}e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"})}();var B=function(){function e(){this.type=V,this.background="inherit",this.style=new R}return e.prototype.ngOnInit=function(){this.style.background=this.background,this.type===V?(this.style.width="100%",this.style.height=this.size+"px"):(this.style.height="100%",this.style.width=this.size+"px")},e.decorators=[{type:t.Component,args:[{selector:"hd-space",template:'<nz-content>\n <div [ngStyle]="style"></div>\n</nz-content>\n',styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={type:[{type:t.Input}],size:[{type:t.Input}],background:[{type:t.Input}]},e}();var H=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule],declarations:[B],exports:[B]}]}],e}(),j=function(){this.totalPages=0,this.totalElements=0,this.pageNumber=0,this.pageSize=10,this.hasContent=!1,this.hasNext=!1,this.content=[]};var W=function(){};var _=function(){this.showLabelAndValue=!1,this.hdDropdownMatchSelectWidth=!1,this.hdServerSearch=!1,this.hdShowItemCode=!1,this.hdShowSearch=!0,this.hdAllowClear=!0};var K=function(){this.showLabelAndValue=!1};var q=function(){this.showLabelAndValue=!1};var U=function(){};var Z=function(){};var J=function(){this.min=0,this.max=99999999,this.step=1,this.precision=4};var Y=function(){};function G(e,t){if(void 0===t&&(t="hd-table-container"),!e||!e.tableMainElement)return 0;var n=e.tableMainElement.nativeElement,i=n.querySelector(".ant-table-body");if(i&&i.clientWidth>0)return i.clientWidth;var o=n.closest(".ant-table-wrapper");if(o&&o.clientWidth>0)return o.clientWidth;var a=n.closest("."+t);return a&&a.clientWidth>0?a.clientWidth:0}function $(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.left="-99999px",t.style.top="0",t.style.visibility="hidden",t.style.width="max-content",t.style.tableLayout="auto",document.body.appendChild(t);var n=t.scrollWidth;return document.body.removeChild(t),n}function Q(e){var t=Array.from(e.querySelectorAll(".ant-table-thead > tr > th"));if(!t.length)return 0;var n=0,i=!1;return t.forEach((function(e){var t=function(e){if(!e)return 0;var t=parseInt(String(e).replace(/px/i,""),10);return Number.isNaN(t)?0:t}(e.style.width);t>0?n+=t:(i=!0,n+=e.scrollWidth||e.offsetWidth||150)})),i?0:n}function X(e){if(!e||!e.tableMainElement)return 0;var t=e.tableMainElement.nativeElement,n=Array.from(t.querySelectorAll(".ant-table-header table, .ant-table-body table, .cdk-virtual-scroll-content-wrapper table")).reduce((function(e,t){return Math.max(e,t.scrollWidth||0)}),0),i=G(e);if(i<=0||n<=i){var o=t.querySelector(".ant-table-header table"),a=t.querySelector(".ant-table-body table");o&&(n=Math.max(n,$(o))),a&&(n=Math.max(n,$(a))),n=Math.max(n,Q(t))}return n}function ee(e,t,n){if(!t)return null;var i=null!=n&&n>0?n:X(e);if(i<=0)return null;var o=G(e);return o>0?i>o?{x:Math.ceil(i)+"px"}:null:"undefined"!=typeof window&&i>window.innerWidth-32?{x:Math.ceil(i)+"px"}:null}function te(e){if(!e)return{header:null,body:null};var t=e,n=t.tableHeaderNativeElement||null,i=t.mixTableBodyNativeElement||t.tableBodyNativeElement||null,o=t.tableMainElement&&t.tableMainElement.nativeElement;return o&&(n||(n=o.querySelector(".ant-table-header")),i||(i=o.querySelector("cdk-virtual-scroll-viewport.ant-table-body")||o.querySelector(".ant-table-body"))),{header:n,body:i}}function ne(e){var t=te(e);if(!t.header||!t.body)return null;var n=t.header,i=t.body,o=function(){n.scrollLeft!==i.scrollLeft&&(n.scrollLeft=i.scrollLeft)};return i.addEventListener("scroll",o),o(),function(){i.removeEventListener("scroll",o)}}var ie=function(){function e(e){this.cdr=e,this.showSelected=!1,this.allowDrop=!1,this.showSearch=!1,this.searchFields=[],this.scroll={x:"1px"},this.tableScroll=null,this.selectField="billNumber",this.selectEvent=new t.EventEmitter,this.showTotal=!1,this.totalOption=[],this.columnsNumber=0,this.hdFrontPagination=!1,this.totalOptionList=[],this.tableData=new j,this.tableLoading=!1,this.tablePageIndex=1,this.tablePageSize=100,this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.listOfAllData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.displayLines=[],this.isFilterData=!1,this.storeFormLinesData=[],this.showTable=!0,this.unbindBodyScroll=null}return Object.defineProperty(e.prototype,"effectiveScroll",{get:function(){return null!=this.scroll?this.scroll:this.tableScroll},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.syncStoreFromLinesInput(),this.applyDisplayFromStore(),this.countSelected(),this.calculateTotal()},e.prototype.ngAfterViewInit=function(){this.scheduleSyncHorizontalScroll()},e.prototype.ngOnDestroy=function(){this.unbindHeaderBodyScrollSync()},e.prototype.ngOnChanges=function(e){e.lines&&(this.isFilterData?this.storeFormLinesData&&0!==this.storeFormLinesData.length||this.syncStoreFromLinesInput():(this.syncStoreFromLinesInput(),this.displayLines=this.lines||[])),this.countSelected(),this.calculateTotal(),(e.lines||e.showSelected)&&this.scheduleSyncHorizontalScroll()},e.prototype.scheduleSyncHorizontalScroll=function(e){var t=this;void 0===e&&(e=0),setTimeout((function(){null==t.scroll&&t.syncHorizontalScroll(),t.bindHeaderBodyScrollSync(0);var n=t.effectiveScroll&&t.effectiveScroll.x||t.tableScroll&&t.tableScroll.x;null==t.scroll&&e<5&&t.displayLines&&t.displayLines.length>0&&!n&&0===X(t.nzTableComponent)&&t.scheduleSyncHorizontalScroll(e+1)}),0===e?0:50)},e.prototype.syncHorizontalScroll=function(){if(null==this.scroll){var e=!(!this.displayLines||!this.displayLines.length),t=ee(this.nzTableComponent,e),n=t?t.x:null;if(!this.tableScroll||this.tableScroll.x!==n||this.tableScroll.y){var i=!(!this.tableScroll||!this.tableScroll.y);this.tableScroll=n?{x:n}:null,i?this.remountTable():(this.cdr.markForCheck(),this.bindHeaderBodyScrollSync(0))}}},e.prototype.remountTable=function(){var e=this;this.unbindHeaderBodyScrollSync(),setTimeout((function(){e.showTable=!1,e.cdr.markForCheck(),setTimeout((function(){e.showTable=!0,e.cdr.markForCheck(),setTimeout((function(){return e.bindHeaderBodyScrollSync(0)}))}))}))},e.prototype.bindHeaderBodyScrollSync=function(e){var t=this;if(void 0===e&&(e=0),this.unbindHeaderBodyScrollSync(),this.nzTableComponent&&this.effectiveScroll&&this.effectiveScroll.x){var n=ne(this.nzTableComponent);n?this.unbindBodyScroll=n:e<8&&setTimeout((function(){return t.bindHeaderBodyScrollSync(e+1)}),50)}},e.prototype.unbindHeaderBodyScrollSync=function(){this.unbindBodyScroll&&(this.unbindBodyScroll(),this.unbindBodyScroll=null)},e.prototype.syncStoreFromLinesInput=function(e){var t=e||this.lines;this.storeFormLinesData=t?JSON.parse(JSON.stringify(t)):[]},e.prototype.applyDisplayFromStore=function(){this.lines&&this.lines.length>0?this.displayLines=this.lines:this.displayLines=this.storeFormLinesData?JSON.parse(JSON.stringify(this.storeFormLinesData)):[]},e.prototype.restoreFromStore=function(){this.isFilterData=!1,this.applyDisplayFromStore(),this.tableLoading=!1,this.countSelected(),this.calculateTotal(),this.scheduleSyncHorizontalScroll()},e.prototype.searchLines=function(){var e=this;if(!this.filterStr||!this.filterStr.trim()){if(!this.storeFormLinesData||this.storeFormLinesData.length<1)return;return this.tableLoading=!0,void this.restoreFromStore()}if(this.storeFormLinesData&&!(this.storeFormLinesData.length<1)){this.tableLoading=!0;var t=this.filterStr.trim().toLowerCase();this.isFilterData=!0;var n=this.storeFormLinesData.filter((function(n){var i,o,a,l;if(!e.searchFields||0===e.searchFields.length){try{for(var r=S(Object.keys(n)),s=r.next();!s.done;s=r.next()){if(n[p=s.value]&&n[p].toString().toLowerCase().includes(t))return!0}}catch(e){i={error:e}}finally{try{s&&!s.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return!1}try{for(var d=S(e.searchFields),c=d.next();!c.done;c=d.next()){var p;if(n[p=c.value]&&n[p].toString().toLowerCase().includes(t))return!0}}catch(e){a={error:e}}finally{try{c&&!c.done&&(l=d.return)&&l.call(d)}finally{if(a)throw a.error}}return!1}));this.displayLines=JSON.parse(JSON.stringify(n)),this.tableLoading=!1,this.countSelected(),this.calculateTotal(),this.scheduleSyncHorizontalScroll()}},e.prototype.countSelected=function(){var e=this;this.showSelected&&this.selectedField&&this.displayLines&&this.displayLines.length&&(this.displayLines.forEach((function(t){!0!==t[e.selectedField]||e.isSelectDisabled(t)||(e.mapOfCheckedId[t[e.selectField]]=!0,e.mapOfCheckList[t[e.selectField]]=t)})),this.displayLines.length===Object.keys(this.mapOfCheckList).length&&(this.isAllDisplayDataChecked=!0,this.isIndeterminate=!0))},Object.defineProperty(e.prototype,"LodashRound",{get:function(){return r.round},enumerable:!0,configurable:!0}),e.prototype.drop=function(e){a.moveItemInArray(this.displayLines,e.previousIndex,e.currentIndex),this.displayLines=JSON.parse(JSON.stringify(this.displayLines)),this.isFilterData||(this.storeFormLinesData=JSON.parse(JSON.stringify(this.displayLines)))},e.prototype.calculateTotal=function(){var e=this;this.showTotal&&this.displayLines&&this.displayLines.length&&(this.totalOptionList=new Array(Number(this.columnsNumber)-1).fill(""),this.totalOption.forEach((function(t){t.insertIndex&&(t.insertValue||0===t.insertValue)&&(e.totalOptionList[t.insertIndex-1]={value:t.insertValue,align:t.align||"right",showDecimal:t.showDecimal||!1,preserveNumber:null!=t.preserveNumber?t.preserveNumber:2,isHide:t.isHide||!1})})))},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.scheduleSyncHorizontalScroll()},e.prototype.resetStatus=function(){this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([])},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),t){if(e&&this.isSelectDisabled(t))return;this.mapOfCheckedId[t[this.selectField]]=e,e?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]]}var i=this.listOfDisplayData.filter((function(e){return!n.isSelectDisabled(e)}));this.isAllDisplayDataChecked=i.length>0&&i.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=i.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent&&this.selectEvent.emit(Object.values(this.mapOfCheckList))},e.prototype.checkAll=function(e){var t=this;this.listOfDisplayData.forEach((function(n){t.isSelectDisabled(n)||(e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e)})),this.refreshStatus()},e.prototype.isSelectDisabled=function(e){return!(!this.selectDisabledField||!e||!0!==e[this.selectDisabledField])},e.prototype.isInvalidRow=function(e){return!(!this.rowInvalidField||!e||!0!==e[this.rowInvalidField])},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-lines",template:'<ng-container>\n <hd-button-group *ngIf="showSearch">\n <ng-template #buttonGroupLeft>\n <nz-input-group [nzSuffix]="suffixIconSearch">\n <input type="text" nz-input (keyup.enter)="searchLines()" placeholder="请输入内容搜索" style="width: 300px;"\n [(ngModel)]="filterStr" />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <i nz-icon nzType="search" (click)="searchLines()"></i>\n </ng-template>\n </ng-template>\n </hd-button-group>\n\n <hd-space *ngIf="showSearch" background="transparent" type="row" size="16"></hd-space>\n\n <nz-table *ngIf="showTable" #hdTable class="hd-table-container"\n [class.hd-detail-lines--scroll-y]="!!(effectiveScroll && effectiveScroll.y)"\n [class.hd-detail-lines--scroll-x]="!!(effectiveScroll && effectiveScroll.x)"\n [class.hd-detail-lines--with-search]="showSearch"\n [nzScroll]="effectiveScroll" nzShowSizeChanger\n [nzFrontPagination]="hdFrontPagination" [nzShowQuickJumper]="hdFrontPagination" [nzShowTotal]="tableTotalTemplate"\n nzSize="middle" [nzData]="displayLines" [nzLoading]="tableLoading" [(nzPageSize)]="tablePageSize"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]"\n (nzCurrentPageDataChange)="showSelected ? currentPageDataChange($event) : null">\n <thead>\n <tr>\n <th *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox [(nzChecked)]="isAllDisplayDataChecked"\n [nzIndeterminate]="isIndeterminate" (nzCheckedChange)="checkAll($event)"></th>\n <ng-container *ngTemplateOutlet="detailLineHead"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf="!allowDrop;else allowDropTemplate">\n <tr *ngFor="let data of hdTable.data;index as i" [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: i}"></ng-container>\n </tr>\n \x3c!-- 合计区域 --\x3e\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #allowDropTemplate>\n <tbody cdkDropList (cdkDropListDropped)="drop($event)">\n <tr *ngFor="let data of hdTable.data;index as i" cdkDrag [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: i}"></ng-container>\n </tr>\n \x3c!-- 合计区域 --\x3e\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value\n === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </ng-template>\n <ng-template #tableTotalTemplate>\n 共 {{displayLines.length}} 条数据\n </ng-template>\n </nz-table>\n</ng-container>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-right-sticky{background:#f7f8fa!important;color:#868a9c!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a{color:#20b95d!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a:hover{color:#20bd62!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group .common-danger-btn:hover{color:#f05b24!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-table-cell-value>a,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td>a{color:#20b95d}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-billNumber>a{color:#3b77e3}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-status-text{color:#868a9c!important}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-body{max-height:calc(100vh - 280px)!important;overflow-y:auto!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y).hd-detail-lines--with-search ::ng-deep .ant-table-body{max-height:calc(100vh - 320px)!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-thead>tr>th{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:#fafafa}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-left-sticky,.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-right-sticky{z-index:4;background:#fafafa!important}.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-left-sticky,.hd-table-container.hd-detail-lines--scroll-x:not(.hd-detail-lines--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-right-sticky{z-index:3}.hd-table-container:not(.hd-detail-lines--scroll-y):not(.hd-detail-lines--scroll-x) ::ng-deep .ant-table-body{max-height:none!important;overflow-y:visible!important}"]}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e.propDecorators={nzTableComponent:[{type:t.ViewChild,args:["hdTable",{static:!1}]}],lines:[{type:t.Input}],showSelected:[{type:t.Input}],allowDrop:[{type:t.Input}],showSearch:[{type:t.Input}],searchFields:[{type:t.Input}],scroll:[{type:t.Input}],selectField:[{type:t.Input}],selectedField:[{type:t.Input}],selectDisabledField:[{type:t.Input}],rowInvalidField:[{type:t.Input}],selectEvent:[{type:t.Output}],detailLineHead:[{type:t.ContentChild,args:["detailLineHead",{static:!1}]}],detailLineBody:[{type:t.ContentChild,args:["detailLineBody",{static:!1}]}],showTotal:[{type:t.Input}],totalOption:[{type:t.Input}],columnsNumber:[{type:t.Input}],hdFrontPagination:[{type:t.Input}],tablePageSize:[{type:t.Input}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"allowDrop",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSearch",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTotal",void 0),e}();var oe=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,l.NzTableModule,a.DragDropModule,i.FormsModule,o.NgZorroAntdModule,H,F,L],declarations:[ie],exports:[ie],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),ae=function(){function e(e){this.cdr=e,this.lines=[],this.tableData=new j,this.showSelected=!1,this.allowDrop=!1,this.virtualScroll=!0,this.scroll={x:"1px"},this.tableScroll=null,this.selectField="billNumber",this.selectEvent=new t.EventEmitter,this.showTotal=!1,this.totalOption=[],this.columnsNumber=0,this.tableLoading=!1,this.tablePageIndex=1,this.tablePageSize=100,this.tablePageIndexChange=new t.EventEmitter,this.tablePageSizeChange=new t.EventEmitter,this.pageChange=new t.EventEmitter,this.totalOptionList=[],this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.isCrossPageSelectLocal=!1,this.showTable=!0,this.measuredVirtualItemSize=47,this.virtualScrollActive=null,this.unbindBodyScroll=null,this.virtualTrackByRow=function(e){return e}}return Object.defineProperty(e.prototype,"effectiveScroll",{get:function(){return null!=this.scroll?this.scroll:this.tableScroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"effectiveVirtualItemSize",{get:function(){return null!=this.virtualItemSize&&this.virtualItemSize>0?this.virtualItemSize:this.measuredVirtualItemSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needsVerticalScroll",{get:function(){var e=this.displayLines?this.displayLines.length:0;if(e<=0)return!1;var t=this.effectiveScroll;if(t&&t.y)return e>20;var n=e*this.effectiveVirtualItemSize;return"undefined"!=typeof window?n>window.innerHeight-200:e>100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useVirtualScroll",{get:function(){return!(!this.virtualScroll||this.allowDrop)&&this.needsVerticalScroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resolvedScroll",{get:function(){var e=this.effectiveScroll?x({},this.effectiveScroll):{};return this.useVirtualScroll&&!e.y&&(e.y=this.getAutoScrollY()),e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!0===this.isCrossPageSelect&&(this.isCrossPageSelectLocal=this.isCrossPageSelect),this.countSelected(),this.calculateTotal()},e.prototype.ngAfterViewInit=function(){this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!0)},e.prototype.ngOnDestroy=function(){this.unbindHeaderBodyScrollSync()},e.prototype.ngOnChanges=function(e){if(e&&e.tableData&&e.tableData.currentValue&&e.tableData.previousValue){if(e.tableData.currentValue.pageSize!==e.tableData.previousValue.pageSize||e.tableData.currentValue.pageNumber!==e.tableData.previousValue.pageNumber)return this.countSelected(),this.calculateTotal(),void this.applyTableScrollMode(!1);this.isCrossPageSelectLocal||this.resetStatus()}this.countSelected(),this.calculateTotal(),(e.lines||e.tableData||e.showSelected||e.scroll||e.virtualScroll||e.allowDrop)&&(this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!1))},e.prototype.applyTableScrollMode=function(e){var t=this;void 0===e&&(e=!1);var n=this.useVirtualScroll,i=null!==this.virtualScrollActive&&this.virtualScrollActive!==n;if(this.virtualScrollActive=n,e||i)return this.unbindHeaderBodyScrollSync(),void setTimeout((function(){t.showTable=!1,t.cdr.markForCheck(),setTimeout((function(){t.showTable=!0,t.cdr.markForCheck(),setTimeout((function(){t.afterTableRender(n)}))}))}));this.cdr.markForCheck(),this.afterTableRender(n)},e.prototype.afterTableRender=function(e){this.scheduleSyncHorizontalScroll(),this.bindHeaderBodyScrollSync(0),e&&this.refreshVirtualScrollViewport(!0)},e.prototype.refreshVirtualScrollViewport=function(e){var t=this;void 0===e&&(e=!1),this.useVirtualScroll?setTimeout((function(){t.measureVirtualItemSize(e);var n=t.nzTableComponent&&t.nzTableComponent.cdkVirtualScrollViewport;n&&n.checkViewportSize(),t.bindHeaderBodyScrollSync(0),t.cdr.markForCheck()})):this.bindHeaderBodyScrollSync(0)},e.prototype.measureVirtualItemSize=function(e){if(void 0===e&&(e=!1),!(null!=this.virtualItemSize&&this.virtualItemSize>0)||e){var t=this.nzTableComponent&&this.nzTableComponent.cdkVirtualScrollViewport;if(t&&t.elementRef&&t.elementRef.nativeElement){var n=t.elementRef.nativeElement.querySelector("tr.hd-detail-lines-page-virtual-row");n&&n.offsetHeight>0&&(this.measuredVirtualItemSize=n.offsetHeight)}}},e.prototype.scheduleSyncHorizontalScroll=function(e){var t=this;void 0===e&&(e=0),setTimeout((function(){null==t.scroll&&t.syncHorizontalScroll(),t.bindHeaderBodyScrollSync(0);var n=t.resolvedScroll&&t.resolvedScroll.x||t.tableScroll&&t.tableScroll.x;null==t.scroll&&e<5&&t.displayLines&&t.displayLines.length>0&&!n&&0===X(t.nzTableComponent)&&t.scheduleSyncHorizontalScroll(e+1)}),0===e?0:50)},e.prototype.getAutoScrollY=function(){return"calc(100vh - 280px)"},e.prototype.syncHorizontalScroll=function(){if(null==this.scroll){var e=!(!this.displayLines||!this.displayLines.length),t=ee(this.nzTableComponent,e),n=t?t.x:null,i=this.useVirtualScroll?this.getAutoScrollY():null,o=!(!this.tableScroll||!this.tableScroll.y),a=!!i;this.tableScroll&&this.tableScroll.x===n&&this.tableScroll.y===i||(this.tableScroll=n||i?i?{x:n,y:i}:{x:n}:null,o===a?(this.cdr.markForCheck(),this.bindHeaderBodyScrollSync(0)):this.applyTableScrollMode(!0))}},e.prototype.bindHeaderBodyScrollSync=function(e){var t=this;if(void 0===e&&(e=0),this.unbindHeaderBodyScrollSync(),this.nzTableComponent&&this.resolvedScroll&&this.resolvedScroll.x){var n=ne(this.nzTableComponent);n?this.unbindBodyScroll=n:e<8&&setTimeout((function(){return t.bindHeaderBodyScrollSync(e+1)}),50)}},e.prototype.unbindHeaderBodyScrollSync=function(){this.unbindBodyScroll&&(this.unbindBodyScroll(),this.unbindBodyScroll=null)},Object.defineProperty(e.prototype,"displayLines",{get:function(){return this.lines&&this.lines.length?this.lines:this.tableData&&this.tableData.content||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalCount",{get:function(){return this.tableData&&null!=this.tableData.totalElements?this.tableData.totalElements:this.displayLines.length},enumerable:!0,configurable:!0}),e.prototype.getRowIndex=function(e){return(this.tablePageIndex-1)*this.tablePageSize+e},e.prototype.onPageIndexChange=function(e){this.tablePageIndex=e,this.tablePageIndexChange.emit(this.tablePageIndex),this.pageChange.emit(),this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!1)},e.prototype.onPageSizeChange=function(e){this.tablePageSize=e,this.tablePageIndex=1,this.tablePageSizeChange.emit(this.tablePageSize),this.tablePageIndexChange.emit(this.tablePageIndex),this.pageChange.emit(),this.scheduleSyncHorizontalScroll(),this.applyTableScrollMode(!0)},e.prototype.countSelected=function(){var e=this;this.showSelected&&this.selectedField&&this.displayLines&&this.displayLines.length&&(this.displayLines.forEach((function(t){!0!==t[e.selectedField]||e.isSelectDisabled(t)||(e.mapOfCheckedId[t[e.selectField]]=!0,e.mapOfCheckList[t[e.selectField]]=t)})),this.displayLines.length===Object.keys(this.mapOfCheckList).length&&(this.isAllDisplayDataChecked=!0,this.isIndeterminate=!0))},Object.defineProperty(e.prototype,"LodashRound",{get:function(){return r.round},enumerable:!0,configurable:!0}),e.prototype.drop=function(e){var t=C(this.displayLines);a.moveItemInArray(t,e.previousIndex,e.currentIndex),this.lines=t},e.prototype.calculateTotal=function(){var e=this;this.showTotal&&this.displayLines&&this.displayLines.length&&(this.totalOptionList=new Array(Number(this.columnsNumber)-1).fill(""),this.totalOption.forEach((function(t){t.insertIndex&&(t.insertValue||0===t.insertValue)&&(e.totalOptionList[t.insertIndex-1]={value:t.insertValue,align:t.align||"right",showDecimal:t.showDecimal||!1,preserveNumber:null!=t.preserveNumber?t.preserveNumber:2,isHide:t.isHide||!1})})))},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.isCrossPageSelectLocal||this.resetStatus(),this.scheduleSyncHorizontalScroll()},e.prototype.resetStatus=function(){this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([])},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),t){if(e&&this.isSelectDisabled(t))return;this.mapOfCheckedId[t[this.selectField]]=e,e?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]]}var i=((this.listOfDisplayData&&this.listOfDisplayData.length?this.listOfDisplayData:this.displayLines)||[]).filter((function(e){return!n.isSelectDisabled(e)}));this.isAllDisplayDataChecked=i.length>0&&i.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=i.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent&&this.selectEvent.emit(Object.values(this.mapOfCheckList))},e.prototype.checkAll=function(e){var t=this;((this.listOfDisplayData&&this.listOfDisplayData.length?this.listOfDisplayData:this.displayLines)||[]).forEach((function(n){t.isSelectDisabled(n)||(e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e)})),this.refreshStatus()},e.prototype.isSelectDisabled=function(e){return!(!this.selectDisabledField||!e||!0!==e[this.selectDisabledField])},e.prototype.isInvalidRow=function(e){return!(!this.rowInvalidField||!e||!0!==e[this.rowInvalidField])},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-lines-page",template:'<ng-container>\n <nz-table\n *ngIf="showTable"\n #hdTable\n class="hd-table-container"\n [class.hd-detail-lines-page--virtual]="useVirtualScroll"\n [class.hd-detail-lines-page--scroll-y]="!!(resolvedScroll && resolvedScroll.y)"\n [class.hd-detail-lines-page--scroll-x]="!!(resolvedScroll && resolvedScroll.x)"\n [nzScroll]="resolvedScroll"\n nzShowSizeChanger\n nzShowQuickJumper\n nzFrontPagination="false"\n nzSize="middle"\n [nzData]="displayLines"\n [nzTotal]="totalCount"\n [(nzPageIndex)]="tablePageIndex"\n [(nzPageSize)]="tablePageSize"\n [nzLoading]="tableLoading"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]"\n (nzPageIndexChange)="onPageIndexChange($event)"\n (nzPageSizeChange)="onPageSizeChange($event)"\n [nzShowTotal]="tableTotalTemplate"\n (nzCurrentPageDataChange)="showSelected ? currentPageDataChange($event) : null"\n [nzVirtualScroll]="useVirtualScroll"\n [nzVirtualItemSize]="useVirtualScroll ? effectiveVirtualItemSize : 0"\n [nzVirtualForTrackBy]="virtualTrackByRow"\n >\n <thead>\n <tr>\n <th *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox [(nzChecked)]="isAllDisplayDataChecked"\n [nzIndeterminate]="isIndeterminate" (nzCheckedChange)="checkAll($event)"></th>\n <ng-container *ngTemplateOutlet="detailLineHead"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf="!allowDrop;else allowDropTemplate">\n <ng-template *ngIf="useVirtualScroll" nz-virtual-scroll let-data let-index="index">\n <tr class="hd-detail-lines-page-virtual-row" [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container\n *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: getRowIndex(index)}"></ng-container>\n </tr>\n </ng-template>\n <ng-container *ngIf="!useVirtualScroll">\n <tr *ngFor="let data of hdTable.data;index as i" [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container\n *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: getRowIndex(i)}"></ng-container>\n </tr>\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n <tfoot *ngIf="useVirtualScroll && showTotal">\n <tr class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tfoot>\n <ng-template #allowDropTemplate>\n <tbody cdkDropList (cdkDropListDropped)="drop($event)">\n <tr *ngFor="let data of hdTable.data;index as i" cdkDrag [class.hd-table-row-invalid]="isInvalidRow(data)">\n <td *ngIf="showSelected" nzWidth="40px" nzLeft="0px" nzShowCheckbox\n [nzChecked]="mapOfCheckedId[data[selectField]]" [nzDisabled]="isSelectDisabled(data)"\n (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container\n *ngTemplateOutlet="detailLineBody;context:{$implicit: data, index: getRowIndex(i)}"></ng-container>\n </tr>\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showSelected"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td *ngIf="!totalOption.isHide" [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value\n === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </ng-template>\n <ng-template #tableTotalTemplate>\n 共 {{totalCount}} 条数据\n </ng-template>\n </nz-table>\n</ng-container>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-right-sticky{background:#f7f8fa!important;color:#868a9c!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a{color:#20b95d!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a:hover{color:#20bd62!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group .common-danger-btn:hover{color:#f05b24!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-table-cell-value>a,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td>a{color:#20b95d}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-billNumber>a{color:#3b77e3}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-status-text{color:#868a9c!important}.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-detail-lines-page-virtual-row>td{box-sizing:border-box}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-body{max-height:calc(100vh - 280px)!important;overflow-y:auto!important}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-thead>tr>th{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:#fafafa}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-left-sticky,.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-thead>tr>th.ant-table-th-right-sticky{z-index:4;background:#fafafa!important}.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-left-sticky,.hd-table-container.hd-detail-lines-page--scroll-x:not(.hd-detail-lines-page--scroll-y) ::ng-deep .ant-table-tbody>tr>td.ant-table-td-right-sticky{z-index:3}.hd-table-container:not(.hd-detail-lines-page--scroll-y):not(.hd-detail-lines-page--scroll-x) ::ng-deep .ant-table-body{max-height:none!important;overflow-y:visible!important}"]}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e.propDecorators={nzTableComponent:[{type:t.ViewChild,args:["hdTable",{static:!1}]}],lines:[{type:t.Input}],tableData:[{type:t.Input}],showSelected:[{type:t.Input}],allowDrop:[{type:t.Input}],virtualScroll:[{type:t.Input}],virtualItemSize:[{type:t.Input}],scroll:[{type:t.Input}],selectField:[{type:t.Input}],selectedField:[{type:t.Input}],selectDisabledField:[{type:t.Input}],rowInvalidField:[{type:t.Input}],isCrossPageSelect:[{type:t.Input}],selectEvent:[{type:t.Output}],detailLineHead:[{type:t.ContentChild,args:["detailLineHead",{static:!1}]}],detailLineBody:[{type:t.ContentChild,args:["detailLineBody",{static:!1}]}],showTotal:[{type:t.Input}],totalOption:[{type:t.Input}],columnsNumber:[{type:t.Input}],tableLoading:[{type:t.Input}],tablePageIndex:[{type:t.Input}],tablePageSize:[{type:t.Input}],tablePageIndexChange:[{type:t.Output}],tablePageSizeChange:[{type:t.Output}],pageChange:[{type:t.Output}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"allowDrop",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"virtualScroll",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTotal",void 0),e}();var le=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,l.NzTableModule,a.DragDropModule],declarations:[ae],exports:[ae],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),re={"#FAB13B":["partshipped","partShipped","committed","COMMITTED","partValid","confirm","picking","prepareSubmitted","prepareConfirmed","receiving","shipping","delivering","approving","tendering","forPick","forPickup","forMove","forLoss","forMachiningTask","forReturn","forTransfer","forWholesale","outTransit","unconfirmedPrice","reSubmitted","submit","firstReview","Locked","beingUsed","transferLock","agvTransferLock","suspend","collected","merged","planCared","toBeConfirm","toBePaid","UNRECEIVED","开票中","红冲开票中","待生效","对账中","可付款","可对账"],"#9FA4A2":["initial","INITIAL","INIT","uncommitted","OFF_LINE","UN_PRINTED","unpublish","pastpublish","TO_COMMIT","unpublished","UNPUBLISHED","未审核","returned","saved","SAVED","unaudited","UN_AUDIT","unlock","free","unKnow","noSign","NOT_INVOICED","notConfirm","unshipped","unPlanCar","UNREAD","UNSEND","未提交","未确认","已保存","未对账","未登记","未付款"],"#F5222D":["delete","deleted","DELETED","abort","ABORTED","aborted","rejected","REJECTED","停用","禁用","已停用","unpicked","AUDIT_REJECT","invalid","INVALID","disabled","DISABLED","","canceled","cancelled","BLANK_OUT","complaintRejected","prepareRejected","returnedBeforeAudit","RETURNED_BEFORE_AUDIT","returnedBeforeConfirm","handleReturned","TAKE_DOWN","expired","paidFailed","submitFailed","exception","已作废","已删除","已失效"],"#3B77E3":["audited","adjusted","invoiced","INVOICED","audit","submitted","SUBMITTED","TO_AUDIT","已审核","处理中","processing","firstReviewed","awaiting_effective","AWAITING_EFFECTIVE","checking","reviewed","running","SENT","uploaded","snapped","handling","已提交","已初审","已复审","已分配","已生成费用单"],"#20B95D":["shipped","SHIPPED","received","RECEIVED","checked","using","USING","reverse","valid","approved","ON_LINE","finished","FINISHED","finish","opened","PRINTED","启用","picked","published","PUBLISHED","AUDITED","已收票","付款完成","收款完成","已收款","accepted","offered","confirmed","effective","EFFECTIVE","已发布","paid","successful","READ","signed","ON_SALE","enabled","entrucked","normal","statemented","已付款","已核销","已开票","已完成","已确认","已红冲","已结束","已发货","已收货","生效中","已对账","已登记"],"#F05B24":["partialReceived","partDelete","tender","MODIFIED_AFTER_PRINTED","部分付款","部分收款","partPublished","partOffered","partInvoiced","partStatemented","部分核销","willExpired","supplierConfirmed"]},se=(function(){function e(){}e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"})}(),function(){function e(){this.tip="详情"}return e.prototype.ngOnInit=function(){this.setStatusColor()},e.prototype.ngOnChanges=function(){this.setStatusColor()},e.prototype.setStatusColor=function(){var e="";for(var t in re)!this.state||-1===re[t].indexOf(this.state)&&-1===re[t].indexOf(this.state.toUpperCase())&&-1===re[t].indexOf(this.state.toLowerCase())||(e=t);this.statusColor=e||"#9FA4A2"},e.decorators=[{type:t.Component,args:[{selector:"hd-detail-tip",template:'<nz-content class="hd-detail-tip-container">\n <div *ngIf="stateText" class="hd-detail-tip-state" [ngStyle]="{\'background\': statusColor || \'#9FA4A2\'}">{{stateText}}\n </div>\n <div class="hd-detail-tip-billNumber">{{billNumber}}</div>\n <div *ngIf="tip" class="hd-detail-tip-name"> / {{tip}}</div>\n</nz-content>',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-detail-tip-container{display:flex;align-items:center}.hd-detail-tip-container .hd-detail-tip-state{padding:2px 6px;border-radius:2px;font-size:14px;font-weight:500;color:#fff;margin-right:8px}.hd-detail-tip-container .hd-detail-tip-billNumber{font-size:16px;font-weight:500;color:#2a3634}.hd-detail-tip-container .hd-detail-tip-name{font-size:14px;font-weight:500;color:#5d7267}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={state:[{type:t.Input}],stateText:[{type:t.Input}],billNumber:[{type:t.Input}],tip:[{type:t.Input}]},e}());var de=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.NgZorroAntdModule],declarations:[se],exports:[se]}]}],e}(),ce=function(){this.value=null,this.inputNumber=new J,this.showTime=!1,this.require=!1};var pe={Input:0,Select:1,Date:2,DateRange:3,MultipleSelect:4,Cascader:5,Month:6,InputNumber:7};pe[pe.Input]="Input",pe[pe.Select]="Select",pe[pe.Date]="Date",pe[pe.DateRange]="DateRange",pe[pe.MultipleSelect]="MultipleSelect",pe[pe.Cascader]="Cascader",pe[pe.Month]="Month",pe[pe.InputNumber]="InputNumber";var he=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),me=function(){this.require=!1,this.width=1,this.hide=!1,this.totalWidth=0,this.isRowFirst=0,this.value=null,this.inputNumber=new J,this.hdShowToday=!0,this.showTime=!1};var ge=function(){};var ue={Input:0,Select:1,Date:2,DateRange:3,TextArea:4,InputNumber:5,MultipleSelect:6,ViewDom:7,Switch:8,Time:9,Cascader:10,Radio:11,Checkbox:12,RegionAddress:13};ue[ue.Input]="Input",ue[ue.Select]="Select",ue[ue.Date]="Date",ue[ue.DateRange]="DateRange",ue[ue.TextArea]="TextArea",ue[ue.InputNumber]="InputNumber",ue[ue.MultipleSelect]="MultipleSelect",ue[ue.ViewDom]="ViewDom",ue[ue.Switch]="Switch",ue[ue.Time]="Time",ue[ue.Cascader]="Cascader",ue[ue.Radio]="Radio",ue[ue.Checkbox]="Checkbox",ue[ue.RegionAddress]="RegionAddress";var fe=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}();function be(e,t,n){if(void 0===n&&(n="pinyin"),!e)return!0;var i=e.trim().toLowerCase();return t.some((function(e){var t=null!=e.label?String(e.label).toLowerCase():"",o=null!=e.value?String(e.value).toLowerCase():"",a=null!=e[n]?String(e[n]).toLowerCase():"";return t&&-1!==t.indexOf(i)||o&&-1!==o.indexOf(i)||a&&-1!==a.indexOf(i)}))}function ye(e){if(!e)return!0;if(!1===e.showSearch)return!1;if(e.showSearch&&"object"==typeof e.showSearch)return e.showSearch;var t=e.pinyinField||"pinyin";return{filter:function(e,n){return be(e,n,t)}}}function ve(e){var t=e&&e.menuClassName?String(e.menuClassName).trim():"";return t?-1!==t.indexOf("hd-cascader-menus")?t:"hd-cascader-menus "+t:"hd-cascader-menus"}function xe(e){if(!e)return null;var t={};if(e.menuStyle&&Object.keys(e.menuStyle).forEach((function(n){t[n]=e.menuStyle[n]})),null!=e.dropdownMinWidth){var n="number"==typeof e.dropdownMinWidth?e.dropdownMinWidth+"px":String(e.dropdownMinWidth);null==t["--hd-cascader-menu-min-width"]&&(t["--hd-cascader-menu-min-width"]=n)}return Object.keys(t).length?t:null}var we=function(){};var Ie=function(){};var Se=new t.InjectionToken("HD_FILTER_SCHEME_STORE"),ze=function(){function e(e,n){var i=this;this.fb=e,this.schemeStore=n,this.enableFilterScheme=!1,this.searchEvent=new t.EventEmitter,this.resetEvent=new t.EventEmitter,this.isShowMore=!0,this.filterListModular=0,this.searchSubject=new d.Subject,this.debounceTimeout=0,this.defaultFilterValues={},this.defaultValuesCaptured=!1,this.schemeList=[],this.currentScheme=null,this.currentSchemeName="默认条件",this.schemeLoading=!1,this.schemeSaving=!1,this.switchModalVisible=!1,this.switchFormList=[],this.saveAsModalVisible=!1,this.saveAsFormList=[],this.defaultSchemeName="默认条件",this.switchDefaultKey="__DEFAULT__",this.getCascaderShowSearch=ye,this.getCascaderMenuClassName=ve,this.getCascaderMenuStyle=xe,this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,o=e.selectOption;return i.triggerEvent(t,n,o)}))}return e.prototype.ngOnInit=function(){this.init(),this.tryLoadSchemes(!0)},e.prototype.ngOnChanges=function(e){e.filterList&&this.init(),(e.enableFilterScheme||e.filterSchemeKey)&&this.tryLoadSchemes(!0)},e.prototype.ngOnDestroy=function(){this.searchSubscription&&this.searchSubscription.unsubscribe(),this.schemeLoadSub&&this.schemeLoadSub.unsubscribe(),this.schemeActionSub&&this.schemeActionSub.unsubscribe()},Object.defineProperty(e.prototype,"canUseScheme",{get:function(){return!!(this.enableFilterScheme&&this.filterSchemeKey&&this.schemeStore)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;if(this.isShowMore=!0,!this.checkList(this.filterList))throw"filter组件数据格式不规范";this.filterList||(this.filterList=[]),this.filterListModular=this.filterList.length%4;var t={};this.filterList.forEach((function(n,i){t[n.name]=e.fb.control(n.value,[]),n.show=i<7})),this.validateFilterForm=this.fb.group(t),this.defaultValuesCaptured||(this.defaultFilterValues=this.clonePlain(this.getFilterData()),this.defaultValuesCaptured=!0),this.filterList.forEach((function(t){t.onChangeEvent&&(t.onChangeEventDebounceTime?e.validateFilterForm.get(t.name).valueChanges.pipe(c.debounceTime(t.onChangeEventDebounceTime)).subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)})):e.validateFilterForm.get(t.name).valueChanges.subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)})))}))},e.prototype.onSearchEvent=function(e,t,n,i){var o=this;n?(this.debounceTimeout=n,this.searchSubscription&&this.searchSubscription.unsubscribe(),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.selectOption;return o.triggerEvent(t,n,i)})),this.searchSubject.next({fn:e,event:t,selectOption:i})):this.triggerEvent(e,t,i)},e.prototype.triggerEvent=function(e,t,n){if(e&&n)e(t,n);else{if(!e)return;e(t)}},e.prototype.computeOffset=function(){return 4===this.filterList.length?18:this.isShowMore?0===this.filterListModular||this.filterList.length>7?0:6*(3-this.filterListModular):0===this.filterListModular?18:6*(3-this.filterListModular)},e.prototype.checkList=function(e){if(!e||e&&0===e.length)return!0;var t=[];if(e.forEach((function(e){t.push(e.name)})),C(new Set(t)).length!==e.length)throw"filter组件数据格式不规范,存在重复name值!";return!0},e.prototype.submitForm=function(){this.searchEvent.emit(this.validateFilterForm.getRawValue())},e.prototype.resetForm=function(){this.resetFilterFormWithValue(),this.resetEvent.observers.length>0?this.resetEvent.emit(this.validateFilterForm.getRawValue()):this.searchEvent.emit(this.validateFilterForm.getRawValue())},e.prototype.resetFilterFormWithValue=function(){var e={};this.filterList.forEach((function(t){e[t.name]=t.value})),this.validateFilterForm.patchValue(e)},e.prototype.getFilterData=function(){return this.validateFilterForm.getRawValue()},e.prototype.showMore=function(){var e=this;this.isShowMore=!this.isShowMore,this.filterList.forEach((function(t,n){t.show=!e.isShowMore||n<7}))},e.prototype.inputClean=function(e){var t={};t[e.name]=null,this.validateFilterForm.patchValue(t)},e.prototype.isAllowClear=function(e){return!e||(null!=e.hdAllowClear?!!e.hdAllowClear:!e.selectOption||null==e.selectOption.hdAllowClear||!!e.selectOption.hdAllowClear)},e.prototype.tryLoadSchemes=function(e){var t=this;if(!this.canUseScheme)return this.schemeList=[],this.currentScheme=null,void(this.currentSchemeName="默认条件");this.schemeLoading=!0,this.schemeLoadSub&&this.schemeLoadSub.unsubscribe(),this.schemeLoadSub=this.schemeStore.queryByFilterKey(this.filterSchemeKey).subscribe((function(n){if(t.schemeLoading=!1,t.schemeList=n||[],e)t.applySchemeByName("默认条件",!0);else if(t.currentScheme&&t.currentScheme.uuid){var i=t.schemeList.find((function(e){return e.uuid===t.currentScheme.uuid}));t.currentScheme=i||null,t.currentSchemeName=i?i.templateName:"默认条件"}}),(function(n){t.schemeLoading=!1,t.showError("加载筛选模版失败:"+(n||"")),e&&t.applySchemeByName("默认条件",!0)}))},e.prototype.getDisplaySchemeList=function(){var e=[],t=this.schemeList.find((function(e){return"默认条件"===e.templateName}));return t?e.push(t):e.push({filterKey:this.filterSchemeKey,templateName:"默认条件",filterValue:JSON.stringify(this.defaultFilterValues||{})}),(this.schemeList||[]).forEach((function(t){"默认条件"!==t.templateName&&e.push(t)})),e},e.prototype.openSwitchModal=function(){if(this.canUseScheme){var e=this.currentScheme||{filterKey:this.filterSchemeKey,templateName:this.currentSchemeName||"默认条件",filterValue:""};this.buildSwitchFormList(this.getSwitchOptionKey(e)),this.switchModalVisible=!0}},e.prototype.closeSwitchModal=function(){this.switchModalVisible=!1},e.prototype.switchFormChangeEvent=function(e){this.switchValidateForm=e},e.prototype.getSwitchOptionKey=function(e){return e&&e.uuid?e.uuid:this.switchDefaultKey},e.prototype.buildSwitchFormList=function(e){var t=this,n=this.getDisplaySchemeList().map((function(e){return{value:t.getSwitchOptionKey(e),label:e.templateName}}));this.switchFormList=[{type:ue.Select,label:"筛选组",name:"schemeKey",require:!0,width:4,value:e,placeholder:"请选择筛选组",selectOption:{value:"value",label:"label",hdShowSearch:!0,selectList:n}}]},e.prototype.confirmSwitch=function(){if(!this.switchValidateForm||!this.switchValidateForm.valid)return this.showError("请选择筛选组"),!1;var e=this.switchValidateForm.getRawValue().schemeKey;if(null==e||""===e)return this.showError("请选择筛选组"),!1;var t=this.getDisplaySchemeList(),n=null;return(n=e===this.switchDefaultKey?t.find((function(e){return"默认条件"===e.templateName&&!e.uuid}))||t.find((function(e){return"默认条件"===e.templateName})):t.find((function(t){return t.uuid===e})))?(this.applyScheme(n,!0),this.switchModalVisible=!1,!0):(this.showError("请选择筛选组"),!1)},e.prototype.isDefaultScheme=function(e){return!(!e||"默认条件"!==e.templateName)},e.prototype.canDeleteCurrent=function(){return!(!this.currentScheme||!this.currentScheme.uuid||"默认条件"===this.currentScheme.templateName)},e.prototype.saveCurrentScheme=function(){var e=this;if(this.canUseScheme){var t=this.currentSchemeName||"默认条件",n={uuid:this.currentScheme&&this.currentScheme.uuid?this.currentScheme.uuid:null,filterKey:this.filterSchemeKey,templateName:t,filterValue:this.serializeFilterValue()};this.schemeSaving=!0,this.schemeActionSub&&this.schemeActionSub.unsubscribe(),this.schemeActionSub=this.schemeStore.save(n).subscribe((function(t){e.schemeSaving=!1,e.showSuccess("保存成功"),e.currentScheme=t,e.currentSchemeName=t.templateName,e.refreshSchemeListKeepCurrent()}),(function(t){e.schemeSaving=!1,e.showError("保存失败:"+(t||""))}))}},e.prototype.openSaveAsModal=function(){this.buildSaveAsFormList(),this.saveAsModalVisible=!0},e.prototype.closeSaveAsModal=function(){this.saveAsModalVisible=!1},e.prototype.saveAsFormChangeEvent=function(e){this.saveAsValidateForm=e},e.prototype.buildSaveAsFormList=function(){this.saveAsFormList=[{type:ue.Input,label:"筛选组名称",name:"templateName",require:!0,width:4,maxLength:50,value:null,placeholder:"请输入筛选组名称"}]},e.prototype.confirmSaveAs=function(){var e=this;if(!this.saveAsValidateForm||!this.saveAsValidateForm.valid)return this.showError("请输入筛选组名称"),!1;var t=(this.saveAsValidateForm.getRawValue().templateName||"").trim();if(!t)return this.showError("请输入筛选组名称"),!1;if("默认条件"===t)return this.showError("不能使用「默认条件」作为筛选组名称,请使用「保存为当前」覆盖默认条件"),!1;if((this.schemeList||[]).some((function(e){return e.templateName===t})))return this.showError("筛选组名称已存在"),!1;var n={filterKey:this.filterSchemeKey,templateName:t,filterValue:this.serializeFilterValue()};return this.schemeSaving=!0,this.schemeActionSub&&this.schemeActionSub.unsubscribe(),this.schemeActionSub=this.schemeStore.save(n).subscribe((function(t){e.schemeSaving=!1,e.saveAsModalVisible=!1,e.showSuccess("另存为成功"),e.currentScheme=t,e.currentSchemeName=t.templateName,e.refreshSchemeListKeepCurrent()}),(function(t){e.schemeSaving=!1,e.showError("另存为失败:"+(t||""))})),!1},e.prototype.deleteCurrentScheme=function(){var e=this;if(this.canDeleteCurrent()){var t=this.currentScheme.uuid;this.schemeSaving=!0,this.schemeActionSub&&this.schemeActionSub.unsubscribe(),this.schemeActionSub=this.schemeStore.delete(t).subscribe((function(){e.schemeSaving=!1,e.showSuccess("删除成功"),e.schemeList=(e.schemeList||[]).filter((function(e){return e.uuid!==t})),e.applySchemeByName("默认条件",!0)}),(function(t){e.schemeSaving=!1,e.showError("删除失败:"+(t||""))}))}},e.prototype.refreshSchemeListKeepCurrent=function(){var e=this;this.canUseScheme&&this.schemeStore.queryByFilterKey(this.filterSchemeKey).subscribe((function(t){if(e.schemeList=t||[],e.currentScheme&&e.currentScheme.uuid){var n=e.schemeList.find((function(t){return t.uuid===e.currentScheme.uuid}));n&&(e.currentScheme=n,e.currentSchemeName=n.templateName)}}),(function(){}))},e.prototype.applySchemeByName=function(e,t){var n=this.getDisplaySchemeList().find((function(t){return t.templateName===e}));n&&this.applyScheme(n,t)},e.prototype.applyScheme=function(e,t){this.currentScheme=e&&e.uuid?e:{filterKey:this.filterSchemeKey,templateName:e?e.templateName:"默认条件",filterValue:e?e.filterValue:JSON.stringify(this.defaultFilterValues||{})},this.currentSchemeName=this.currentScheme.templateName||"默认条件";var n={};if("默认条件"!==this.currentSchemeName||e&&e.uuid){try{n=JSON.parse(e.filterValue||"{}")}catch(e){n={}}"默认条件"===this.currentSchemeName&&(n=Object.assign({},this.defaultFilterValues||{},n||{}))}else n=this.clonePlain(this.defaultFilterValues||{});this.patchFilterValues(n),t&&this.submitForm()},e.prototype.serializeFilterValue=function(){return JSON.stringify(this.getFilterData()||{})},e.prototype.patchFilterValues=function(e){var t=this;if(this.validateFilterForm&&this.filterList){var n={};this.filterList.forEach((function(i){e&&Object.prototype.hasOwnProperty.call(e,i.name)&&(n[i.name]=t.reviveFilterValue(i,e[i.name]))})),this.validateFilterForm.patchValue(n)}},e.prototype.reviveFilterValue=function(e,t){var n=this;return null==t?t:e.type===pe.DateRange?Array.isArray(t)?t.map((function(e){return n.parseDateLike(e)})):t:e.type===pe.Date||e.type===pe.Month?this.parseDateLike(t):t},e.prototype.parseDateLike=function(e){if(null==e||e instanceof Date)return e;if("string"==typeof e&&/^\d{4}-\d{2}-\d{2}/.test(e)){var t=new Date(e);return isNaN(t.getTime())?e:t}if("number"==typeof e){t=new Date(e);return isNaN(t.getTime())?e:t}return e},e.prototype.clonePlain=function(e){try{return JSON.parse(JSON.stringify(null==e?{}:e))}catch(e){return{}}},e.prototype.showSuccess=function(e){"undefined"!=typeof window&&window.hdMessageService&&window.hdMessageService.prototype.success(e)},e.prototype.showError=function(e){"undefined"!=typeof window&&window.hdMessageService?window.hdMessageService.prototype.error(e):console.error(e)},e.decorators=[{type:t.Component,args:[{selector:"hd-filter",template:'<form nz-form [formGroup]="validateFilterForm" class="ant-advanced-search-form hd-filter-container">\n \x3c!-- 整体结构 --\x3e\n <div nz-row [nzGutter]="24">\n \x3c!-- 对组件列表循环处理 --\x3e\n <ng-container *ngFor="let filter of filterList">\n <div nz-col [nzSpan]="6" [hidden]="!filter.show">\n <nz-form-item nzFlex>\n <nz-form-label class="hd-filter-label" [nzNoColon]="true"><span class="hd-red" *ngIf="filter.require">*</span>{{ filter.label }}\n </nz-form-label>\n <nz-form-control class="hd-filter-control">\n <ng-container [ngSwitch]="filter.type">\n \x3c!-- 这里数字对应枚举类型,可在hd-filter.service.ts文件中查看对应关系 --\x3e\n <ng-container *ngSwitchCase="0">\n <nz-input-group [nzSuffix]="inputCleanTemplate">\n <input nz-input [placeholder]="filter.placeholder ? filter.placeholder : \'请输入\' + filter.label"\n [formControlName]="filter.name"\n (blur)="triggerEvent(filter.onBlurEvent || null, validateFilterForm.get(filter.name).value)"/>\n </nz-input-group>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill"\n nzType="close-circle" *ngIf="isAllowClear(filter) && validateFilterForm.get(filter.name).value"\n (click)="inputClean(filter)"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="1">\n <nz-select\n [nzShowSearch]="filter.selectOption.hdShowSearch != null ? filter.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(filter)"\n [nzServerSearch]="filter.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="filter.selectOption.hdDropdownMatchSelectWidth ? filter.selectOption.hdDropdownMatchSelectWidth : false"\n (nzOnSearch)="onSearchEvent(filter.onSearchEvent || null, $event, filter.onSearchEventEventDebounceTime, filter.selectOption)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name">\n <nz-option *ngFor="let selectItem of filter.selectOption.selectList"\n [nzValue]="selectItem[filter.selectOption.value]" [nzLabel]="filter.selectOption.showLabelAndValue ? \'[\'+ selectItem[filter.selectOption.value] +\']\' +\n selectItem[filter.selectOption.label] : selectItem[filter.selectOption.label]"></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="2">\n <nz-date-picker *ngIf="filter.showTime"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name" [nzDisabledDate]="filter.hdDisabledDate"\n [nzAllowClear]="isAllowClear(filter)"\n nzShowTime nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n <nz-date-picker *ngIf="!filter.showTime"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name" [nzDisabledDate]="filter.hdDisabledDate"\n [nzAllowClear]="isAllowClear(filter)">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase="3">\n <nz-range-picker [nzPlaceHolder]="[\'开始日期\',\'结束日期\']" [nzDisabledDate]="filter.hdDisabledDate"\n [nzAllowClear]="isAllowClear(filter)" [formControlName]="filter.name">\n </nz-range-picker>\n </ng-container>\n \x3c!-- 多项选择器 --\x3e\n <ng-container *ngSwitchCase="4">\n <nz-select\n [nzDropdownMatchSelectWidth]="filter.selectOption.hdDropdownMatchSelectWidth ? filter.selectOption.hdDropdownMatchSelectWidth : false"\n nzMode="multiple"\n [nzShowSearch]="filter.selectOption.hdShowSearch != null ? filter.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(filter)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"\n [formControlName]="filter.name" [nzServerSearch]="filter.selectOption.hdServerSearch || false"\n (nzOnSearch)="onSearchEvent(filter.onSearchEvent || null, $event, filter.onSearchEventEventDebounceTime, filter.selectOption)">\n <nz-option *ngFor="let selectItem of filter.selectOption.selectList"\n [nzValue]="selectItem[filter.selectOption.value]" [nzLabel]="filter.selectOption.showLabelAndValue ? \'[\'+ selectItem[filter.selectOption.value] +\']\' +\n selectItem[filter.selectOption.label] : selectItem[filter.selectOption.label]"></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="5">\n <nz-cascader [nzOptions]="filter.cascaderOption.options" [formControlName]="filter.name"\n [nzAllowClear]="isAllowClear(filter)"\n [nzShowSearch]="getCascaderShowSearch(filter.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(filter.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(filter.cascaderOption)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label">\n </nz-cascader>\n </ng-container>\n <ng-container *ngSwitchCase="6">\n <nz-month-picker [formControlName]="filter.name"\n [nzAllowClear]="isAllowClear(filter)"\n [nzPlaceHolder]="filter.placeholder ? filter.placeholder : \'请选择\' + filter.label"></nz-month-picker>\n </ng-container>\n <ng-container *ngSwitchCase="7">\n <nz-input-number [formControlName]="filter.name" [nzMin]="filter?.inputNumber?.min || 0"\n [nzMax]="filter?.inputNumber?.max || 99999999" [nzStep]="filter?.inputNumber?.step || 1"\n [nzPlaceHolder]="\'请输入\' + filter.label"\n [nzPrecision]="filter?.inputNumber?.precision != null ? filter.inputNumber.precision : 4"\n (nzBlur)="triggerEvent(filter.onBlurEvent || null, validateFilterForm.get(filter.name).value)">\n </nz-input-number>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n </ng-container>\n\n <div class="hd-filter-btn" nz-col [nzSpan]="6" [nzOffset]="computeOffset()">\n \x3c!-- 稿面顺序:默认条件 → 操作(齿轮) → 收起 → 查询 → 重置 --\x3e\n <ng-container *ngIf="canUseScheme">\n <a class="hd-filter-scheme-name" (click)="openSwitchModal()" nz-tooltip [nzTitle]="currentSchemeName">\n <span class="hd-filter-scheme-name-text">{{ currentSchemeName }}</span>\n <i nz-icon nzType="down" nzTheme="outline"></i>\n </a>\n <a class="hd-filter-scheme-op" nz-dropdown [nzDropdownMenu]="schemeOpMenu" nzTrigger="click">\n <i nz-icon nzType="setting" nzTheme="outline"></i>\n 操作\n </a>\n <nz-dropdown-menu #schemeOpMenu="nzDropdownMenu">\n <ul nz-menu>\n <li nz-menu-item (click)="saveCurrentScheme()">保存为当前</li>\n <li nz-menu-item (click)="openSaveAsModal()">另存为</li>\n <li nz-menu-item *ngIf="canDeleteCurrent()"\n class="hd-filter-scheme-op-delete"\n nz-popconfirm\n nzTitle="确定删除当前筛选组吗?"\n nzPopconfirmPlacement="bottomRight"\n (nzOnConfirm)="deleteCurrentScheme()">删除</li>\n </ul>\n </nz-dropdown-menu>\n </ng-container>\n <a *ngIf="filterList.length > 7" class="hd-filter-more" (click)="showMore()">\n {{ isShowMore ? \'展开\' : \'收起\' }}\n <i nz-icon [nzType]="isShowMore ? \'down\' : \'up\'"></i>\n </a>\n <hd-button type="primary" (click)="submitForm()">查询</hd-button>\n <hd-button type="reset" (click)="resetForm()">重置</hd-button>\n </div>\n </div>\n</form>\n\n\x3c!-- 选择筛选组:*ngIf 避免未打开时 hd-form 空 formList 导致 formGroup 未初始化报错 --\x3e\n<nz-modal\n [(nzVisible)]="switchModalVisible"\n nzTitle="选择筛选组"\n nzWidth="560px"\n [nzOkLoading]="schemeLoading"\n (nzOnCancel)="closeSwitchModal()"\n (nzOnOk)="confirmSwitch()">\n <hd-form *ngIf="switchModalVisible" [formList]="switchFormList" (changeEvent)="switchFormChangeEvent($event)"></hd-form>\n</nz-modal>\n\n\x3c!-- 另存为 --\x3e\n<nz-modal\n [(nzVisible)]="saveAsModalVisible"\n nzTitle="保存筛选组"\n nzWidth="560px"\n [nzOkLoading]="schemeSaving"\n (nzOnCancel)="closeSaveAsModal()"\n (nzOnOk)="confirmSaveAs()">\n <hd-form *ngIf="saveAsModalVisible" [formList]="saveAsFormList" (changeEvent)="saveAsFormChangeEvent($event)"></hd-form>\n</nz-modal>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-filter-container{padding:20px 23px;background:#fff;border-radius:4px;margin-bottom:8px!important;font-size:14px}.hd-filter-container .ant-row{display:flex;flex-wrap:wrap;align-items:flex-start;row-gap:4px;margin-right:0!important;margin-left:0!important}.hd-filter-container .ant-row::after,.hd-filter-container .ant-row::before{display:none}.hd-filter-container .ant-col-6{float:none;padding-left:0!important;padding-right:0!important}.hd-filter-container .hd-filter-label{width:124px;word-break:break-all;font-size:14px}.hd-filter-container .hd-filter-label ::ng-deep label{font-size:14px}.hd-filter-container .hd-filter-control{width:calc(100% - 124px)}.hd-filter-container ::ng-deep .ant-calendar-picker{width:100%}.hd-filter-container .hd-filter-more{color:#20b95d;white-space:nowrap;flex-shrink:0}.hd-filter-container .hd-filter-btn{height:40px;display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;max-width:100%;min-width:0;padding-left:12px;box-sizing:border-box}.hd-filter-container hd-button{margin-left:0;flex-shrink:0}.hd-filter-container ::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}.hd-filter-container ::ng-deep .ant-select-selection--single{height:32px!important}.hd-filter-container ::ng-deep .ant-input{height:32px!important}.hd-filter-container ::ng-deep .ant-calendar-range-picker-input{text-align:left!important}.hd-filter-container .ant-input-number{width:100%}.hd-filter-container .hd-red{color:#f5222d}.hd-filter-container .hd-filter-scheme-name,.hd-filter-container .hd-filter-scheme-op{color:#4e5369;white-space:nowrap;display:inline-flex;align-items:center;gap:4px;padding:3px;margin:0;box-sizing:border-box}.hd-filter-container .hd-filter-scheme-name i[nz-icon],.hd-filter-container .hd-filter-scheme-op i[nz-icon]{font-size:14px;flex-shrink:0}.hd-filter-container .hd-filter-scheme-name{flex:0 1 auto;max-width:160px;min-width:0;overflow:hidden}.hd-filter-container .hd-filter-scheme-name .hd-filter-scheme-name-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hd-filter-container .hd-filter-scheme-name i[nz-icon]{font-size:12px}.hd-filter-container .hd-filter-scheme-op{flex-shrink:0}::ng-deep .hd-filter-scheme-op-delete{color:#f5222d!important}"]}]}],e.ctorParameters=function(){return[{type:i.FormBuilder},{type:Ie,decorators:[{type:t.Optional},{type:t.Inject,args:[Se]}]}]},e.propDecorators={filterList:[{type:t.Input}],enableFilterScheme:[{type:t.Input}],filterSchemeKey:[{type:t.Input}],searchEvent:[{type:t.Output}],resetEvent:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Object)],e.prototype,"enableFilterScheme",void 0),e}();var Ce=function(){function e(e){var n=this;this.fb=e,this.changeEvent=new t.EventEmitter,this.searchSubject=new d.Subject,this.debounceTimeout=0,this.openChangeSubject=new d.Subject,this.openChangeDebounceTimeout=0,this.inputNumberDefaultFormatter=function(e){return e},this.inputNumberDefaultParser=function(e){return e},this.getCascaderShowSearch=ye,this.getCascaderMenuClassName=ve,this.getCascaderMenuStyle=xe,this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,i=e.event;return n.triggerEvent(t,i)})),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,i=e.event;i&&n.triggerEvent(t,i)}))}return e.prototype.ngOnInit=function(){this.formList&&0!==this.formList.length?this.init():this.validateHdForm=this.fb.group({})},e.prototype.ngOnChanges=function(e){if(e.formList&&JSON.stringify(e.formList.currentValue)!==JSON.stringify(e.formList.previousValue)){if(!this.formList||0===this.formList.length)return void(this.validateHdForm=this.fb.group({}));this.init()}},e.prototype.onSearchEvent=function(e,t,n){var i=this;if(e){var o=null!=n?n:0;o?(this.debounceTimeout=o,this.searchSubscription&&this.searchSubscription.unsubscribe(),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event;return i.triggerEvent(t,n)})),this.searchSubject.next({fn:e,event:t})):this.triggerEvent(e,t)}},e.prototype.onOpenChangeEvent=function(e,t,n,i){var o=this;if(e){t&&this.clearSelectOptionsOnOpen(i);var a=null!=n?n:0;a?(this.openChangeDebounceTimeout=a,this.openChangeSubscription&&this.openChangeSubscription.unsubscribe(),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event;n&&o.triggerEvent(t,n)})),this.openChangeSubject.next({fn:e,event:t})):t&&this.triggerEvent(e,t)}},e.prototype.clearSelectOptionsOnOpen=function(e){if(e&&e.selectOption){var t=e.selectOption;null!=t.selectList&&(t.selectList=[])}},e.prototype.triggerEvent=function(e,t){e&&e(t)},e.prototype.init=function(){var e=this;if(!this.checkList(this.formList))throw"form组件数据格式不规范";this.formList.forEach((function(e){e.type===ue.RegionAddress&&(e.width=2)})),this.dealRow();var t={};this.formList.forEach((function(n,o){if(2===n.type&&n.value){var a=z(n.value.toString().split("-").map((function(e){return parseInt(e)})),3),l=a[0],r=a[1],s=a[2],d=new Date(l,r-1,s).toLocaleDateString("zh-Hans-CN",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,"-");n.validator?t[n.name]=e.fb.control({value:new Date(d),disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:new Date(d),disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(3===n.type&&n.value){var c=JSON.parse(JSON.stringify(n.value));if(!(c&&c instanceof Array))throw"form组件中DateRange控件value值格式不规范,正确示例['2020-01-22', '2020-01-23']";c=c.map((function(e){var t=z(e.split("-").map((function(e){return parseInt(e)})),3),n=t[0],i=t[1],o=t[2],a=new Date(n,i-1,o).toLocaleDateString("zh-Hans-CN",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\//g,"-");e=new Date(a)})),n.validator?t[n.name]=e.fb.control({value:c,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:c,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(n.type===ue.Checkbox&&n.checkboxOption){var p=Array.isArray(n.value)?n.value:[];n.validator?t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(n.type===ue.Checkbox){p=null!=n.value&&n.value;n.validator?t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:p,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])}else if(n.type===ue.RegionAddress){var h=Array.isArray(n.value)?n.value:null,m=null!=n.addressValue?n.addressValue:null,g=n.require&&!n.hide?[i.Validators.required]:[];n.validator?t[n.name]=e.fb.control({value:h,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[n.validator]):t[n.name]=e.fb.control({value:h,disabled:n.disabled},g),t[n.addressName]=e.fb.control({value:m,disabled:n.disabled},g)}else n.validator?t[n.name]=e.fb.control({value:n.value,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required,n.validator]:[]):t[n.name]=e.fb.control({value:n.value,disabled:n.disabled},n.require&&!n.hide?[i.Validators.required]:[])})),this.validateHdForm=this.fb.group(t),this.formList.forEach((function(t){if(t.onChangeEvent){var n=null!=t.onChangeEventDebounceTime?t.onChangeEventDebounceTime:0,i=e.validateHdForm.get(t.name);n>0?i.valueChanges.pipe(c.debounceTime(n)).subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)})):i.valueChanges.subscribe((function(n){return e.triggerEvent(t.onChangeEvent,n)}))}})),this.validateHdForm.valueChanges.subscribe((function(t){return e.onHdFormValueChanged(t)})),this.onHdFormValueChanged()},e.prototype.dealRow=function(){for(var e=this.formList.length,t=0,n=0;n<e;n++)if(!this.formList[n].hide)if(0===n)this.formList[n].totalWidth=this.formList[n].width||1,this.formList[n].isRowFirst=1,t+=4;else for(var i=n-1;i>=0;i--)if(this.formList[i].totalWidth){this.formList[n].totalWidth=this.formList[i].totalWidth+(this.formList[n].width||1),this.formList[i].totalWidth+(this.formList[n].width||1)>t&&this.formList[i].totalWidth<=t?(t+=4,this.formList[n].isRowFirst=1):this.formList[n].isRowFirst=0;break}for(var o=0;o<e;o++)if(1===this.formList[o].isRowFirst){this.formList[o].columnItems=[];for(var a=0,l=1;l<e-o&&(4!==a&&1!==this.formList[o+l].isRowFirst);l++)!this.formList[o+l].hide&&this.formList[o+l]&&0===this.formList[o+l].isRowFirst&&(this.formList[o].columnItems.push(this.formList[o+l]),a++)}},e.prototype.onHdFormValueChanged=function(e){this.changeEvent.emit(this.validateHdForm)},e.prototype.checkList=function(e){if(!e||e&&0===e.length)return!1;var t=[];if(e.forEach((function(e){if(e.type===ue.RegionAddress&&!e.addressName)throw"form组件 RegionAddress 必须配置 addressName";if(!(e.type!==ue.RegionAddress||e.cascaderOption&&e.cascaderOption.options))throw"form组件 RegionAddress 必须配置 cascaderOption.options";t.push(e.name),e.type===ue.RegionAddress&&t.push(e.addressName)})),C(new Set(t)).length!==t.length)throw"form组件数据格式不规范,存在重复name值!";return!0},e.prototype.getRegionAddressValidateStatus=function(e){if(!this.validateHdForm)return"";var t=this.validateHdForm.get(e.name),n=e.addressName?this.validateHdForm.get(e.addressName):null,i=function(e){return e&&e.dirty&&e.invalid};return i(t)||i(n)?"error":""},e.prototype.getRegionAddressErrorTip=function(e){if(!this.validateHdForm)return"";var t=this.validateHdForm.get(e.name),n=e.addressName?this.validateHdForm.get(e.addressName):null;if(t&&t.dirty&&t.hasError("required"))return e.label+"不能为空";if(n&&n.dirty&&n.hasError("required"))return"详细地址不能为空";if(e.validatorKeys&&t)for(var i=0;i<e.validatorKeys.length;i++){var o=e.validatorKeys[i];if(t.hasError(o.key))return o.label}return e.label+"不能为空"},e.prototype.submitForm=function(){Object.values(this.validateHdForm.controls).forEach((function(e){e.markAsDirty(),e.updateValueAndValidity()})),this.changeEvent.emit(this.validateHdForm.getRawValue())},e.prototype.resetForm=function(){this.validateHdForm.reset(),Object.values(this.validateHdForm.controls).forEach((function(e){e.markAsDirty(),e.updateValueAndValidity()})),this.changeEvent.emit(this.validateHdForm.getRawValue())},e.prototype.inputClean=function(e){var t={};t[e.name]=null,this.validateHdForm.patchValue(t)},e.prototype.isAllowClear=function(e){return!e||(null!=e.hdAllowClear?!!e.hdAllowClear:!e.selectOption||null==e.selectOption.hdAllowClear||!!e.selectOption.hdAllowClear)},e.prototype.isCheckboxChecked=function(e,t){var n=this.validateHdForm.get(e),i=n?n.value:null;return Array.isArray(i)&&-1!==i.indexOf(t)},e.prototype.onCheckboxItemChange=function(e,t,n){var i=this.validateHdForm.get(e);if(i){var o=Array.isArray(i.value)?C(i.value):[],a=o.indexOf(t);n&&-1===a?o.push(t):n||-1===a||o.splice(a,1),i.setValue(o),i.markAsDirty(),i.updateValueAndValidity()}},e.decorators=[{type:t.Component,args:[{selector:"hd-form",template:'<form nz-form [formGroup]="validateHdForm" class="ant-advanced-search-form hd-formItem-container">\n \x3c!-- 整体结构 --\x3e\n <div nz-row [nzGutter]="24">\n \x3c!-- 对组件列表循环处理 --\x3e\n <ng-container *ngFor="let formItem of formList;index as i">\n <div nz-row *ngIf="formItem.isRowFirst && formItem.isRowFirst === 1">\n <div nz-col *ngIf="!formItem.hide" [nzSpan]="formItem.width? formItem.width * 6 : 6">\n <nz-form-item nzFlex>\n <nz-form-label class="hd-formItem-label" [nzNoColon]="true">\n <div class="hd-formItem-label-flex">\n <span>\n <span class="hd-formItem-label-require" *ngIf="formItem.require">*</span>\n <span [ngStyle]="{\'color\': formItem?.labelColor ? formItem.labelColor : null}">{{ formItem.label\n }}</span>\n </span>\n <ng-container *ngIf="formItem.explain">\n <span class="hd-formItem-label-explain">{{ formItem.explain }}</span>\n </ng-container>\n </div>\n </nz-form-label>\n <nz-form-control class="hd-formItem-control" [nzErrorTip]="formItemErrorTpl"\n [nzValidateStatus]="formItem.type === 13 ? getRegionAddressValidateStatus(formItem) : null">\n <ng-template #formItemErrorTpl let-control>\n <ng-container *ngIf="formItem.type === 13; else formItemDefaultErrorTpl">\n {{ getRegionAddressErrorTip(formItem) }}\n </ng-container>\n <ng-template #formItemDefaultErrorTpl>\n <ng-container *ngFor="let validatorKey of formItem.validatorKeys;index as i">\n <ng-container *ngIf="control.hasError(validatorKey.key)">\n {{ validatorKey.label }}\n </ng-container>\n </ng-container>\n <ng-container *ngIf="control.hasError(\'required\')">\n {{ formItem.label + \'不能为空\' }}\n </ng-container>\n </ng-template>\n </ng-template>\n <ng-container [ngSwitch]="formItem.type">\n <ng-container *ngSwitchCase="0">\n <nz-input-group [nzSuffix]="inputCleanTemplate"\n [nzPrefix]="formItem.prefixIcon ? inputPrefixIconTemplate : formItem.prefix">\n <input nz-input [ngStyle]="{\'color\': formItem?.color ? formItem.color : null}"\n [maxlength]="formItem.maxLength || null"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [formControlName]="formItem.name" />\n </nz-input-group>\n <ng-template #inputPrefixIconTemplate><i nz-icon [nzType]="formItem.prefixIcon"></i></ng-template>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill"\n nzType="close-circle"\n *ngIf="isAllowClear(formItem) && validateHdForm.get(formItem.name).value && !formItem.disabled && !validateHdForm.get(formItem.name).disabled"\n (click)="inputClean(formItem)"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="1">\n <nz-select\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, formItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of formItem.selectOption.selectList"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]"></nz-option>\n <nz-option *ngIf="formItem.defaultLabel" [nzLabel]="formItem.defaultLabel"\n [nzValue]="formItem.value" nzHide></nz-option>\n <nz-option\n *ngIf="formItem.selectOption.label && validateHdForm.get(formItem.name) && validateHdForm.get(formItem.selectOption.label)?.value && validateHdForm.get(formItem.selectOption.value)?.value"\n [nzLabel]="(formItem.selectOption.showLabelAndValue || formItem.selectOption.hdShowItemCode) ? (\'[\'+ validateHdForm.get(formItem.selectOption.value).value + \']\' + validateHdForm.get(formItem.selectOption.label).value) : validateHdForm.get(formItem.selectOption.label).value"\n [nzValue]="validateHdForm.get(formItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="2">\n <nz-date-picker *ngIf="!formItem.showTime" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name">\n </nz-date-picker>\n <nz-date-picker *ngIf="formItem.showTime" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" nzShowTime nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase="3">\n <nz-range-picker [nzPlaceHolder]="formItem.showTime ? [\'开始时间\',\'结束时间\'] : [\'开始日期\',\'结束日期\']"\n [nzDisabledDate]="formItem.hdDisabledDate" [formControlName]="formItem.name"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzShowTime]="formItem.showTime ? true : false">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase="4">\n <textarea [ngStyle]="{\'color\': formItem?.color ? formItem.color : null}"\n [rows]="formItem.textAreaRows ? formItem.textAreaRows : 1"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label" rows="1"\n nz-input [maxlength]="formItem.maxLength || null" [formControlName]="formItem.name"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase="5">\n <nz-input-number [ngStyle]="{\'color\': formItem?.color ? formItem.color : null}"\n [formControlName]="formItem.name" [nzMin]="formItem?.inputNumber?.min || 0"\n [nzMax]="formItem?.inputNumber?.max || 99999999" [nzStep]="formItem?.inputNumber?.step || 1"\n [nzPlaceHolder]="\'请输入\' + formItem.label"\n [nzFormatter]="formItem?.inputNumber?.nzFormatter || inputNumberDefaultFormatter"\n [nzParser]="formItem?.inputNumber?.nzParser || inputNumberDefaultParser"\n [nzPrecision]="formItem?.inputNumber?.precision != null ? formItem.inputNumber.precision : 4">\n </nz-input-number>\n </ng-container>\n \x3c!-- 多项选择器 --\x3e\n <ng-container *ngSwitchCase="6">\n <nz-select [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n nzMode="multiple"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, formItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of formItem.selectOption.selectList"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]"></nz-option>\n <ng-container *ngIf="formItem.defaultLabel">\n <nz-option *ngFor="let option of formItem.defaultLabel;index as i" [nzLabel]="option"\n [nzValue]="formItem.value[i]" nzHide></nz-option>\n </ng-container>\n <ng-container\n *ngIf="formItem.selectOption.label && validateHdForm.get(formItem.name) && validateHdForm.get(formItem.selectOption.label)?.value && validateHdForm.get(formItem.selectOption.value)?.value">\n <nz-option *ngFor="let option of validateHdForm.get(formItem.selectOption.value).value;index as i"\n [nzLabel]="validateHdForm.get(formItem.selectOption.label).value[i]" [nzValue]="option" nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="7">\n <span>{{ formItem.value || validateHdForm.get(formItem.name).value }}</span>\n </ng-container>\n <ng-container *ngSwitchCase="8">\n <nz-switch [formControlName]="formItem.name"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchCase="9">\n <nz-time-picker [formControlName]="formItem.name" [nzFormat]="formItem.format"\n [nzAllowEmpty]="isAllowClear(formItem) && !formItem.disabled"></nz-time-picker>\n </ng-container>\n <ng-container *ngSwitchCase="10">\n <nz-cascader [nzOptions]="formItem.cascaderOption.options" [formControlName]="formItem.name"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzShowSearch]="getCascaderShowSearch(formItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(formItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(formItem.cascaderOption)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label">\n </nz-cascader>\n </ng-container>\n <ng-container *ngSwitchCase="11">\n <nz-radio-group [formControlName]="formItem.name">\n <label nz-radio *ngFor="let radioItem of formItem.radioOption.optionList"\n [nzValue]="radioItem[formItem.radioOption.value]">\n {{ formItem.radioOption.showLabelAndValue ? \'[\' + radioItem[formItem.radioOption.value] + \']\' +\n radioItem[formItem.radioOption.label] : radioItem[formItem.radioOption.label] }}\n </label>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngSwitchCase="12">\n <ng-container *ngIf="formItem.checkboxOption; else singleCheckboxTpl">\n <label nz-checkbox\n *ngFor="let checkboxItem of formItem.checkboxOption.optionList"\n [nzDisabled]="formItem.disabled || validateHdForm.get(formItem.name).disabled"\n [ngModel]="isCheckboxChecked(formItem.name, checkboxItem[formItem.checkboxOption.value])"\n (ngModelChange)="onCheckboxItemChange(formItem.name, checkboxItem[formItem.checkboxOption.value], $event)"\n [ngModelOptions]="{standalone: true}">\n {{ formItem.checkboxOption.showLabelAndValue\n ? \'[\' + checkboxItem[formItem.checkboxOption.value] + \']\' + checkboxItem[formItem.checkboxOption.label]\n : checkboxItem[formItem.checkboxOption.label] }}\n </label>\n </ng-container>\n <ng-template #singleCheckboxTpl>\n <label nz-checkbox [formControlName]="formItem.name"></label>\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="13">\n <div class="hd-form-region-address">\n <nz-cascader class="hd-form-region-address__cascader"\n [nzOptions]="formItem.cascaderOption.options" [formControlName]="formItem.name"\n [nzAllowClear]="isAllowClear(formItem)"\n [nzShowSearch]="getCascaderShowSearch(formItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(formItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(formItem.cascaderOption)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择省市区\'">\n </nz-cascader>\n <input nz-input class="hd-form-region-address__detail"\n [formControlName]="formItem.addressName"\n [maxlength]="formItem.addressMaxLength || null"\n [placeholder]="formItem.addressPlaceholder ? formItem.addressPlaceholder : \'请输入详细地址\'" />\n </div>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n \x3c!-- 循环最多四次 --\x3e\n <ng-container *ngFor="let columnItem of formItem.columnItems;index as columnItemIndex">\n <div nz-col *ngIf="!columnItem.hide" [nzSpan]="columnItem.width? columnItem.width * 6 : 6">\n <nz-form-item nzFlex>\n <nz-form-label class="hd-formItem-label" [nzNoColon]="true">\n <div class="hd-formItem-label-flex">\n <span>\n <span class="hd-formItem-label-require" *ngIf="columnItem.require">*</span>\n <span [ngStyle]="{\'color\': columnItem?.labelColor ? columnItem.labelColor : null}">{{\n columnItem.label }}</span>\n </span>\n <ng-container *ngIf="columnItem.explain">\n <span class="hd-formItem-label-explain">{{ columnItem.explain }}</span>\n </ng-container>\n </div>\n </nz-form-label>\n <nz-form-control class="hd-formItem-control" [nzErrorTip]="columnItemErrorTpl"\n [nzValidateStatus]="columnItem.type === 13 ? getRegionAddressValidateStatus(columnItem) : null">\n <ng-template #columnItemErrorTpl let-control>\n <ng-container *ngIf="columnItem.type === 13; else columnItemDefaultErrorTpl">\n {{ getRegionAddressErrorTip(columnItem) }}\n </ng-container>\n <ng-template #columnItemDefaultErrorTpl>\n <ng-container *ngFor="let validatorKey of columnItem.validatorKeys;index as i">\n <ng-container *ngIf="control.hasError(validatorKey.key)">\n {{ validatorKey.label }}\n </ng-container>\n </ng-container>\n <ng-container *ngIf="control.hasError(\'required\')">\n {{ columnItem.label + \'不能为空\' }}\n </ng-container>\n </ng-template>\n </ng-template>\n <ng-container [ngSwitch]="columnItem.type">\n <ng-container *ngSwitchCase="0">\n <nz-input-group [nzSuffix]="inputCleanTemplate"\n [nzPrefix]="columnItem.prefixIcon ? inputPrefixIconTemplate : columnItem.prefix">\n <input *ngIf="columnItem.disabled === true;else inputTemplate" nz-input\n [ngStyle]="{\'color\': columnItem?.color ? columnItem.color : null}" [disabled]="true"\n [attr.disabled]="true" [maxlength]="columnItem.maxLength || null"\n [placeholder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [formControlName]="columnItem.name" />\n <ng-template #inputTemplate>\n <input nz-input [ngStyle]="{\'color\': columnItem?.color ? formItem.color : null}"\n [maxlength]="columnItem.maxLength || null"\n [placeholder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [formControlName]="columnItem.name" />\n </ng-template>\n </nz-input-group>\n <ng-template #inputPrefixIconTemplate><i nz-icon [nzType]="columnItem.prefixIcon"></i></ng-template>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill"\n nzType="close-circle"\n *ngIf="isAllowClear(columnItem) && validateHdForm.get(columnItem.name).value && !columnItem.disabled && !validateHdForm.get(formItem.name).disabled"\n (click)="inputClean(columnItem)"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="1">\n <nz-select [nzServerSearch]="columnItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzShowSearch]="columnItem.selectOption.hdShowSearch != null ? columnItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name"\n (nzOpenChange)="onOpenChangeEvent(columnItem.onOpenChangeEvent || null, $event, columnItem.onOpenChangeEventDebounceTime, columnItem)"\n (nzOnSearch)="onSearchEvent(columnItem.onSearchEvent || null, $event, columnItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of columnItem.selectOption.selectList"\n [nzValue]="selectItem[columnItem.selectOption.value]" [nzLabel]="columnItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[columnItem.selectOption.value] +\']\' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]">\n </nz-option>\n <nz-option\n *ngIf="columnItem.selectOption.label && validateHdForm.get(columnItem.name) && validateHdForm.get(columnItem.selectOption.label)?.value && validateHdForm.get(columnItem.selectOption.value)?.value"\n [nzLabel]="(columnItem.selectOption.showLabelAndValue || columnItem.selectOption.hdShowItemCode) ? (\'[\'+ validateHdForm.get(columnItem.selectOption.value).value + \']\' + validateHdForm.get(columnItem.selectOption.label).value) : validateHdForm.get(columnItem.selectOption.label).value"\n [nzValue]="validateHdForm.get(columnItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="2">\n <nz-date-picker *ngIf="columnItem.showTime" [nzDisabledDate]="columnItem.hdDisabledDate"\n [nzShowToday]="columnItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name" nzShowTime nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n <nz-date-picker *ngIf="!columnItem.showTime" [nzDisabledDate]="columnItem.hdDisabledDate"\n [nzShowToday]="columnItem.hdShowToday !== false"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase="3">\n <nz-range-picker [nzPlaceHolder]="columnItem.showTime ? [\'开始时间\',\'结束时间\'] : [\'开始日期\',\'结束日期\']"\n [nzDisabledDate]="columnItem.hdDisabledDate" [formControlName]="columnItem.name"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzShowTime]="columnItem.showTime ? true : false">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase="4">\n <textarea [ngStyle]="{\'color\': columnItem?.color ? columnItem.color : null}"\n [rows]="columnItem.textAreaRows ? columnItem.textAreaRows : 1" rows="1" nz-input\n [placeholder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [maxlength]="columnItem.maxLength || null" [formControlName]="columnItem.name"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase="5">\n <nz-input-number [ngStyle]="{\'color\': columnItem?.color ? columnItem.color : null}"\n [formControlName]="columnItem.name" [nzMin]="columnItem?.inputNumber?.min || 0"\n [nzMax]="columnItem?.inputNumber?.max || 99999999" [nzStep]="columnItem?.inputNumber?.step || 1"\n [nzFormatter]="columnItem?.inputNumber?.nzFormatter || inputNumberDefaultFormatter"\n [nzParser]="columnItem?.inputNumber?.nzParser || inputNumberDefaultParser"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请输入\' + columnItem.label"\n [nzPrecision]="columnItem?.inputNumber?.precision != null ? columnItem.inputNumber.precision : 4">\n </nz-input-number>\n </ng-container>\n \x3c!-- 多项选择器 --\x3e\n <ng-container *ngSwitchCase="6">\n <nz-select [nzServerSearch]="columnItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false"\n nzMode="multiple"\n [nzShowSearch]="columnItem.selectOption.hdShowSearch != null ? columnItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label"\n [formControlName]="columnItem.name"\n (nzOpenChange)="onOpenChangeEvent(columnItem.onOpenChangeEvent || null, $event, columnItem.onOpenChangeEventDebounceTime, columnItem)"\n (nzOnSearch)="onSearchEvent(columnItem.onSearchEvent || null, $event, columnItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of columnItem.selectOption.selectList"\n [nzValue]="selectItem[columnItem.selectOption.value]" [nzLabel]="columnItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[columnItem.selectOption.value] +\']\' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]">\n </nz-option>\n <ng-container *ngIf="columnItem.defaultLabel">\n <nz-option *ngFor="let option of columnItem.defaultLabel;index as i" [nzLabel]="option"\n [nzValue]="columnItem.value[i]" nzHide></nz-option>\n </ng-container>\n <ng-container\n *ngIf="columnItem.selectOption.label && validateHdForm.get(columnItem.name) && validateHdForm.get(columnItem.selectOption.label)?.value && validateHdForm.get(columnItem.selectOption.value)?.value">\n <nz-option\n *ngFor="let option of validateHdForm.get(columnItem.selectOption.value).value;index as i"\n [nzLabel]="validateHdForm.get(columnItem.selectOption.label).value[i]" [nzValue]="option"\n nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="7">\n <span>{{ columnItem.value || validateHdForm.get(columnItem.name).value }}</span>\n </ng-container>\n <ng-container *ngSwitchCase="8">\n <nz-switch [formControlName]="columnItem.name"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchCase="9">\n <nz-time-picker [formControlName]="columnItem.name" [nzFormat]="columnItem.format"\n [nzAllowEmpty]="isAllowClear(columnItem) && !columnItem.disabled"></nz-time-picker>\n </ng-container>\n <ng-container *ngSwitchCase="10">\n <nz-cascader [nzOptions]="columnItem.cascaderOption.options" [formControlName]="columnItem.name"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzShowSearch]="getCascaderShowSearch(columnItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(columnItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(columnItem.cascaderOption)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择\' + columnItem.label">\n </nz-cascader>\n </ng-container>\n <ng-container *ngSwitchCase="11">\n <nz-radio-group [formControlName]="columnItem.name">\n <label nz-radio *ngFor="let radioItem of columnItem.radioOption.optionList"\n [nzValue]="radioItem[columnItem.radioOption.value]">\n {{ columnItem.radioOption.showLabelAndValue ? \'[\' + radioItem[columnItem.radioOption.value] + \']\' +\n radioItem[columnItem.radioOption.label] : radioItem[columnItem.radioOption.label] }}\n </label>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngSwitchCase="12">\n <ng-container *ngIf="columnItem.checkboxOption; else singleColumnCheckboxTpl">\n <label nz-checkbox\n *ngFor="let checkboxItem of columnItem.checkboxOption.optionList"\n [nzDisabled]="columnItem.disabled || validateHdForm.get(columnItem.name).disabled"\n [ngModel]="isCheckboxChecked(columnItem.name, checkboxItem[columnItem.checkboxOption.value])"\n (ngModelChange)="onCheckboxItemChange(columnItem.name, checkboxItem[columnItem.checkboxOption.value], $event)"\n [ngModelOptions]="{standalone: true}">\n {{ columnItem.checkboxOption.showLabelAndValue\n ? \'[\' + checkboxItem[columnItem.checkboxOption.value] + \']\' + checkboxItem[columnItem.checkboxOption.label]\n : checkboxItem[columnItem.checkboxOption.label] }}\n </label>\n </ng-container>\n <ng-template #singleColumnCheckboxTpl>\n <label nz-checkbox [formControlName]="columnItem.name"></label>\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="13">\n <div class="hd-form-region-address">\n <nz-cascader class="hd-form-region-address__cascader"\n [nzOptions]="columnItem.cascaderOption.options" [formControlName]="columnItem.name"\n [nzAllowClear]="isAllowClear(columnItem)"\n [nzShowSearch]="getCascaderShowSearch(columnItem.cascaderOption)"\n [nzMenuClassName]="getCascaderMenuClassName(columnItem.cascaderOption)"\n [nzMenuStyle]="getCascaderMenuStyle(columnItem.cascaderOption)"\n [nzPlaceHolder]="columnItem.placeholder ? columnItem.placeholder : \'请选择省市区\'">\n </nz-cascader>\n <input nz-input class="hd-form-region-address__detail"\n [formControlName]="columnItem.addressName"\n [maxlength]="columnItem.addressMaxLength || null"\n [placeholder]="columnItem.addressPlaceholder ? columnItem.addressPlaceholder : \'请输入详细地址\'" />\n </div>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n</form>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-formItem-container .hd-formItem-label{width:124px;word-break:break-all;text-align:right}.hd-formItem-container .hd-formItem-control{width:calc(100% - 124px)}.hd-formItem-container .ant-input-number{width:100%}.hd-formItem-container .hd-formItem-label-flex{display:inline-flex;flex-direction:column}.hd-formItem-container .hd-formItem-label-flex span{display:inline-block}.hd-formItem-container .hd-formItem-label-flex .hd-formItem-label-require{margin-right:4px;color:#f5222d;font-size:14px;font-family:SimSun,sans-serif}.hd-formItem-container .hd-formItem-label-flex .hd-formItem-label-explain{margin-top:-13px;color:#f5222d}.hd-formItem-container textarea{margin-top:8px}.hd-formItem-container ::ng-deep label[nz-checkbox]{margin-right:12px;line-height:32px}.hd-formItem-container .hd-form-region-address{display:flex;width:100%;height:40px;align-items:center}.hd-formItem-container .hd-form-region-address .hd-form-region-address__cascader{flex:0 0 calc(50% - 74px);max-width:calc(50% - 74px);min-width:0;height:32px;line-height:32px;position:relative;z-index:1}.hd-formItem-container .hd-form-region-address .hd-form-region-address__detail{flex:1;min-width:0;margin-left:-1px;box-sizing:border-box;height:32px;line-height:30px;border-radius:0 4px 4px 0;position:relative;z-index:0}.hd-formItem-container .hd-form-region-address .hd-form-region-address__detail:focus{z-index:2}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker{display:block;position:relative;z-index:1;width:100%;height:32px;line-height:32px;border-radius:4px 0 0 4px}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker-focused,.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker:focus{z-index:2}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker .ant-cascader-input{height:32px;border-radius:4px 0 0 4px}.hd-formItem-container .hd-form-region-address ::ng-deep .ant-cascader-picker-label{height:30px;line-height:30px;top:0;margin-top:0;display:flex;align-items:center}"]}]}],e.ctorParameters=function(){return[{type:i.FormBuilder}]},e.propDecorators={formList:[{type:t.Input}],changeEvent:[{type:t.Output}]},e}();var ke=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule,F],declarations:[Ce],exports:[Ce]}]}],e}(),Le=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule,F,ke],declarations:[ze],exports:[ze]}]}],e}(),Oe=function(){function e(){}return e.prototype.putSession=function(e,t){t?window.sessionStorage.setItem(e,JSON.stringify(t)):window.sessionStorage.removeItem(e)},e.prototype.getSession=function(e){return JSON.parse(window.sessionStorage.getItem(e))},e.prototype.removeSession=function(e){window.sessionStorage.removeItem(e)},e.decorators=[{type:t.Injectable}],e}(),De=function(){this.require=!1,this.hide=!1,this.hideViewDomValue=!1,this.isShow=!0,this.value=null,this.inputNumber=new J,this.hdShowToday=!0,this.showTime=!1,this.canSearch=!1};var Te=function(){};var Ne=function(){};var Fe={Input:"Input",Select:"Select",Date:"Date",DateRange:"DateRange",TextArea:"TextArea",InputNumber:"InputNumber",MultipleSelect:"MultipleSelect",ViewDom:"ViewDom",Switch:"Switch",Time:"Time"},Ae=function(){this.cols=[]};var Ee=function(){function e(){}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Me=function(){function e(e,n,i){var o=this;this.fb=e,this.cdr=n,this.commonSessionService=i,this.showLineNumber=!0,this.allowEmpty=!0,this.deleteLastLineEvent=new t.EventEmitter,this.showKeyboardOperateTip=!1,this.enableKeyboardOperate=!0,this.tableLoading=!1,this.showSearch=!1,this.showCheckbox=!1,this.showColSettings=!0,this.operateButtons=["add","delete"],this.scroll={x:"1px"},this.changeEvent=new t.EventEmitter,this.addLineEvent=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.showDeleteConfirm=!1,this.paginationPageIndex=1,this.paginationPageSize=10,this.showTotal=!1,this.totalOption=[],this.columnsNumber=0,this.totalOptionList=[],this.showForm=!1,this.storeFormLinesData=[],this.filterStoreFormLinesData=[],this.filterIndexStore=[],this.isFilterData=!1,this.formValid=!1,this.selectedRowIds=new Set,this.searchSubject=new d.Subject,this.debounceTimeout=0,this.openChangeSubject=new d.Subject,this.openChangeDebounceTimeout=0,this.collectDomList=[],this.activeDomX=null,this.activeDomY=null,this.activeDom=null,this.activeSelectedComponentOpen=!1,this.isDropdownVisible=!1,this.showListNodes=!1,this.nowListNodes=[],this.hideListNodes=[],this.cancelNowListNodes=[],this.cancelHideListNodes=[],this.formLinesCacheOption=new Ae,this.localforage=null,this.localtionTmp="",this.colsCacheLoaded=!1,this.deleteLineEvent=new t.EventEmitter,this.textWidthCache={},this.localforage=p.createInstance({driver:p.INDEXEDDB,name:"hd-fscm",version:1,storeName:"hd-fscm-store"}),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;return o.triggerEvent(t,n,i)})),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;n&&o.triggerEvent(t,n,i)}))}return e.prototype.ngOnInit=function(){this.localtionTmp=location.pathname,this.localtionTmp&&(this.localtionTmp=this.localtionTmp.replace(/\//g,"_")),this.userSession=this.commonSessionService.getSession("__jy_authorization_session__"),this.userSession||(this.userSession={userCode:"dev"}),this.storeFormLinesData=this.formLinesData,this.initColSettings(),this.init()},e.prototype.ngAfterViewInit=function(){var e=this;this.collectDomData(),this.formInputDomListSub=this.formInputDomList.changes.subscribe((function(){e.collectDomData()}))},e.prototype.ngOnDestroy=function(){this.searchSubscription&&this.searchSubscription.unsubscribe(),this.openChangeSubscription&&this.openChangeSubscription.unsubscribe(),this.formInputDomListSub&&this.formInputDomListSub.unsubscribe()},Object.defineProperty(e.prototype,"formLinesLength",{get:function(){return this.linesFormArray.controls.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operateColWidth",{get:function(){var e=(this.operateButtons||[]).filter((function(e){return["add","copy","delete"].includes(e)})).length;return Math.max(40*e,80)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTrulyEmptyAllowed",{get:function(){var e=(this.operateButtons||[]).filter((function(e){return["add","copy","delete"].includes(e)}));return this.allowEmpty&&1===e.length&&"delete"===e[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineNumberLeft",{get:function(){return this.showCheckbox?"40px":"0px"},enumerable:!0,configurable:!0}),e.prototype.generateRowId=function(){return"hd_row_"+Date.now()+"_"+Math.random().toString(36).slice(2,9)},e.prototype.getRowId=function(e){return e&&e.get("_hdRowId")?e.get("_hdRowId").value:null},e.prototype.getCurrentPageLines=function(){var e=(this.paginationPageIndex-1)*this.paginationPageSize,t=e+this.paginationPageSize;return this.linesFormArray.controls.slice(e,t)},e.prototype.isLineChecked=function(e){var t=this.getRowId(e);return!!t&&this.selectedRowIds.has(t)},e.prototype.isAllChecked=function(){var e=this,t=this.getCurrentPageLines();return t.length>0&&t.every((function(t){return e.isLineChecked(t)}))},e.prototype.isIndeterminate=function(){var e=this,t=this.getCurrentPageLines(),n=t.filter((function(t){return e.isLineChecked(t)})).length;return n>0&&n<t.length},e.prototype.onAllChecked=function(e){var t=this;this.getCurrentPageLines().forEach((function(n){var i=t.getRowId(n);i&&(e?t.selectedRowIds.add(i):t.selectedRowIds.delete(i))})),this.emitSelectionChange()},e.prototype.onLineCheckedChange=function(e,t){var n=this.getRowId(e);n&&(t?this.selectedRowIds.add(n):this.selectedRowIds.delete(n),this.emitSelectionChange())},e.prototype.emitSelectionChange=function(){this.selectionChange.emit(this.getSelectedLines()),this.cdr.markForCheck()},e.prototype.removeLineFromSelection=function(e){var t=this.getRowId(e);t&&this.selectedRowIds.has(t)&&(this.selectedRowIds.delete(t),this.emitSelectionChange())},e.prototype.applyValuesToLine=function(e,t,n){var i=this;Object.keys(t).forEach((function(o){var a=e.get(o);if(a||(e.addControl(o,i.fb.control(t[o])),a=e.get(o)),a.setValue(t[o],{emitEvent:!1}),a.markAsPristine({onlySelf:!0}),a.markAsUntouched({onlySelf:!0}),a.updateValueAndValidity({emitEvent:!1}),n){var l=i.formLines.find((function(e){return e.name===o}));l&&l.onChangeEvent&&i.triggerEvent(l.onChangeEvent,t[o],e)}})),this.cdr.detectChanges()},e.prototype.getControlValidateStatus=function(e,t){var n=e.get(t.name);if(!n||n.disabled)return"";var i=null===n.value||void 0===n.value||""===n.value;return(n.dirty||n.touched)&&i&&n.hasError("required")?"error":""},e.prototype.limitInputLength=function(e,t,n){if(n&&n.maxLength){var i=e.target;if(i&&i.value&&i.value.length>n.maxLength){var o=i.value.slice(0,n.maxLength);i.value=o;var a=t.get(n.name);a&&a.setValue(o)}}},e.prototype.getSelectedLines=function(){var e=this;return(this.linesFormArray.controls.filter((function(t){return e.isLineChecked(t)})))},e.prototype.getSelectedLinesData=function(){var e=this,t=[],n=new Map;return this.linesFormArray.controls.forEach((function(t){var i=e.getRowId(t);i&&e.selectedRowIds.has(i)&&n.set(i,t.getRawValue())})),(this.storeFormLinesData||[]).forEach((function(i){var o=i&&i._hdRowId;o&&e.selectedRowIds.has(o)&&t.push(n.has(o)?n.get(o):x({},i))})),this.selectedRowIds.forEach((function(e){!t.some((function(t){return t&&t._hdRowId===e}))&&n.has(e)&&t.push(n.get(e))})),t},e.prototype.batchFillSelected=function(e,t){var n=this;if(void 0===t&&(t=!0),!e||0===this.selectedRowIds.size)return 0;var i=new Map;this.linesFormArray.controls.forEach((function(e){var t=n.getRowId(e);t&&i.set(t,e)}));var o=0;return this.selectedRowIds.forEach((function(a){var l=i.get(a);if(l)return n.applyValuesToLine(l,e,t),void o++;var r=(n.storeFormLinesData||[]).find((function(e){return e&&e._hdRowId===a}));r&&(Object.keys(e).forEach((function(t){r[t]=e[t]})),o++)})),o},e.prototype.clearSelection=function(){0!==this.selectedRowIds.size&&(this.selectedRowIds.clear(),this.emitSelectionChange())},e.prototype.getSelectedCount=function(){return this.selectedRowIds.size},Object.defineProperty(e.prototype,"showToolbar",{get:function(){return!!this.showSearch||!!this.showCheckbox||!!this.formLinesLeftButton||!!this.formLinesRightButton||this.showColSettingsButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showColSettingsButton",{get:function(){return!!this.showColSettings&&this.getConfigurableFormLines().length>0},enumerable:!0,configurable:!0}),e.prototype.isColumnVisible=function(e){return!(!e||e.hide)&&(e.type!==Fe.ViewDom||!1!==e.isShow)},e.prototype.getConfigurableFormLines=function(){return this.formLines&&this.formLines.length?this.formLines.filter((function(e){return e.type===Fe.ViewDom&&!e.hide})):[]},e.prototype.getCacheKey=function(){return"hd-form-lines_"+(this.userSession&&this.userSession.userCode||"dev")+"_"+this.localtionTmp+"_"+this.uuid},e.prototype.initColSettings=function(){var e=this;this.colsCacheLoaded=!1,this.showColSettings&&this.formLines&&this.formLines.length&&this.uuid?this.localforage.ready().then((function(){e.localforage.getItem(e.getCacheKey()).then((function(t){t&&Array.isArray(t.cols)?(e.formLinesCacheOption=t,e.colsCacheLoaded=!0):(e.formLinesCacheOption=new Ae,e.colsCacheLoaded=!1),e.setCols()})).catch((function(){e.formLinesCacheOption=new Ae,e.colsCacheLoaded=!1,e.setCols()}))})).catch((function(t){console.log("localforage加载异常",t),e.formLinesCacheOption=new Ae,e.colsCacheLoaded=!1,e.setCols()})):this.setCols()},e.prototype.hasColsCache=function(){return this.colsCacheLoaded&&Array.isArray(this.formLinesCacheOption.cols)},e.prototype.saveFormLinesCacheOption=function(){this.uuid&&this.localforage.setItem(this.getCacheKey(),this.formLinesCacheOption)},e.prototype.sortNodesByFormLinesOrder=function(e){var t=this.getConfigurableFormLines().map((function(e){return e.name}));return e.slice().sort((function(e,n){return t.indexOf(e.key)-t.indexOf(n.key)}))},e.prototype.setCols=function(){var e=this;this.showListNodes=!1,this.nowListNodes=[],this.hideListNodes=[];var t=this.getConfigurableFormLines(),n=this.hasColsCache();t.forEach((function(t){n?t.isShow=e.formLinesCacheOption.cols.includes(t.name):void 0!==t.isShow&&null!==t.isShow||(t.isShow=!0);var i={title:t.label,key:t.name,checked:!1!==t.isShow,disabled:!1};!1!==t.isShow?e.nowListNodes.push(i):e.hideListNodes.push(i)})),this.nowListNodes=this.sortNodesByFormLinesOrder(this.nowListNodes),this.hideListNodes=this.sortNodesByFormLinesOrder(this.hideListNodes),setTimeout((function(){e.showListNodes=!0,e.cdr.markForCheck()}),0)},e.prototype.cancelDropdown=function(){this.isDropdownVisible=!1,this.hideListNodes=JSON.parse(JSON.stringify(this.cancelHideListNodes)),this.nowListNodes=JSON.parse(JSON.stringify(this.cancelNowListNodes)),this.cdr.markForCheck()},e.prototype.confirmDropdown=function(){this.cancelHideListNodes=JSON.parse(JSON.stringify(this.hideListNodes)),this.cancelNowListNodes=JSON.parse(JSON.stringify(this.nowListNodes)),this.isDropdownVisible=!0,this.cdr.markForCheck()},e.prototype.submitGrids=function(){var e=this.nowListNodes.map((function(e){return e.key}));this.getConfigurableFormLines().forEach((function(t){t.isShow=e.includes(t.name)})),this.formLinesCacheOption.cols=e,this.colsCacheLoaded=!0,this.saveFormLinesCacheOption(),this.isDropdownVisible=!1,this.cdr.markForCheck()},e.prototype.checkAction=function(e){if(e.node.origin.checked){var t=this.hideListNodes.find((function(t){return t.key===e.node.origin.key}));if(!t)return;t.checked=!0,this.hideListNodes=this.hideListNodes.filter((function(t){return t.key!==e.node.origin.key})),this.nowListNodes=this.sortNodesByFormLinesOrder(this.nowListNodes.concat([t]))}else{var n=this.hideListNodes.slice(0);this.nowListNodes.forEach((function(t){if(t.key===e.node.origin.key){var i=JSON.parse(JSON.stringify(t));i.checked=!1,n.push(i)}})),this.hideListNodes=this.sortNodesByFormLinesOrder(n),this.nowListNodes=this.nowListNodes.filter((function(t){return t.key!==e.node.origin.key}))}this.cdr.markForCheck()},e.prototype.setActiveSelectedComponentOpen=function(e){var t=this;this.activeSelectedComponentOpen=e,!0===e&&setTimeout((function(){var e=document.querySelectorAll(".ant-select-dropdown.hd-select-table");if(e.length>0){var n=e[0];n.querySelectorAll(".hd-option-header").forEach((function(e){return e.remove()}));var i=t.getOldDomIndex(t.activeDomY,t.formLines);n.insertBefore(t.createDOMStructure(t.formLines[i],t.linesFormArray.controls.slice((t.paginationPageIndex-1)*t.paginationPageSize,(t.paginationPageIndex-1)*t.paginationPageSize+t.paginationPageSize)[t.activeDomX]),n.firstChild)}}),0)},e.prototype.getSelectTableColumnStyle=function(e){return e&&e.width?{width:e.width+"px"}:{width:"unset"}},e.prototype.createDOMStructure=function(e,t){var n=this,i=document.createElement("div");return i.className="hd-option-header",i.style.paddingLeft="12px",i.style.paddingRight="12px",e.selectOption.tableColumns.forEach((function(e){var t=document.createElement("div");t.className="hd-option-header-column";var o=n.getSelectTableColumnStyle(e);if(t.style.width=o.width,e.label){var a=document.createTextNode(e.label);t.appendChild(a)}i.appendChild(t)})),i},e.prototype.collectDomData=function(){this.collectDomList=[];for(var e=this.formInputDomList.toArray(),t=(this.paginationPageIndex-1)*this.paginationPageSize,n=this.paginationPageIndex*this.paginationPageSize,i=(n>this.formLinesLength?this.formLinesLength:n)-t,o=e.length/i,a=0;a<i;a++)this.collectDomList.push(e.splice(0,o));this.disableInputNumberKeyboardStep()},e.prototype.disableInputNumberKeyboardStep=function(){if(this.enableKeyboardOperate)for(var e=0;e<this.collectDomList.length;e++)for(var t=function(t){var i=n.collectDomList[e][t];i instanceof o.NzInputNumberComponent&&(i.onKeyDown=function(e){38!==e.keyCode&&40!==e.keyCode&&13===e.keyCode&&i.setValidateValue()})},n=this,i=0;i<this.collectDomList[e].length;i++)t(i)},e.prototype.jumpToNextInput=function(e,t){null!==e&&null!==t&&this.collectDomList&&0!==this.collectDomList.length&&(this.activeDom instanceof o.NzSelectComponent||e!==this.collectDomList.length-1||t!==this.collectDomList[0].length-1?t===this.collectDomList[0].length-1?(console.log("执行过程1"),this.focusDom(e+1,0,"right")):(console.log("执行过程2"),this.focusDom(e,t+1,"right")):this.addNewLineAndFocus())},e.prototype.addNewLineAndFocus=function(){var e=this;this.activeDomX===this.paginationPageSize-1?this.paginationPageIndex<Math.ceil(this.formLinesLength/this.paginationPageSize)?(this.paginationPageIndex++,setTimeout((function(){e.collectDomData(),console.log("执行过程3"),e.focusDom(0,0,"right")}),0)):(this.addFormLine(),this.paginationPageIndex++,setTimeout((function(){e.collectDomData(),console.log("执行过程4"),e.focusDom(0,0)}),0)):this.addFormLine()},e.prototype.jumpToPrevInput=function(e,t){var n=this;null!==e&&null!==t&&this.collectDomList&&0!==this.collectDomList.length&&(0!==e||0!==t?0===t?(console.log("执行过程6"),this.focusDom(e-1,this.collectDomList[0].length-1,"left")):(console.log("执行过程7"),this.focusDom(e,t-1,"left")):this.paginationPageIndex>1&&(this.paginationPageIndex--,setTimeout((function(){n.collectDomData(),console.log("执行过程5"),n.focusDom(n.collectDomList.length-1,n.collectDomList[0].length-1)}),0)))},e.prototype.focusDom=function(e,n,i){if(void 0===i&&(i="right"),null!==e&&null!==n&&this.collectDomList&&0!==this.collectDomList.length&&(this.cleanFocusDom(this.activeDomX,this.activeDomY),this.collectDomList[e]&&this.collectDomList[e][n])){var a=this.collectDomList[e][n];if(a instanceof o.NzSelectComponent){if(a.nzDisabled)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));a.nzSelectTopControlComponent.inputElement.nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),"multiple"===a.nzSelectService.mode?setTimeout((function(){a.focus()}),0):a.focus()}else if(a instanceof o.NzInputNumberComponent){if(a.nzDisabled)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));var l=document.getElementById(a.nzId);l.focus(),l.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),setTimeout((function(){l.select()}),0)}else if(a instanceof t.ElementRef){if(a.nativeElement.disabled)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));a.nativeElement.focus(),a.nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),setTimeout((function(){a.nativeElement.select()}),0)}else if(a instanceof o.NzDatePickerComponent||a instanceof o.NzRangePickerComponent||a instanceof o.NzTimePickerComponent)return void("right"===i?this.jumpToNextInput(e,n):"left"===i&&this.jumpToPrevInput(e,n));this.setActiveDom(e,n)}},e.prototype.cleanFocusDom=function(e,n){if(null!==e&&null!==n&&this.collectDomList&&0!==this.collectDomList.length&&this.collectDomList[e]&&this.collectDomList[e][n]){var i=this.collectDomList[e][n];i instanceof o.NzSelectComponent?(i.blur(),i.nzOpen=!1):i instanceof o.NzInputNumberComponent?i.blur():i instanceof t.ElementRef&&i.nativeElement.blur()}},e.prototype.setActiveDom=function(e,t){this.activeDomX=e,this.activeDomY=t,this.activeDom=this.collectDomList[this.activeDomX][this.activeDomY],this.activeDom instanceof o.NzSelectComponent&&this.setActiveSelectedComponentOpen(this.activeDom.open)},e.prototype.setActiveDomInFormLines=function(e,t){this.activeDomX=e,this.activeDomY=this.getDomIndex(t,this.formLines),this.setActiveDom(this.activeDomX,this.activeDomY)},e.prototype.onKeyDown=function(e){var t=this;if(this.enableKeyboardOperate&&null!==this.activeDomX&&null!==this.activeDomY)switch(e.key){case"ArrowUp":if(this.activeDom instanceof o.NzSelectComponent&&this.activeSelectedComponentOpen)return;0!==this.activeDomX&&this.focusDom(this.activeDomX-1,this.activeDomY);break;case"ArrowDown":if(this.activeDom instanceof o.NzSelectComponent&&this.activeSelectedComponentOpen)return;if(this.activeDomX===this.collectDomList.length-1){this.cleanFocusDom(this.activeDomX,this.activeDomY),this.addNewLineAndFocus();break}this.focusDom(this.activeDomX+1,this.activeDomY);break;case"ArrowLeft":this.jumpToPrevInput(this.activeDomX,this.activeDomY);break;case"ArrowRight":this.jumpToNextInput(this.activeDomX,this.activeDomY);break;case"Enter":this.activeDom instanceof o.NzSelectComponent?(this.setActiveSelectedComponentOpen(this.activeDom.open),!1===this.activeSelectedComponentOpen&&this.focusDom(this.activeDomX,this.activeDomY)):this.activeDomX===this.collectDomList.length-1&&this.addNewLineAndFocus();break;case"Escape":if(this.activeDom instanceof o.NzSelectComponent){var n=this.activeDom;setTimeout((function(){t.setActiveSelectedComponentOpen(n.open),!1===t.activeSelectedComponentOpen&&("multiple"===n.nzSelectService.mode?setTimeout((function(){t.focusDom(t.activeDomX,t.activeDomY)}),0):t.focusDom(t.activeDomX,t.activeDomY))}),0)}break;default:if(this.activeDom instanceof o.NzSelectComponent&&!1===this.activeSelectedComponentOpen&&/^[0-9a-zA-Z]$/.test(e.key))this.activeDom.nzOpen=!0,this.setActiveSelectedComponentOpen(!0)}},e.prototype.getDomIndex=function(e,t){for(var n=["Input","Select","Date","DateRange","TextArea","InputNumber","MultipleSelect"],i=[],o=0;o<t.length;o++){if(o===e)return i.length;n.includes(t[o].type)&&!t[o].hide&&!1!==t[o].isShow&&i.push(t[o])}return null},e.prototype.getOldDomIndex=function(e,t){console.log("index",e),console.log("list",t);for(var n=["Input","Select","Date","DateRange","TextArea","InputNumber","MultipleSelect"],i=[],o=0;o<t.length;o++)if(n.includes(t[o].type)&&!t[o].hide&&!1!==t[o].isShow&&(i.push(t[o]),i.length===e+1))return o;return null},Object.defineProperty(e.prototype,"linesFormArray",{get:function(){return this.validateHdFormLines.get("lines")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"LodashRound",{get:function(){return r.round},enumerable:!0,configurable:!0}),e.prototype.getValid=function(){return this.formValid},e.prototype.onSearchEvent=function(e,t,n,i){var o=this;if(e){var a=null!=i?i:0;a?(this.debounceTimeout=a,this.searchSubscription&&this.searchSubscription.unsubscribe(),this.searchSubscription=this.searchSubject.pipe(c.debounceTime(this.debounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;return o.triggerEvent(t,n,i)})),this.searchSubject.next({fn:e,event:t,line:n})):this.triggerEvent(e,t,n),setTimeout((function(){o.setActiveSelectedComponentOpen(!0)}),0)}},e.prototype.onOpenChangeEvent=function(e,t,n,i,o){var a=this;if(e){t&&this.clearSelectOptionsOnOpen(o,n);var l=null!=i?i:0;l?(this.openChangeDebounceTimeout=l,this.openChangeSubscription&&this.openChangeSubscription.unsubscribe(),this.openChangeSubscription=this.openChangeSubject.pipe(c.debounceTime(this.openChangeDebounceTimeout)).subscribe((function(e){var t=e.fn,n=e.event,i=e.line;n&&a.triggerEvent(t,n,i)})),this.openChangeSubject.next({fn:e,event:t,line:n})):t&&this.triggerEvent(e,t,n)}},e.prototype.clearSelectOptionsOnOpen=function(e,t){if(e&&e.selectOption){var n=e.selectOption;null!=n.selectList&&(n.selectList=[]),n.selectListName&&t&&t.get&&t.get(n.selectListName)&&t.get(n.selectListName).setValue([],{emitEvent:!1})}},e.prototype.triggerEvent=function(e,t,n){e&&e(t,n)},e.prototype.innerGetValid=function(){var e=this,t=this.fb.group({lines:this.fb.array([])});return this.storeFormLinesData.forEach((function(n){var o={};e.formLines.forEach((function(t){o[t.name]=e.fb.control({value:e.judgeValueIsNotEmpty(n[t.name])?n[t.name]:t.value||null,disabled:t.disabled},t.require?[i.Validators.required]:[]),t.selectOption&&t.selectOption.label&&(o[t.selectOption.label]=e.fb.control(n[t.selectOption.label]||null,[]))})),o.lineIndex=e.fb.control(t.get("lines").controls.length+1,[]);var a=e.fb.group(o);e.formLines.forEach((function(t){if(t.onChangeEvent){var n=null!=t.onChangeEventDebounceTime?t.onChangeEventDebounceTime:0,i=a.get(t.name);n>0?i.valueChanges.pipe(c.debounceTime(n)).subscribe((function(n){e.triggerEvent(t.onChangeEvent,n,a)})):i.valueChanges.subscribe((function(n){e.triggerEvent(t.onChangeEvent,n,a)}))}})),t.get("lines").insert(t.get("lines").controls.length,a)})),t.valid},e.prototype.getLines=function(){var e=this,t=[];return this.storeFormLinesData.forEach((function(n){var i={};e.formLines.forEach((function(e){i[e.name]=n[e.name]})),i.lineIndex=n.lineIndex,t.push(i)})),t},e.prototype.searchLines=function(){var e=this;if(!(this.storeFormLinesData.length<1)){if(this.tableLoading=!0,!this.filterStr)return this.isFilterData=!1,void this.setStoreData();var t=this.filterStr.trim().toLowerCase();this.isFilterData=!0,this.filterIndexStore=[];var n=this.storeFormLinesData.filter((function(n,i){var o,a;try{for(var l=S(e.formLines),r=l.next();!r.done;r=l.next()){var s=r.value;if(s.hide&&s.canSearch||!s.hide&&"uuid"!==s.name)if(console.log("item",s.name),(n[s.name]?n[s.name].toString().toLowerCase():"").includes(t))return e.filterIndexStore.push(i),!0}}catch(e){o={error:e}}finally{try{r&&!r.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return!1}));this.filterStoreFormLinesData=n,this.formLinesData=n,this.init(!0)}},e.prototype.setStoreData=function(){this.formLinesData=this.storeFormLinesData,this.init(!0)},e.prototype.getStyle=function(e,t,n){var i={"min-width":n};return t.style&&(i=x({},i,t.style)),t.colorOption&&t.colorOption.name&&e.get(t.colorOption.name).value&&(i=x({},i,{color:e.get(t.colorOption.name).value})),i},e.prototype.ngOnChanges=function(e){e.formLinesData&&JSON.stringify(e.formLinesData.currentValue)!==JSON.stringify(e.formLinesData.previousValue)&&(this.storeFormLinesData&&0===this.storeFormLinesData.length&&(this.storeFormLinesData=this.formLinesData),this.init()),e.formLines&&void 0!==e.formLines.previousValue&&JSON.stringify(e.formLines.currentValue)!==JSON.stringify(e.formLines.previousValue)&&this.initColSettings(),e.totalOption&&JSON.stringify(e.totalOption.currentValue)!==JSON.stringify(e.totalOption.previousValue)&&this.calculateTotal()},e.prototype.calculateTotal=function(){var e=this;this.showTotal&&(this.totalOptionList=new Array(Number(this.columnsNumber)-1).fill(""),this.totalOption.forEach((function(t){t.insertIndex&&(t.insertValue||0===t.insertValue)&&(e.totalOptionList[t.insertIndex-1]={value:t.insertValue,align:t.align||"left",showDecimal:t.showDecimal||!1,preserveNumber:null!=t.preserveNumber?t.preserveNumber:2})})))},e.prototype.init=function(e){var t=this;void 0===e&&(e=!1),this.paginationPageIndex=1,this.checkList(this.formLines)?(this.createForm(),e||this.formLinesData&&(!this.formLinesData||0!==this.formLinesData.length)?this.addFormLineWithData():(this.tableLoading=!1,this.isTrulyEmptyAllowed||this.addFormLine(null,!1),this.showForm=!0),this.validateHdFormLines.valueChanges.subscribe((function(e){return t.onHdFormValueChanged(e)})),this.onHdFormValueChanged()):this.tableLoading=!1},e.prototype.createForm=function(){this.validateHdFormLines=this.fb.group({lines:this.fb.array([])}),this.newLine=this.newLineItem()},e.prototype.delayJumpToNextInput=function(){var e=this;setTimeout((function(){e.jumpToNextInput(e.activeDomX,e.activeDomY)}),0)},e.prototype.newLineItem=function(){return this.createLineFromValues(null,!0)},e.prototype.createLineFromValues=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var a={};this.formLines.forEach((function(n){a[n.name]=o.fb.control({value:null!=e?e[n.name]:n.value,disabled:n.disabled},t?n.require&&!n.hide?[i.Validators.required]:[]:n.require?[i.Validators.required]:[]),n.selectOption&&n.selectOption.label&&(a[n.selectOption.label]=o.fb.control(null!=e&&e[n.selectOption.label]||null,[]))}));var l=!n&&e&&e._hdRowId?e._hdRowId:this.generateRowId();a._hdRowId=this.fb.control(l),e&&!e._hdRowId&&(e._hdRowId=l),e&&Object.keys(e).forEach((function(t){"lineIndex"!==t&&"isHdFormLineSearchAdd"!==t&&"_hdRowId"!==t&&(a[t]||(a[t]=o.fb.control(e[t])))})),a.lineIndex=this.fb.control(this.linesFormArray.controls.length+1,[]),a.isHdFormLineSearchAdd=this.fb.control(this.isFilterData,[]);var r=this.fb.group(a);return this.formLines.forEach((function(e){if(e.onChangeEvent){var t=null!=e.onChangeEventDebounceTime?e.onChangeEventDebounceTime:0,n=r.get(e.name),i=function(t){e.type===Fe.Select&&null!==t&&o.delayJumpToNextInput(),o.triggerEvent(e.onChangeEvent,t,r)};t>0?n.valueChanges.pipe(c.debounceTime(t)).subscribe(i):n.valueChanges.subscribe(i)}})),r},e.prototype.calculateLineNumber=function(){this.linesFormArray.controls.forEach((function(e,t){e.get("lineIndex").setValue(t+1,{emitEvent:!1})}))},e.prototype.addFormLineWithData=function(){var e=this;this.formLinesData.forEach((function(t){e.linesFormArray.insert(e.linesFormArray.controls.length,e.createLineFromValues(t))})),this.calculateLineNumber(),this.tableLoading=!1,this.showForm=!0},e.prototype.addFormLine=function(e,t){var n=this;void 0===t&&(t=!0);var i=this.getInsertIndexAfter(e),o=this.newLineItem();this.linesFormArray.insert(i,o),this.calculateLineNumber(),this.addLineEvent.emit(o),this.paginationPageIndex=Math.floor(i/this.paginationPageSize)+1,setTimeout((function(){n.collectDomData(),t&&(n.activeDomX=n.toPageLocalRowIndex(i),n.activeDomY=0,console.log("执行过程13"),n.focusDom(n.activeDomX,n.activeDomY))}),0)},e.prototype.copyFormLine=function(e){var t=this,n=this.linesFormArray.controls.indexOf(e);if(!(n<0)){var i=e.getRawValue(),o=n+1;this.linesFormArray.insert(o,this.createLineFromValues(i,!1,!0)),this.calculateLineNumber(),setTimeout((function(){t.collectDomData(),t.activeDomX=t.toPageLocalRowIndex(o),t.activeDomY=0,t.focusDom(t.activeDomX,t.activeDomY)}),0)}},e.prototype.deleteFormLine=function(e){var t=this,n=-1;if("number"==typeof e?n=e-1:e&&(n=this.linesFormArray.controls.indexOf(e)),console.log("index","number"==typeof e?e:n),!(n<0))if(1!==this.linesFormArray.controls.length||this.allowEmpty){var i=this.linesFormArray.at(n);if(this.linesFormArray.removeAt(n),this.removeLineFromSelection(i),this.isFilterData||!this.linesFormArray.controls||0!==this.linesFormArray.controls.length||this.isTrulyEmptyAllowed){var o=Math.max(1,Math.ceil(this.linesFormArray.controls.length/this.paginationPageSize));this.paginationPageIndex>o&&(this.paginationPageIndex=o),this.calculateLineNumber()}else this.addFormLine();setTimeout((function(){t.collectDomData()}),0)}else this.deleteLastLineEvent&&this.deleteLastLineEvent.emit()},e.prototype.getInsertIndexAfter=function(e){if(!e)return this.linesFormArray.controls.length;var t=this.linesFormArray.controls.indexOf(e);return t>=0?t+1:this.linesFormArray.controls.length},e.prototype.toPageLocalRowIndex=function(e){return e-(this.paginationPageIndex-1)*this.paginationPageSize},e.prototype.pageIndexChange=function(e){var t=this;this.paginationPageIndex=e,setTimeout((function(){t.collectDomData()}),0)},e.prototype.pageSizeChange=function(e){var t=this;this.paginationPageSize=e,setTimeout((function(){t.collectDomData()}),0)},e.prototype.onHdFormValueChanged=function(e){var t=this;if(this.isFilterData)if(e&&e.lines&&0!==this.filterIndexStore.length){var n=e.lines;if(n.length===this.filterIndexStore.length)this.filterIndexStore.forEach((function(e,i){t.storeFormLinesData[e]=x({},t.filterStoreFormLinesData[i],n[i])}));else if(n.length>this.filterIndexStore.length){for(var i=this.validateHdFormLines.getRawValue().lines,o=-1,a=0;a<i.length;a++)if(i[a].isHdFormLineSearchAdd){o=a;break}-1!==o&&this.storeFormLinesData.splice(this.filterIndexStore[o-1]+1,0,i[o]),this.filterIndexStore.push(this.filterIndexStore[o-1]+1)}else{var l=-1,r=0;if(0===n.length)l=0;else for(a=0;a<n.length;a++){if(n[a].lineIndex-r>1){l=a;break}r++}if(-1!==l){this.storeFormLinesData=this.storeFormLinesData.filter((function(e,n){return n!==t.filterIndexStore[l]})),this.filterIndexStore.splice(l,1);for(a=0;a<this.filterIndexStore.length;a++)a>=l&&this.filterIndexStore[a]--}else{var s=this.filterIndexStore[this.filterIndexStore.length-1];this.storeFormLinesData=this.storeFormLinesData.filter((function(e,t){return t!==s})),this.filterIndexStore.pop()}}}else e&&e.lines&&(this.storeFormLinesData=e.lines);else e&&e.lines&&(this.storeFormLinesData=e.lines);this.isFilterData?this.formValid?this.formValid=this.validateHdFormLines.valid:this.validateHdFormLines.valid?this.formValid=this.innerGetValid():this.formValid=this.validateHdFormLines.valid:this.formValid=this.validateHdFormLines.valid,this.changeEvent.emit(this.validateHdFormLines)},e.prototype.checkList=function(e){if(!e||e&&0===e.length)return!1;var t=[],n=[];if(e.forEach((function(i){if(t.push(i.name),i.onSearchEvent&&i.selectOption&&(n=[],e.forEach((function(e){e.name!==i.selectOption.value&&e.name!==i.selectOption.label||n.push(e.name)})),n.length<2))throw"formLines组件数据格式不规范,字段"+i.name+"的selectOption的value、label字段未能在formLines中找到对应字段!"})),C(new Set(t)).length!==e.length)throw"formLines组件数据格式不规范,存在重复name值!";return!0},e.prototype.submitForm=function(){this.changeEvent.emit(this.validateHdFormLines.getRawValue())},e.prototype.resetForm=function(){this.clearSelection();for(var e=this.linesFormArray.controls.length;e>=0;e--)this.deleteFormLine(e);this.paginationPageIndex=1},e.prototype.inputClean=function(e,t){t.get(e.name).setValue(null)},e.prototype.selectValue=function(e,t,n){document.querySelector(e).select(),this.setActiveDomInFormLines(t,n)},e.prototype.isTextOverflow=function(e,t){var n=this.textWidthCache[e];if(void 0!==n)return n+15>=t;var i=document.createElement("span");i.style.visibility="hidden",i.style.position="absolute",i.style.whiteSpace="nowrap",i.style.fontSize="14px",i.style.display="inline-block",i.innerText=e,document.body.appendChild(i);var o=i.offsetWidth+15>=t;return this.textWidthCache[e]=i.offsetWidth,i.style.display="none",document.body.removeChild(i),o},e.prototype.judgeColEmpty=function(e){return e||0===e?e:"<空>"},e.prototype.judgeValueIsNotEmpty=function(e){return null!==e||void 0!==e},e.decorators=[{type:t.Component,args:[{selector:"hd-form-lines",template:'<ng-container *ngIf="showForm && showToolbar">\n <hd-button-group class="hd-formLines-toolbar">\n <ng-template #buttonGroupLeft>\n \x3c!-- 有全局搜索:左侧放搜索框 --\x3e\n <ng-container *ngIf="showSearch">\n <nz-input-group [nzSuffix]="suffixIconSearch">\n <input type="text" nz-input (keyup.enter)="searchLines()" placeholder="请输入内容搜索" style="width: 300px;"\n [(ngModel)]="filterStr" />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <i nz-icon nzType="search" (click)="searchLines()"></i>\n </ng-template>\n </ng-container>\n \x3c!-- 无全局搜索:左侧放自定义按钮 --\x3e\n <ng-container *ngIf="!showSearch">\n <ng-container *ngTemplateOutlet="formLinesLeftButton"></ng-container>\n </ng-container>\n </ng-template>\n <ng-template #buttonGroupRight>\n \x3c!-- 有全局搜索:右侧范围再左右分开 --\x3e\n <div class="hd-formLines-toolbar-right" *ngIf="showSearch">\n <div class="hd-formLines-toolbar-right-left">\n <ng-container *ngTemplateOutlet="formLinesLeftButton"></ng-container>\n </div>\n <div class="hd-formLines-toolbar-right-right">\n <ng-container *ngTemplateOutlet="formLinesRightButton"></ng-container>\n <ng-container *ngTemplateOutlet="colSettingsTpl"></ng-container>\n </div>\n </div>\n \x3c!-- 无全局搜索:右侧只放自定义右侧按钮 + 列设置 --\x3e\n <ng-container *ngIf="!showSearch">\n <ng-container *ngTemplateOutlet="formLinesRightButton"></ng-container>\n <ng-container *ngTemplateOutlet="colSettingsTpl"></ng-container>\n </ng-container>\n </ng-template>\n </hd-button-group>\n <hd-space background="transparent" type="row" size="12"></hd-space>\n</ng-container>\n\n<ng-template #colSettingsTpl>\n <ng-container *ngIf="showColSettingsButton">\n <span class="hd-formLines-col-settings" nz-dropdown nzTrigger="click" [nzDropdownMenu]="colSettingsMenu"\n [nzVisible]="isDropdownVisible" (click)="confirmDropdown()" title="列设置">\n <svg class="hd-formLines-col-settings-icon" width="14" height="14" viewBox="0 0 14 14" fill="none"\n xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.92031 1.80756C5.02551 1.42884 5.37033 1.16675 5.76339 1.16675H8.23667C8.62973 1.16675 8.97455 1.42884 9.07975 1.80756L9.37802 2.88133L10.4571 2.60273C10.8377 2.50448 11.2371 2.67206 11.4336 3.01245L12.6703 5.15438C12.8668 5.49478 12.8122 5.92445 12.5369 6.20491L11.7561 7.00008L12.5369 7.79525C12.8122 8.07572 12.8668 8.50539 12.6703 8.84579L11.4336 10.9877C11.2371 11.3281 10.8377 11.4957 10.4571 11.3974L9.37802 11.1188L9.07975 12.1926C8.97455 12.5713 8.62973 12.8334 8.23667 12.8334H5.76339C5.37033 12.8334 5.02551 12.5713 4.92031 12.1926L4.62206 11.1189L3.54315 11.3974C3.16258 11.4957 2.76318 11.3281 2.56666 10.9877L1.33001 8.84579C1.13349 8.50539 1.18806 8.07572 1.46343 7.79525L2.24419 7.00008L1.46344 6.20491C1.18806 5.92445 1.13349 5.49478 1.33002 5.15438L2.56666 3.01245C2.76319 2.67206 3.16258 2.50448 3.54316 2.60273L4.62206 2.88127L4.92031 1.80756ZM4.54541 10.843L4.54552 10.8433L4.54541 10.843ZM5.98508 2.33341L5.66952 3.46945C5.54185 3.92906 5.06958 4.20173 4.60771 4.08249L3.46618 3.78778L2.45122 5.54572L3.2773 6.38705C3.6115 6.72742 3.6115 7.27275 3.2773 7.61312L2.45122 8.45444L3.46617 10.2124L4.60771 9.91768C5.06958 9.79844 5.54185 10.0711 5.66952 10.5307L5.98508 11.6667H8.01498L8.33056 10.5307C8.45823 10.071 8.9305 9.79838 9.39237 9.91762L10.5341 10.2124L11.5491 8.45444L10.723 7.61312C10.3888 7.27275 10.3888 6.72742 10.723 6.38705L11.5491 5.54572L10.5341 3.78778L9.39237 4.08254C8.9305 4.20178 8.45823 3.92912 8.33056 3.46951L8.01498 2.33341H5.98508ZM7.00003 5.83342C6.3557 5.83342 5.83337 6.35575 5.83337 7.00008C5.83337 7.64441 6.3557 8.16675 7.00003 8.16675C7.64436 8.16675 8.1667 7.64441 8.1667 7.00008C8.1667 6.35575 7.64436 5.83342 7.00003 5.83342ZM4.6667 7.00008C4.6667 5.71142 5.71137 4.66675 7.00003 4.66675C8.2887 4.66675 9.33337 5.71142 9.33337 7.00008C9.33337 8.28875 8.2887 9.33342 7.00003 9.33342C5.71137 9.33342 4.6667 8.28875 4.6667 7.00008Z"\n fill="currentColor" />\n </svg>\n </span>\n <nz-dropdown-menu #colSettingsMenu="nzDropdownMenu">\n <div class="hd-formLines-col-settings-dropdown">\n <div class="hd-formLines-col-settings-list">\n <div *ngIf="showListNodes && nowListNodes.length > 0" nz-menu style="padding: 5px 10px;">\n <nz-tree *ngIf="showListNodes" [nzData]="nowListNodes" nzCheckable nzBlockNode nzShowExpand="false"\n (nzCheckBoxChange)="checkAction($event)">\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 class="hd-formLines-col-settings-footer">\n <hd-button style="margin-right: 4px;" type="default" size="small" (clickAction)="cancelDropdown()">取消\n </hd-button>\n <hd-button type="primary" size="small" (clickAction)="submitGrids()">完成</hd-button>\n </div>\n </div>\n </nz-dropdown-menu>\n </ng-container>\n</ng-template>\n\n\x3c!-- <hd-button type="primary" (clickAction)="focusDom(0, 0)">聚焦第一个</hd-button> --\x3e\n\n<ng-container *ngIf="showForm">\n <ng-container *ngTemplateOutlet="tableTotal"></ng-container>\n <hd-space *ngIf="tableTotal" background="transparent" type="row" size="12"></hd-space>\n</ng-container>\n\n<form *ngIf="showForm" nz-form [formGroup]="validateHdFormLines" class="ant-advanced-search-form hd-formLines-container"\n (keydown)="onKeyDown($event)">\n <nz-table nzTemplateMode [nzFrontPagination]="false" [nzLoading]="tableLoading" [nzScroll]="scroll">\n <thead>\n <tr>\n <th nzWidth="40px" nzLeft="0px" *ngIf="showCheckbox">\n <label nz-checkbox\n [ngModel]="isAllChecked()"\n [nzIndeterminate]="isIndeterminate()"\n [ngModelOptions]="{standalone: true}"\n (ngModelChange)="onAllChecked($event)"></label>\n </th>\n <th nzWidth="58px" [nzLeft]="lineNumberLeft" *ngIf="showLineNumber">序号</th>\n <ng-container *ngFor="let item of formLines">\n <th *ngIf="isColumnVisible(item)" [nzAlign]="item.align ? item.align : \'left\'">\n <span *ngIf="item.require" style="color: red;">*</span>{{ item.label }}\n </th>\n </ng-container>\n <th [style.width.px]="operateColWidth" nzRight="0">操作</th>\n </tr>\n </thead>\n <tbody>\n <ng-container\n *ngFor="let line of linesFormArray.controls.slice((paginationPageIndex - 1) * paginationPageSize, (paginationPageIndex - 1) * paginationPageSize + paginationPageSize);index as dataIndex"\n formArrayName="lines">\n <tr [formGroup]="line">\n <td nzWidth="40px" nzLeft="0px" *ngIf="showCheckbox">\n <label nz-checkbox\n [ngModel]="isLineChecked(line)"\n [ngModelOptions]="{standalone: true}"\n (ngModelChange)="onLineCheckedChange(line, $event)"></label>\n </td>\n <td nzWidth="58px" [nzLeft]="lineNumberLeft" *ngIf="showLineNumber">\n {{ line.get(\'lineIndex\').value }}\n </td>\n <ng-container *ngFor="let formItem of formLines; index as innerIndex">\n <td *ngIf="isColumnVisible(formItem)" [nzAlign]="formItem.align ? formItem.align : \'left\'">\n <nz-form-item>\n <nz-form-control\n [nzValidateStatus]="getControlValidateStatus(line, formItem)"\n [nzErrorTip]="formItem.label + \'不能为空\'">\n <ng-container [ngSwitch]="formItem.type">\n <ng-container *ngSwitchCase="\'Input\'">\n <nz-input-group [nzSuffix]="inputCleanTemplate"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)">\n <input #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [ngStyle]="getStyle(line, formItem, \'100px\')" nz-input\n [ngStyle]="{\'color\': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}"\n [id]="\'input-\' + formItem.name + line.get(\'lineIndex\').value"\n (click)="formItem.isSelect ? selectValue(\'#input-\' + formItem.name + line.get(\'lineIndex\').value, dataIndex , innerIndex) : null"\n (input)="limitInputLength($event, line, formItem)"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [formControlName]="formItem.name" />\n </nz-input-group>\n <ng-template #inputCleanTemplate>\n <i nz-icon nz-tooltip class="ant-input-clear-icon" nzTheme="fill" nzType="close-circle"\n *ngIf="line.get(formItem.name).value && !line.get(formItem.name).disabled"\n (click)="inputClean(formItem ,line)"></i>\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchCase="\'Select\'">\n <nz-select #formInputDom (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n nzDropdownClassName="hd-select-table"\n *ngIf="formItem.selectOption.tableColumns;else nomarlSelectTemplate"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, line, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)"\n [ngStyle]="getStyle(line, formItem, \'200px\')">\n <div class="hd-select-empty"\n *ngIf="!(formItem.selectOption?.selectList?.length > 0 || line.get(formItem.selectOption.selectListName)?.value?.length > 0)">\n <img\n src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNjQgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NzIuMDAwMDAwLCAtMTMzNS4wMDAwMDApIj4KICAgICAgICAgICAgPGcgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDY0LjAwMDAwMCwgMTExNC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MC4wMDAwMDAsIDc4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNjguMDAwMDAwLCAxNDQuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxnID4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxlbGxpcHNlICBmaWxsPSIjRjVGNUY1IiBjeD0iMzIiIGN5PSIzMyIgcng9IjMyIiByeT0iNyI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGcgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5LjAwMDAwMCwgMC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTQ2LDEyLjc2MDU2MDQgTDM1Ljg1NDMwNDcsMS4yNTczOTYzMyBDMzUuMzY3NDQxNCwwLjQ3MzgyNjYwNSAzNC42NTU4Nzg5LDAgMzMuOTA2NzYxNywwIEwxMi4wOTMyMzgzLDAgQzExLjM0NDEyMTEsMCAxMC42MzI1NTg2LDAuNDczOTUwMjU1IDEwLjE0NTY5NTMsMS4yNTczOTYzMyBMMi42MTQ3OTcyN2UtMTIsMTIuNzYwNTYwNCBMMCwyMiBMNDYsMjIgTDQ2LDEyLjc2MDU2MDQgWiIgID48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTMyLjYxMzI4MTMsMTUuOTMxNSBDMzIuNjEzMjgxMywxNC4zMjU4NTExIDMzLjYwNjk1MzEsMTMuMDAwMjM0IDM0LjgzOTY5OTIsMTMgTDQ2LDEzIEw0NiwzMS4xMzcxMjc3IEM0NiwzMy4yNTg5NTc0IDQ0LjY3OTM4NjcsMzUgNDMuMDUwNDI5NywzNSBMMi45NDk1NzAzMSwzNSBDMS4zMjA1MjM0NCwzNSAwLDMzLjI1ODg0MDQgMCwzMS4xMzcxMjc3IEwwLDEzIEwxMS4xNjAzMDA4LDEzIEMxMi4zOTMwNDY5LDEzIDEzLjM4NjcxODgsMTQuMzIyODA4NSAxMy4zODY3MTg4LDE1LjkyODQ1NzQgTDEzLjM4NjcxODgsMTUuOTQ5NjM4MyBDMTMuMzg2NzE4OCwxNy41NTUyODcyIDE0LjM5MTcxMDksMTguODUxMTgwOSAxNS42MjQ0NTcsMTguODUxMTgwOSBMMzAuMzc1NTQzLDE4Ljg1MTE4MDkgQzMxLjYwODI4OTEsMTguODUxMTgwOSAzMi42MTMyODEzLDE3LjU0MzM1MTEgMzIuNjEzMjgxMywxNS45Mzc3MDIxIEwzMi42MTMyODEzLDE1LjkzMTUgWiIgIGZpbGw9IiNGQUZBRkEiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"\n alt="empty">\n <p class="ant-empty-description">暂无数据</p>\n </div>\n\n <nz-option nzCustomContent\n *ngFor="let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]">\n <div class="hd-option-line">\n <div *ngFor="let selectOptionTableColumn of formItem.selectOption.tableColumns"\n [ngStyle]="getSelectTableColumnStyle(selectOptionTableColumn)">\n <ng-container *ngIf="selectOptionTableColumn.icons;else notPictureTemplate">\n <div class="hd-option-icons">\n <ng-container *ngFor="let icon of selectOptionTableColumn.icons">\n <img *ngIf="icon.iconName === \'hd-recommend-star\' && selectItem[icon.fieldName]"\n src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVpJREFUOE+l07FLQkEcB/Dv7713Zg1GQ0SgW9AmTYVp1BRUokZBEI1u/QVBUBD1D0Rt0dQaPYmotXza1tKQzQ1Fk0iDHr5vPEOTUpO88e77+9zvjjtBh8HTOb8e0hu0eN8Xzz22ikonoGzHdgXcAVB16S75U/mbn/m2AK+mglqbBUAGvCIRuVCJ7HLXQCUTPQOxXi8Q4FolnYWuAH0+HaEpjrdxAyC3VSq33xKgPTWiYYUai8IjUCabw4Zw1XWNF2+OZrXoi+cLImBth4odfQAw0elCW6zdKvU2/wVkYs8ggzBlRqrcI/DrrK1wQ7DWAIToV8lsqGxHDwTY6qYbA1jpCVAux3oBSirhDPYCOL6kE/s/QB77UrnNJoDDVkCN6pI+BJH+6xINQdpKOCf1d/AEYBxgUUQC5PcLbPMDXy1lhGXx7r0G6ExklpBwI0xh2w7ID+UzL71iL/MJdzuZdDL/kXcAAAAASUVORK5CYII="\n style="width: 16px;height: 16px;">\n <img *ngIf="icon.iconName === \'hd-img-star\' && selectItem[icon.fieldName]"\n src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAyhJREFUWEe1ll1o1XYYxp8nPUmUihdCV3bAirvYzUC80Xpy3KwTZNR2CdOhDkTBwe6G32XzwqpjE3Qt4pUKZQqDyQZNTp1uY8yCJG0F2d2+LlWOOkShovQkaV45lcJpTdOTHJubBPI+z/Pj//H+/0TGR66uf8sPoz8A/Kstkp38YORxFitmEVU1vm1cBPlp9ZuQXtX0jmfxygQgvxSWBRWlDECvhgrwQFuqLufG4TAtRCaAwCl+IcDXtWEi2KFb7pUFBxCBEpSMMsDWGWEiNzXLe2/BASp2cTuJH+KCRMJ3dGvsrzQQqafAtw0XpBEfIhc00/tswQD8QWM1FP45d4A8V9XJN9k5Nl4vRKoR8G3jMshdyebRPs0cOftaAaRUbAsRrRRRhuczFsF/lPATNQrL3Hr7/nz1lGvvtkwGUSEC8gLkWfMGkAfQMp9J0n8ByhS5J+QDVr+BshBlUu6q3d5v9G3jIcg3GgnJqp2C853iCIB1WU0a1F2iOO2tPnK3CLQ1aJZKLpCfddPrmtoF8uuqZn9iyfcEzVQumYtlQDO9vS8PsprHd4xvAR7I7FuHUIBvdNP9crr0lT7g24U+UNlfh1f6Esrn2ofeuVphbCPyneJuAN+lT0jokZCduum9cobM2Qn9krEGEa6+hi36jEC3aro34vASW3FoG9si8sdGRoKCY6rlnpjLIxGgYhunSPY0AiAiP+mW93EmAN8ujoJobwgAuKOb7orUAHKjY1EwHjwFkGsEoKpVJ6WVH3n/p1oDwVBhk0TK742GV/UKYOZMt5QKoGIbX5E8mgwg4wCbADQn1c1uPvP2gWqB7xjDADck7OwBVan0QFFyQaj2A9wxV60A13XT7Uw1Ar5TlDiBQP6hRHs0a3Ss9n8wuK4jYtN5Em/H6B5ppht7r4jvhEOFtYiUGQEAnhDoV033ZNJwB45xRAS9IBfX1qnhRD7uhhQLENiFQ0Ll9LSBCM7olnu43gUpTjEfiPSB3D6tUQRbcpZ7bbZHLEBYKnRFogxV505rmjzIrtG/6w2fMS0l430RHAVoULBZtdybdQFkCcuqSXUtzxqSpHsBfmUdgJhaiDQAAAAASUVORK5CYII="\n style="width: 16px;height: 16px;">\n <span *ngIf="icon.iconName === \'hd-select-close\' && selectItem[icon.fieldName]"\n class="hd-select-close">\n 禁用\n </span>\n <span *ngIf="icon.iconName === \'hd-select-purchase\' && selectItem[icon.fieldName]"\n class="hd-select-purchase">\n 协\n </span>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notPictureTemplate>\n <ng-container\n *ngIf="!isTextOverflow(selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name], selectOptionTableColumn.width);else overflowTemplate">\n <div>{{\n judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])\n }}\n </div>\n </ng-container>\n <ng-template #overflowTemplate>\n <div class="hd-option-overflow" nz-tooltip\n [nzTooltipTitle]="selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name]">\n {{\n judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])\n }}\n </div>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </nz-option>\n <nz-option\n *ngIf="formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value"\n [nzLabel]="(formItem.selectOption.showLabelAndValue || formItem.selectOption.value === \'code\' || formItem.selectOption.value === \'productCode\' || formItem.selectOption.hdShowItemCode) ? (\'[\'+ line.get(formItem.selectOption.value).value + \']\' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value"\n [nzValue]="line.get(formItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n <ng-template #nomarlSelectTemplate>\n <nz-select #formInputDom (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, line, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)"\n [ngStyle]="getStyle(line, formItem, \'200px\')">\n <nz-option\n *ngFor="let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]">\n </nz-option>\n <nz-option\n *ngIf="formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value"\n [nzLabel]="(formItem.selectOption.showLabelAndValue || formItem.selectOption.value === \'code\' || formItem.selectOption.value === \'productCode\' || formItem.selectOption.hdShowItemCode) ? (\'[\'+ line.get(formItem.selectOption.value).value + \']\' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value"\n [nzValue]="line.get(formItem.selectOption.value).value" nzHide></nz-option>\n </nz-select>\n </ng-template>\n\n </ng-container>\n <ng-container *ngSwitchCase="\'Date\'">\n <nz-date-picker #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)" *ngIf="formItem.showTime"\n [ngStyle]="getStyle(line, formItem, \'150px\')"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false" nzShowTime\n nzFormat="yyyy-MM-dd HH:mm:ss">\n </nz-date-picker>\n <nz-date-picker #formInputDom *ngIf="!formItem.showTime"\n [ngStyle]="getStyle(line, formItem, \'150px\')"\n (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" [nzDisabledDate]="formItem.hdDisabledDate"\n [nzShowToday]="formItem.hdShowToday !== false">\n </nz-date-picker>\n <div *ngIf="formItem?.explainOptionRight?.show"\n [style.color]="formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null">\n {{ line.get(formItem.explainOptionRight.name).value }}\n </div>\n </ng-container>\n <ng-container *ngSwitchCase="\'DateRange\'">\n <nz-range-picker #formInputDom [ngStyle]="getStyle(line, formItem, \'200px\')"\n (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [nzDisabledDate]="formItem.hdDisabledDate" [nzPlaceHolder]="[\'开始日期\',\'结束日期\']"\n [formControlName]="formItem.name">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase="\'TextArea\'">\n <textarea #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [ngStyle]="{\'color\': formItem?.colorOption?.name ? line.get(formItem.colorOption.name).value : null}"\n [placeholder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [maxlength]="formItem.maxLength || null" rows="4" nz-input\n [maxlength]="formItem.maxLength || null" [formControlName]="formItem.name"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase="\'InputNumber\'">\n <div style="display: flex;align-items: center;"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)">\n <nz-input-number #formInputDom [ngStyle]="getStyle(line, formItem, \'100px\')"\n [maxlength]="formItem.maxLength || null" [formControlName]="formItem.name"\n [nzMin]="formItem?.inputNumber?.min || 0" [nzMax]="formItem?.inputNumber?.max || 99999999"\n [nzStep]="formItem?.inputNumber?.step || 1"\n [nzPrecision]="formItem?.inputNumber?.precision != null ? formItem.inputNumber.precision : 2"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请输入\' + formItem.label"\n [nzId]="\'inputNumber-\' + formItem.name + line.get(\'lineIndex\').value"\n (click)="formItem.isSelect ? selectValue(\'#inputNumber-\' + formItem.name + line.get(\'lineIndex\').value, dataIndex , innerIndex) : setActiveDomInFormLines(dataIndex , innerIndex)">\n </nz-input-number>\n <div *ngIf="formItem?.explainOptionRight?.show"\n [style.color]="formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null">\n {{ line.get(formItem.explainOptionRight.name).value }}\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase="\'MultipleSelect\'">\n <nz-select #formInputDom (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)" nzMode="multiple"\n [nzServerSearch]="formItem.selectOption.hdServerSearch || false"\n [nzDropdownMatchSelectWidth]="formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false"\n [nzShowSearch]="formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true"\n [nzAllowClear]="formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true"\n [nzPlaceHolder]="formItem.placeholder ? formItem.placeholder : \'请选择\' + formItem.label"\n [formControlName]="formItem.name" [ngStyle]="getStyle(line, formItem, \'200px\')"\n (nzOpenChange)="onOpenChangeEvent(formItem.onOpenChangeEvent || null, $event, line, formItem.onOpenChangeEventDebounceTime, formItem)"\n (nzOnSearch)="onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)">\n <nz-option *ngFor="let selectItem of formItem.selectOption.selectList"\n [nzValue]="selectItem[formItem.selectOption.value]" [nzLabel]="formItem.selectOption.showLabelAndValue ? \'[\'+ selectItem[formItem.selectOption.value] +\']\' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]"></nz-option>\n <ng-container\n *ngIf="formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value">\n <nz-option *ngFor="let option of line.get(formItem.selectOption.value).value;index as i"\n [nzLabel]="line.get(formItem.selectOption.label).value[i]" [nzValue]="option" nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase="\'ViewDom\'">\n <span class="hd-formLines-viewDom" *ngIf="!formItem?.hideViewDomValue">\n {{\n (formItem.preserveNumber && line.get(formItem.name).value) ?\n LodashRound(line.get(formItem.name).value,\n formItem.preserveNumber).toFixed(formItem.preserveNumber)\n : line.get(formItem.name).value\n }}\n </span>\n <ng-container\n *ngTemplateOutlet="ViewDomRightTemplate;context:{formItem: formItem, formLine: line}"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Switch\'">\n <nz-switch (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [formControlName]="formItem.name"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchCase="\'Time\'">\n <nz-time-picker #formInputDom [ngStyle]="getStyle(line, formItem, \'200px\')"\n (click)="setActiveDomInFormLines(dataIndex , innerIndex)"\n (focusin)="setActiveDomInFormLines(dataIndex , innerIndex)"\n [formControlName]="formItem.name"></nz-time-picker>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n <div *ngIf="formItem?.explainOption?.show"\n [style.color]="formItem?.explainOption?.color ? formItem.explainOption.color : null">\n {{ line.get(formItem.explainOption.name).value }}\n </div>\n </td>\n </ng-container>\n <td [style.width.px]="operateColWidth" nzRight="0">\n <span class="common-btn-group">\n <a *ngIf="operateButtons.includes(\'add\')" (click)="addFormLine(line)">添加</a>\n <a *ngIf="operateButtons.includes(\'copy\')" (click)="copyFormLine(line)">复制</a>\n <a class="common-danger-btn" *ngIf="operateButtons.includes(\'delete\') && !showDeleteConfirm"\n (click)="deleteFormLine(line)">删除</a>\n <a class="common-danger-btn" *ngIf="operateButtons.includes(\'delete\') && showDeleteConfirm" nz-popconfirm\n nzPopconfirmTitle="确认要删除该行吗?" nzPopconfirmPlacement="bottom"\n (nzOnConfirm)="deleteFormLine(line)">删除</a>\n </span>\n </td>\n </tr>\n </ng-container>\n \x3c!-- 合计区域 --\x3e\n <tr *ngIf="showTotal" class="hd-table-total">\n <td *ngIf="showCheckbox"></td>\n <td>合计</td>\n <ng-container *ngFor="let totalOption of totalOptionList">\n <td [nzAlign]="totalOption.align ? totalOption.align : \'left\'">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal) ? totalOption.value :\n LodashRound(totalOption.value, totalOption.preserveNumber).toFixed(totalOption.preserveNumber)) : \'\'\n }}\n </td>\n </ng-container>\n </tr>\n </tbody>\n </nz-table>\n <nz-list\n *ngIf="linesFormArray.controls.slice((paginationPageIndex - 1) * paginationPageSize, (paginationPageIndex - 1) * paginationPageSize + paginationPageSize).length === 0"\n [nzDataSource]="[]"></nz-list>\n <ng-container>\n <hd-space background="transparent" type="row" size="16"></hd-space>\n <div class="hd-formLines-pagination">\n <div class="hd-formLines-pagination-left">\n <div *ngIf="showKeyboardOperateTip">支持键盘操作,使用\n <i nz-icon nzType="up-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <i nz-icon nzType="down-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <i nz-icon nzType="left-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <i nz-icon nzType="right-circle" nzTheme="outline" style="font-size: 16px;margin-left: 4px;"></i>\n <span style="font-size: 14px;margin-left: 4px;font-weight: bolder;">Enter</span>\n 键切换表单项\n </div>\n </div>\n <nz-pagination [nzSize]="\'small\'" style="text-align: right;" [nzPageIndex]="paginationPageIndex"\n [nzPageSize]="paginationPageSize" [nzPageSizeOptions]="[10, 20, 30, 40, 50]"\n [nzTotal]="linesFormArray.controls.length" nzShowSizeChanger (nzPageIndexChange)="pageIndexChange($event)"\n (nzPageSizeChange)="pageSizeChange($event)" [nzShowTotal]="totalTemplate"></nz-pagination>\n <ng-template #totalTemplate let-total>共 {{ linesFormArray.controls.length }} 条数据</ng-template>\n </div>\n\n </ng-container>\n</form>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-formLines-toolbar{display:block}.hd-formLines-toolbar ::ng-deep .hd-button-group-right{flex:1;min-width:0;display:flex;justify-content:flex-end}.hd-formLines-toolbar-right{display:flex;align-items:center;justify-content:space-between;width:100%;margin-left:16px}.hd-formLines-toolbar-right-left,.hd-formLines-toolbar-right-right{display:flex;align-items:center}.hd-formLines-col-settings{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;height:32px;padding:0;margin-left:12px;cursor:pointer;color:#2a3634;background:0 0;border:1px solid #e5e6eb;border-radius:4px;vertical-align:middle;flex-shrink:0}.hd-formLines-col-settings:hover{color:#20b95d;background:#f5f8f6;border-color:#20b95d}.hd-formLines-col-settings .hd-formLines-col-settings-icon{display:block;width:14px;height:14px;flex-shrink:0}.hd-formLines-col-settings-dropdown{background:#fff;border:1px solid #e5e6eb;border-radius:4px;box-shadow:0 6px 16px rgba(0,0,0,.08),0 3px 6px rgba(0,0,0,.06);overflow:hidden}.hd-formLines-col-settings-list{max-height:400px;overflow-y:auto}.hd-formLines-col-settings-footer{text-align:right;background:#fff;padding:4px;border-top:1px solid #f0f0f0}.hd-formLines-container ::ng-deep td{padding:4px 8px!important}.hd-formLines-container .ant-table-tbody>tr>td,.hd-formLines-container ::ng-deep .ant-table-thead>tr>th{padding:16px 8px}.hd-formLines-container ::ng-deep .hd-table-total>td{border:0!important}.hd-formLines-container ::ng-deep .ant-form-item{margin-bottom:0}.hd-formLines-container .ant-input-number{width:100%}.hd-formLines-container .hd-formLines-viewDom{font-size:14px}::ng-deep .hd-select-table .ant-select-dropdown-menu-item-disabled{background:#f5f8f6!important;border-bottom:1px solid #e8e8e8;position:-webkit-sticky;position:sticky;top:0;z-index:10;padding:0}::ng-deep .hd-select-table .ant-select-dropdown-menu-item-disabled:hover{background:#f5f8f6!important}::ng-deep .hd-option-header{display:flex;align-items:center;color:rgba(0,0,0,.85);background:#f5f8f6}::ng-deep .hd-option-header-column{padding:5px 0}.hd-option-line{display:flex;align-items:center}.hd-option-overflow{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-select-empty{display:flex;align-items:center;flex-direction:column;padding:20px 0;background:#fff}::ng-deep .ant-empty-small{background:#fff!important;padding:8px 0;margin:0}.hd-formLines-pagination{display:flex;align-items:center;justify-content:space-between}.hd-formLines-pagination .hd-formLines-pagination-left{margin-left:10px;display:flex;align-items:center}.hd-option-icons{display:flex;align-items:center}.hd-select-close{display:block;height:16px;line-height:14px;text-align:center;padding:0 4px;border:1px solid #f5222d;color:#f5222d;font-size:14px}.hd-select-purchase{display:block;height:16px;line-height:14px;text-align:center;padding:0 4px;border:1px solid #20bd62;color:#20bd62;font-size:14px}"]}]}],e.ctorParameters=function(){return[{type:i.FormBuilder},{type:t.ChangeDetectorRef},{type:Oe}]},e.propDecorators={formInputDomList:[{type:t.ViewChildren,args:["formInputDom"]}],showLineNumber:[{type:t.Input}],allowEmpty:[{type:t.Input}],deleteLastLineEvent:[{type:t.Output}],showKeyboardOperateTip:[{type:t.Input}],enableKeyboardOperate:[{type:t.Input}],tableLoading:[{type:t.Input}],showSearch:[{type:t.Input}],showCheckbox:[{type:t.Input}],showColSettings:[{type:t.Input}],uuid:[{type:t.Input}],formLines:[{type:t.Input}],formLinesData:[{type:t.Input}],operateButtons:[{type:t.Input}],scroll:[{type:t.Input}],changeEvent:[{type:t.Output}],addLineEvent:[{type:t.Output}],selectionChange:[{type:t.Output}],showDeleteConfirm:[{type:t.Input}],showTotal:[{type:t.Input}],totalOption:[{type:t.Input}],columnsNumber:[{type:t.Input}],ViewDomRightTemplate:[{type:t.ContentChild,args:["ViewDomRightTemplate",{static:!1}]}],formLinesLeftButton:[{type:t.ContentChild,args:["formLinesLeftButton",{static:!1}]}],formLinesRightButton:[{type:t.ContentChild,args:["formLinesRightButton",{static:!1}]}],tableTotal:[{type:t.ContentChild,args:["tableTotal",{static:!1}]}],deleteLineEvent:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showLineNumber",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"allowEmpty",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showKeyboardOperateTip",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"enableKeyboardOperate",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"tableLoading",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSearch",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showCheckbox",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showColSettings",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showDeleteConfirm",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTotal",void 0),e}();var Pe=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.NgZorroAntdModule,F,H,L],declarations:[Me],exports:[Me],providers:[Oe]}]}],e}(),Ve=function(){function e(){this.scroll={x:"1px"},this.showSelected=!1,this.selectField="billNumber",this.showTableTotal=!1,this.selectEvent=new t.EventEmitter,this.tableSearchEvent=new t.EventEmitter,this.tableLoading=!1,this.tablePageIndex=1,this.tablePageSize=10,this.tablePageIndexChange=new t.EventEmitter,this.tablePageSizeChange=new t.EventEmitter,this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.listOfAllData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.tableTotalOptionList=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){if(e&&e.tableData&&e.tableData.currentValue&&e.tableData.previousValue){if(e.tableData.currentValue.pageSize!==e.tableData.previousValue.pageSize||e.tableData.currentValue.pageNumber!==e.tableData.previousValue.pageNumber)return;this.resetStatus()}},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.resetStatus()},e.prototype.search=function(e){e?this.tablePageSizeChange.emit(this.tablePageSize):this.tablePageIndexChange.emit(this.tablePageIndex),this.tableSearchEvent.emit(e)},e.prototype.resetStatus=function(){this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([])},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),e&&t?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):!e&&t&&this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]],this.isAllDisplayDataChecked=this.listOfDisplayData.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=this.listOfDisplayData.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent){var i=Object.values(this.mapOfCheckList);this.selectEvent.emit(i)}0===this.tableData.content.length&&(this.isAllDisplayDataChecked=!1)},e.prototype.checkAll=function(e){var t=this;this.listOfDisplayData.forEach((function(n){e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e})),this.refreshStatus()},e.decorators=[{type:t.Component,args:[{selector:"hd-current-table",template:'<ng-container>\n <ng-container *ngTemplateOutlet="tableTotal"></ng-container>\n <hd-space *ngIf="tableTotal" type="row" size="12"></hd-space>\n <nz-table #hdTable class="hd-table-container" [nzScroll]="scroll" nzShowSizeChanger nzShowSizeChanger\n nzShowQuickJumper nzFrontPagination="false" nzSize="middle" [nzData]="tableData.content"\n [nzTotal]="tableData.totalElements" [(nzPageIndex)]="tablePageIndex" [nzLoading]="tableLoading"\n [(nzPageSize)]="tablePageSize" (nzPageSizeChange)="search(true)" (nzPageIndexChange)="search(false)"\n (nzCurrentPageDataChange)="showSelected ? currentPageDataChange($event) : null" [nzShowTotal]="tableTotalTemplate"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]">\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 *ngTemplateOutlet="tableHead"></ng-container>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let data of hdTable.data;index as i">\n <td nzWidth="40px" nzLeft="0px" *ngIf="showSelected" nzShowCheckbox\n [(nzChecked)]="mapOfCheckedId[data[selectField]]" (nzCheckedChange)="refreshStatus($event, data)"></td>\n <ng-container *ngTemplateOutlet="tableBody;context:{$implicit: data, index: i}"></ng-container>\n </tr>\n \x3c!-- 合计所有数据区域 需要后端接口配合 --\x3e\n <tr *ngIf="showTableTotal" class="hd-table-total">\n <td>合计</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 共 {{tableData.totalElements}} 条数据\n </ng-template>\n </nz-table>\n</ng-container>',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={tableData:[{type:t.Input}],scroll:[{type:t.Input}],showSelected:[{type:t.Input}],selectField:[{type:t.Input}],showTableTotal:[{type:t.Input}],tableTotalOption:[{type:t.Input}],selectEvent:[{type:t.Output}],tableSearchEvent:[{type:t.Output}],tableHead:[{type:t.ContentChild,args:["tableHead",{static:!1}]}],tableBody:[{type:t.ContentChild,args:["tableBody",{static:!1}]}],tableTotal:[{type:t.ContentChild,args:["tableTotal",{static:!1}]}],tableLoading:[{type:t.Input}],tablePageIndex:[{type:t.Input}],tablePageSize:[{type:t.Input}],tablePageIndexChange:[{type:t.Output}],tablePageSizeChange:[{type:t.Output}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTableTotal",void 0),e}();var Re=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,l.NzTableModule,H],declarations:[Ve],exports:[Ve],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),Be=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:t.Component,args:[{selector:"hd-log",template:'<hd-detail-lines [lines]="logs" hdFrontPagination="true">\n <ng-template #detailLineHead>\n <th class="hd-log-time">时间</th>\n <th class="hd-log-operate">操作人</th>\n <th class="hd-log-event">事件</th>\n <th class="hd-log-describe">描述</th>\n </ng-template>\n <ng-template #detailLineBody let-data let-index="index">\n <td class="hd-log-time">{{ data.createInfo.operateTime }}</td>\n <td class="hd-log-operate">{{ data.createInfo.operatorName }}</td>\n <td class="hd-log-event">{{ data.event }}</td>\n <td class="hd-log-describe" [innerHTML]="data.describe"></td>\n </ng-template>\n</hd-detail-lines>\n',styles:["td{white-space:wrap!important}.hd-log-time{width:150px}.hd-log-operate{width:100px;max-width:200px}.hd-log-event{width:80px;max-width:150px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={logs:[{type:t.Input}]},e}();var He=function(){function e(e){this.modalService=e}return e.prototype.showLogs=function(e){this.modalService.create({nzTitle:"操作日志",nzContent:Be,nzComponentParams:{logs:e},nzFooter:null,nzWidth:1e3})},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:o.NzModalService}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(h.NzModalService))},token:e,providedIn:"root"}),e}();var je=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule,oe],entryComponents:[Be],declarations:[Be],exports:[Be],providers:[He]}]}],e}(),We=function(){function e(){this.confirmOption=new t.EventEmitter,this.cancelOption=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.cancel=function(e){this.cancelOption.emit()},e.prototype.confirm=function(e){this.confirmOption.emit()},e.decorators=[{type:t.Component,args:[{selector:"hd-popconfirm",template:'<div class="popconfirm-content">\n <div class="popconfirm-arrow"></div>\n\n <div class="popconfirm-inner">\n <div class="message-content">\n <svg class="icon-warn" viewBox="64 64 896 896" fill="currentColor" width="1em" height="1em" data-icon="exclamation-circle" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"></path></svg>\n <p style="text-indent: 18px">{{message}}</p>\n </div>\n\n \x3c!-- 按钮提示 --\x3e\n <div class="btn-content">\n <button type="button" (click)="cancel($event)" nz-button nzType="default">取消</button>\n <button type="button" (click)="confirm($event)" nz-button nzType="primary">确认</button>\n </div>\n </div>\n</div>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.popconfirm-content{position:relative}.popconfirm-arrow{position:absolute;top:15px;left:-4px;display:block;width:8.5px;height:8.5px;background:0 0;border-style:solid;border-width:4.24264069px;transform:rotate(45deg);right:6px;box-shadow:-3px 3px 7px rgba(0,0,0,.07);border-color:transparent transparent #fff #fff}.popconfirm-inner{min-width:158px;background-color:#fff;padding:12px 16px;box-sizing:border-box;line-height:1.5;box-shadow:0 2px 8px rgba(0,0,0,.15);border-radius:4px;text-align:left}.message-content{position:relative}.icon-warn{color:#faad14;position:absolute;top:4px;font-size:14px}.btn-content{width:100%;text-align:right}:host ::ng-deep .btn-content>button{padding:0 7px!important;margin-left:8px!important;font-size:14px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={message:[{type:t.Input}],confirmOption:[{type:t.Output}],cancelOption:[{type:t.Output}]},e}();var _e=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[We],imports:[i.FormsModule,i.ReactiveFormsModule,n.CommonModule,o.NgZorroAntdModule],exports:[We],providers:[],bootstrap:[We]}]}],e}(),Ke=function(){var e,t,n=new Map,i=function(e){re[e].forEach((function(t){t&&n.set(t.toLowerCase(),e)}))};try{for(var o=S(Object.keys(re)),a=o.next();!a.done;a=o.next()){i(a.value)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n}(),qe=function(){function e(){}return e.prototype.ngOnInit=function(){this.setStatusColor()},e.prototype.ngOnChanges=function(){this.setStatusColor()},e.prototype.setStatusColor=function(){var e=this.status&&this.status.toLowerCase();this.statusColor=e&&Ke.has(e)?Ke.get(e):"#9FA4A2"},e.decorators=[{type:t.Component,args:[{selector:"hd-status",template:'<ng-container>\n <div class="hd-status">\n <div class="hd-status-dot" [ngStyle]="{\'background\': statusColor || \'#9FA4A2\'}"></div>\n <div class="hd-status-text">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-container>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-status{display:flex;justify-content:flex-start;align-items:center}.hd-status-dot{width:6px;height:6px;border-radius:50%;margin-right:6px}.hd-status-text{color:#2a3634;font-size:14px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={status:[{type:t.Input}]},e}();var Ue=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[qe],imports:[i.FormsModule,i.ReactiveFormsModule,n.CommonModule,o.NgZorroAntdModule],exports:[qe],providers:[],bootstrap:[qe]}]}],e}(),Ze={tableImageColWidth:25,tableTwoImageColWidth:40,billNumberColWidth:150,nameColWidth:150,codeColWidth:100,codeNameColWidth:200,enumColWidth:100,dateColWidth:100,dateTimeColWidth:150,dateRangeWidth:200,operateColWidth:150,numberColWidth:100,remarkColWidth:250,fixColWidth:150,maxColWidth:350};var Je=function(){function e(){}return e.prototype.transform=function(e,t){if(!e||!t)return{display:"<空>",title:null,isEmpty:!0,overflow:!1};var n=function(e,t){if(t.render)return t.render(e);var n=t.name;if("function"==typeof n)return n(e);if("string"==typeof n)return e[n];return}(e,t),i=!(n||0===n),o=i?"<空>":n,a=t.width||Ze.fixColWidth,l=!1,r=null;if(!i){var s=String(n);(l=function(e){for(var t=15,n=0;n<e.length;n++)t+=e.charCodeAt(n)>255?14:8;return t}(s)>=a)&&(r=s)}return{display:o,title:r,isEmpty:i,overflow:l}},e.decorators=[{type:t.Pipe,args:[{name:"hdTableCell",pure:!0}]}],e}();var Ye=function(){this.name=null,this.align="left",this.fixed=null,this.btnList=[],this.isShow=!0,this.canSort=!1,this.canWarp=!1};var Ge=function(){};var $e=function(){this.showConfirm=!1,this.isRepeat=!1};var Qe=function(){};var Xe=function(){this.colWidths=new Map};var et=function(){this.title="",this.key="",this.disabled=!1,this.checked=!1,this.selectable=!1,this.isLeaf=!0,this.expanded=!1};var tt=function(){function e(e,n){var i=this;this.cdr=e,this.commonSessionService=n,this.tableCols=[],this.showSelected=!1,this.showOperateColWarpButton=!1,this.virtualScroll=!0,this.selectField="billNumber",this.showTableTotal=!1,this.sortEvent=new t.EventEmitter,this.selectEvent=new t.EventEmitter,this.tableSearchEvent=new t.EventEmitter,this.cellChange=new t.EventEmitter,this.tableLoading=!1,this.pagination=!0,this.frontPagination=!1,this.tablePageIndex=1,this.tablePageSize=100,this.tablePageIndexChange=new t.EventEmitter,this.tablePageSizeChange=new t.EventEmitter,this.tablePageSizeChangeEvent=new t.EventEmitter,this.scroll=null,this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,this.listOfDisplayData=[],this.listOfAllData=[],this.mapOfCheckedId={},this.mapOfCheckList={},this.tableTotalOptionList=[],this.tableCacheOption=new Xe,this.tableColsCache=[],this.showTable=!1,this.selectColListNodes=[],this.selectColListNodesCache=[],this.showListNodes=!1,this.isDropdownVisible=!1,this.nowListNodes=[],this.hideListNodes=[],this.cancelNowListNodes=[],this.cancelHideListNodes=[],this.showDetail=!1,this.localforage=null,this.localtionTmp="",this.isFirstEntrySearchLocal=!0,this.isCrossPageSelectLocal=!1,this.measuredVirtualItemSize=47,this.virtualScrollActive=null,this.tableColWidthTotal=0,this.pendingResetScrollTop=!1,this.currentSortKey=null,this.currentSortValue=null,this.trackByRow=function(e,t){var n=t&&t[i.selectField];return null!=n?String(n):"row-"+e},this.virtualTrackByRow=function(e){return e},this.trackByCol=function(e,t){return t.title},this.beforeDrop=function(e){if(e.node.origin.disabled||!e.dragNode.origin.checked||0===e.pos)return d.of(!1);var t=new et;t.checked=e.dragNode.origin.checked,t.disabled=e.dragNode.origin.disabled,t.expanded=e.dragNode.origin.expanded,t.isLeaf=e.dragNode.origin.isLeaf,t.key=e.dragNode.origin.key,t.selectable=e.dragNode.origin.selectable,t.title=e.dragNode.origin.title;var n=i.nowListNodes.findIndex((function(t){return t.title==e.dragNode.origin.title})),o=i.nowListNodes.findIndex((function(t){return t.title==e.node.origin.title}))+(-1===e.pos?0:e.pos);return i.nowListNodes.splice(o,0,t),i.nowListNodes.splice(o>=n?n:n+1,1),d.of(!0).pipe(c.delay(100))},this.localforage=p.createInstance({driver:p.INDEXEDDB,name:"hd-fscm",version:1,storeName:"hd-fscm-store"})}return e.prototype.ngOnInit=function(){var e=this;!1===this.isFirstEntrySearch&&(this.isFirstEntrySearchLocal=this.isFirstEntrySearch),!0===this.isCrossPageSelect&&(this.isCrossPageSelectLocal=this.isCrossPageSelect),this.localtionTmp=location.pathname,this.localtionTmp&&(this.localtionTmp=this.localtionTmp.replace(/\//g,"_")),this.userSession=this.commonSessionService.getSession("__jy_authorization_session__"),this.userSession||(this.userSession={userCode:"dev"}),this.deleteHideItem(),this.tableCols&&0!==this.tableCols.length&&this.localforage.ready().then((function(){e.getInitLocalforage()})).catch((function(e){throw console.log("localforage加载异常step1",e),"localforage加载异常"}))},e.prototype.ngOnChanges=function(e){var t=this;if(e&&e.tableData&&e.tableData.currentValue&&e.tableData.previousValue){if(e.tableData.currentValue.pageSize!==e.tableData.previousValue.pageSize||e.tableData.currentValue.pageNumber!==e.tableData.previousValue.pageNumber)return this.pendingResetScrollTop=!0,this.virtualScroll&&this.applyTableScrollMode(!1),void this.scheduleResetTableBodyScrollTop();this.isCrossPageSelectLocal||this.resetStatus()}if(e.tableData&&(this.pendingResetScrollTop=!0,this.virtualScroll&&this.applyTableScrollMode(!1),this.scheduleResetTableBodyScrollTop()),e.tableCols&&JSON.stringify(e.tableCols.currentValue)!==JSON.stringify(e.tableCols.previousValue)&&void 0!==e.tableCols.previousValue){if(this.deleteHideItem(),!this.tableCols||0===this.tableCols.length)return;this.localforage.ready().then((function(){t.getInitLocalforage()})).catch((function(e){throw console.log("localforage加载异常step2",e),"localforage加载异常"}))}(e.pagination&&!e.pagination.firstChange||e.frontPagination&&!e.frontPagination.firstChange)&&(this.tablePageIndex=1,this.applyTableScrollMode(!0),this.cdr.markForCheck())},Object.defineProperty(e.prototype,"useFrontPagination",{get:function(){return!!this.pagination&&!!this.frontPagination},enumerable:!0,configurable:!0}),e.prototype.deleteHideItem=function(){this.tableCols=this.tableCols.filter((function(e){return!e.hasOwnProperty("isShow")||!0===e.isShow}))},e.prototype.sort=function(e){this.currentSortKey=e&&e.key,this.currentSortValue=e&&e.value,this.sortEvent.emit(e)},e.prototype.getColSort=function(e){return e&&e.canSort&&this.currentSortKey&&e.name===this.currentSortKey?this.currentSortValue:null},e.prototype.toggleShowDetail=function(){this.showDetail=!this.showDetail,this.cdr.markForCheck(),this.refreshVirtualScrollViewport(!0)},Object.defineProperty(e.prototype,"effectiveVirtualItemSize",{get:function(){return null!=this.virtualItemSize&&this.virtualItemSize>0?this.virtualItemSize:this.measuredVirtualItemSize},enumerable:!0,configurable:!0}),e.prototype.getScrollYMaxOffset=function(){return 216+(this.tableTotal?180:140)},e.prototype.getVisibleRowCount=function(){var e=(this.tableData&&this.tableData.content?this.tableData.content:[]).length;if(!this.useFrontPagination)return e;if(e<=0)return 0;var t=Number(this.tablePageSize)>0?Number(this.tablePageSize):10,n=((Number(this.tablePageIndex)>0?Number(this.tablePageIndex):1)-1)*t;return n>=e?0:Math.min(t,e-n)},Object.defineProperty(e.prototype,"needsVerticalScroll",{get:function(){var e=this.getVisibleRowCount();if(e<=0)return!1;var t=this.getScrollYMaxOffset(),n=e*this.effectiveVirtualItemSize;return"undefined"!=typeof window?n>window.innerHeight-t:e>100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useVirtualScroll",{get:function(){return!!this.virtualScroll&&this.needsVerticalScroll},enumerable:!0,configurable:!0}),e.prototype.getRightSticky=function(e){return"right"===e.fixed?(e.fixedRightWidth||0)+"px":null},e.prototype.getLeftSticky=function(e){return"left"===e.fixed?(e.fixedWidth||0)+"px":null},e.prototype.getInitLocalforage=function(){var e=this;this.localforage.getItem("hd-table_"+this.userSession.userCode+"_"+this.localtionTmp+"_"+this.uuid).then((function(t){t?(e.tableCacheOption=t,e.normalizeTableCacheOption(),e.pagination&&e.tableCacheOption.pageSize&&e.tableCacheOption.pageSize>10&&(e.tablePageSize=e.tableCacheOption.pageSize,e.tablePageSizeChange.emit(e.tablePageSize))):(e.tableCacheOption=new Xe,e.tableCacheOption.pageSize=e.tablePageSize),e.pagination&&!e.frontPagination&&e.isFirstEntrySearchLocal?e.tablePageSizeChangeEvent.emit(e.tablePageSize):e.isFirstEntrySearchLocal=!0,e.initTable()})).catch((function(t){e.tableCacheOption=new Xe,e.tableCacheOption.pageSize=e.tablePageSize,e.initTable()}))},e.prototype.initTable=function(){if(this.showTable=!1,!this.uuid)throw"hd-table缺失uuid参数,请使用编辑器插件生成并给hd-table赋予uuid属性";this.judgeRepeatCols()&&(this.dealCols(),this.setCols(),this.dealOperateBtn(),this.virtualScrollActive=null,this.applyTableScrollMode(!0))},e.prototype.applyTableScrollMode=function(e){var t=this;void 0===e&&(e=!1);var n=this.useVirtualScroll,i=null!==this.virtualScrollActive&&this.virtualScrollActive!==n;if(this.virtualScrollActive=n,e||i)return this.presetScrollBeforeRemount(n),this.showTable=!1,this.cdr.markForCheck(),void setTimeout((function(){t.showTable=!0,t.cdr.markForCheck(),setTimeout((function(){t.dealScroll(),t.cdr.markForCheck(),t.afterTableRender(n)}))}));var o=!(!this.scroll||!this.scroll.y);if(this.dealScroll(),o!==!(!this.scroll||!this.scroll.y))return this.showTable=!1,this.cdr.markForCheck(),void setTimeout((function(){t.showTable=!0,t.cdr.markForCheck(),setTimeout((function(){t.afterTableRender(n)}))}));this.cdr.markForCheck(),this.afterTableRender(n)},e.prototype.presetScrollBeforeRemount=function(e){var t=this.getScrollYMaxOffset(),n=this.scroll?this.scroll.x:null;!this.virtualScroll||e?this.scroll={x:n,y:"calc(100vh - "+t+"px)"}:this.scroll={x:n,y:null}},e.prototype.afterTableRender=function(e){var t=this;e?this.refreshVirtualScrollViewport(!0):this.virtualScroll&&(this.measureVirtualItemSize(!0),this.useVirtualScroll)?this.applyTableScrollMode(!1):setTimeout((function(){t.syncHorizontalScroll(),t.flushResetTableBodyScrollTop()}))},e.prototype.refreshVirtualScrollViewport=function(e){var t=this;if(void 0===e&&(e=!1),!this.useVirtualScroll)return e&&(this.measureVirtualItemSize(e),this.dealScroll(),this.cdr.markForCheck()),void this.flushResetTableBodyScrollTop();setTimeout((function(){var n=t.nzTableComponent&&t.nzTableComponent.cdkVirtualScrollViewport;if(!n)return t.syncHorizontalScroll(),void t.flushResetTableBodyScrollTop();t.measureVirtualItemSize(e)?(t.dealScroll(),t.cdr.markForCheck(),n.checkViewportSize(),setTimeout((function(){t.measureVirtualItemSize(e),t.syncHorizontalScroll(),n.checkViewportSize(),t.flushResetTableBodyScrollTop()}))):(n.checkViewportSize(),t.syncHorizontalScroll(),t.flushResetTableBodyScrollTop())}))},e.prototype.resetTableBodyScrollTop=function(){if(this.nzTableComponent){var e=this.nzTableComponent,t=this.nzTableComponent.cdkVirtualScrollViewport;if(t){"function"==typeof t.scrollToOffset&&t.scrollToOffset(0),"function"==typeof t.scrollToIndex&&t.scrollToIndex(0);var n=t.elementRef&&t.elementRef.nativeElement;n&&(n.scrollTop=0)}[e.mixTableBodyNativeElement,e.tableBodyNativeElement,e.tableBodyElement&&e.tableBodyElement.nativeElement].forEach((function(e){e&&(e.scrollTop=0)}));var i=e.tableMainElement&&e.tableMainElement.nativeElement;if(i){var o=i.querySelectorAll(".ant-table-body, cdk-virtual-scroll-viewport");Array.prototype.forEach.call(o,(function(e){e.scrollTop=0}))}}},e.prototype.scheduleResetTableBodyScrollTop=function(){var e=this,t=[0,50,100];t.forEach((function(n,i){setTimeout((function(){e.resetTableBodyScrollTop(),i===t.length-1&&(e.pendingResetScrollTop=!1)}),n)}))},e.prototype.flushResetTableBodyScrollTop=function(){this.pendingResetScrollTop&&this.resetTableBodyScrollTop()},e.prototype.measureVirtualItemSize=function(e){if(void 0===e&&(e=!1),null!=this.virtualItemSize&&this.virtualItemSize>0&&!e)return!1;var t=this.nzTableComponent&&this.nzTableComponent.cdkVirtualScrollViewport,n=this.nzTableComponent&&this.nzTableComponent.tableBodyNativeElement,i=t&&t.elementRef.nativeElement.querySelector("tr.hd-table-virtual-row")||n&&n.querySelector("tbody tr");if(!i||i.offsetHeight<=0)return!1;var o=i.offsetHeight;return o!==this.measuredVirtualItemSize&&(this.measuredVirtualItemSize=o,!0)},e.prototype.cancelDropdown=function(){this.isDropdownVisible=!1,this.hideListNodes=JSON.parse(JSON.stringify(this.cancelHideListNodes)),this.nowListNodes=JSON.parse(JSON.stringify(this.cancelNowListNodes)),this.cdr.markForCheck()},e.prototype.confirmDropdown=function(){this.cancelHideListNodes=JSON.parse(JSON.stringify(this.hideListNodes)),this.cancelNowListNodes=JSON.parse(JSON.stringify(this.nowListNodes)),this.isDropdownVisible=!0,this.cdr.markForCheck()},e.prototype.submitGrids=function(){var e=this;this.tableCacheOption.cols=[],this.nowListNodes.forEach((function(t){e.tableCacheOption.cols.push(t.title)})),this.saveTableCacheOption(),this.initTable(),this.isDropdownVisible=!1,this.cdr.markForCheck()},e.prototype.setCols=function(){var e=this;if(this.showListNodes=!1,this.nowListNodes=[],this.hideListNodes=[],this.hasColsCache()){var t=this.tableColsCache.reduce((function(t,n){return e.tableCacheOption.cols.includes(n.title)?t.incols.push(n):t.notIncols.push(n),t}),{notIncols:[],incols:[]}),n=t.notIncols,i=t.incols;i.sort((function(t,n){return e.tableCacheOption.cols.indexOf(t.title)-e.tableCacheOption.cols.indexOf(n.title)})),this.tableCols=i.concat(n)}this.tableCols.forEach((function(t,n){e.hasColsCache()?(t.isShow=!!e.tableCacheOption.cols.includes(t.title),t.isShow?e.nowListNodes.push({title:t.title,key:t.title,disabled:!!t.fixed,checked:!!e.tableCacheOption.cols.includes(t.title)}):e.hideListNodes.push({title:t.title,key:t.title,disabled:!!t.fixed,checked:!!e.tableCacheOption.cols.includes(t.title)})):(t.isShow=!0,e.nowListNodes.push({title:t.title,key:t.title,checked:!0,disabled:!!t.fixed}))})),this.tableCacheOption&&this.tableCacheOption.colWidths&&0!==this.tableCacheOption.colWidths.size&&this.tableCols.forEach((function(t){e.tableCacheOption.colWidths.has(t.title)&&(t.width=e.tableCacheOption.colWidths.get(t.title))})),this.dealCols(),setTimeout((function(){e.showListNodes=!0}),0)},e.prototype.moveElementNearby=function(e,t,n,i){var o=JSON.parse(JSON.stringify(e)),a=o.findIndex((function(e){return e.title===n})),l=o.findIndex((function(e){return e.title===t})),r=i<0?a+i:a,s=o.splice(l,1);return o.splice(r+1,0,s[0]),o},e.prototype.checkAction=function(e){if(e.node.origin.checked){var t=new et;(t=this.hideListNodes.find((function(t){return t.title===e.node.origin.title}))).checked=!0;for(var n=null,i=this.tableColsCache.length-1;i>=0;i--)if("right"===this.tableColsCache[i].fixed){n=this.tableColsCache[i].title;break}var o=this.nowListNodes.slice(0);if(n){var a=this.nowListNodes.findIndex((function(e){return e.title===n}));o.splice(a,0,t)}else o.push(t);this.nowListNodes=o,this.hideListNodes=this.hideListNodes.filter((function(t){return t.title!==e.node.origin.title}))}else{var l=this.hideListNodes.slice(0);this.nowListNodes.forEach((function(t){if(t.title===e.node.origin.title){var n=JSON.parse(JSON.stringify(t));n.checked=!1,l.push(n)}})),this.hideListNodes=l,this.nowListNodes=this.nowListNodes.filter((function(t){return t.title!==e.node.origin.title}))}this.cdr.markForCheck()},e.prototype.getHideListNodes=function(){var e=this,t=[];return this.tableColsCache.forEach((function(n){if(!e.tableCacheOption.cols.includes(n.title)){var i=new et;i.title=n.title,i.key=n.title,i.disabled=!!n.fixed,i.checked=!1,t.push(i)}})),t},e.prototype.dealCols=function(){this.tableCols[0].minWidth||this.tableCols.forEach((function(e){var t=document.createElement("span");t.style.visibility="hidden",t.style.position="absolute",t.style.whiteSpace="nowrap",t.style.fontSize="14px",t.style.display="inline-block",t.innerText=e.title,document.body.appendChild(t),e.minWidth=t.offsetWidth+16,t.style.display="none",document.body.removeChild(t)}));var e=this.tableCols.filter((function(e){return"left"===e.fixed})),t=this.tableCols.filter((function(e){return"right"===e.fixed})),n=this.tableCols.filter((function(e){return!e.fixed})),i=e.concat(n).concat(t);this.tableCols=i,this.tableColsCache&&0!==this.tableColsCache.length||(this.tableColsCache=C(this.tableCols))},e.prototype.normalizeTableCacheOption=function(){var e=this;if(this.tableCacheOption.colWidths){if(!(this.tableCacheOption.colWidths instanceof Map)){var t=new Map;Object.keys(this.tableCacheOption.colWidths).forEach((function(n){t.set(n,e.tableCacheOption.colWidths[n])})),this.tableCacheOption.colWidths=t}}else this.tableCacheOption.colWidths=new Map},e.prototype.hasColsCache=function(){return!!(this.tableCacheOption&&this.tableCacheOption.cols&&this.tableCacheOption.cols.length>0)},e.prototype.saveTableCacheOption=function(){this.localforage.setItem("hd-table_"+this.userSession.userCode+"_"+this.localtionTmp+"_"+this.uuid,this.tableCacheOption)},e.prototype.judgeRepeatCols=function(){for(var e=0;e<this.tableCols.length;e++)for(var t=e+1;t<this.tableCols.length;t++)if(this.tableCols[e].title===this.tableCols[t].title)throw"hd-table组件中列名 "+this.tableCols[e].title+" 重复";return!0},e.prototype.onResize=function(e,t){var n=e.width;this.normalizeTableCacheOption();var i=0;i=n>t.minWidth?n:t.minWidth,this.tableCacheOption.colWidths.set(t.title,i),this.saveTableCacheOption(),this.tableCols=this.tableCols.map((function(e){return e.title===t.title?x({},e,{width:i}):e})),this.dealScroll(),this.cdr.markForCheck()},e.prototype.dealOperateBtn=function(){var e=this.tableCols.find((function(e){return"操作"===e.title}))||null;if(e){var t="";e.btnList.forEach((function(e){e.isRepeat||(t+="function"==typeof e.name?"操作":e.name)}));var n=document.createElement("a");n.style.visibility="hidden",n.style.position="absolute",n.style.whiteSpace="nowrap",n.style.fontSize="14px",n.style.display="inline-block",n.innerText=t,document.body.appendChild(n),e.width=n.offsetWidth+4*(e.btnList.filter((function(e){return!e.isRepeat})).length-1)+16,n.style.display="none",document.body.removeChild(n)}},e.prototype.triggerEvent=function(e,t){e&&e(t)},e.prototype.needShowConfirm=function(e,t){return"function"==typeof e.showConfirm?e.showConfirm(t):!!e.showConfirm},e.prototype.getBtnName=function(e,t){return"function"==typeof e.name?e.name(t)||"":null!=e.name?String(e.name):""},e.prototype.isDangerBtn=function(e,t){return"删除"===this.getBtnName(e,t)},e.prototype.getVirtualScrollY=function(e){return"calc(100vh - "+e+"px)"},e.prototype.hasTableData=function(){return!!(this.tableData&&this.tableData.content&&this.tableData.content.length)},e.prototype.resolveScrollX=function(e){var t=e;if(this.nzTableComponent){var n=X(this.nzTableComponent);n>t&&(t=n)}var i=ee(this.nzTableComponent,this.hasTableData(),t);return i?i.x:null},e.prototype.syncHorizontalScroll=function(){var e=this,t=this.resolveScrollX(this.tableColWidthTotal),n=this.scroll?this.scroll.y:null;this.scroll&&this.scroll.x===t&&this.scroll.y===n||(this.scroll={x:t,y:n},this.cdr.markForCheck(),setTimeout((function(){return e.syncHeaderBodyScrollLeft()})))},e.prototype.syncHeaderBodyScrollLeft=function(){if(this.nzTableComponent&&this.scroll&&this.scroll.x){var e=this.nzTableComponent.tableHeaderNativeElement,t=this.nzTableComponent.mixTableBodyNativeElement;e&&t&&e.scrollLeft!==t.scrollLeft&&(e.scrollLeft=t.scrollLeft)}},e.prototype.dealScroll=function(){var e=0;this.showSelected&&(e+=40),this.tableCols.forEach((function(t){t.width||(t.width=Ze.fixColWidth),t.isShow&&(t.fixedWidth=e,e+=t.width)}));for(var t=0,n=this.tableCols.length-1;n>=0;n--){var i=this.tableCols[n];i.isShow&&("right"===i.fixed?(i.fixedRightWidth=t,t+=i.width):i.fixedRightWidth=0)}this.tableColWidthTotal=e;var o=this.getScrollYMaxOffset(),a=this.useVirtualScroll,l=this.resolveScrollX(e);!this.virtualScroll||a?this.virtualScroll?this.scroll={x:l,y:this.getVirtualScrollY(o)}:this.scroll={x:l,y:"calc(100vh - "+o+"px)"}:this.scroll={x:l,y:null}},e.prototype.currentPageDataChange=function(e){this.listOfDisplayData=e,this.refreshStatus(),this.isCrossPageSelectLocal||this.resetStatus(),this.cdr.markForCheck()},e.prototype.search=function(e){if(this.pagination){if(this.frontPagination)return e?(this.tablePageIndex=1,this.tablePageSizeChange.emit(this.tablePageSize)):this.tablePageIndexChange.emit(this.tablePageIndex),this.tableCacheOption.pageSize=this.tablePageSize,this.saveTableCacheOption(),this.pendingResetScrollTop=!0,this.applyTableScrollMode(!1),this.scheduleResetTableBodyScrollTop(),void this.cdr.markForCheck();this.tableCacheOption.pageSize=this.tablePageSize,this.saveTableCacheOption(),e?(this.tablePageSizeChange.emit(this.tablePageSize),this.tablePageSizeChangeEvent.emit(this.tablePageSize)):(this.tablePageIndexChange.emit(this.tablePageIndex),this.tableSearchEvent.emit(e))}},e.prototype.getTableTotalCount=function(){return this.tableData?!this.pagination||this.frontPagination?this.tableData.content?this.tableData.content.length:0:null!=this.tableData.totalElements?this.tableData.totalElements:0:0},e.prototype.resetStatus=function(){var e=this;this.isAllDisplayDataChecked=!1,this.isIndeterminate=!1,Object.keys(this.mapOfCheckList).forEach((function(t){e.mapOfCheckedId[t]=!1})),this.listOfDisplayData.forEach((function(t){var n=t[e.selectField];null!=n&&(e.mapOfCheckedId[n]=!1)})),this.mapOfCheckedId={},this.mapOfCheckList={},this.selectEvent.emit([]),this.cdr.markForCheck()},e.prototype.refreshStatus=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=null),t){if(e&&this.isSelectDisabled(t))return void this.cdr.markForCheck();this.mapOfCheckedId[t[this.selectField]]=e,e?!this.mapOfCheckList[t[this.selectField]]&&(this.mapOfCheckList[t[this.selectField]]=t):this.mapOfCheckList[t[this.selectField]]&&delete this.mapOfCheckList[t[this.selectField]]}var i=this.listOfDisplayData.filter((function(e){return!n.isSelectDisabled(e)}));if(this.isAllDisplayDataChecked=i.length>0&&i.every((function(e){return n.mapOfCheckedId[e[n.selectField]]})),this.isIndeterminate=i.some((function(e){return n.mapOfCheckedId[e[n.selectField]]}))&&!this.isAllDisplayDataChecked,this.selectEvent){var o=Object.values(this.mapOfCheckList);this.selectEvent.emit(o)}0===this.tableData.content.length&&(this.isAllDisplayDataChecked=!1),this.cdr.markForCheck()},e.prototype.checkAll=function(e){var t=this;this.listOfDisplayData.forEach((function(n){t.isSelectDisabled(n)||(e?!t.mapOfCheckList[n[t.selectField]]&&(t.mapOfCheckList[n[t.selectField]]=n):t.mapOfCheckList[n[t.selectField]]&&delete t.mapOfCheckList[n[t.selectField]],t.mapOfCheckedId[n[t.selectField]]=e)})),this.refreshStatus(),this.cdr.markForCheck()},e.prototype.isSelectDisabled=function(e){return!(!this.selectDisabledField||!e||!0!==e[this.selectDisabledField])},e.prototype.isInvalidRow=function(e){return!(!this.rowInvalidField||!e||!0!==e[this.rowInvalidField])},e.prototype.resolveCellColor=function(e,t){return e&&null!=e.color&&""!==e.color?"function"==typeof e.color?e.color(t)||null:e.color:null},e.prototype.getLinkCellColor=function(e,t,n){return n?"#2A3634":this.resolveCellColor(e,t)},e.prototype.getPlainCellColor=function(e,t){return this.isInvalidRow(t)?"#868A9C":this.resolveCellColor(e,t)},e.prototype.judgeColEmpty=function(e){return e||0===e?e:"<空>"},e.prototype.getStateField=function(e){return e.isState?e.name:e.stateField||"state"},e.prototype.hasRowNo=function(e){return!(!e||!(!0===e.rowNo||"string"==typeof e.rowNo&&e.rowNo))},e.prototype.getRowNoText=function(e,t,n){if(!this.hasRowNo(e))return"";if("string"==typeof e.rowNo){var i=t?t[e.rowNo]:null;return null==i||""===i?"":String(i)}var o=Number(this.tablePageIndex)>0?Number(this.tablePageIndex):1,a=Number(this.tablePageSize)>0?Number(this.tablePageSize):0,l=Number(n)>=0?Number(n):0;return String((o-1)*a+l+1)},e.prototype.getTitleParts=function(e){if(!this.hasRowNo(e)||!e||!e.title||String(e.title).indexOf("|")<0)return null;var t=String(e.title).split("|");return t.length<2?null:[t[0].trim(),t.slice(1).join("|").trim()]},e.prototype.isEditable=function(e,t){return!(!e||this.hasInlineEdit(e))&&(null!=e.editable&&!1!==e.editable&&("function"==typeof e.editable?!!e.editable(t):!!e.editable))},e.prototype.onEditClick=function(e,t,n){e&&(e.preventDefault(),e.stopPropagation()),this.triggerEvent(t.edit||null,n)},e.prototype.hasInlineEdit=function(e){return!(!e||!e.editType)&&(!("string"!=typeof e.name||!e.name)||(console.warn("[hd-table] editType 要求 name 为 string,列「"+(e.title||"")+"」已回退只读"),!1))},e.prototype.isEditDisabled=function(e,t){return!(!e||null==e.editDisabled||!1===e.editDisabled)&&("function"==typeof e.editDisabled?!!e.editDisabled(t):!!e.editDisabled)},e.prototype.getSelectList=function(e,t){if(!e||!e.selectOption)return[];var n=e.selectOption;if(n.selectListName&&t){var i=t[n.selectListName];return Array.isArray(i)?i:[]}return Array.isArray(n.selectList)?n.selectList:[]},e.prototype.getSelectOptionLabel=function(e,t){if(!e||!e.selectOption||!t)return"";var n=e.selectOption,i=t[n.value],o=t[n.label];return n.showLabelAndValue||n.hdShowItemCode?"["+(null==i?"":i)+"]"+(null==o?"":o):null==o?"":String(o)},e.prototype.getInputNumberProp=function(e,t,n){if(!e||!e.inputNumber)return n;var i=e.inputNumber[t];return null!=i?Number(i):n},e.prototype.onCellChange=function(e,t,n){if(this.hasInlineEdit(e)&&t){var i=e.name,o=t[i];t[i]=n,this.cellChange.emit({line:t,col:e,name:i,value:n,previousValue:o}),this.cdr.markForCheck()}},e.prototype.onSelectChange=function(e,t,n){if(this.hasInlineEdit(e)&&t){var i=e.name,o=e.selectOption,a=o&&o.label?o.label:null,l=t[i],r=a?t[a]:void 0,s=this.getSelectList(e,t),d=null!=l&&o&&s.find((function(e){return e&&e[o.value]===l}))||null,c=null!=n&&o&&s.find((function(e){return e&&e[o.value]===n}))||null;t[i]=n;var p=void 0;a&&(p=c?c[o.label]:null,t[a]=p),this.cellChange.emit({line:t,col:e,name:i,value:n,previousValue:l,label:p,previousLabel:r,option:c,previousOption:d}),this.cdr.markForCheck()}},e.decorators=[{type:t.Component,args:[{selector:"hd-table",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 \'缩略显示\': \'展开显示\'}}</hd-button>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet="tableRightButton"></ng-container>\n <span class="hd-table-col-settings" nz-dropdown nzTrigger="click" [nzDropdownMenu]="menu"\n [nzVisible]="isDropdownVisible" (click)="confirmDropdown()" title="列设置">\n <svg class="hd-table-col-settings-icon" width="14" height="14" viewBox="0 0 14 14" fill="none"\n xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M4.92031 1.80756C5.02551 1.42884 5.37033 1.16675 5.76339 1.16675H8.23667C8.62973 1.16675 8.97455 1.42884 9.07975 1.80756L9.37802 2.88133L10.4571 2.60273C10.8377 2.50448 11.2371 2.67206 11.4336 3.01245L12.6703 5.15438C12.8668 5.49478 12.8122 5.92445 12.5369 6.20491L11.7561 7.00008L12.5369 7.79525C12.8122 8.07572 12.8668 8.50539 12.6703 8.84579L11.4336 10.9877C11.2371 11.3281 10.8377 11.4957 10.4571 11.3974L9.37802 11.1188L9.07975 12.1926C8.97455 12.5713 8.62973 12.8334 8.23667 12.8334H5.76339C5.37033 12.8334 5.02551 12.5713 4.92031 12.1926L4.62206 11.1189L3.54315 11.3974C3.16258 11.4957 2.76318 11.3281 2.56666 10.9877L1.33001 8.84579C1.13349 8.50539 1.18806 8.07572 1.46343 7.79525L2.24419 7.00008L1.46344 6.20491C1.18806 5.92445 1.13349 5.49478 1.33002 5.15438L2.56666 3.01245C2.76319 2.67206 3.16258 2.50448 3.54316 2.60273L4.62206 2.88127L4.92031 1.80756ZM4.54541 10.843L4.54552 10.8433L4.54541 10.843ZM5.98508 2.33341L5.66952 3.46945C5.54185 3.92906 5.06958 4.20173 4.60771 4.08249L3.46618 3.78778L2.45122 5.54572L3.2773 6.38705C3.6115 6.72742 3.6115 7.27275 3.2773 7.61312L2.45122 8.45444L3.46617 10.2124L4.60771 9.91768C5.06958 9.79844 5.54185 10.0711 5.66952 10.5307L5.98508 11.6667H8.01498L8.33056 10.5307C8.45823 10.071 8.9305 9.79838 9.39237 9.91762L10.5341 10.2124L11.5491 8.45444L10.723 7.61312C10.3888 7.27275 10.3888 6.72742 10.723 6.38705L11.5491 5.54572L10.5341 3.78778L9.39237 4.08254C8.9305 4.20178 8.45823 3.92912 8.33056 3.46951L8.01498 2.33341H5.98508ZM7.00003 5.83342C6.3557 5.83342 5.83337 6.35575 5.83337 7.00008C5.83337 7.64441 6.3557 8.16675 7.00003 8.16675C7.64436 8.16675 8.1667 7.64441 8.1667 7.00008C8.1667 6.35575 7.64436 5.83342 7.00003 5.83342ZM4.6667 7.00008C4.6667 5.71142 5.71137 4.66675 7.00003 4.66675C8.2887 4.66675 9.33337 5.71142 9.33337 7.00008C9.33337 8.28875 8.2887 9.33342 7.00003 9.33342C5.71137 9.33342 4.6667 8.28875 4.6667 7.00008Z"\n fill="currentColor" />\n </svg>\n </span>\n <nz-dropdown-menu #menu="nzDropdownMenu">\n <div class="hd-table-col-settings-dropdown">\n <div class="hd-table-col-settings-list">\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 class="hd-table-col-settings-footer">\n <hd-button style="margin-right: 4px;" type="default" size="small" (clickAction)="cancelDropdown()">取消\n </hd-button>\n <hd-button type="primary" size="small" (clickAction)="submitGrids()">完成</hd-button>\n </div>\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"\n [class.hd-table--scroll-y]="!!(scroll && scroll.y)" [class.hd-table--scroll-x]="!!(scroll && scroll.x)"\n [nzScroll]="scroll"\n [nzShowPagination]="pagination" [nzShowSizeChanger]="pagination" [nzShowQuickJumper]="pagination"\n [nzFrontPagination]="useFrontPagination" nzSize="middle" [nzData]="tableData.content"\n [nzTotal]="getTableTotalCount()" [(nzPageIndex)]="tablePageIndex" [nzLoading]="tableLoading"\n [nzPageSizeOptions]="[ 10, 50, 100, 200, 500, 1000 ]" [(nzPageSize)]="tablePageSize"\n (nzPageSizeChange)="pagination ? search(true) : null"\n (nzPageIndexChange)="pagination ? search(false) : null"\n (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 [nzSort]="getColSort(col)">\n <ng-container *ngIf="getTitleParts(col) as titleParts; else plainTitle">\n <span class="hd-table-title-with-bar">{{ titleParts[0] }}<i class="hd-table-row-no-bar"></i>{{ titleParts[1] }}</span>\n </ng-container>\n <ng-template #plainTitle>{{ col.title }}</ng-template>\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" [class.hd-table-row-invalid]="isInvalidRow(data)">\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 [class.hd-table-row-invalid]="isInvalidRow(data)">\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>合计</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 共 {{ getTableTotalCount() }} 条数据\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 [nzDisabled]="isSelectDisabled(data)" (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 === \'操作\';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]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'"\n (click)="triggerEvent(btn.click || null, data)">{{ getBtnName(btn, data) }}</a>\n </ng-container>\n <ng-template #showConfirmTemplate>\n <a *ngIf="btn.permission ? btn.permission(data) : true"\n [class]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'" nz-popconfirm\n [nzPopconfirmTitle]="\'确认要\' + getBtnName(btn, data) + \'吗?\'"\n (nzOnConfirm)="triggerEvent(btn.click || null, data)">{{\n getBtnName(btn, data) }}</a>\n </ng-template>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notOperateTemplate>\n <ng-container *ngIf="hasInlineEdit(col); else displayCellTpl">\n <div class="hd-table-cell-edit">\n <ng-container [ngSwitch]="col.editType">\n <input *ngSwitchCase="\'input\'" nz-input class="hd-table-cell-edit-control"\n [placeholder]="col.placeholder || \'\'"\n [disabled]="isEditDisabled(col, data)"\n [ngModel]="data[col.name]"\n (ngModelChange)="onCellChange(col, data, $event)" />\n <nz-input-number *ngSwitchCase="\'inputNumber\'" class="hd-table-cell-edit-control"\n [nzPlaceHolder]="col.placeholder || \'\'"\n [nzDisabled]="isEditDisabled(col, data)"\n [nzMin]="getInputNumberProp(col, \'min\', 0)"\n [nzMax]="getInputNumberProp(col, \'max\', 99999999)"\n [nzStep]="getInputNumberProp(col, \'step\', 1)"\n [nzPrecision]="getInputNumberProp(col, \'precision\', 4)"\n [ngModel]="data[col.name]"\n (ngModelChange)="onCellChange(col, data, $event)">\n </nz-input-number>\n <nz-select *ngSwitchCase="\'select\'" class="hd-table-cell-edit-control"\n [nzPlaceHolder]="col.placeholder || \'请选择\'"\n [nzDisabled]="isEditDisabled(col, data)"\n [nzAllowClear]="col.selectOption && col.selectOption.hdAllowClear !== false"\n [nzShowSearch]="!col.selectOption || col.selectOption.hdShowSearch !== false"\n [ngModel]="data[col.name]"\n (ngModelChange)="onSelectChange(col, data, $event)">\n <nz-option *ngFor="let selectItem of getSelectList(col, data)"\n [nzValue]="selectItem[col.selectOption.value]"\n [nzLabel]="getSelectOptionLabel(col, selectItem)">\n </nz-option>\n </nz-select>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #displayCellTpl>\n <div [class.hd-table-cell-with-actions]="col.btnList && col.btnList.length">\n <div class="hd-table-cell-value"\n [class.hd-table-cell-value--rowno]="hasRowNo(col)"\n [class.hd-table-cell-value--edit]="isEditable(col, data)">\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)" class="hd-table-cell-ellipsis" nz-tooltip\n [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 && (!col.canClick || col.canClick(data));else noClickTemplate">\n <ng-container *ngIf="(data | hdTableCell:col) as cell">\n <a *ngIf="cell.overflow && !(col.canWarp && showDetail)" class="hd-table-cell-ellipsis" nz-tooltip\n [nzTooltipTitle]="cell.title"\n [ngStyle]="{\'color\': getLinkCellColor(col, data, cell.isEmpty)}"\n (click)="triggerEvent(col.click || null, data)">{{ cell.display }}</a>\n <a *ngIf="!cell.overflow || (col.canWarp && showDetail)"\n [ngStyle]="{\'color\': getLinkCellColor(col, data, cell.isEmpty)}"\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)" class="hd-table-cell-ellipsis" nz-tooltip\n [nzTooltipTitle]="cell.title"\n [ngStyle]="{\'color\': getPlainCellColor(col, data)}">{{ cell.display }}</span>\n <span *ngIf="!cell.overflow || (col.canWarp && showDetail)"\n [ngStyle]="{\'color\': getPlainCellColor(col, data)}">{{ cell.display }}</span>\n </ng-container>\n </ng-template>\n </ng-template>\n <span class="hd-table-row-no" *ngIf="hasRowNo(col) && getRowNoText(col, data, index)">\n <i class="hd-table-row-no-bar"></i>{{ getRowNoText(col, data, index) }}\n </span>\n <a *ngIf="isEditable(col, data)" class="hd-table-edit-icon" href="javascript:;" title="编辑"\n (click)="onEditClick($event, col, data)">\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"\n aria-hidden="true">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M8.10797 1.42626C8.44968 1.08456 9.0037 1.08456 9.34541 1.42626L10.9746 3.05542C11.3163 3.39713 11.3163 3.95115 10.9746 4.29286L5.01002 10.2574C4.87077 10.3967 4.68863 10.4849 4.49305 10.5078L2.72936 10.7142C2.18281 10.7782 1.71357 10.3278 1.7551 9.77914L1.89441 7.93871C1.9102 7.73007 2.00024 7.53399 2.14819 7.38604L8.10797 1.42626ZM7.67304 3.51111L8.88972 4.72779L9.94337 3.67414L8.72669 2.45746L7.67304 3.51111ZM8.06477 5.55274L6.84808 4.33606L3.04959 8.13456L2.94515 9.51434L4.25672 9.36079L8.06477 5.55274ZM12.25 12.8333L1.75 12.8333V11.6666L12.25 11.6666V12.8333Z"\n fill="currentColor" />\n </svg>\n </a>\n </div>\n <div class="common-btn-group hd-table-cell-actions" *ngIf="col.btnList && col.btnList.length">\n <ng-container *ngFor="let btn of col.btnList">\n <ng-container *ngIf="!needShowConfirm(btn, data);else cellActionConfirmTpl">\n <a *ngIf="btn.permission ? btn.permission(data) : true"\n [class]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'"\n (click)="triggerEvent(btn.click || null, data)">{{ getBtnName(btn, data) }}</a>\n </ng-container>\n <ng-template #cellActionConfirmTpl>\n <a *ngIf="btn.permission ? btn.permission(data) : true"\n [class]="isDangerBtn(btn, data) ? \'common-danger-btn\': \'\'" nz-popconfirm\n [nzPopconfirmTitle]="\'确认要\' + getBtnName(btn, data) + \'吗?\'"\n (nzOnConfirm)="triggerEvent(btn.click || null, data)">{{\n getBtnName(btn, data) }}</a>\n </ng-template>\n </ng-container>\n </div>\n </div>\n </ng-template>\n </ng-template>\n </td>\n </ng-container>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.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-col-settings{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;height:32px;padding:0;margin-left:12px;cursor:pointer;color:#2a3634;background:0 0;border:1px solid #e5e6eb;border-radius:4px;vertical-align:middle;flex-shrink:0}.hd-table-col-settings:hover{color:#20b95d;background:#f5f8f6;border-color:#20b95d}.hd-table-col-settings .hd-table-col-settings-icon{display:block;width:14px;height:14px;flex-shrink:0}.hd-table-cell-with-actions{display:inline-flex;flex-wrap:wrap;align-items:center;-moz-column-gap:12px;column-gap:12px;row-gap:6px;max-width:100%}.hd-table-cell-with-actions .hd-table-cell-value{min-width:0}.hd-table-cell-with-actions .hd-table-cell-actions{flex-shrink:0}.hd-table-col-settings-dropdown{background:#fff;border:1px solid #e5e6eb;border-radius:4px;box-shadow:0 6px 16px rgba(0,0,0,.08),0 3px 6px rgba(0,0,0,.06);overflow:hidden}.hd-table-col-settings-list{max-height:400px;overflow-y:auto}.hd-table-col-settings-footer{text-align:right;background:#fff;padding:4px;border-top:1px solid #f0f0f0}.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 .hd-table-cell-value--edit,.hd-table-container .hd-table-cell-value--rowno{display:inline-flex;align-items:center;min-width:0}.hd-table-container .hd-table-cell-value--edit>a:not(.hd-table-edit-icon),.hd-table-container .hd-table-cell-value--edit>hd-status,.hd-table-container .hd-table-cell-value--edit>span:not(.hd-table-row-no),.hd-table-container .hd-table-cell-value--rowno>a:not(.hd-table-edit-icon),.hd-table-container .hd-table-cell-value--rowno>hd-status,.hd-table-container .hd-table-cell-value--rowno>span:not(.hd-table-row-no){min-width:0}.hd-table-container .hd-table-row-no{display:inline-flex;flex-shrink:0;align-items:center;margin-left:4px;color:#1d1f29;font-size:14px;line-height:22px}.hd-table-container .hd-table-row-no-bar{display:inline-block;flex:0 0 auto;align-self:center;width:1px;height:14px;margin-right:4px;background:#1d1f29;vertical-align:middle}.hd-table-container .hd-table-edit-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin-left:2px;width:14px;height:14px;color:#20b95d;line-height:1;cursor:pointer}.hd-table-container .hd-table-edit-icon:hover{color:#20bd62}.hd-table-container .hd-table-edit-icon svg{display:block;width:14px;height:14px}.hd-table-container .hd-table-title-with-bar{display:inline-flex;align-items:center}.hd-table-container .hd-table-title-with-bar .hd-table-row-no-bar{width:1px;height:14px;margin:0 4px;align-self:center}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid.ant-table-row-hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid:hover>td.ant-table-td-right-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-left-sticky,.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid>td.ant-table-td-right-sticky{background:#f7f8fa!important;color:#868a9c!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a{color:#20b95d!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group>a:hover{color:#20bd62!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-btn-group .common-danger-btn:hover{color:#f05b24!important}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-table-cell-value>a{color:#20b95d}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .common-billNumber>a{color:#3b77e3}.hd-table-container ::ng-deep .ant-table-tbody>tr.hd-table-row-invalid .hd-status-text{color:#868a9c!important}.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}.hd-table-container:not(.hd-table--scroll-y):not(.hd-table--scroll-x) ::ng-deep .ant-table-body{max-height:none!important;overflow-y:visible!important}::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}.hd-table-cell-ellipsis{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.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}.hd-table-cell-edit{width:100%;min-width:0}.hd-table-cell-edit-control{width:100%!important}::ng-deep .hd-table-cell-edit .ant-input,::ng-deep .hd-table-cell-edit .ant-input-number,::ng-deep .hd-table-cell-edit .ant-select{width:100%}::ng-deep .hd-table-cell-edit .ant-input,::ng-deep .hd-table-cell-edit .ant-input-number,::ng-deep .hd-table-cell-edit .ant-select-selection{height:32px}::ng-deep .hd-table-cell-edit .ant-input-number-input{height:30px}::ng-deep .hd-table-cell-edit .ant-select-selection__rendered{line-height:30px}"]}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Oe}]},e.propDecorators={uuid:[{type:t.Input}],tableCols:[{type:t.Input}],tableData:[{type:t.Input}],showSelected:[{type:t.Input}],showOperateColWarpButton:[{type:t.Input}],virtualScroll:[{type:t.Input}],virtualItemSize:[{type:t.Input}],selectField:[{type:t.Input}],selectDisabledField:[{type:t.Input}],rowInvalidField:[{type:t.Input}],showTableTotal:[{type:t.Input}],tableTotalOption:[{type:t.Input}],sortEvent:[{type:t.Output}],selectEvent:[{type:t.Output}],tableSearchEvent:[{type:t.Output}],cellChange:[{type:t.Output}],tableLoading:[{type:t.Input}],pagination:[{type:t.Input}],frontPagination:[{type:t.Input}],tablePageIndex:[{type:t.Input}],tablePageSize:[{type:t.Input}],isFirstEntrySearch:[{type:t.Input}],isCrossPageSelect:[{type:t.Input}],tablePageIndexChange:[{type:t.Output}],tablePageSizeChange:[{type:t.Output}],tablePageSizeChangeEvent:[{type:t.Output}],tableTotal:[{type:t.ContentChild,args:["tableTotal",{static:!1}]}],tableLeftButton:[{type:t.ContentChild,args:["tableLeftButton",{static:!1}]}],tableRightButton:[{type:t.ContentChild,args:["tableRightButton",{static:!1}]}],nzTableComponent:[{type:t.ViewChild,args:["hdTable",{static:!1}]}]},w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showSelected",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showOperateColWarpButton",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"virtualScroll",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"showTableTotal",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"pagination",void 0),w([s.InputBoolean(),I("design:type",Boolean)],e.prototype,"frontPagination",void 0),e}();var nt=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.FormsModule,o.NgZorroAntdModule,l.NzTableModule,H,Ue,F,L,b.NzToolTipModule,u.NzPopconfirmModule,f.NzResizableModule,m.NzDropDownModule,y.NzTreeModule,g.NzIconModule],declarations:[tt,Je],providers:[Oe],exports:[tt],schemas:[t.NO_ERRORS_SCHEMA]}]}],e}(),it=function(){function e(){this.showIcon=!0,this.showCollapse=!1,this.expanded=!0,this.expandedChange=new t.EventEmitter}return e.prototype.expand=function(){this.setExpanded(!0)},e.prototype.collapse=function(){this.setExpanded(!1)},e.prototype.toggle=function(){this.setExpanded(!this.expanded)},e.prototype.setExpanded=function(e){this.expanded!==e&&(this.expanded=e,this.expandedChange.emit(this.expanded))},e.decorators=[{type:t.Component,args:[{selector:"hd-tip",template:'<nz-content>\n <div class="hd-tip-wrap" [class.hd-tip-wrap--collapse]="showCollapse">\n <div *ngIf="showIcon; else noIcon" class="hd-tip"\n [ngStyle]="fontSize ? {\'font-size\': fontSize + \'px\'} : null">\n {{title}}\n </div>\n <ng-template #noIcon>\n <div class="hd-tip-no-icon" [ngStyle]="fontSize ? {\'font-size\': fontSize + \'px\'} : null">\n {{title}}\n </div>\n </ng-template>\n <a *ngIf="showCollapse" class="hd-tip-collapse" href="javascript:;" (click)="toggle()">\n {{ expanded ? \'收起\' : \'展开\' }}\n <i nz-icon [nzType]="expanded ? \'up\' : \'down\'"></i>\n </a>\n </div>\n</nz-content>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-tip-wrap{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:0}.hd-tip-wrap--collapse{justify-content:space-between}.hd-tip{display:flex;position:relative;font-size:14px;font-weight:600;color:#2a3634;padding-left:8px;line-height:22px;min-width:0}.hd-tip-no-icon{font-size:14px;font-weight:600;color:#2a3634;line-height:22px;min-width:0}.hd-tip::before{position:absolute;left:0;top:calc((100% - 14px)/ 2);width:4px;height:14px;background:#20b95d;border-radius:2px;content:''}.hd-tip-collapse{flex-shrink:0;margin-left:16px;font-size:14px;font-weight:400;line-height:22px;color:#20b95d;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hd-tip-collapse:hover{color:#20bd62}.hd-tip-collapse i{margin-left:4px;font-size:12px}"]}]}],e.propDecorators={showIcon:[{type:t.Input}],fontSize:[{type:t.Input}],title:[{type:t.Input}],showCollapse:[{type:t.Input}],expanded:[{type:t.Input}],expandedChange:[{type:t.Output}]},w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"showCollapse",void 0),w([o.InputBoolean(),I("design:type",Boolean)],e.prototype,"expanded",void 0),e}();var ot=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule],exports:[it],declarations:[it]}]}],e}(),at=function(){function e(){var e=this;this.groups=[],this.labelColon=!0,this.autoOpen=!0,this.fileClick=new t.EventEmitter,this.trackByGroup=function(e,t){return t&&t.name||e},this.trackByFile=function(t,n){return e.getFilePath(n)||e.getFileName(n)||t}}return e.prototype.ngOnInit=function(){},e.prototype.getFileName=function(e){return e&&null!=e.name?String(e.name):""},e.prototype.getFilePath=function(e){return e&&null!=e.path?String(e.path):""},e.prototype.getFileSizeText=function(e){if(!e)return"";var t=e.size;if(null==t||""===t)return"";if("string"==typeof t)return t;var n=Number(t);return isNaN(n)||n<0?"":n<1024?n+" B":n<1048576?(n/1024).toFixed(n<10240?1:0)+" KB":(n/1048576).toFixed(n<10485760?1:0)+" MB"},e.prototype.getLabelText=function(e){var t=e&&null!=e.name?String(e.name):"";return t?this.labelColon?/[::]$/.test(t)?t:t+":":t:""},e.prototype.onFileClick=function(e,t,n){n&&n.preventDefault();var i=this.getFilePath(t);this.fileClick.emit({group:e,file:t,path:i}),this.autoOpen&&i&&window.open(i,"_blank")},e.decorators=[{type:t.Component,args:[{selector:"hd-accessory-list",template:'<div class="hd-accessory-list" *ngIf="groups && groups.length">\n <div class="hd-accessory-group" *ngFor="let group of groups; trackBy: trackByGroup">\n <div class="hd-accessory-group-label" *ngIf="getLabelText(group)">\n {{ getLabelText(group) }}\n </div>\n <div class="hd-accessory-files" *ngIf="group.accessoryList && group.accessoryList.length">\n <a class="hd-accessory-file" *ngFor="let file of group.accessoryList; trackBy: trackByFile"\n href="javascript:void(0)"\n (click)="onFileClick(group, file, $event)"\n [attr.title]="getFileName(file)">\n <span class="hd-accessory-file-main">\n <i nz-icon class="hd-accessory-file-icon" nzType="link" nzTheme="outline"></i>\n <span class="hd-accessory-file-name">{{ getFileName(file) || \'未命名文件\' }}</span>\n </span>\n <span class="hd-accessory-file-size" *ngIf="getFileSizeText(file)">{{ getFileSizeText(file) }}</span>\n </a>\n </div>\n <div class="hd-accessory-empty" *ngIf="!group.accessoryList || !group.accessoryList.length">\n 暂无附件\n </div>\n </div>\n</div>\n',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}::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-left-sticky,::ng-deep .hd-table-container .ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-th-left-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-left-sticky,::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-left-sticky,::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.ant-table-row-hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr.ant-table-row-hover>td.ant-table-td-right-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-left-sticky,::ng-deep .hd-table-container .ant-table-tbody>tr:hover>td.ant-table-td-right-sticky{background:#ecf8f1!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%}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:var(--hd-cascader-menu-min-width,auto);max-width:560px}::ng-deep .cdk-overlay-pane .hd-cascader-menus.ant-cascader-menus>.ant-cascader-menu:only-child .ant-cascader-menu-item{white-space:nowrap}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.hd-accessory-list{width:100%;font-size:14px;line-height:22px}.hd-accessory-list .hd-accessory-group+.hd-accessory-group{margin-top:16px}.hd-accessory-list .hd-accessory-group-label{padding:5px 0;min-height:32px;box-sizing:border-box;color:#4e5369;line-height:22px}.hd-accessory-list .hd-accessory-files{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hd-accessory-list .hd-accessory-empty{padding:7px 0;color:#8d918f;font-size:14px;line-height:22px}.hd-accessory-list .hd-accessory-file{display:flex;align-items:center;gap:12px;min-width:0;padding:7px 12px;box-sizing:border-box;background:#f7f8fa;border-radius:4px;color:#20b95d;text-decoration:none;cursor:pointer}.hd-accessory-list .hd-accessory-file:hover .hd-accessory-file-icon,.hd-accessory-list .hd-accessory-file:hover .hd-accessory-file-name{color:#20bd62}.hd-accessory-list .hd-accessory-file-main{display:flex;flex:1;min-width:0;align-items:center;gap:4px}.hd-accessory-list .hd-accessory-file-icon{flex-shrink:0;font-size:16px;color:inherit}.hd-accessory-list .hd-accessory-file-name{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:inherit;font-size:14px;line-height:22px}.hd-accessory-list .hd-accessory-file-size{flex-shrink:0;color:#8d918f;font-size:12px;line-height:18px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={groups:[{type:t.Input}],labelColon:[{type:t.Input}],autoOpen:[{type:t.Input}],fileClick:[{type:t.Output}]},e}();var lt=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.NgZorroAntdModule],declarations:[at],exports:[at]}]}],e}(),rt=function(){function e(e){this.router=e,this.started=!1,this.start()}return e.prototype.start=function(){var e=this;this.started||"undefined"==typeof document||(this.started=!0,document.addEventListener("mousedown",(function(){return e.clearStuckTooltips()}),!0),this.router&&this.router.events.pipe(c.filter((function(e){return e instanceof v.NavigationStart}))).subscribe((function(){return e.clearStuckTooltips()})))},e.prototype.clearStuckTooltips=function(){"undefined"!=typeof document&&document.querySelectorAll(".cdk-overlay-container .ant-tooltip").forEach((function(e){var t=e.closest(".cdk-overlay-pane");t&&t.parentNode&&t.parentNode.removeChild(t)}))},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:v.Router,decorators:[{type:t.Optional}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(v.Router,8))},token:e,providedIn:"root"}),e}();var st=function(){function e(e){}return e.decorators=[{type:t.NgModule,args:[{exports:[F,L,P,oe,le,de,Le,ke,Pe,H,Ue,Re,nt,ot,lt,_e,je]}]}],e.ctorParameters=function(){return[{type:rt}]},e}(),dt=function(){function e(e){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],exports:[st],providers:[],entryComponents:[Be]}]}],e.ctorParameters=function(){return[{type:rt}]},e}(),ct=function(){};var pt=function(){this.accessoryList=[]};var ht=function(){this.value=null};var mt=function(){};var gt=function(){};var ut={fillSelectOption:function(e,t,n){var i=e;if(!i||!i.length)return i;for(var o=e.length,a=0;a<o;a++)i[a].name===t&&(i[a].selectOption.selectList=n);return i},fillArrayFormItem:function(e,t){if(!e||!e.length)return[];for(var n=e.length,i=0;i<n;i++)t[e[i].name]&&(e[i].value=t[e[i].name]);return e},arrayToSelectOptionList:function(e,t){var n=[];return e&&e.length?(t?t.labelTip&&t.valueTip?e.forEach((function(e){var i=e;i.label=e[t.label],i.value=e[t.value],t.valueTip&&(i[t.valueTip]=e[t.value]),t.labelTip&&(i[t.labelTip]=e[t.label]),n.push(i)})):e.forEach((function(e){var i=e;i.label=e[t.label],i.value=e[t.value],n.push(i)})):e.forEach((function(e){var t={};t.label=e,t.value=e,n.push(t)})),n):n},add:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");var o=0;try{for(var a=S(e),l=a.next();!l.done;l=a.next()){o+=l.value}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r.round(o,t)},subtract:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");if(e.length<2)throw new Error("减法入参数量至少要2个!");var o=e.shift();try{for(var a=S(e),l=a.next();!l.done;l=a.next()){o-=l.value}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r.round(o,t)},multiply:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");var o=1;try{for(var a=S(e),l=a.next();!l.done;l=a.next()){o*=l.value}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r.round(o,t)},divide:function(e,t){var n,i;if(void 0===t&&(t=2),!Array.isArray(e))throw new Error("参数必须是数组");if(e.some((function(e){return"number"!=typeof e})))throw new Error("数组元素必须是数字");if(e.length<2)throw new Error("除法入参数量至少要2个!");var o=e.shift();try{for(var a=S(e),l=a.next();!l.done;l=a.next()){var s=l.value;if(0===s)throw new Error("除数不能为0!");o/=s}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r.round(o,t)}};e.ButtonSize=D,e.ButtonType=O,e.CascaderOption=Y,e.CheckboxOption=q,e.ColWidth=Ze,e.ColorOption=Te,e.ExplainOption=Ne,e.FantasyNgzorroModule=dt,e.Filter=ce,e.FilterListType=pe,e.FormItem=me,e.FormLine=De,e.FormLineType=Fe,e.FormLinesCacheOption=Ae,e.FormListType=ue,e.HD_CASCADER_MENU_CLASS="hd-cascader-menus",e.HD_FILTER_DEFAULT_SCHEME_NAME="默认条件",e.HD_FILTER_SCHEME_STORE=Se,e.HdAccessoryFile=ct,e.HdAccessoryGroup=pt,e.HdAccessoryListComponent=at,e.HdButtonService=T,e.HdCurrentTableComponent=Ve,e.HdDetailFormFieldType=A,e.HdDetailFormService=E,e.HdFilterScheme=we,e.HdFilterSchemeStore=Ie,e.HdFilterService=he,e.HdFormLinesService=Ee,e.HdFormService=fe,e.HdLogComponent=Be,e.HdLogService=He,e.HdOption=W,e.HdOverlayCleanupService=rt,e.HdTableCellChange=Ge,e.HdTableColumn=Ye,e.HdTableTotalOption=Qe,e.InputNumber=J,e.OperateBtn=$e,e.Page=j,e.RadioOption=K,e.SelectOption=_,e.SelectOptionTableColumn=U,e.SelectOptionTableColumnIcon=Z,e.StaticConst={MaxPageSize:99999999},e.TableCacheOption=Xe,e.TableColumn=ht,e.TableTotalOption=mt,e.TotalOption=gt,e.TreeGrid=et,e.Utils=ut,e.ValidatorKey=ge,e.cascaderPinyinFilter=be,e.getCascaderMenuClassName=ve,e.getCascaderMenuStyle=xe,e.getCascaderShowSearch=ye,e.ɵa=st,e.ɵb=F,e.ɵba=tt,e.ɵbb=Je,e.ɵbc=ot,e.ɵbd=it,e.ɵbe=lt,e.ɵbf=_e,e.ɵbg=We,e.ɵbh=je,e.ɵc=N,e.ɵd=L,e.ɵe=k,e.ɵf=P,e.ɵg=M,e.ɵh=oe,e.ɵi=H,e.ɵj=B,e.ɵk=ie,e.ɵl=le,e.ɵm=ae,e.ɵn=de,e.ɵo=se,e.ɵp=Le,e.ɵq=ke,e.ɵr=Ce,e.ɵs=ze,e.ɵt=Pe,e.ɵu=Me,e.ɵv=Oe,e.ɵw=Ue,e.ɵx=qe,e.ɵy=Re,e.ɵz=nt,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=fantasy-ngzorro.umd.min.js.map
|