fantasy-ngzorro 1.0.57 → 1.0.59

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.
Files changed (31) hide show
  1. package/bundles/fantasy-ngzorro.umd.js +1814 -891
  2. package/bundles/fantasy-ngzorro.umd.js.map +1 -1
  3. package/bundles/fantasy-ngzorro.umd.min.js +2 -2
  4. package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
  5. package/esm2015/fantasy-ngzorro.js +9 -6
  6. package/esm2015/hd-component.module.js +9 -7
  7. package/esm2015/hd-form-lines/hd-form-lines.component.js +2 -3
  8. package/esm2015/hd-status/hd-status.service.js +4 -4
  9. package/esm2015/hd-table/hd-table.component.js +651 -0
  10. package/esm2015/hd-table/hd-table.module.js +42 -0
  11. package/esm2015/hd-table/hd-table.service.js +85 -0
  12. package/esm2015/service/common-session.service.js +38 -0
  13. package/esm5/fantasy-ngzorro.js +9 -6
  14. package/esm5/hd-component.module.js +9 -7
  15. package/esm5/hd-form-lines/hd-form-lines.component.js +2 -3
  16. package/esm5/hd-status/hd-status.service.js +4 -4
  17. package/esm5/hd-table/hd-table.component.js +748 -0
  18. package/esm5/hd-table/hd-table.module.js +46 -0
  19. package/esm5/hd-table/hd-table.service.js +104 -0
  20. package/esm5/service/common-session.service.js +55 -0
  21. package/fantasy-ngzorro.d.ts +8 -5
  22. package/fantasy-ngzorro.metadata.json +1 -1
  23. package/fesm2015/fantasy-ngzorro.js +1948 -1148
  24. package/fesm2015/fantasy-ngzorro.js.map +1 -1
  25. package/fesm5/fantasy-ngzorro.js +1812 -884
  26. package/fesm5/fantasy-ngzorro.js.map +1 -1
  27. package/hd-table/hd-table.component.d.ts +69 -0
  28. package/hd-table/hd-table.module.d.ts +2 -0
  29. package/hd-table/hd-table.service.d.ts +33 -0
  30. package/package.json +1 -1
  31. package/service/common-session.service.d.ts +5 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ng-zorro-antd'), require('@angular/forms'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal')) :
3
- typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', 'ng-zorro-antd', '@angular/forms', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal'], factory) :
4
- (global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ngZorroAntd, global.ng.forms, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal));
5
- }(this, (function (exports, core, common, ngZorroAntd, forms, core$1, lodash, dragDrop, table, modal) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('localforage'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'localforage', 'rxjs', 'rxjs/operators'], factory) :
4
+ (global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal, global.dropdown, global.popconfirm, global.resizable, global.tooltip, global.tree, global.localforage, global.rxjs, global.rxjs.operators));
5
+ }(this, (function (exports, core, common, forms, ngZorroAntd, core$1, lodash, dragDrop, table, modal, dropdown, popconfirm, resizable, tooltip, tree, localforage, rxjs, operators) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -223,6 +223,64 @@
223
223
  return value;
224
224
  }
225
225
 
226
+ /**
227
+ * @fileoverview added by tsickle
228
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
229
+ */
230
+ var HdButtonGroupComponent = /** @class */ (function () {
231
+ function HdButtonGroupComponent() {
232
+ }
233
+ /**
234
+ * @return {?}
235
+ */
236
+ HdButtonGroupComponent.prototype.ngOnInit = /**
237
+ * @return {?}
238
+ */
239
+ function () {
240
+ };
241
+ HdButtonGroupComponent.decorators = [
242
+ { type: core.Component, args: [{
243
+ selector: 'hd-button-group',
244
+ 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",
245
+ styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-button-group-container{display:flex;align-items:center;justify-content:space-between}.hd-button-group-container .hd-button-group-left ::ng-deep hd-button{margin-right:12px}.hd-button-group-container .hd-button-group-right ::ng-deep hd-button{margin-left:12px}"]
246
+ }] }
247
+ ];
248
+ /** @nocollapse */
249
+ HdButtonGroupComponent.ctorParameters = function () { return []; };
250
+ HdButtonGroupComponent.propDecorators = {
251
+ buttonGroupLeft: [{ type: core.ContentChild, args: ["buttonGroupLeft", { static: false },] }],
252
+ buttonGroupRight: [{ type: core.ContentChild, args: ["buttonGroupRight", { static: false },] }]
253
+ };
254
+ return HdButtonGroupComponent;
255
+ }());
256
+ if (false) {
257
+ /** @type {?} */
258
+ HdButtonGroupComponent.prototype.buttonGroupLeft;
259
+ /** @type {?} */
260
+ HdButtonGroupComponent.prototype.buttonGroupRight;
261
+ }
262
+
263
+ /**
264
+ * @fileoverview added by tsickle
265
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
266
+ */
267
+ var HdButtonGroupModule = /** @class */ (function () {
268
+ function HdButtonGroupModule() {
269
+ }
270
+ HdButtonGroupModule.decorators = [
271
+ { type: core.NgModule, args: [{
272
+ imports: [
273
+ common.CommonModule,
274
+ forms.FormsModule,
275
+ ngZorroAntd.NgZorroAntdModule
276
+ ],
277
+ declarations: [HdButtonGroupComponent],
278
+ exports: [HdButtonGroupComponent]
279
+ },] }
280
+ ];
281
+ return HdButtonGroupModule;
282
+ }());
283
+
226
284
  /**
227
285
  * @fileoverview added by tsickle
228
286
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -370,64 +428,6 @@
370
428
  return HdButtonModule;
371
429
  }());
372
430
 
373
- /**
374
- * @fileoverview added by tsickle
375
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
376
- */
377
- var HdButtonGroupComponent = /** @class */ (function () {
378
- function HdButtonGroupComponent() {
379
- }
380
- /**
381
- * @return {?}
382
- */
383
- HdButtonGroupComponent.prototype.ngOnInit = /**
384
- * @return {?}
385
- */
386
- function () {
387
- };
388
- HdButtonGroupComponent.decorators = [
389
- { type: core.Component, args: [{
390
- selector: 'hd-button-group',
391
- 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",
392
- styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-button-group-container{display:flex;align-items:center;justify-content:space-between}.hd-button-group-container .hd-button-group-left ::ng-deep hd-button{margin-right:12px}.hd-button-group-container .hd-button-group-right ::ng-deep hd-button{margin-left:12px}"]
393
- }] }
394
- ];
395
- /** @nocollapse */
396
- HdButtonGroupComponent.ctorParameters = function () { return []; };
397
- HdButtonGroupComponent.propDecorators = {
398
- buttonGroupLeft: [{ type: core.ContentChild, args: ["buttonGroupLeft", { static: false },] }],
399
- buttonGroupRight: [{ type: core.ContentChild, args: ["buttonGroupRight", { static: false },] }]
400
- };
401
- return HdButtonGroupComponent;
402
- }());
403
- if (false) {
404
- /** @type {?} */
405
- HdButtonGroupComponent.prototype.buttonGroupLeft;
406
- /** @type {?} */
407
- HdButtonGroupComponent.prototype.buttonGroupRight;
408
- }
409
-
410
- /**
411
- * @fileoverview added by tsickle
412
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
413
- */
414
- var HdButtonGroupModule = /** @class */ (function () {
415
- function HdButtonGroupModule() {
416
- }
417
- HdButtonGroupModule.decorators = [
418
- { type: core.NgModule, args: [{
419
- imports: [
420
- common.CommonModule,
421
- forms.FormsModule,
422
- ngZorroAntd.NgZorroAntdModule
423
- ],
424
- declarations: [HdButtonGroupComponent],
425
- exports: [HdButtonGroupComponent]
426
- },] }
427
- ];
428
- return HdButtonGroupModule;
429
- }());
430
-
431
431
  /**
432
432
  * @fileoverview added by tsickle
433
433
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -918,11 +918,11 @@
918
918
  // 灰色
919
919
  '#9FA4A2': ['initial', 'uncommitted'],
920
920
  // 红色
921
- '#F5222D': ['delete', 'deleted', 'aborted'],
921
+ '#F5222D': ['delete', 'deleted', 'aborted', 'rejected'],
922
922
  // 蓝色
923
- '#3B77E3': ['audited', 'finished', 'adjusted', 'invoiced', 'audit'],
923
+ '#3B77E3': ['audited', 'finished', 'adjusted', 'invoiced', 'audit', 'submitted'],
924
924
  // 绿色
925
- '#12A34F': ['shipped', 'received', 'checked', 'using', 'reverse', 'valid'],
925
+ '#12A34F': ['shipped', 'received', 'checked', 'using', 'reverse', 'valid', 'approved'],
926
926
  // 橙色
927
927
  '#F05B24': ['picking', 'partialReceived', 'partDelete']
928
928
  };
@@ -1275,332 +1275,100 @@
1275
1275
  * @fileoverview added by tsickle
1276
1276
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1277
1277
  */
1278
- // import * as moment from 'moment';
1279
- var HdFormComponent = /** @class */ (function () {
1280
- function HdFormComponent(fb) {
1281
- this.fb = fb;
1282
- this.changeEvent = new core.EventEmitter();
1278
+ /** @enum {string} */
1279
+ var SpaceType = {
1280
+ row: 'row',
1281
+ column: 'column',
1282
+ };
1283
+ var Style = /** @class */ (function () {
1284
+ function Style() {
1285
+ }
1286
+ return Style;
1287
+ }());
1288
+ if (false) {
1289
+ /** @type {?} */
1290
+ Style.prototype.background;
1291
+ /** @type {?} */
1292
+ Style.prototype.width;
1293
+ /** @type {?} */
1294
+ Style.prototype.height;
1295
+ }
1296
+ var HdSpaceService = /** @class */ (function () {
1297
+ function HdSpaceService() {
1298
+ }
1299
+ HdSpaceService.decorators = [
1300
+ { type: core.Injectable, args: [{
1301
+ providedIn: 'root'
1302
+ },] }
1303
+ ];
1304
+ /** @nocollapse */
1305
+ HdSpaceService.ctorParameters = function () { return []; };
1306
+ /** @nocollapse */ HdSpaceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdSpaceService_Factory() { return new HdSpaceService(); }, token: HdSpaceService, providedIn: "root" });
1307
+ return HdSpaceService;
1308
+ }());
1309
+
1310
+ /**
1311
+ * @fileoverview added by tsickle
1312
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1313
+ */
1314
+ var HdSpaceComponent = /** @class */ (function () {
1315
+ function HdSpaceComponent() {
1316
+ this.type = SpaceType.row;
1317
+ this.background = 'inherit';
1318
+ this.style = new Style();
1283
1319
  }
1284
1320
  /**
1285
1321
  * @return {?}
1286
1322
  */
1287
- HdFormComponent.prototype.ngOnInit = /**
1323
+ HdSpaceComponent.prototype.ngOnInit = /**
1288
1324
  * @return {?}
1289
1325
  */
1290
1326
  function () {
1291
- this.init();
1292
- };
1293
- /**
1294
- * @param {?} changes
1295
- * @return {?}
1296
- */
1297
- HdFormComponent.prototype.ngOnChanges = /**
1298
- * @param {?} changes
1299
- * @return {?}
1300
- */
1301
- function (changes) {
1302
- this.dealRow();
1303
- };
1304
- /**
1305
- * @param {?} fn
1306
- * @param {?} event
1307
- * @return {?}
1308
- */
1309
- HdFormComponent.prototype.triggerEvent = /**
1310
- * @param {?} fn
1311
- * @param {?} event
1312
- * @return {?}
1313
- */
1314
- function (fn, event) {
1315
- if (fn) {
1316
- fn(event);
1327
+ this.style['background'] = this.background;
1328
+ if (this.type === SpaceType.row) {
1329
+ this.style['width'] = '100%';
1330
+ this.style['height'] = this.size + 'px';
1317
1331
  }
1318
- };
1319
- /**
1320
- * @private
1321
- * @return {?}
1322
- */
1323
- HdFormComponent.prototype.init = /**
1324
- * @private
1325
- * @return {?}
1326
- */
1327
- function () {
1328
- var _this = this;
1329
- // 异常捕获
1330
- if (!this.checkList(this.formList)) {
1331
- throw 'form组件数据格式不规范';
1332
+ else {
1333
+ this.style['height'] = '100%';
1334
+ this.style['width'] = this.size + 'px';
1332
1335
  }
1333
- // 对表单数据做初始化,用row隔离每行数据item
1334
- this.dealRow();
1335
- // 首先根据定义的组件数组 去初始化表单
1336
- /** @type {?} */
1337
- var formGroupList = {};
1338
- this.formList.forEach((/**
1339
- * @param {?} item
1340
- * @param {?} index
1341
- * @return {?}
1342
- */
1343
- function (item, index) {
1344
- // 日期相关的控件做特殊处理
1345
- if (item.type === 2 && item.value) {
1346
- var _a = __read(item.value.toString().split('-').map((/**
1347
- * @param {?} str
1348
- * @return {?}
1349
- */
1350
- function (str) { return parseInt(str); })), 3), year = _a[0], month = _a[1], day = _a[2];
1351
- /** @type {?} */
1352
- var newDateStr = new Date(year, month - 1, day)
1353
- .toLocaleDateString('zh-Hans-CN', { year: 'numeric', month: '2-digit', day: '2-digit' })
1354
- .replace(/\//g, '-');
1355
- formGroupList[item.name] = _this.fb.control({ value: new Date(newDateStr), disabled: item.disabled }, item.require && !item.hide ? [forms.Validators.required] : []);
1356
- }
1357
- else if (item.type === 3 && item.value) {
1358
- /** @type {?} */
1359
- var formItemDate = JSON.parse(JSON.stringify(item.value));
1360
- if (formItemDate && formItemDate instanceof Array) {
1361
- formItemDate = formItemDate.map((/**
1362
- * @param {?} item
1363
- * @return {?}
1364
- */
1365
- function (item) {
1366
- var _a = __read(item.split('-').map((/**
1367
- * @param {?} str
1368
- * @return {?}
1369
- */
1370
- function (str) { return parseInt(str); })), 3), year = _a[0], month = _a[1], day = _a[2];
1371
- /** @type {?} */
1372
- var newDateStr = new Date(year, month - 1, day)
1373
- .toLocaleDateString('zh-Hans-CN', { year: 'numeric', month: '2-digit', day: '2-digit' })
1374
- .replace(/\//g, '-');
1375
- item = new Date(newDateStr);
1376
- }));
1377
- formGroupList[item.name] = _this.fb.control({ value: formItemDate, disabled: item.disabled }, item.require && !item.hide ? [forms.Validators.required] : []);
1378
- }
1379
- else {
1380
- throw 'form组件中DateRange控件value值格式不规范,正确示例[\'2020-01-22\', \'2020-01-23\']';
1381
- }
1382
- }
1383
- else {
1384
- formGroupList[item.name] = _this.fb.control({ value: item.value, disabled: item.disabled }, item.require && !item.hide ? [forms.Validators.required] : []);
1385
- }
1386
- }));
1387
- this.validateHdForm = this.fb.group(formGroupList);
1388
- this.formList.forEach((/**
1389
- * @param {?} item
1390
- * @return {?}
1391
- */
1392
- function (item) {
1393
- if (item.onChangeEvent) {
1394
- if (item.onChangeEvent) {
1395
- _this.validateHdForm.get(item.name).valueChanges.subscribe((/**
1396
- * @param {?} value
1397
- * @return {?}
1398
- */
1399
- function (value) { return _this.triggerEvent(item.onChangeEvent, value); }));
1400
- }
1401
- }
1402
- }));
1403
- this.validateHdForm.valueChanges.subscribe((/**
1404
- * @param {?} data
1405
- * @return {?}
1406
- */
1407
- function (data) { return _this.onHdFormValueChanged(data); }));
1408
- this.onHdFormValueChanged();
1409
- };
1410
- /**
1411
- * @private
1412
- * @return {?}
1413
- */
1414
- HdFormComponent.prototype.dealRow = /**
1415
- * @private
1416
- * @return {?}
1417
- */
1418
- function () {
1419
- // 一阶段 遍历数据计算相关数据
1420
- /** @type {?} */
1421
- var formListLength = this.formList.length;
1422
- /** @type {?} */
1423
- var step = 0;
1424
- for (var i = 0; i < formListLength; i++) {
1425
- if (!this.formList[i].hide) {
1426
- if (i === 0) {
1427
- this.formList[i].totalWidth = this.formList[i].width || 1;
1428
- this.formList[i].isRowFirst = 1;
1429
- step = step + 4;
1430
- }
1431
- else {
1432
- // 去找到前一个非hide的控件
1433
- for (var j = i - 1; j >= 0; j--) {
1434
- if (this.formList[j].totalWidth) {
1435
- this.formList[i].totalWidth = this.formList[j].totalWidth + (this.formList[i].width || 1);
1436
- if ((this.formList[j].totalWidth + this.formList[i].width) > step && this.formList[j].totalWidth <= step) {
1437
- step = step + 4;
1438
- this.formList[i].isRowFirst = 1;
1439
- }
1440
- else {
1441
- this.formList[i].isRowFirst = 0;
1442
- }
1443
- break;
1444
- }
1445
- }
1446
- }
1447
- }
1448
- }
1449
- // 二阶段 isRowFirst的数组项增加子节点
1450
- for (var m = 0; m < formListLength; m++) {
1451
- if (this.formList[m].isRowFirst === 1) {
1452
- this.formList[m].columnItems = [];
1453
- /** @type {?} */
1454
- var space = 0;
1455
- for (var n = 1; n < formListLength - m; n++) {
1456
- if (space === 4 || this.formList[m + n].isRowFirst === 1) {
1457
- break;
1458
- }
1459
- if (!this.formList[m + n].hide && this.formList[m + n] && this.formList[m + n].isRowFirst === 0) {
1460
- this.formList[m].columnItems.push(this.formList[m + n]);
1461
- space++;
1462
- }
1463
- }
1464
- }
1465
- }
1466
- };
1467
- /**
1468
- * @private
1469
- * @param {?=} data
1470
- * @return {?}
1471
- */
1472
- HdFormComponent.prototype.onHdFormValueChanged = /**
1473
- * @private
1474
- * @param {?=} data
1475
- * @return {?}
1476
- */
1477
- function (data) {
1478
- this.changeEvent.emit(this.validateHdForm);
1479
- };
1480
- /**
1481
- * @private
1482
- * @param {?} list
1483
- * @return {?}
1484
- */
1485
- HdFormComponent.prototype.checkList = /**
1486
- * @private
1487
- * @param {?} list
1488
- * @return {?}
1489
- */
1490
- function (list) {
1491
- if (!list || (list && list.length === 0)) {
1492
- return false;
1493
- }
1494
- /** @type {?} */
1495
- var nameList = [];
1496
- list.forEach((/**
1497
- * @param {?} item
1498
- * @return {?}
1499
- */
1500
- function (item) {
1501
- // 校验单项选择器
1502
- // if (item.type === FormListType.Select && (!item.selectOption.selectList || (item.selectOption.selectList && item.selectOption.selectList.length === 0))) {
1503
- // throw 'form组件数据格式不规范,存在单项选择器没有传入选项!'
1504
- // }
1505
- nameList.push(item.name);
1506
- }));
1507
- // 校验name是否重复
1508
- if (__spread(new Set(nameList)).length !== list.length) {
1509
- throw 'form组件数据格式不规范,存在重复name值!';
1510
- }
1511
- // ...more check
1512
- return true;
1513
- };
1514
- /**
1515
- * @return {?}
1516
- */
1517
- HdFormComponent.prototype.submitForm = /**
1518
- * @return {?}
1519
- */
1520
- function () {
1521
- Object.values(this.validateHdForm.controls).forEach((/**
1522
- * @param {?} control
1523
- * @return {?}
1524
- */
1525
- function (control) {
1526
- control.markAsDirty();
1527
- control.updateValueAndValidity();
1528
- }));
1529
- this.changeEvent.emit(this.validateHdForm.getRawValue());
1530
- };
1531
- /**
1532
- * @return {?}
1533
- */
1534
- HdFormComponent.prototype.resetForm = /**
1535
- * @return {?}
1536
- */
1537
- function () {
1538
- this.validateHdForm.reset();
1539
- Object.values(this.validateHdForm.controls).forEach((/**
1540
- * @param {?} control
1541
- * @return {?}
1542
- */
1543
- function (control) {
1544
- control.markAsDirty();
1545
- control.updateValueAndValidity();
1546
- }));
1547
- this.changeEvent.emit(this.validateHdForm.getRawValue());
1548
- };
1549
- /**
1550
- * @param {?} filter
1551
- * @return {?}
1552
- */
1553
- HdFormComponent.prototype.inputClean = /**
1554
- * @param {?} filter
1555
- * @return {?}
1556
- */
1557
- function (filter) {
1558
- /** @type {?} */
1559
- var patchObject = {};
1560
- patchObject[filter.name] = null;
1561
- this.validateHdForm.patchValue(patchObject);
1562
1336
  };
1563
- HdFormComponent.decorators = [
1337
+ HdSpaceComponent.decorators = [
1564
1338
  { type: core.Component, args: [{
1565
- selector: 'hd-form',
1566
- template: "<form nz-form [formGroup]=\"validateHdForm\" class=\"ant-advanced-search-form hd-formItem-container\">\n <!-- \u6574\u4F53\u7ED3\u6784 -->\n <div nz-row [nzGutter]=\"24\">\n <!-- \u5BF9\u7EC4\u4EF6\u5217\u8868\u5FAA\u73AF\u5904\u7406 -->\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\n [ngStyle]=\"{'color': formItem?.labelColor ? formItem.labelColor : null}\">{{formItem.label}}</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]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input nz-input [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\"\n [maxlength]=\"formItem.maxLength || null\"\n [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\"\n [formControlName]=\"formItem.name\" />\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=\"validateHdForm.get(formItem.name).value && !formItem.disabled\"\n (click)=\"inputClean(formItem)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\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-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker *ngIf=\"!formItem.showTime\" [nzDisabledDate]=\"formItem.hdDisabledDate\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\">\n </nz-date-picker>\n <nz-date-picker *ngIf=\"formItem.showTime\" [nzDisabledDate]=\"formItem.hdDisabledDate\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + 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]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\" [formControlName]=\"formItem.name\">\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 : '\u8BF7\u8F93\u5165' + 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]=\"'\u8BF7\u8F93\u5165' + formItem.label\"></nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\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\" nzShowSearch nzAllowClear\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\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 </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\"></nz-time-picker>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n <!-- \u5FAA\u73AF\u6700\u591A\u56DB\u6B21 -->\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\n [ngStyle]=\"{'color': columnItem?.labelColor ? columnItem.labelColor : null}\">{{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]=\"columnItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"columnItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\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 : '\u8BF7\u8F93\u5165' + 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 : '\u8BF7\u8F93\u5165' + columnItem.label\"\n [formControlName]=\"columnItem.name\" />\n </ng-template>\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=\"validateHdForm.get(columnItem.name).value && !columnItem.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 nzAllowClear\n [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\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 *ngIf=\"columnItem.defaultLabel\" [nzLabel]=\"columnItem.defaultLabel\"\n [nzValue]=\"columnItem.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 [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + 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 [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\" [formControlName]=\"columnItem.name\">\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 [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 [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\">\n </nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\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\" nzShowSearch nzAllowClear\n [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\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 </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\"></nz-time-picker>\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>",
1567
- styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-formItem-container .hd-formItem-label{width:108px;word-break:break-all;text-align:right}.hd-formItem-container .hd-formItem-control{width:calc(100% - 108px)}.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:12px;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}"]
1339
+ selector: 'hd-space',
1340
+ template: "<nz-content>\n <div [ngStyle]=\"style\"></div>\n</nz-content>\n",
1341
+ styles: [""]
1568
1342
  }] }
1569
1343
  ];
1570
1344
  /** @nocollapse */
1571
- HdFormComponent.ctorParameters = function () { return [
1572
- { type: forms.FormBuilder }
1573
- ]; };
1574
- HdFormComponent.propDecorators = {
1575
- formList: [{ type: core.Input }],
1576
- changeEvent: [{ type: core.Output }]
1345
+ HdSpaceComponent.ctorParameters = function () { return []; };
1346
+ HdSpaceComponent.propDecorators = {
1347
+ type: [{ type: core.Input }],
1348
+ size: [{ type: core.Input }],
1349
+ background: [{ type: core.Input }]
1577
1350
  };
1578
- return HdFormComponent;
1351
+ return HdSpaceComponent;
1579
1352
  }());
1580
1353
  if (false) {
1581
1354
  /** @type {?} */
1582
- HdFormComponent.prototype.formList;
1355
+ HdSpaceComponent.prototype.type;
1583
1356
  /** @type {?} */
1584
- HdFormComponent.prototype.changeEvent;
1357
+ HdSpaceComponent.prototype.size;
1585
1358
  /** @type {?} */
1586
- HdFormComponent.prototype.validateHdForm;
1359
+ HdSpaceComponent.prototype.background;
1587
1360
  /** @type {?} */
1588
- HdFormComponent.prototype.inputValue;
1589
- /**
1590
- * @type {?}
1591
- * @private
1592
- */
1593
- HdFormComponent.prototype.fb;
1361
+ HdSpaceComponent.prototype.style;
1594
1362
  }
1595
1363
 
1596
1364
  /**
1597
1365
  * @fileoverview added by tsickle
1598
1366
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1599
1367
  */
1600
- var HdFormModule = /** @class */ (function () {
1601
- function HdFormModule() {
1368
+ var HdSpaceModule = /** @class */ (function () {
1369
+ function HdSpaceModule() {
1602
1370
  }
1603
- HdFormModule.decorators = [
1371
+ HdSpaceModule.decorators = [
1604
1372
  { type: core.NgModule, args: [{
1605
1373
  imports: [
1606
1374
  common.CommonModule,
@@ -1609,124 +1377,11 @@
1609
1377
  ngZorroAntd.NgZorroAntdModule,
1610
1378
  HdButtonModule
1611
1379
  ],
1612
- declarations: [HdFormComponent],
1613
- exports: [HdFormComponent]
1380
+ declarations: [HdSpaceComponent],
1381
+ exports: [HdSpaceComponent]
1614
1382
  },] }
1615
1383
  ];
1616
- return HdFormModule;
1617
- }());
1618
-
1619
- /**
1620
- * @fileoverview added by tsickle
1621
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1622
- */
1623
- /** @enum {string} */
1624
- var SpaceType = {
1625
- row: 'row',
1626
- column: 'column',
1627
- };
1628
- var Style = /** @class */ (function () {
1629
- function Style() {
1630
- }
1631
- return Style;
1632
- }());
1633
- if (false) {
1634
- /** @type {?} */
1635
- Style.prototype.background;
1636
- /** @type {?} */
1637
- Style.prototype.width;
1638
- /** @type {?} */
1639
- Style.prototype.height;
1640
- }
1641
- var HdSpaceService = /** @class */ (function () {
1642
- function HdSpaceService() {
1643
- }
1644
- HdSpaceService.decorators = [
1645
- { type: core.Injectable, args: [{
1646
- providedIn: 'root'
1647
- },] }
1648
- ];
1649
- /** @nocollapse */
1650
- HdSpaceService.ctorParameters = function () { return []; };
1651
- /** @nocollapse */ HdSpaceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdSpaceService_Factory() { return new HdSpaceService(); }, token: HdSpaceService, providedIn: "root" });
1652
- return HdSpaceService;
1653
- }());
1654
-
1655
- /**
1656
- * @fileoverview added by tsickle
1657
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1658
- */
1659
- var HdSpaceComponent = /** @class */ (function () {
1660
- function HdSpaceComponent() {
1661
- this.type = SpaceType.row;
1662
- this.background = 'inherit';
1663
- this.style = new Style();
1664
- }
1665
- /**
1666
- * @return {?}
1667
- */
1668
- HdSpaceComponent.prototype.ngOnInit = /**
1669
- * @return {?}
1670
- */
1671
- function () {
1672
- this.style['background'] = this.background;
1673
- if (this.type === SpaceType.row) {
1674
- this.style['width'] = '100%';
1675
- this.style['height'] = this.size + 'px';
1676
- }
1677
- else {
1678
- this.style['height'] = '100%';
1679
- this.style['width'] = this.size + 'px';
1680
- }
1681
- };
1682
- HdSpaceComponent.decorators = [
1683
- { type: core.Component, args: [{
1684
- selector: 'hd-space',
1685
- template: "<nz-content>\n <div [ngStyle]=\"style\"></div>\n</nz-content>\n",
1686
- styles: [""]
1687
- }] }
1688
- ];
1689
- /** @nocollapse */
1690
- HdSpaceComponent.ctorParameters = function () { return []; };
1691
- HdSpaceComponent.propDecorators = {
1692
- type: [{ type: core.Input }],
1693
- size: [{ type: core.Input }],
1694
- background: [{ type: core.Input }]
1695
- };
1696
- return HdSpaceComponent;
1697
- }());
1698
- if (false) {
1699
- /** @type {?} */
1700
- HdSpaceComponent.prototype.type;
1701
- /** @type {?} */
1702
- HdSpaceComponent.prototype.size;
1703
- /** @type {?} */
1704
- HdSpaceComponent.prototype.background;
1705
- /** @type {?} */
1706
- HdSpaceComponent.prototype.style;
1707
- }
1708
-
1709
- /**
1710
- * @fileoverview added by tsickle
1711
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1712
- */
1713
- var HdSpaceModule = /** @class */ (function () {
1714
- function HdSpaceModule() {
1715
- }
1716
- HdSpaceModule.decorators = [
1717
- { type: core.NgModule, args: [{
1718
- imports: [
1719
- common.CommonModule,
1720
- forms.FormsModule,
1721
- forms.ReactiveFormsModule,
1722
- ngZorroAntd.NgZorroAntdModule,
1723
- HdButtonModule
1724
- ],
1725
- declarations: [HdSpaceComponent],
1726
- exports: [HdSpaceComponent]
1727
- },] }
1728
- ];
1729
- return HdSpaceModule;
1384
+ return HdSpaceModule;
1730
1385
  }());
1731
1386
 
1732
1387
  /**
@@ -1771,7 +1426,6 @@
1771
1426
  // 缓存一下总的表单数据
1772
1427
  this.storeFormLinesData = this.formLinesData;
1773
1428
  this.init();
1774
- // localforage.setItem(location.host, '12312321');
1775
1429
  };
1776
1430
  Object.defineProperty(HdFormLinesComponent.prototype, "linesFormArray", {
1777
1431
  get: /**
@@ -1998,7 +1652,7 @@
1998
1652
  */
1999
1653
  function (changes) {
2000
1654
  if (changes['formLinesData'] && JSON.stringify(changes['formLinesData'].currentValue) !== JSON.stringify(changes['formLinesData'].previousValue)) {
2001
- if (this.storeFormLinesData.length === 0) {
1655
+ if (this.storeFormLinesData && this.storeFormLinesData.length === 0) {
2002
1656
  this.storeFormLinesData = this.formLinesData;
2003
1657
  }
2004
1658
  this.init();
@@ -2492,158 +2146,973 @@
2492
2146
  this.paginationPageIndex = 1;
2493
2147
  };
2494
2148
  /**
2495
- * @param {?} formItem
2496
- * @param {?} line
2149
+ * @param {?} formItem
2150
+ * @param {?} line
2151
+ * @return {?}
2152
+ */
2153
+ HdFormLinesComponent.prototype.inputClean = /**
2154
+ * @param {?} formItem
2155
+ * @param {?} line
2156
+ * @return {?}
2157
+ */
2158
+ function (formItem, line) {
2159
+ line.get(formItem.name).setValue(null);
2160
+ };
2161
+ /**
2162
+ * @param {?} id
2163
+ * @return {?}
2164
+ */
2165
+ HdFormLinesComponent.prototype.selectValue = /**
2166
+ * @param {?} id
2167
+ * @return {?}
2168
+ */
2169
+ function (id) {
2170
+ /** @type {?} */
2171
+ var inputDom = document.querySelector(id);
2172
+ inputDom.select();
2173
+ };
2174
+ HdFormLinesComponent.decorators = [
2175
+ { type: core.Component, args: [{
2176
+ selector: 'hd-form-lines',
2177
+ template: "<hd-button-group *ngIf=\"showForm && showSearch\">\n <ng-template #buttonGroupLeft>\n <nz-input-group [nzSuffix]=\"suffixIconSearch\">\n <input type=\"text\" nz-input (keyup.enter)=\"searchLines()\" placeholder=\"\u8BF7\u8F93\u5165\u5185\u5BB9\u641C\u7D22\" 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<hd-space background=\"transparent\" type=\"row\" size=\"16\"></hd-space>\n<form *ngIf=\"showForm\" nz-form [formGroup]=\"validateHdFormLines\"\n class=\"ant-advanced-search-form hd-formLines-container\">\n <nz-table nzTemplateMode [nzFrontPagination]=\"false\" [nzLoading]=\"tableLoading\" [nzScroll]=\"scroll\">\n <thead>\n <tr>\n <th nzWidth=\"58px\" nzLeft=\"0px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let item of formLines\">\n <th *ngIf=\"!item.hide\" [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: 80px\" nzRight=\"0\">\u64CD\u4F5C</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=\"58px\" nzLeft=\"0px\">\n {{line.get('lineIndex').value}}\n </td>\n <ng-container *ngFor=\"let formItem of formLines\">\n <td *ngIf=\"!formItem.hide\" [nzAlign]=\"formItem.align ? formItem.align : 'left'\">\n <nz-form-item>\n <nz-form-control [nzErrorTip]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input [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) : null\"\n [maxlength]=\"formItem.maxLength || null\"\n [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + 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=\"1\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n nzAllowClear\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\"\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.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-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker *ngIf=\"formItem.showTime\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [nzDisabledDate]=\"formItem.hdDisabledDate\" nzShowTime\n nzFormat=\"yyyy-MM-dd HH:mm:ss\">\n </nz-date-picker>\n <nz-date-picker *ngIf=\"!formItem.showTime\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [nzDisabledDate]=\"formItem.hdDisabledDate\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\" [formControlName]=\"formItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"4\">\n <textarea\n [ngStyle]=\"{'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name).value : null}\"\n [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + 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=\"5\">\n <div style=\"display: flex;align-items: center;\">\n <nz-input-number [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 [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\"\n [nzId]=\"'inputNumber-' + formItem.name + line.get('lineIndex').value\"\n (click)=\"formItem.isSelect ? selectValue('#inputNumber-' + formItem.name + line.get('lineIndex').value) : null\">\n </nz-input-number>\n <div *ngIf=\"formItem?.explainOptionRight?.show\"\n [style.color]=\"formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null\">\n &nbsp;&nbsp;{{line.get(formItem.explainOptionRight.name).value}}</div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"6\">\n <nz-select nzMode=\"multiple\" [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n nzShowSearch nzAllowClear\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [ngStyle]=\"getStyle(line, formItem, '200px')\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\">\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=\"7\">\n {{(formItem.preserveNumber && line.get(formItem.name).value) ?\n LodashRound(line.get(formItem.name).value,formItem.preserveNumber).toFixed(formItem.preserveNumber)\n : line.get(formItem.name).value}}\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\"></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}}</div>\n </td>\n </ng-container>\n <td style=\"width: 80px\" nzRight=\"0\">\n <span class=\"common-btn-group\">\n <a *ngIf=\"operateButtons.includes('add')\" (click)=\"addFormLine(line.get('lineIndex').value)\">\u6DFB\u52A0</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && !showDeleteConfirm\"\n (click)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && showDeleteConfirm\" nz-popconfirm\n nzPopconfirmTitle=\"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u884C\u5417?\" nzPopconfirmPlacement=\"bottom\"\n (nzOnConfirm)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n </span>\n </td>\n </tr>\n </ng-container>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{ (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </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 <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>\u5171 {{linesFormArray.controls.length}} \u6761\u6570\u636E</ng-template>\n </ng-container>\n</form>",
2178
+ styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-formLines-container ::ng-deep td{padding:1.5px 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 .ant-input-number{width:100%}"]
2179
+ }] }
2180
+ ];
2181
+ /** @nocollapse */
2182
+ HdFormLinesComponent.ctorParameters = function () { return [
2183
+ { type: forms.FormBuilder },
2184
+ { type: core.NgZone }
2185
+ ]; };
2186
+ HdFormLinesComponent.propDecorators = {
2187
+ tableLoading: [{ type: core.Input }],
2188
+ showSearch: [{ type: core.Input }],
2189
+ formLines: [{ type: core.Input }],
2190
+ formLinesData: [{ type: core.Input }],
2191
+ operateButtons: [{ type: core.Input }],
2192
+ scroll: [{ type: core.Input }],
2193
+ changeEvent: [{ type: core.Output }],
2194
+ showDeleteConfirm: [{ type: core.Input }],
2195
+ showTotal: [{ type: core.Input }],
2196
+ totalOption: [{ type: core.Input }],
2197
+ columnsNumber: [{ type: core.Input }]
2198
+ };
2199
+ __decorate([
2200
+ ngZorroAntd.InputBoolean(),
2201
+ __metadata("design:type", Boolean)
2202
+ ], HdFormLinesComponent.prototype, "tableLoading", void 0);
2203
+ __decorate([
2204
+ ngZorroAntd.InputBoolean(),
2205
+ __metadata("design:type", Boolean)
2206
+ ], HdFormLinesComponent.prototype, "showSearch", void 0);
2207
+ __decorate([
2208
+ ngZorroAntd.InputBoolean(),
2209
+ __metadata("design:type", Boolean)
2210
+ ], HdFormLinesComponent.prototype, "showDeleteConfirm", void 0);
2211
+ __decorate([
2212
+ ngZorroAntd.InputBoolean(),
2213
+ __metadata("design:type", Boolean)
2214
+ ], HdFormLinesComponent.prototype, "showTotal", void 0);
2215
+ return HdFormLinesComponent;
2216
+ }());
2217
+ if (false) {
2218
+ /** @type {?} */
2219
+ HdFormLinesComponent.prototype.tableLoading;
2220
+ /** @type {?} */
2221
+ HdFormLinesComponent.prototype.showSearch;
2222
+ /** @type {?} */
2223
+ HdFormLinesComponent.prototype.formLines;
2224
+ /** @type {?} */
2225
+ HdFormLinesComponent.prototype.formLinesData;
2226
+ /** @type {?} */
2227
+ HdFormLinesComponent.prototype.operateButtons;
2228
+ /** @type {?} */
2229
+ HdFormLinesComponent.prototype.scroll;
2230
+ /** @type {?} */
2231
+ HdFormLinesComponent.prototype.changeEvent;
2232
+ /** @type {?} */
2233
+ HdFormLinesComponent.prototype.showDeleteConfirm;
2234
+ /** @type {?} */
2235
+ HdFormLinesComponent.prototype.paginationPageIndex;
2236
+ /** @type {?} */
2237
+ HdFormLinesComponent.prototype.paginationPageSize;
2238
+ /** @type {?} */
2239
+ HdFormLinesComponent.prototype.validateHdFormLines;
2240
+ /** @type {?} */
2241
+ HdFormLinesComponent.prototype.newLine;
2242
+ /** @type {?} */
2243
+ HdFormLinesComponent.prototype.inputValue;
2244
+ /** @type {?} */
2245
+ HdFormLinesComponent.prototype.showTotal;
2246
+ /** @type {?} */
2247
+ HdFormLinesComponent.prototype.totalOption;
2248
+ /** @type {?} */
2249
+ HdFormLinesComponent.prototype.columnsNumber;
2250
+ /** @type {?} */
2251
+ HdFormLinesComponent.prototype.totalOptionList;
2252
+ /** @type {?} */
2253
+ HdFormLinesComponent.prototype.showForm;
2254
+ /** @type {?} */
2255
+ HdFormLinesComponent.prototype.filterStr;
2256
+ /** @type {?} */
2257
+ HdFormLinesComponent.prototype.storeFormLinesData;
2258
+ /** @type {?} */
2259
+ HdFormLinesComponent.prototype.filterStoreFormLinesData;
2260
+ /** @type {?} */
2261
+ HdFormLinesComponent.prototype.filterIndexStore;
2262
+ /** @type {?} */
2263
+ HdFormLinesComponent.prototype.isFilterData;
2264
+ /** @type {?} */
2265
+ HdFormLinesComponent.prototype.formValid;
2266
+ /**
2267
+ * @type {?}
2268
+ * @private
2269
+ */
2270
+ HdFormLinesComponent.prototype.fb;
2271
+ /**
2272
+ * @type {?}
2273
+ * @private
2274
+ */
2275
+ HdFormLinesComponent.prototype.ngZone;
2276
+ }
2277
+
2278
+ /**
2279
+ * @fileoverview added by tsickle
2280
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2281
+ */
2282
+ var HdFormLinesModule = /** @class */ (function () {
2283
+ function HdFormLinesModule() {
2284
+ }
2285
+ HdFormLinesModule.decorators = [
2286
+ { type: core.NgModule, args: [{
2287
+ imports: [
2288
+ common.CommonModule,
2289
+ forms.FormsModule,
2290
+ forms.ReactiveFormsModule,
2291
+ ngZorroAntd.NgZorroAntdModule,
2292
+ HdButtonModule,
2293
+ HdSpaceModule,
2294
+ HdButtonGroupModule
2295
+ ],
2296
+ declarations: [HdFormLinesComponent],
2297
+ exports: [HdFormLinesComponent]
2298
+ },] }
2299
+ ];
2300
+ return HdFormLinesModule;
2301
+ }());
2302
+
2303
+ /**
2304
+ * @fileoverview added by tsickle
2305
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2306
+ */
2307
+ // import * as moment from 'moment';
2308
+ var HdFormComponent = /** @class */ (function () {
2309
+ function HdFormComponent(fb) {
2310
+ this.fb = fb;
2311
+ this.changeEvent = new core.EventEmitter();
2312
+ }
2313
+ /**
2314
+ * @return {?}
2315
+ */
2316
+ HdFormComponent.prototype.ngOnInit = /**
2317
+ * @return {?}
2318
+ */
2319
+ function () {
2320
+ this.init();
2321
+ };
2322
+ /**
2323
+ * @param {?} changes
2324
+ * @return {?}
2325
+ */
2326
+ HdFormComponent.prototype.ngOnChanges = /**
2327
+ * @param {?} changes
2328
+ * @return {?}
2329
+ */
2330
+ function (changes) {
2331
+ this.dealRow();
2332
+ };
2333
+ /**
2334
+ * @param {?} fn
2335
+ * @param {?} event
2336
+ * @return {?}
2337
+ */
2338
+ HdFormComponent.prototype.triggerEvent = /**
2339
+ * @param {?} fn
2340
+ * @param {?} event
2341
+ * @return {?}
2342
+ */
2343
+ function (fn, event) {
2344
+ if (fn) {
2345
+ fn(event);
2346
+ }
2347
+ };
2348
+ /**
2349
+ * @private
2350
+ * @return {?}
2351
+ */
2352
+ HdFormComponent.prototype.init = /**
2353
+ * @private
2354
+ * @return {?}
2355
+ */
2356
+ function () {
2357
+ var _this = this;
2358
+ // 异常捕获
2359
+ if (!this.checkList(this.formList)) {
2360
+ throw 'form组件数据格式不规范';
2361
+ }
2362
+ // 对表单数据做初始化,用row隔离每行数据item
2363
+ this.dealRow();
2364
+ // 首先根据定义的组件数组 去初始化表单
2365
+ /** @type {?} */
2366
+ var formGroupList = {};
2367
+ this.formList.forEach((/**
2368
+ * @param {?} item
2369
+ * @param {?} index
2370
+ * @return {?}
2371
+ */
2372
+ function (item, index) {
2373
+ // 日期相关的控件做特殊处理
2374
+ if (item.type === 2 && item.value) {
2375
+ var _a = __read(item.value.toString().split('-').map((/**
2376
+ * @param {?} str
2377
+ * @return {?}
2378
+ */
2379
+ function (str) { return parseInt(str); })), 3), year = _a[0], month = _a[1], day = _a[2];
2380
+ /** @type {?} */
2381
+ var newDateStr = new Date(year, month - 1, day)
2382
+ .toLocaleDateString('zh-Hans-CN', { year: 'numeric', month: '2-digit', day: '2-digit' })
2383
+ .replace(/\//g, '-');
2384
+ formGroupList[item.name] = _this.fb.control({ value: new Date(newDateStr), disabled: item.disabled }, item.require && !item.hide ? [forms.Validators.required] : []);
2385
+ }
2386
+ else if (item.type === 3 && item.value) {
2387
+ /** @type {?} */
2388
+ var formItemDate = JSON.parse(JSON.stringify(item.value));
2389
+ if (formItemDate && formItemDate instanceof Array) {
2390
+ formItemDate = formItemDate.map((/**
2391
+ * @param {?} item
2392
+ * @return {?}
2393
+ */
2394
+ function (item) {
2395
+ var _a = __read(item.split('-').map((/**
2396
+ * @param {?} str
2397
+ * @return {?}
2398
+ */
2399
+ function (str) { return parseInt(str); })), 3), year = _a[0], month = _a[1], day = _a[2];
2400
+ /** @type {?} */
2401
+ var newDateStr = new Date(year, month - 1, day)
2402
+ .toLocaleDateString('zh-Hans-CN', { year: 'numeric', month: '2-digit', day: '2-digit' })
2403
+ .replace(/\//g, '-');
2404
+ item = new Date(newDateStr);
2405
+ }));
2406
+ formGroupList[item.name] = _this.fb.control({ value: formItemDate, disabled: item.disabled }, item.require && !item.hide ? [forms.Validators.required] : []);
2407
+ }
2408
+ else {
2409
+ throw 'form组件中DateRange控件value值格式不规范,正确示例[\'2020-01-22\', \'2020-01-23\']';
2410
+ }
2411
+ }
2412
+ else {
2413
+ formGroupList[item.name] = _this.fb.control({ value: item.value, disabled: item.disabled }, item.require && !item.hide ? [forms.Validators.required] : []);
2414
+ }
2415
+ }));
2416
+ this.validateHdForm = this.fb.group(formGroupList);
2417
+ this.formList.forEach((/**
2418
+ * @param {?} item
2419
+ * @return {?}
2420
+ */
2421
+ function (item) {
2422
+ if (item.onChangeEvent) {
2423
+ if (item.onChangeEvent) {
2424
+ _this.validateHdForm.get(item.name).valueChanges.subscribe((/**
2425
+ * @param {?} value
2426
+ * @return {?}
2427
+ */
2428
+ function (value) { return _this.triggerEvent(item.onChangeEvent, value); }));
2429
+ }
2430
+ }
2431
+ }));
2432
+ this.validateHdForm.valueChanges.subscribe((/**
2433
+ * @param {?} data
2434
+ * @return {?}
2435
+ */
2436
+ function (data) { return _this.onHdFormValueChanged(data); }));
2437
+ this.onHdFormValueChanged();
2438
+ };
2439
+ /**
2440
+ * @private
2441
+ * @return {?}
2442
+ */
2443
+ HdFormComponent.prototype.dealRow = /**
2444
+ * @private
2445
+ * @return {?}
2446
+ */
2447
+ function () {
2448
+ // 一阶段 遍历数据计算相关数据
2449
+ /** @type {?} */
2450
+ var formListLength = this.formList.length;
2451
+ /** @type {?} */
2452
+ var step = 0;
2453
+ for (var i = 0; i < formListLength; i++) {
2454
+ if (!this.formList[i].hide) {
2455
+ if (i === 0) {
2456
+ this.formList[i].totalWidth = this.formList[i].width || 1;
2457
+ this.formList[i].isRowFirst = 1;
2458
+ step = step + 4;
2459
+ }
2460
+ else {
2461
+ // 去找到前一个非hide的控件
2462
+ for (var j = i - 1; j >= 0; j--) {
2463
+ if (this.formList[j].totalWidth) {
2464
+ this.formList[i].totalWidth = this.formList[j].totalWidth + (this.formList[i].width || 1);
2465
+ if ((this.formList[j].totalWidth + this.formList[i].width) > step && this.formList[j].totalWidth <= step) {
2466
+ step = step + 4;
2467
+ this.formList[i].isRowFirst = 1;
2468
+ }
2469
+ else {
2470
+ this.formList[i].isRowFirst = 0;
2471
+ }
2472
+ break;
2473
+ }
2474
+ }
2475
+ }
2476
+ }
2477
+ }
2478
+ // 二阶段 isRowFirst的数组项增加子节点
2479
+ for (var m = 0; m < formListLength; m++) {
2480
+ if (this.formList[m].isRowFirst === 1) {
2481
+ this.formList[m].columnItems = [];
2482
+ /** @type {?} */
2483
+ var space = 0;
2484
+ for (var n = 1; n < formListLength - m; n++) {
2485
+ if (space === 4 || this.formList[m + n].isRowFirst === 1) {
2486
+ break;
2487
+ }
2488
+ if (!this.formList[m + n].hide && this.formList[m + n] && this.formList[m + n].isRowFirst === 0) {
2489
+ this.formList[m].columnItems.push(this.formList[m + n]);
2490
+ space++;
2491
+ }
2492
+ }
2493
+ }
2494
+ }
2495
+ };
2496
+ /**
2497
+ * @private
2498
+ * @param {?=} data
2499
+ * @return {?}
2500
+ */
2501
+ HdFormComponent.prototype.onHdFormValueChanged = /**
2502
+ * @private
2503
+ * @param {?=} data
2504
+ * @return {?}
2505
+ */
2506
+ function (data) {
2507
+ this.changeEvent.emit(this.validateHdForm);
2508
+ };
2509
+ /**
2510
+ * @private
2511
+ * @param {?} list
2512
+ * @return {?}
2513
+ */
2514
+ HdFormComponent.prototype.checkList = /**
2515
+ * @private
2516
+ * @param {?} list
2517
+ * @return {?}
2518
+ */
2519
+ function (list) {
2520
+ if (!list || (list && list.length === 0)) {
2521
+ return false;
2522
+ }
2523
+ /** @type {?} */
2524
+ var nameList = [];
2525
+ list.forEach((/**
2526
+ * @param {?} item
2527
+ * @return {?}
2528
+ */
2529
+ function (item) {
2530
+ // 校验单项选择器
2531
+ // if (item.type === FormListType.Select && (!item.selectOption.selectList || (item.selectOption.selectList && item.selectOption.selectList.length === 0))) {
2532
+ // throw 'form组件数据格式不规范,存在单项选择器没有传入选项!'
2533
+ // }
2534
+ nameList.push(item.name);
2535
+ }));
2536
+ // 校验name是否重复
2537
+ if (__spread(new Set(nameList)).length !== list.length) {
2538
+ throw 'form组件数据格式不规范,存在重复name值!';
2539
+ }
2540
+ // ...more check
2541
+ return true;
2542
+ };
2543
+ /**
2544
+ * @return {?}
2545
+ */
2546
+ HdFormComponent.prototype.submitForm = /**
2547
+ * @return {?}
2548
+ */
2549
+ function () {
2550
+ Object.values(this.validateHdForm.controls).forEach((/**
2551
+ * @param {?} control
2552
+ * @return {?}
2553
+ */
2554
+ function (control) {
2555
+ control.markAsDirty();
2556
+ control.updateValueAndValidity();
2557
+ }));
2558
+ this.changeEvent.emit(this.validateHdForm.getRawValue());
2559
+ };
2560
+ /**
2561
+ * @return {?}
2562
+ */
2563
+ HdFormComponent.prototype.resetForm = /**
2564
+ * @return {?}
2565
+ */
2566
+ function () {
2567
+ this.validateHdForm.reset();
2568
+ Object.values(this.validateHdForm.controls).forEach((/**
2569
+ * @param {?} control
2570
+ * @return {?}
2571
+ */
2572
+ function (control) {
2573
+ control.markAsDirty();
2574
+ control.updateValueAndValidity();
2575
+ }));
2576
+ this.changeEvent.emit(this.validateHdForm.getRawValue());
2577
+ };
2578
+ /**
2579
+ * @param {?} filter
2580
+ * @return {?}
2581
+ */
2582
+ HdFormComponent.prototype.inputClean = /**
2583
+ * @param {?} filter
2584
+ * @return {?}
2585
+ */
2586
+ function (filter) {
2587
+ /** @type {?} */
2588
+ var patchObject = {};
2589
+ patchObject[filter.name] = null;
2590
+ this.validateHdForm.patchValue(patchObject);
2591
+ };
2592
+ HdFormComponent.decorators = [
2593
+ { type: core.Component, args: [{
2594
+ selector: 'hd-form',
2595
+ template: "<form nz-form [formGroup]=\"validateHdForm\" class=\"ant-advanced-search-form hd-formItem-container\">\n <!-- \u6574\u4F53\u7ED3\u6784 -->\n <div nz-row [nzGutter]=\"24\">\n <!-- \u5BF9\u7EC4\u4EF6\u5217\u8868\u5FAA\u73AF\u5904\u7406 -->\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\n [ngStyle]=\"{'color': formItem?.labelColor ? formItem.labelColor : null}\">{{formItem.label}}</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]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input nz-input [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\"\n [maxlength]=\"formItem.maxLength || null\"\n [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\"\n [formControlName]=\"formItem.name\" />\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=\"validateHdForm.get(formItem.name).value && !formItem.disabled\"\n (click)=\"inputClean(formItem)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\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-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker *ngIf=\"!formItem.showTime\" [nzDisabledDate]=\"formItem.hdDisabledDate\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\">\n </nz-date-picker>\n <nz-date-picker *ngIf=\"formItem.showTime\" [nzDisabledDate]=\"formItem.hdDisabledDate\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + 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]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\" [formControlName]=\"formItem.name\">\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 : '\u8BF7\u8F93\u5165' + 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]=\"'\u8BF7\u8F93\u5165' + formItem.label\"></nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\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\" nzShowSearch nzAllowClear\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\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 </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\"></nz-time-picker>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n <!-- \u5FAA\u73AF\u6700\u591A\u56DB\u6B21 -->\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\n [ngStyle]=\"{'color': columnItem?.labelColor ? columnItem.labelColor : null}\">{{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]=\"columnItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"columnItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\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 : '\u8BF7\u8F93\u5165' + 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 : '\u8BF7\u8F93\u5165' + columnItem.label\"\n [formControlName]=\"columnItem.name\" />\n </ng-template>\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=\"validateHdForm.get(columnItem.name).value && !columnItem.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 nzAllowClear\n [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\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 *ngIf=\"columnItem.defaultLabel\" [nzLabel]=\"columnItem.defaultLabel\"\n [nzValue]=\"columnItem.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 [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + 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 [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\" [formControlName]=\"columnItem.name\">\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 [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 [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\">\n </nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\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\" nzShowSearch nzAllowClear\n [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\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 </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\"></nz-time-picker>\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>",
2596
+ styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-formItem-container .hd-formItem-label{width:108px;word-break:break-all;text-align:right}.hd-formItem-container .hd-formItem-control{width:calc(100% - 108px)}.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:12px;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}"]
2597
+ }] }
2598
+ ];
2599
+ /** @nocollapse */
2600
+ HdFormComponent.ctorParameters = function () { return [
2601
+ { type: forms.FormBuilder }
2602
+ ]; };
2603
+ HdFormComponent.propDecorators = {
2604
+ formList: [{ type: core.Input }],
2605
+ changeEvent: [{ type: core.Output }]
2606
+ };
2607
+ return HdFormComponent;
2608
+ }());
2609
+ if (false) {
2610
+ /** @type {?} */
2611
+ HdFormComponent.prototype.formList;
2612
+ /** @type {?} */
2613
+ HdFormComponent.prototype.changeEvent;
2614
+ /** @type {?} */
2615
+ HdFormComponent.prototype.validateHdForm;
2616
+ /** @type {?} */
2617
+ HdFormComponent.prototype.inputValue;
2618
+ /**
2619
+ * @type {?}
2620
+ * @private
2621
+ */
2622
+ HdFormComponent.prototype.fb;
2623
+ }
2624
+
2625
+ /**
2626
+ * @fileoverview added by tsickle
2627
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2628
+ */
2629
+ var HdFormModule = /** @class */ (function () {
2630
+ function HdFormModule() {
2631
+ }
2632
+ HdFormModule.decorators = [
2633
+ { type: core.NgModule, args: [{
2634
+ imports: [
2635
+ common.CommonModule,
2636
+ forms.FormsModule,
2637
+ forms.ReactiveFormsModule,
2638
+ ngZorroAntd.NgZorroAntdModule,
2639
+ HdButtonModule
2640
+ ],
2641
+ declarations: [HdFormComponent],
2642
+ exports: [HdFormComponent]
2643
+ },] }
2644
+ ];
2645
+ return HdFormModule;
2646
+ }());
2647
+
2648
+ /**
2649
+ * @fileoverview added by tsickle
2650
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2651
+ */
2652
+ var HdCurrentTableComponent = /** @class */ (function () {
2653
+ function HdCurrentTableComponent() {
2654
+ this.scroll = { x: '1px' };
2655
+ this.showSelected = false;
2656
+ this.selectField = 'billNumber';
2657
+ // 合计区域
2658
+ this.showTableTotal = false;
2659
+ this.selectEvent = new core.EventEmitter();
2660
+ this.tableSearchEvent = new core.EventEmitter();
2661
+ this.tableLoading = false;
2662
+ // 表格分页参数
2663
+ this.tablePageIndex = 1;
2664
+ this.tablePageSize = 10;
2665
+ this.tablePageIndexChange = new core.EventEmitter();
2666
+ this.tablePageSizeChange = new core.EventEmitter();
2667
+ // 表格勾选参数
2668
+ this.isAllDisplayDataChecked = false;
2669
+ this.isIndeterminate = false;
2670
+ this.listOfDisplayData = [];
2671
+ this.listOfAllData = [];
2672
+ this.mapOfCheckedId = {};
2673
+ this.mapOfCheckList = {};
2674
+ this.tableTotalOptionList = [];
2675
+ }
2676
+ /**
2677
+ * @return {?}
2678
+ */
2679
+ HdCurrentTableComponent.prototype.ngOnInit = /**
2680
+ * @return {?}
2681
+ */
2682
+ function () { };
2683
+ /**
2684
+ * @param {?} changes
2685
+ * @return {?}
2686
+ */
2687
+ HdCurrentTableComponent.prototype.ngOnChanges = /**
2688
+ * @param {?} changes
2689
+ * @return {?}
2690
+ */
2691
+ function (changes) {
2692
+ // 数据改变时,重置勾选状态
2693
+ if (changes && changes['tableData'] && changes['tableData']['currentValue'] && changes['tableData']['previousValue']) {
2694
+ if (changes['tableData']['currentValue']['pageSize'] !== changes['tableData']['previousValue']['pageSize']
2695
+ || changes['tableData']['currentValue']['pageNumber'] !== changes['tableData']['previousValue']['pageNumber']) {
2696
+ return;
2697
+ }
2698
+ this.resetStatus();
2699
+ }
2700
+ };
2701
+ // 表格勾选逻辑
2702
+ // 表格勾选逻辑
2703
+ /**
2704
+ * @param {?} $event
2705
+ * @return {?}
2706
+ */
2707
+ HdCurrentTableComponent.prototype.currentPageDataChange =
2708
+ // 表格勾选逻辑
2709
+ /**
2710
+ * @param {?} $event
2711
+ * @return {?}
2712
+ */
2713
+ function ($event) {
2714
+ this.listOfDisplayData = $event;
2715
+ this.refreshStatus();
2716
+ this.resetStatus();
2717
+ };
2718
+ /**
2719
+ * @param {?} reset
2720
+ * @return {?}
2721
+ */
2722
+ HdCurrentTableComponent.prototype.search = /**
2723
+ * @param {?} reset
2724
+ * @return {?}
2725
+ */
2726
+ function (reset) {
2727
+ if (reset) {
2728
+ this.tablePageSizeChange.emit(this.tablePageSize);
2729
+ }
2730
+ else {
2731
+ this.tablePageIndexChange.emit(this.tablePageIndex);
2732
+ }
2733
+ // 触发父组件查询事件
2734
+ this.tableSearchEvent.emit(reset);
2735
+ };
2736
+ /**
2737
+ * @return {?}
2738
+ */
2739
+ HdCurrentTableComponent.prototype.resetStatus = /**
2740
+ * @return {?}
2741
+ */
2742
+ function () {
2743
+ this.isAllDisplayDataChecked = false;
2744
+ this.isIndeterminate = false;
2745
+ this.mapOfCheckedId = {};
2746
+ this.mapOfCheckList = {};
2747
+ this.selectEvent.emit([]);
2748
+ };
2749
+ /**
2750
+ * @param {?=} event
2751
+ * @param {?=} data
2752
+ * @return {?}
2753
+ */
2754
+ HdCurrentTableComponent.prototype.refreshStatus = /**
2755
+ * @param {?=} event
2756
+ * @param {?=} data
2757
+ * @return {?}
2758
+ */
2759
+ function (event, data) {
2760
+ var _this = this;
2761
+ if (event === void 0) { event = false; }
2762
+ if (data === void 0) { data = null; }
2763
+ if (event && data) {
2764
+ !this.mapOfCheckList[data[this.selectField]] && (this.mapOfCheckList[data[this.selectField]] = data);
2765
+ }
2766
+ else if (!event && data) {
2767
+ this.mapOfCheckList[data[this.selectField]] && delete this.mapOfCheckList[data[this.selectField]];
2768
+ }
2769
+ this.isAllDisplayDataChecked = this.listOfDisplayData.every((/**
2770
+ * @param {?} item
2771
+ * @return {?}
2772
+ */
2773
+ function (item) { return _this.mapOfCheckedId[item[_this.selectField]]; }));
2774
+ this.isIndeterminate =
2775
+ this.listOfDisplayData.some((/**
2776
+ * @param {?} item
2777
+ * @return {?}
2778
+ */
2779
+ function (item) { return _this.mapOfCheckedId[item[_this.selectField]]; })) && !this.isAllDisplayDataChecked;
2780
+ // 触发select事件
2781
+ if (this.selectEvent) {
2782
+ /** @type {?} */
2783
+ var selectedList = Object.values(this.mapOfCheckList);
2784
+ this.selectEvent.emit(selectedList);
2785
+ }
2786
+ // 如果数据为空,则清空勾选标识
2787
+ if (this.tableData.content.length === 0) {
2788
+ this.isAllDisplayDataChecked = false;
2789
+ }
2790
+ };
2791
+ /**
2792
+ * @param {?} value
2793
+ * @return {?}
2794
+ */
2795
+ HdCurrentTableComponent.prototype.checkAll = /**
2796
+ * @param {?} value
2797
+ * @return {?}
2798
+ */
2799
+ function (value) {
2800
+ var _this = this;
2801
+ this.listOfDisplayData.forEach((/**
2802
+ * @param {?} item
2803
+ * @return {?}
2804
+ */
2805
+ function (item) {
2806
+ if (value) {
2807
+ !_this.mapOfCheckList[item[_this.selectField]] && (_this.mapOfCheckList[item[_this.selectField]] = item);
2808
+ }
2809
+ else {
2810
+ _this.mapOfCheckList[item[_this.selectField]] && delete _this.mapOfCheckList[item[_this.selectField]];
2811
+ }
2812
+ _this.mapOfCheckedId[item[_this.selectField]] = value;
2813
+ }));
2814
+ this.refreshStatus();
2815
+ };
2816
+ HdCurrentTableComponent.decorators = [
2817
+ { type: core.Component, args: [{
2818
+ selector: 'hd-current-table',
2819
+ 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 nzShowQuickJumper nzFrontPagination=\"false\" nzSize=\"middle\"\n [nzData]=\"tableData.content\" [nzTotal]=\"tableData.totalElements\" [(nzPageIndex)]=\"tablePageIndex\"\n [nzLoading]=\"tableLoading\" [(nzPageSize)]=\"tablePageSize\" (nzPageSizeChange)=\"search(true)\"\n (nzPageIndexChange)=\"search(false)\" (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\"\n [nzShowTotal]=\"tableTotalTemplate\">\n <thead>\n <tr>\n <th nzWidth=\"40px\" nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\" [nzIndeterminate]=\"isIndeterminate\"\n (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 [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"tableBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u6240\u6709\u6570\u636E\u533A\u57DF \u9700\u8981\u540E\u7AEF\u63A5\u53E3\u914D\u5408 -->\n <tr *ngIf=\"showTableTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let tableTotalOption of tableTotalOptionList\">\n <td>{{ tableTotalOption }}</td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #tableTotalTemplate>\n \u5171 {{tableData.totalElements}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>\n",
2820
+ styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-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}"]
2821
+ }] }
2822
+ ];
2823
+ /** @nocollapse */
2824
+ HdCurrentTableComponent.ctorParameters = function () { return []; };
2825
+ HdCurrentTableComponent.propDecorators = {
2826
+ tableData: [{ type: core.Input }],
2827
+ scroll: [{ type: core.Input }],
2828
+ showSelected: [{ type: core.Input }],
2829
+ selectField: [{ type: core.Input }],
2830
+ showTableTotal: [{ type: core.Input }],
2831
+ tableTotalOption: [{ type: core.Input }],
2832
+ selectEvent: [{ type: core.Output }],
2833
+ tableSearchEvent: [{ type: core.Output }],
2834
+ tableHead: [{ type: core.ContentChild, args: ["tableHead", { static: false },] }],
2835
+ tableBody: [{ type: core.ContentChild, args: ["tableBody", { static: false },] }],
2836
+ tableTotal: [{ type: core.ContentChild, args: ["tableTotal", { static: false },] }],
2837
+ tableLoading: [{ type: core.Input }],
2838
+ tablePageIndex: [{ type: core.Input }],
2839
+ tablePageSize: [{ type: core.Input }],
2840
+ tablePageIndexChange: [{ type: core.Output }],
2841
+ tablePageSizeChange: [{ type: core.Output }]
2842
+ };
2843
+ __decorate([
2844
+ core$1.InputBoolean(),
2845
+ __metadata("design:type", Boolean)
2846
+ ], HdCurrentTableComponent.prototype, "showSelected", void 0);
2847
+ __decorate([
2848
+ core$1.InputBoolean(),
2849
+ __metadata("design:type", Boolean)
2850
+ ], HdCurrentTableComponent.prototype, "showTableTotal", void 0);
2851
+ return HdCurrentTableComponent;
2852
+ }());
2853
+ if (false) {
2854
+ /** @type {?} */
2855
+ HdCurrentTableComponent.prototype.tableData;
2856
+ /** @type {?} */
2857
+ HdCurrentTableComponent.prototype.scroll;
2858
+ /** @type {?} */
2859
+ HdCurrentTableComponent.prototype.showSelected;
2860
+ /** @type {?} */
2861
+ HdCurrentTableComponent.prototype.selectField;
2862
+ /** @type {?} */
2863
+ HdCurrentTableComponent.prototype.showTableTotal;
2864
+ /** @type {?} */
2865
+ HdCurrentTableComponent.prototype.tableTotalOption;
2866
+ /** @type {?} */
2867
+ HdCurrentTableComponent.prototype.selectEvent;
2868
+ /** @type {?} */
2869
+ HdCurrentTableComponent.prototype.tableSearchEvent;
2870
+ /** @type {?} */
2871
+ HdCurrentTableComponent.prototype.tableHead;
2872
+ /** @type {?} */
2873
+ HdCurrentTableComponent.prototype.tableBody;
2874
+ /** @type {?} */
2875
+ HdCurrentTableComponent.prototype.tableTotal;
2876
+ /** @type {?} */
2877
+ HdCurrentTableComponent.prototype.tableLoading;
2878
+ /** @type {?} */
2879
+ HdCurrentTableComponent.prototype.tablePageIndex;
2880
+ /** @type {?} */
2881
+ HdCurrentTableComponent.prototype.tablePageSize;
2882
+ /** @type {?} */
2883
+ HdCurrentTableComponent.prototype.tablePageIndexChange;
2884
+ /** @type {?} */
2885
+ HdCurrentTableComponent.prototype.tablePageSizeChange;
2886
+ /** @type {?} */
2887
+ HdCurrentTableComponent.prototype.isAllDisplayDataChecked;
2888
+ /** @type {?} */
2889
+ HdCurrentTableComponent.prototype.isIndeterminate;
2890
+ /** @type {?} */
2891
+ HdCurrentTableComponent.prototype.listOfDisplayData;
2892
+ /** @type {?} */
2893
+ HdCurrentTableComponent.prototype.listOfAllData;
2894
+ /** @type {?} */
2895
+ HdCurrentTableComponent.prototype.listOfSelection;
2896
+ /** @type {?} */
2897
+ HdCurrentTableComponent.prototype.mapOfCheckedId;
2898
+ /** @type {?} */
2899
+ HdCurrentTableComponent.prototype.mapOfCheckList;
2900
+ /** @type {?} */
2901
+ HdCurrentTableComponent.prototype.tableTotalOptionList;
2902
+ }
2903
+
2904
+ /**
2905
+ * @fileoverview added by tsickle
2906
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2907
+ */
2908
+ var HdCurrentTableModule = /** @class */ (function () {
2909
+ function HdCurrentTableModule() {
2910
+ }
2911
+ HdCurrentTableModule.decorators = [
2912
+ { type: core.NgModule, args: [{
2913
+ imports: [
2914
+ common.CommonModule,
2915
+ table.NzTableModule,
2916
+ HdSpaceModule
2917
+ ],
2918
+ declarations: [HdCurrentTableComponent],
2919
+ exports: [HdCurrentTableComponent],
2920
+ schemas: [core.NO_ERRORS_SCHEMA]
2921
+ },] }
2922
+ ];
2923
+ return HdCurrentTableModule;
2924
+ }());
2925
+
2926
+ /**
2927
+ * @fileoverview added by tsickle
2928
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2929
+ */
2930
+ var HdLogComponent = /** @class */ (function () {
2931
+ function HdLogComponent() {
2932
+ }
2933
+ /**
2934
+ * @return {?}
2935
+ */
2936
+ HdLogComponent.prototype.ngOnInit = /**
2937
+ * @return {?}
2938
+ */
2939
+ function () {
2940
+ };
2941
+ HdLogComponent.decorators = [
2942
+ { type: core.Component, args: [{
2943
+ selector: 'hd-log',
2944
+ template: "<hd-detail-lines [scroll]=\"{x: '1px'}\" [lines]=\"logs\" hdFrontPagination=\"true\">\n <ng-template #detailLineHead>\n <th>\u65F6\u95F4</th>\n <th>\u64CD\u4F5C\u4EBA</th>\n <th>\u4E8B\u4EF6</th>\n <th>\u63CF\u8FF0</th>\n </ng-template>\n <ng-template #detailLineBody let-data let-index=\"index\">\n <td>{{data.createInfo.operateTime}}</td>\n <td>{{data.createInfo.operatorName}}</td>\n <td>{{data.event}}</td>\n <td>{{data.describe}}</td>\n </ng-template>\n</hd-detail-lines>",
2945
+ styles: [""]
2946
+ }] }
2947
+ ];
2948
+ /** @nocollapse */
2949
+ HdLogComponent.ctorParameters = function () { return []; };
2950
+ HdLogComponent.propDecorators = {
2951
+ logs: [{ type: core.Input }]
2952
+ };
2953
+ return HdLogComponent;
2954
+ }());
2955
+ if (false) {
2956
+ /** @type {?} */
2957
+ HdLogComponent.prototype.logs;
2958
+ }
2959
+
2960
+ /**
2961
+ * @fileoverview added by tsickle
2962
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2963
+ */
2964
+ var HdLogService = /** @class */ (function () {
2965
+ function HdLogService(modalService) {
2966
+ this.modalService = modalService;
2967
+ }
2968
+ /**
2969
+ * @param {?} logs
2970
+ * @return {?}
2971
+ */
2972
+ HdLogService.prototype.showLogs = /**
2973
+ * @param {?} logs
2974
+ * @return {?}
2975
+ */
2976
+ function (logs) {
2977
+ this.modalService.create({
2978
+ nzTitle: '操作日志',
2979
+ nzContent: HdLogComponent,
2980
+ nzComponentParams: { logs: logs },
2981
+ nzFooter: null,
2982
+ nzWidth: 800
2983
+ });
2984
+ };
2985
+ HdLogService.decorators = [
2986
+ { type: core.Injectable, args: [{
2987
+ providedIn: 'root',
2988
+ },] }
2989
+ ];
2990
+ /** @nocollapse */
2991
+ HdLogService.ctorParameters = function () { return [
2992
+ { type: ngZorroAntd.NzModalService }
2993
+ ]; };
2994
+ /** @nocollapse */ HdLogService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdLogService_Factory() { return new HdLogService(core.ɵɵinject(modal.NzModalService)); }, token: HdLogService, providedIn: "root" });
2995
+ return HdLogService;
2996
+ }());
2997
+ if (false) {
2998
+ /**
2999
+ * @type {?}
3000
+ * @private
3001
+ */
3002
+ HdLogService.prototype.modalService;
3003
+ }
3004
+
3005
+ /**
3006
+ * @fileoverview added by tsickle
3007
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3008
+ */
3009
+ var HdLogModule = /** @class */ (function () {
3010
+ function HdLogModule() {
3011
+ }
3012
+ HdLogModule.decorators = [
3013
+ { type: core.NgModule, args: [{
3014
+ imports: [
3015
+ common.CommonModule,
3016
+ ngZorroAntd.NgZorroAntdModule,
3017
+ HdDetailLinesModule
3018
+ ],
3019
+ entryComponents: [HdLogComponent],
3020
+ declarations: [HdLogComponent],
3021
+ exports: [HdLogComponent],
3022
+ providers: [HdLogService]
3023
+ },] }
3024
+ ];
3025
+ return HdLogModule;
3026
+ }());
3027
+
3028
+ /**
3029
+ * @fileoverview added by tsickle
3030
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3031
+ */
3032
+ var HdPopconfirmComponent = /** @class */ (function () {
3033
+ function HdPopconfirmComponent() {
3034
+ this.confirmOption = new core.EventEmitter();
3035
+ this.cancelOption = new core.EventEmitter();
3036
+ }
3037
+ /**
3038
+ * @return {?}
3039
+ */
3040
+ HdPopconfirmComponent.prototype.ngOnInit = /**
3041
+ * @return {?}
3042
+ */
3043
+ function () {
3044
+ };
3045
+ /**
3046
+ * @param {?} e
2497
3047
  * @return {?}
2498
3048
  */
2499
- HdFormLinesComponent.prototype.inputClean = /**
2500
- * @param {?} formItem
2501
- * @param {?} line
3049
+ HdPopconfirmComponent.prototype.cancel = /**
3050
+ * @param {?} e
2502
3051
  * @return {?}
2503
3052
  */
2504
- function (formItem, line) {
2505
- line.get(formItem.name).setValue(null);
3053
+ function (e) {
3054
+ this.cancelOption.emit();
2506
3055
  };
2507
3056
  /**
2508
- * @param {?} id
3057
+ * @param {?} e
2509
3058
  * @return {?}
2510
3059
  */
2511
- HdFormLinesComponent.prototype.selectValue = /**
2512
- * @param {?} id
3060
+ HdPopconfirmComponent.prototype.confirm = /**
3061
+ * @param {?} e
2513
3062
  * @return {?}
2514
3063
  */
2515
- function (id) {
2516
- /** @type {?} */
2517
- var inputDom = document.querySelector(id);
2518
- inputDom.select();
3064
+ function (e) {
3065
+ this.confirmOption.emit();
2519
3066
  };
2520
- HdFormLinesComponent.decorators = [
3067
+ HdPopconfirmComponent.decorators = [
2521
3068
  { type: core.Component, args: [{
2522
- selector: 'hd-form-lines',
2523
- template: "<hd-button-group *ngIf=\"showForm && showSearch\">\n <ng-template #buttonGroupLeft>\n <nz-input-group [nzSuffix]=\"suffixIconSearch\">\n <input type=\"text\" nz-input (keyup.enter)=\"searchLines()\" placeholder=\"\u8BF7\u8F93\u5165\u5185\u5BB9\u641C\u7D22\" 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<hd-space background=\"transparent\" type=\"row\" size=\"16\"></hd-space>\n<form *ngIf=\"showForm\" nz-form [formGroup]=\"validateHdFormLines\"\n class=\"ant-advanced-search-form hd-formLines-container\">\n <nz-table nzTemplateMode [nzFrontPagination]=\"false\" [nzLoading]=\"tableLoading\" [nzScroll]=\"scroll\">\n <thead>\n <tr>\n <th nzWidth=\"58px\" nzLeft=\"0px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let item of formLines\">\n <th *ngIf=\"!item.hide\" [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: 80px\" nzRight=\"0\">\u64CD\u4F5C</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=\"58px\" nzLeft=\"0px\">\n {{line.get('lineIndex').value}}\n </td>\n <ng-container *ngFor=\"let formItem of formLines\">\n <td *ngIf=\"!formItem.hide\" [nzAlign]=\"formItem.align ? formItem.align : 'left'\">\n <nz-form-item>\n <nz-form-control [nzErrorTip]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input [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) : null\"\n [maxlength]=\"formItem.maxLength || null\"\n [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + 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=\"1\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n nzAllowClear\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\"\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.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-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker *ngIf=\"formItem.showTime\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [nzDisabledDate]=\"formItem.hdDisabledDate\" nzShowTime\n nzFormat=\"yyyy-MM-dd HH:mm:ss\">\n </nz-date-picker>\n <nz-date-picker *ngIf=\"!formItem.showTime\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [nzDisabledDate]=\"formItem.hdDisabledDate\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\" [formControlName]=\"formItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"4\">\n <textarea\n [ngStyle]=\"{'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name).value : null}\"\n [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + 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=\"5\">\n <div style=\"display: flex;align-items: center;\">\n <nz-input-number [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 [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\"\n [nzId]=\"'inputNumber-' + formItem.name + line.get('lineIndex').value\"\n (click)=\"formItem.isSelect ? selectValue('#inputNumber-' + formItem.name + line.get('lineIndex').value) : null\">\n </nz-input-number>\n <div *ngIf=\"formItem?.explainOptionRight?.show\"\n [style.color]=\"formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null\">\n &nbsp;&nbsp;{{line.get(formItem.explainOptionRight.name).value}}</div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"6\">\n <nz-select nzMode=\"multiple\" [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n nzShowSearch nzAllowClear\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [ngStyle]=\"getStyle(line, formItem, '200px')\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\">\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=\"7\">\n {{(formItem.preserveNumber && line.get(formItem.name).value) ?\n LodashRound(line.get(formItem.name).value,formItem.preserveNumber).toFixed(formItem.preserveNumber)\n : line.get(formItem.name).value}}\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\"></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}}</div>\n </td>\n </ng-container>\n <td style=\"width: 80px\" nzRight=\"0\">\n <span class=\"common-btn-group\">\n <a *ngIf=\"operateButtons.includes('add')\" (click)=\"addFormLine(line.get('lineIndex').value)\">\u6DFB\u52A0</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && !showDeleteConfirm\"\n (click)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && showDeleteConfirm\" nz-popconfirm\n nzPopconfirmTitle=\"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u884C\u5417?\" nzPopconfirmPlacement=\"bottom\"\n (nzOnConfirm)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n </span>\n </td>\n </tr>\n </ng-container>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{ (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </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 <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>\u5171 {{linesFormArray.controls.length}} \u6761\u6570\u636E</ng-template>\n </ng-container>\n</form>",
2524
- styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-formLines-container ::ng-deep td{padding:1.5px 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 .ant-input-number{width:100%}"]
3069
+ selector: 'hd-popconfirm',
3070
+ 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 <!-- \u6309\u94AE\u63D0\u793A -->\n <div class=\"btn-content\">\n <button type=\"button\" (click)=\"cancel($event)\" nz-button nzType=\"default\">\u53D6\u6D88</button>\n <button type=\"button\" (click)=\"confirm($event)\" nz-button nzType=\"primary\">\u786E\u8BA4</button>\n </div>\n </div>\n</div>\n",
3071
+ styles: [".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}"]
2525
3072
  }] }
2526
3073
  ];
2527
3074
  /** @nocollapse */
2528
- HdFormLinesComponent.ctorParameters = function () { return [
2529
- { type: forms.FormBuilder },
2530
- { type: core.NgZone }
2531
- ]; };
2532
- HdFormLinesComponent.propDecorators = {
2533
- tableLoading: [{ type: core.Input }],
2534
- showSearch: [{ type: core.Input }],
2535
- formLines: [{ type: core.Input }],
2536
- formLinesData: [{ type: core.Input }],
2537
- operateButtons: [{ type: core.Input }],
2538
- scroll: [{ type: core.Input }],
2539
- changeEvent: [{ type: core.Output }],
2540
- showDeleteConfirm: [{ type: core.Input }],
2541
- showTotal: [{ type: core.Input }],
2542
- totalOption: [{ type: core.Input }],
2543
- columnsNumber: [{ type: core.Input }]
3075
+ HdPopconfirmComponent.ctorParameters = function () { return []; };
3076
+ HdPopconfirmComponent.propDecorators = {
3077
+ message: [{ type: core.Input }],
3078
+ confirmOption: [{ type: core.Output }],
3079
+ cancelOption: [{ type: core.Output }]
2544
3080
  };
2545
- __decorate([
2546
- ngZorroAntd.InputBoolean(),
2547
- __metadata("design:type", Boolean)
2548
- ], HdFormLinesComponent.prototype, "tableLoading", void 0);
2549
- __decorate([
2550
- ngZorroAntd.InputBoolean(),
2551
- __metadata("design:type", Boolean)
2552
- ], HdFormLinesComponent.prototype, "showSearch", void 0);
2553
- __decorate([
2554
- ngZorroAntd.InputBoolean(),
2555
- __metadata("design:type", Boolean)
2556
- ], HdFormLinesComponent.prototype, "showDeleteConfirm", void 0);
2557
- __decorate([
2558
- ngZorroAntd.InputBoolean(),
2559
- __metadata("design:type", Boolean)
2560
- ], HdFormLinesComponent.prototype, "showTotal", void 0);
2561
- return HdFormLinesComponent;
3081
+ return HdPopconfirmComponent;
2562
3082
  }());
2563
3083
  if (false) {
2564
3084
  /** @type {?} */
2565
- HdFormLinesComponent.prototype.tableLoading;
2566
- /** @type {?} */
2567
- HdFormLinesComponent.prototype.showSearch;
2568
- /** @type {?} */
2569
- HdFormLinesComponent.prototype.formLines;
2570
- /** @type {?} */
2571
- HdFormLinesComponent.prototype.formLinesData;
2572
- /** @type {?} */
2573
- HdFormLinesComponent.prototype.operateButtons;
2574
- /** @type {?} */
2575
- HdFormLinesComponent.prototype.scroll;
2576
- /** @type {?} */
2577
- HdFormLinesComponent.prototype.changeEvent;
2578
- /** @type {?} */
2579
- HdFormLinesComponent.prototype.showDeleteConfirm;
2580
- /** @type {?} */
2581
- HdFormLinesComponent.prototype.paginationPageIndex;
2582
- /** @type {?} */
2583
- HdFormLinesComponent.prototype.paginationPageSize;
2584
- /** @type {?} */
2585
- HdFormLinesComponent.prototype.validateHdFormLines;
2586
- /** @type {?} */
2587
- HdFormLinesComponent.prototype.newLine;
2588
- /** @type {?} */
2589
- HdFormLinesComponent.prototype.inputValue;
2590
- /** @type {?} */
2591
- HdFormLinesComponent.prototype.showTotal;
2592
- /** @type {?} */
2593
- HdFormLinesComponent.prototype.totalOption;
2594
- /** @type {?} */
2595
- HdFormLinesComponent.prototype.columnsNumber;
2596
- /** @type {?} */
2597
- HdFormLinesComponent.prototype.totalOptionList;
2598
- /** @type {?} */
2599
- HdFormLinesComponent.prototype.showForm;
2600
- /** @type {?} */
2601
- HdFormLinesComponent.prototype.filterStr;
2602
- /** @type {?} */
2603
- HdFormLinesComponent.prototype.storeFormLinesData;
2604
- /** @type {?} */
2605
- HdFormLinesComponent.prototype.filterStoreFormLinesData;
2606
- /** @type {?} */
2607
- HdFormLinesComponent.prototype.filterIndexStore;
3085
+ HdPopconfirmComponent.prototype.message;
2608
3086
  /** @type {?} */
2609
- HdFormLinesComponent.prototype.isFilterData;
3087
+ HdPopconfirmComponent.prototype.confirmOption;
2610
3088
  /** @type {?} */
2611
- HdFormLinesComponent.prototype.formValid;
2612
- /**
2613
- * @type {?}
2614
- * @private
2615
- */
2616
- HdFormLinesComponent.prototype.fb;
2617
- /**
2618
- * @type {?}
2619
- * @private
2620
- */
2621
- HdFormLinesComponent.prototype.ngZone;
3089
+ HdPopconfirmComponent.prototype.cancelOption;
2622
3090
  }
2623
3091
 
2624
3092
  /**
2625
3093
  * @fileoverview added by tsickle
2626
3094
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2627
3095
  */
2628
- var HdFormLinesModule = /** @class */ (function () {
2629
- function HdFormLinesModule() {
3096
+ var HdPopconfirmModule = /** @class */ (function () {
3097
+ function HdPopconfirmModule() {
2630
3098
  }
2631
- HdFormLinesModule.decorators = [
3099
+ HdPopconfirmModule.decorators = [
2632
3100
  { type: core.NgModule, args: [{
3101
+ declarations: [
3102
+ HdPopconfirmComponent
3103
+ ],
2633
3104
  imports: [
2634
- common.CommonModule,
2635
3105
  forms.FormsModule,
2636
3106
  forms.ReactiveFormsModule,
3107
+ common.CommonModule,
2637
3108
  ngZorroAntd.NgZorroAntdModule,
2638
- HdButtonModule,
2639
- HdSpaceModule,
2640
- HdButtonGroupModule
2641
3109
  ],
2642
- declarations: [HdFormLinesComponent],
2643
- exports: [HdFormLinesComponent]
3110
+ exports: [HdPopconfirmComponent],
3111
+ providers: [],
3112
+ bootstrap: [HdPopconfirmComponent]
2644
3113
  },] }
2645
3114
  ];
2646
- return HdFormLinesModule;
3115
+ return HdPopconfirmModule;
2647
3116
  }());
2648
3117
 
2649
3118
  /**
@@ -2701,44 +3170,197 @@
2701
3170
  }());
2702
3171
  if (false) {
2703
3172
  /** @type {?} */
2704
- HdStatusComponent.prototype.status;
3173
+ HdStatusComponent.prototype.status;
3174
+ /** @type {?} */
3175
+ HdStatusComponent.prototype.statusColor;
3176
+ }
3177
+
3178
+ /**
3179
+ * @fileoverview added by tsickle
3180
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3181
+ */
3182
+ var HdStatusModule = /** @class */ (function () {
3183
+ function HdStatusModule() {
3184
+ }
3185
+ HdStatusModule.decorators = [
3186
+ { type: core.NgModule, args: [{
3187
+ declarations: [
3188
+ HdStatusComponent,
3189
+ ],
3190
+ imports: [
3191
+ forms.FormsModule,
3192
+ forms.ReactiveFormsModule,
3193
+ common.CommonModule,
3194
+ ngZorroAntd.NgZorroAntdModule,
3195
+ ],
3196
+ exports: [HdStatusComponent],
3197
+ providers: [],
3198
+ bootstrap: [HdStatusComponent]
3199
+ },] }
3200
+ ];
3201
+ return HdStatusModule;
3202
+ }());
3203
+
3204
+ /**
3205
+ * @fileoverview added by tsickle
3206
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3207
+ */
3208
+ var CommonSessionService = /** @class */ (function () {
3209
+ function CommonSessionService() {
3210
+ }
3211
+ /**
3212
+ * @param {?} session_key
3213
+ * @param {?} session
3214
+ * @return {?}
3215
+ */
3216
+ CommonSessionService.prototype.putSession = /**
3217
+ * @param {?} session_key
3218
+ * @param {?} session
3219
+ * @return {?}
3220
+ */
3221
+ function (session_key, session) {
3222
+ if (session) {
3223
+ window.sessionStorage.setItem(session_key, JSON.stringify(session));
3224
+ }
3225
+ else {
3226
+ window.sessionStorage.removeItem(session_key);
3227
+ }
3228
+ };
3229
+ /**
3230
+ * @param {?} session_key
3231
+ * @return {?}
3232
+ */
3233
+ CommonSessionService.prototype.getSession = /**
3234
+ * @param {?} session_key
3235
+ * @return {?}
3236
+ */
3237
+ function (session_key) {
3238
+ return JSON.parse(window.sessionStorage.getItem(session_key));
3239
+ };
3240
+ /**
3241
+ * @param {?} session_key
3242
+ * @return {?}
3243
+ */
3244
+ CommonSessionService.prototype.removeSession = /**
3245
+ * @param {?} session_key
3246
+ * @return {?}
3247
+ */
3248
+ function (session_key) {
3249
+ window.sessionStorage.removeItem(session_key);
3250
+ };
3251
+ CommonSessionService.decorators = [
3252
+ { type: core.Injectable }
3253
+ ];
3254
+ return CommonSessionService;
3255
+ }());
3256
+
3257
+ /**
3258
+ * @fileoverview added by tsickle
3259
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3260
+ */
3261
+ // 表格行
3262
+ var
3263
+ // 表格行
3264
+ TableColumn = /** @class */ (function () {
3265
+ function TableColumn() {
3266
+ // 列名
3267
+ this.name = null; // 字段名
3268
+ // 颜色
3269
+ this.align = 'left';
3270
+ this.fixed = null;
3271
+ // 固定列宽度
3272
+ this.btnList = [];
3273
+ this.isShow = true;
3274
+ }
3275
+ return TableColumn;
3276
+ }());
3277
+ if (false) {
3278
+ /** @type {?} */
3279
+ TableColumn.prototype.title;
3280
+ /** @type {?} */
3281
+ TableColumn.prototype.name;
3282
+ /** @type {?} */
3283
+ TableColumn.prototype.render;
3284
+ /** @type {?} */
3285
+ TableColumn.prototype.width;
3286
+ /** @type {?} */
3287
+ TableColumn.prototype.color;
3288
+ /** @type {?} */
3289
+ TableColumn.prototype.align;
3290
+ /** @type {?} */
3291
+ TableColumn.prototype.click;
3292
+ /** @type {?} */
3293
+ TableColumn.prototype.fixed;
3294
+ /** @type {?} */
3295
+ TableColumn.prototype.fixedWidth;
3296
+ /** @type {?} */
3297
+ TableColumn.prototype.btnList;
3298
+ /** @type {?} */
3299
+ TableColumn.prototype.isShow;
3300
+ }
3301
+ var OperateBtn = /** @class */ (function () {
3302
+ function OperateBtn() {
3303
+ this.showConfirm = false;
3304
+ }
3305
+ return OperateBtn;
3306
+ }());
3307
+ if (false) {
3308
+ /** @type {?} */
3309
+ OperateBtn.prototype.name;
3310
+ /** @type {?} */
3311
+ OperateBtn.prototype.showConfirm;
3312
+ /** @type {?} */
3313
+ OperateBtn.prototype.click;
3314
+ /** @type {?} */
3315
+ OperateBtn.prototype.permission;
3316
+ }
3317
+ var TableTotalOption = /** @class */ (function () {
3318
+ function TableTotalOption() {
3319
+ }
3320
+ return TableTotalOption;
3321
+ }());
3322
+ if (false) {
3323
+ /** @type {?} */
3324
+ TableTotalOption.prototype.columnNumber;
3325
+ /** @type {?} */
3326
+ TableTotalOption.prototype.insertIndex;
3327
+ /** @type {?} */
3328
+ TableTotalOption.prototype.insertName;
3329
+ }
3330
+ var TableCacheOption = /** @class */ (function () {
3331
+ function TableCacheOption() {
3332
+ }
3333
+ return TableCacheOption;
3334
+ }());
3335
+ if (false) {
3336
+ /** @type {?} */
3337
+ TableCacheOption.prototype.pageSize;
2705
3338
  /** @type {?} */
2706
- HdStatusComponent.prototype.statusColor;
3339
+ TableCacheOption.prototype.colWidths;
3340
+ /** @type {?} */
3341
+ TableCacheOption.prototype.cols;
2707
3342
  }
2708
-
2709
- /**
2710
- * @fileoverview added by tsickle
2711
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2712
- */
2713
- var HdStatusModule = /** @class */ (function () {
2714
- function HdStatusModule() {
3343
+ var SetColTreeGrid = /** @class */ (function () {
3344
+ function SetColTreeGrid() {
2715
3345
  }
2716
- HdStatusModule.decorators = [
2717
- { type: core.NgModule, args: [{
2718
- declarations: [
2719
- HdStatusComponent,
2720
- ],
2721
- imports: [
2722
- forms.FormsModule,
2723
- forms.ReactiveFormsModule,
2724
- common.CommonModule,
2725
- ngZorroAntd.NgZorroAntdModule,
2726
- ],
2727
- exports: [HdStatusComponent],
2728
- providers: [],
2729
- bootstrap: [HdStatusComponent]
2730
- },] }
2731
- ];
2732
- return HdStatusModule;
3346
+ return SetColTreeGrid;
2733
3347
  }());
3348
+ if (false) {
3349
+ /** @type {?} */
3350
+ SetColTreeGrid.prototype.title;
3351
+ /** @type {?} */
3352
+ SetColTreeGrid.prototype.key;
3353
+ }
2734
3354
 
2735
3355
  /**
2736
3356
  * @fileoverview added by tsickle
2737
3357
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2738
3358
  */
2739
- var HdCurrentTableComponent = /** @class */ (function () {
2740
- function HdCurrentTableComponent() {
2741
- this.scroll = { x: '1px' };
3359
+ var HdTableComponent = /** @class */ (function () {
3360
+ function HdTableComponent(commonSessionService) {
3361
+ var _this = this;
3362
+ this.commonSessionService = commonSessionService;
3363
+ this.tableCols = [];
2742
3364
  this.showSelected = false;
2743
3365
  this.selectField = 'billNumber';
2744
3366
  // 合计区域
@@ -2748,9 +3370,9 @@
2748
3370
  this.tableLoading = false;
2749
3371
  // 表格分页参数
2750
3372
  this.tablePageIndex = 1;
2751
- this.tablePageSize = 10;
2752
3373
  this.tablePageIndexChange = new core.EventEmitter();
2753
3374
  this.tablePageSizeChange = new core.EventEmitter();
3375
+ this.scroll = null;
2754
3376
  // 表格勾选参数
2755
3377
  this.isAllDisplayDataChecked = false;
2756
3378
  this.isIndeterminate = false;
@@ -2758,20 +3380,467 @@
2758
3380
  this.listOfAllData = [];
2759
3381
  this.mapOfCheckedId = {};
2760
3382
  this.mapOfCheckList = {};
3383
+ // 合计参数
2761
3384
  this.tableTotalOptionList = [];
3385
+ this.textWidthCache = {};
3386
+ // 缓存信息
3387
+ this.tableCacheOption = new TableCacheOption();
3388
+ this.tableColsCache = [];
3389
+ this.showTable = false;
3390
+ this.selectColListNodes = [];
3391
+ this.selectColListNodesCache = [];
3392
+ // 拖拽操作
3393
+ this.beforeDrop = (/**
3394
+ * @param {?} arg
3395
+ * @return {?}
3396
+ */
3397
+ function (arg) {
3398
+ console.log('arg', arg);
3399
+ console.log('this.selectColListNodes', _this.selectColListNodes);
3400
+ // TODO: 这里要优化代码,拖拽的时候不是双向绑定的值
3401
+ // this.selectColListNodesCache = this.moveElementNearby(this.selectColListNodesCache.length > 0 ? this.selectColListNodesCache : [...this.selectColListNodes], arg.dragNode.key, arg.node.key, arg.pos);
3402
+ // if (this.selectColListNodesCache && this.selectColListNodesCache.length > 0) {
3403
+ // this.tableCacheOption.cols = [];
3404
+ // this.selectColListNodesCache.forEach(item => {
3405
+ // this.tableCacheOption.cols.push(item.title);
3406
+ // delete item.expanded
3407
+ // })
3408
+ // this.saveTableCacheOption();
3409
+ // // this.showTable = false;
3410
+ // // this.setCols();
3411
+ // // this.dealCols();
3412
+ // // this.dealScroll();
3413
+ // // this.showTable = true;
3414
+ // this.initTable();
3415
+ // }
3416
+ // setTimeout(() => {
3417
+ // console.log('this.selectColListNodes', this.selectColListNodes);
3418
+ // }, 3000);
3419
+ return rxjs.of(true).pipe(operators.delay(100));
3420
+ });
2762
3421
  }
2763
3422
  /**
2764
3423
  * @return {?}
2765
3424
  */
2766
- HdCurrentTableComponent.prototype.ngOnInit = /**
3425
+ HdTableComponent.prototype.ngOnInit = /**
2767
3426
  * @return {?}
2768
3427
  */
2769
- function () { };
3428
+ function () {
3429
+ this.userSession = this.commonSessionService.getSession('__jy_authorization_session__');
3430
+ // 用于开发环境调试
3431
+ if (!this.userSession) {
3432
+ this.userSession = {
3433
+ userCode: 'dev'
3434
+ };
3435
+ }
3436
+ this.getInitLocalforage();
3437
+ };
3438
+ /**
3439
+ * @return {?}
3440
+ */
3441
+ HdTableComponent.prototype.getInitLocalforage = /**
3442
+ * @return {?}
3443
+ */
3444
+ function () {
3445
+ var _this = this;
3446
+ // 首先获取当前hd-table存储的数据 如果没有,则初始化下当前的数据
3447
+ localforage.getItem('hd-table_' + this.userSession.userCode + '_' + this.uuid).then((/**
3448
+ * @param {?} value
3449
+ * @return {?}
3450
+ */
3451
+ function (value) {
3452
+ _this.tableCacheOption = value;
3453
+ if (_this.tableCacheOption.pageSize && _this.tableCacheOption.pageSize > 10) {
3454
+ _this.tablePageSize = _this.tableCacheOption.pageSize;
3455
+ _this.tablePageSizeChange.emit(_this.tablePageSize);
3456
+ }
3457
+ else {
3458
+ _this.tablePageSize = _this.tableCacheOption.pageSize || 10;
3459
+ }
3460
+ if (!_this.tableCacheOption.colWidths) {
3461
+ _this.tableCacheOption.colWidths = new Map();
3462
+ }
3463
+ _this.initTable(true);
3464
+ })).catch((/**
3465
+ * @param {?} err
3466
+ * @return {?}
3467
+ */
3468
+ function (err) {
3469
+ _this.tableCacheOption = new TableCacheOption();
3470
+ _this.tablePageSize = 10;
3471
+ _this.tableCacheOption.pageSize = 10;
3472
+ _this.tableCacheOption.colWidths = new Map();
3473
+ _this.initTable(true);
3474
+ }));
3475
+ };
3476
+ /**
3477
+ * @param {?=} initTree
3478
+ * @return {?}
3479
+ */
3480
+ HdTableComponent.prototype.initTable = /**
3481
+ * @param {?=} initTree
3482
+ * @return {?}
3483
+ */
3484
+ function (initTree) {
3485
+ if (initTree === void 0) { initTree = false; }
3486
+ this.showTable = false;
3487
+ if (!this.uuid) {
3488
+ throw 'hd-table缺失uuid参数,请使用编辑器插件生成并给hd-table赋予uuid属性';
3489
+ }
3490
+ if (this.judgeRepeatCols()) {
3491
+ this.dealCols();
3492
+ this.setCols(initTree);
3493
+ this.dealScroll();
3494
+ this.dealOperateBtn();
3495
+ this.showTable = true;
3496
+ }
3497
+ };
3498
+ // 从缓存设置列
3499
+ // 从缓存设置列
3500
+ /**
3501
+ * @param {?=} initTree
3502
+ * @return {?}
3503
+ */
3504
+ HdTableComponent.prototype.setCols =
3505
+ // 从缓存设置列
3506
+ /**
3507
+ * @param {?=} initTree
3508
+ * @return {?}
3509
+ */
3510
+ function (initTree) {
3511
+ var _this = this;
3512
+ if (initTree === void 0) { initTree = false; }
3513
+ if (initTree) {
3514
+ this.selectColListNodes = [];
3515
+ }
3516
+ if (this.tableCacheOption.cols) {
3517
+ var _a = this.tableColsCache.reduce((/**
3518
+ * @param {?} acc
3519
+ * @param {?} item
3520
+ * @return {?}
3521
+ */
3522
+ function (acc, item) {
3523
+ if (_this.tableCacheOption.cols.includes(item.title)) {
3524
+ acc.incols.push(item);
3525
+ }
3526
+ else {
3527
+ acc.notIncols.push(item);
3528
+ }
3529
+ return acc;
3530
+ }), { notIncols: [], incols: [] }), notIncols = _a.notIncols, incols = _a.incols;
3531
+ incols.sort((/**
3532
+ * @param {?} a
3533
+ * @param {?} b
3534
+ * @return {?}
3535
+ */
3536
+ function (a, b) {
3537
+ return _this.tableCacheOption.cols.indexOf(a.title) - _this.tableCacheOption.cols.indexOf(b.title);
3538
+ }));
3539
+ this.tableCols = incols.concat(notIncols);
3540
+ }
3541
+ this.tableCols.forEach((/**
3542
+ * @param {?} element
3543
+ * @param {?} index
3544
+ * @return {?}
3545
+ */
3546
+ function (element, index) {
3547
+ if (_this.tableCacheOption.cols) {
3548
+ element.isShow = _this.tableCacheOption.cols.includes(element.title) ? true : false;
3549
+ if (initTree) {
3550
+ _this.selectColListNodes.push({
3551
+ title: element.title,
3552
+ key: element.title,
3553
+ checked: _this.tableCacheOption.cols.includes(element.title) ? true : false
3554
+ });
3555
+ }
3556
+ }
3557
+ else {
3558
+ element.isShow = true;
3559
+ if (initTree) {
3560
+ _this.selectColListNodes.push({
3561
+ title: element.title,
3562
+ key: element.title,
3563
+ checked: true
3564
+ });
3565
+ }
3566
+ }
3567
+ }));
3568
+ // 调整列宽为缓存宽度
3569
+ if (this.tableCacheOption && this.tableCacheOption.colWidths && this.tableCacheOption.colWidths.size !== 0) {
3570
+ this.tableCols.forEach((/**
3571
+ * @param {?} col
3572
+ * @return {?}
3573
+ */
3574
+ function (col) {
3575
+ if (_this.tableCacheOption.colWidths.has(col.title)) {
3576
+ col.width = _this.tableCacheOption.colWidths.get(col.title);
3577
+ }
3578
+ }));
3579
+ }
3580
+ this.dealCols();
3581
+ // console.log('this.tableColsCache', this.tableColsCache);
3582
+ // console.log('this.selectColListNodes', this.selectColListNodes);
3583
+ // console.log('this.tableCacheOption.cols', this.tableCacheOption.cols);
3584
+ // console.log('this.tableCols', this.tableCols);
3585
+ };
3586
+ /**
3587
+ * @param {?} arr
3588
+ * @param {?} elementToMoveTitle
3589
+ * @param {?} targetElementTitle
3590
+ * @param {?} pos
3591
+ * @return {?}
3592
+ */
3593
+ HdTableComponent.prototype.moveElementNearby = /**
3594
+ * @param {?} arr
3595
+ * @param {?} elementToMoveTitle
3596
+ * @param {?} targetElementTitle
3597
+ * @param {?} pos
3598
+ * @return {?}
3599
+ */
3600
+ function (arr, elementToMoveTitle, targetElementTitle, pos) {
3601
+ /** @type {?} */
3602
+ var tmpArray = JSON.parse(JSON.stringify(arr));
3603
+ /** @type {?} */
3604
+ var targetIndex = tmpArray.findIndex((/**
3605
+ * @param {?} item
3606
+ * @return {?}
3607
+ */
3608
+ function (item) { return item.title === targetElementTitle; }));
3609
+ /** @type {?} */
3610
+ var elementIndex = tmpArray.findIndex((/**
3611
+ * @param {?} item
3612
+ * @return {?}
3613
+ */
3614
+ function (item) { return item.title === elementToMoveTitle; }));
3615
+ /** @type {?} */
3616
+ var newIndex = pos < 0 ? (targetIndex + pos) : targetIndex;
3617
+ console.log('elementIndex', elementIndex);
3618
+ console.log('targetIndex', targetIndex);
3619
+ console.log('newIndex', newIndex);
3620
+ // 移除目标元素,并插入到新的位置
3621
+ /** @type {?} */
3622
+ var removedElement = tmpArray.splice(elementIndex, 1);
3623
+ tmpArray.splice(newIndex + 1, 0, removedElement[0]);
3624
+ return tmpArray;
3625
+ };
3626
+ // 勾选操作
3627
+ // 勾选操作
3628
+ /**
3629
+ * @param {?} event
3630
+ * @return {?}
3631
+ */
3632
+ HdTableComponent.prototype.checkAction =
3633
+ // 勾选操作
3634
+ /**
3635
+ * @param {?} event
3636
+ * @return {?}
3637
+ */
3638
+ function (event) {
3639
+ this.tableCacheOption.cols = event.keys;
3640
+ this.saveTableCacheOption();
3641
+ this.showTable = false;
3642
+ this.setCols();
3643
+ this.dealCols();
3644
+ this.dealScroll();
3645
+ this.showTable = true;
3646
+ };
3647
+ /**
3648
+ * @return {?}
3649
+ */
3650
+ HdTableComponent.prototype.dealCols = /**
3651
+ * @return {?}
3652
+ */
3653
+ function () {
3654
+ // 处理左右吸附的数据在数组中的位置
3655
+ /** @type {?} */
3656
+ var leftFixedCols = this.tableCols.filter((/**
3657
+ * @param {?} col
3658
+ * @return {?}
3659
+ */
3660
+ function (col) { return col.fixed === 'left'; }));
3661
+ /** @type {?} */
3662
+ var rightFixedCols = this.tableCols.filter((/**
3663
+ * @param {?} col
3664
+ * @return {?}
3665
+ */
3666
+ function (col) { return col.fixed === 'right'; }));
3667
+ /** @type {?} */
3668
+ var normalCols = this.tableCols.filter((/**
3669
+ * @param {?} col
3670
+ * @return {?}
3671
+ */
3672
+ function (col) { return !col.fixed; }));
3673
+ /** @type {?} */
3674
+ var resultCols = leftFixedCols.concat(normalCols).concat(rightFixedCols);
3675
+ this.tableCols = resultCols;
3676
+ if (!this.tableColsCache || this.tableColsCache.length === 0) {
3677
+ // 缓存一下表格的数据
3678
+ this.tableColsCache = __spread(this.tableCols);
3679
+ console.log('dealCols里面的tableCols', this.tableCols);
3680
+ console.log('dealCols里面的缓存', this.tableColsCache);
3681
+ }
3682
+ };
3683
+ /**
3684
+ * @return {?}
3685
+ */
3686
+ HdTableComponent.prototype.saveTableCacheOption = /**
3687
+ * @return {?}
3688
+ */
3689
+ function () {
3690
+ localforage.setItem('hd-table_' + this.userSession.userCode + '_' + this.uuid, this.tableCacheOption);
3691
+ };
3692
+ /**
3693
+ * @return {?}
3694
+ */
3695
+ HdTableComponent.prototype.judgeRepeatCols = /**
3696
+ * @return {?}
3697
+ */
3698
+ function () {
3699
+ for (var i = 0; i < this.tableCols.length; i++) {
3700
+ for (var j = i + 1; j < this.tableCols.length; j++) {
3701
+ if (this.tableCols[i].title === this.tableCols[j].title) {
3702
+ throw "hd-table\u7EC4\u4EF6\u4E2D\u5217\u540D " + this.tableCols[i].title + " \u91CD\u590D";
3703
+ }
3704
+ }
3705
+ }
3706
+ return true;
3707
+ };
3708
+ /**
3709
+ * @param {?} __0
3710
+ * @param {?} col
3711
+ * @return {?}
3712
+ */
3713
+ HdTableComponent.prototype.onResize = /**
3714
+ * @param {?} __0
3715
+ * @param {?} col
3716
+ * @return {?}
3717
+ */
3718
+ function (_a, col) {
3719
+ var width = _a.width;
3720
+ this.tableCacheOption.colWidths.set(col, width);
3721
+ this.saveTableCacheOption();
3722
+ this.tableCols = this.tableCols.map((/**
3723
+ * @param {?} e
3724
+ * @return {?}
3725
+ */
3726
+ function (e) { return (e.title === col ? __assign({}, e, { width: width }) : e); }));
3727
+ };
3728
+ /**
3729
+ * @return {?}
3730
+ */
3731
+ HdTableComponent.prototype.dealOperateBtn = /**
3732
+ * @return {?}
3733
+ */
3734
+ function () {
3735
+ /** @type {?} */
3736
+ var operateCol = this.tableCols.find((/**
3737
+ * @param {?} col
3738
+ * @return {?}
3739
+ */
3740
+ function (col) { return col.title === '操作'; })) || null;
3741
+ if (operateCol) {
3742
+ /** @type {?} */
3743
+ var textStr_1 = '';
3744
+ operateCol.btnList.forEach((/**
3745
+ * @param {?} btn
3746
+ * @return {?}
3747
+ */
3748
+ function (btn) {
3749
+ textStr_1 += btn.name;
3750
+ }));
3751
+ /** @type {?} */
3752
+ var span = document.createElement('a');
3753
+ span.style.visibility = 'hidden';
3754
+ span.style.position = 'absolute';
3755
+ span.style.whiteSpace = 'nowrap';
3756
+ span.style.fontSize = '12px';
3757
+ span.style.display = 'inline-block'; // 将样式修改为 inline-block
3758
+ span.innerText = textStr_1;
3759
+ document.body.appendChild(span);
3760
+ operateCol.width = span.offsetWidth + (operateCol.btnList.length - 1) * 4 + 16;
3761
+ span.style.display = 'none';
3762
+ document.body.removeChild(span);
3763
+ }
3764
+ };
3765
+ /**
3766
+ * @param {?} fn
3767
+ * @param {?} event
3768
+ * @return {?}
3769
+ */
3770
+ HdTableComponent.prototype.triggerEvent = /**
3771
+ * @param {?} fn
3772
+ * @param {?} event
3773
+ * @return {?}
3774
+ */
3775
+ function (fn, event) {
3776
+ if (fn) {
3777
+ fn(event);
3778
+ }
3779
+ };
3780
+ /**
3781
+ * @return {?}
3782
+ */
3783
+ HdTableComponent.prototype.dealScroll = /**
3784
+ * @return {?}
3785
+ */
3786
+ function () {
3787
+ /** @type {?} */
3788
+ var colWidth = 0;
3789
+ if (this.showSelected) {
3790
+ colWidth += 40;
3791
+ }
3792
+ this.tableCols.forEach((/**
3793
+ * @param {?} item
3794
+ * @return {?}
3795
+ */
3796
+ function (item) {
3797
+ if (item.isShow) {
3798
+ item.fixedWidth = colWidth;
3799
+ colWidth += item.width;
3800
+ }
3801
+ }));
3802
+ this.scroll = {
3803
+ x: '1px',
3804
+ y: 'calc(100vh - 140px)'
3805
+ };
3806
+ };
3807
+ /**
3808
+ * @param {?} text
3809
+ * @param {?} maxWidth
3810
+ * @return {?}
3811
+ */
3812
+ HdTableComponent.prototype.isTextOverflow = /**
3813
+ * @param {?} text
3814
+ * @param {?} maxWidth
3815
+ * @return {?}
3816
+ */
3817
+ function (text, maxWidth) {
3818
+ /** @type {?} */
3819
+ var cachedWidth = this.textWidthCache[text];
3820
+ if (cachedWidth !== undefined) {
3821
+ return cachedWidth + 15 >= maxWidth;
3822
+ }
3823
+ /** @type {?} */
3824
+ var span = document.createElement('span');
3825
+ span.style.visibility = 'hidden';
3826
+ span.style.position = 'absolute';
3827
+ span.style.whiteSpace = 'nowrap';
3828
+ span.style.fontSize = '12px';
3829
+ span.style.display = 'inline-block'; // 将样式修改为 inline-block
3830
+ span.innerText = text;
3831
+ document.body.appendChild(span);
3832
+ /** @type {?} */
3833
+ var isOverflow = span.offsetWidth + 15 >= maxWidth;
3834
+ this.textWidthCache[text] = span.offsetWidth;
3835
+ span.style.display = 'none';
3836
+ document.body.removeChild(span);
3837
+ return isOverflow;
3838
+ };
2770
3839
  /**
2771
3840
  * @param {?} changes
2772
3841
  * @return {?}
2773
3842
  */
2774
- HdCurrentTableComponent.prototype.ngOnChanges = /**
3843
+ HdTableComponent.prototype.ngOnChanges = /**
2775
3844
  * @param {?} changes
2776
3845
  * @return {?}
2777
3846
  */
@@ -2791,7 +3860,7 @@
2791
3860
  * @param {?} $event
2792
3861
  * @return {?}
2793
3862
  */
2794
- HdCurrentTableComponent.prototype.currentPageDataChange =
3863
+ HdTableComponent.prototype.currentPageDataChange =
2795
3864
  // 表格勾选逻辑
2796
3865
  /**
2797
3866
  * @param {?} $event
@@ -2806,11 +3875,13 @@
2806
3875
  * @param {?} reset
2807
3876
  * @return {?}
2808
3877
  */
2809
- HdCurrentTableComponent.prototype.search = /**
3878
+ HdTableComponent.prototype.search = /**
2810
3879
  * @param {?} reset
2811
3880
  * @return {?}
2812
3881
  */
2813
3882
  function (reset) {
3883
+ this.tableCacheOption.pageSize = this.tablePageSize;
3884
+ this.saveTableCacheOption();
2814
3885
  if (reset) {
2815
3886
  this.tablePageSizeChange.emit(this.tablePageSize);
2816
3887
  }
@@ -2823,7 +3894,7 @@
2823
3894
  /**
2824
3895
  * @return {?}
2825
3896
  */
2826
- HdCurrentTableComponent.prototype.resetStatus = /**
3897
+ HdTableComponent.prototype.resetStatus = /**
2827
3898
  * @return {?}
2828
3899
  */
2829
3900
  function () {
@@ -2838,7 +3909,7 @@
2838
3909
  * @param {?=} data
2839
3910
  * @return {?}
2840
3911
  */
2841
- HdCurrentTableComponent.prototype.refreshStatus = /**
3912
+ HdTableComponent.prototype.refreshStatus = /**
2842
3913
  * @param {?=} event
2843
3914
  * @param {?=} data
2844
3915
  * @return {?}
@@ -2879,7 +3950,7 @@
2879
3950
  * @param {?} value
2880
3951
  * @return {?}
2881
3952
  */
2882
- HdCurrentTableComponent.prototype.checkAll = /**
3953
+ HdTableComponent.prototype.checkAll = /**
2883
3954
  * @param {?} value
2884
3955
  * @return {?}
2885
3956
  */
@@ -2900,114 +3971,154 @@
2900
3971
  }));
2901
3972
  this.refreshStatus();
2902
3973
  };
2903
- HdCurrentTableComponent.decorators = [
3974
+ HdTableComponent.decorators = [
2904
3975
  { type: core.Component, args: [{
2905
- selector: 'hd-current-table',
2906
- 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 nzShowQuickJumper nzFrontPagination=\"false\" nzSize=\"middle\"\n [nzData]=\"tableData.content\" [nzTotal]=\"tableData.totalElements\" [(nzPageIndex)]=\"tablePageIndex\"\n [nzLoading]=\"tableLoading\" [(nzPageSize)]=\"tablePageSize\" (nzPageSizeChange)=\"search(true)\"\n (nzPageIndexChange)=\"search(false)\" (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\"\n [nzShowTotal]=\"tableTotalTemplate\">\n <thead>\n <tr>\n <th nzWidth=\"40px\" nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\" [nzIndeterminate]=\"isIndeterminate\"\n (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 [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"tableBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u6240\u6709\u6570\u636E\u533A\u57DF \u9700\u8981\u540E\u7AEF\u63A5\u53E3\u914D\u5408 -->\n <tr *ngIf=\"showTableTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let tableTotalOption of tableTotalOptionList\">\n <td>{{ tableTotalOption }}</td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #tableTotalTemplate>\n \u5171 {{tableData.totalElements}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>\n",
2907
- styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-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}"]
3976
+ selector: 'hd-table',
3977
+ template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet=\"tableRightButton\"></ng-container>\n <!-- <hd-button type=\"primary\" (clickAction)=\"setCols()\">\u8BBE\u7F6E\u5217</hd-button> -->\n <!-- <hd-button type=\"primary\" nz-dropdown nzTrigger=\"click\" [nzDropdownMenu]=\"menu\" (clickAction)=\"setCols()\">\u8BBE\u7F6E\u5217\n </hd-button> -->\n <a nz-dropdown nzTrigger=\"click\" [nzDropdownMenu]=\"menu\">\n \u8BBE\u7F6E\u5217\n <i nz-icon nzType=\"down\"></i>\n </a>\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <div style=\"max-height: 400px ;overflow-y: scroll;\">\n <div nz-menu style=\"padding: 5px 10px;\">\n <nz-tree [nzData]=\"selectColListNodes\" nzCheckable nzDraggable nzBlockNode nzShowExpand=\"false\"\n (nzCheckBoxChange)=\"checkAction($event)\" [nzBeforeDrop]=\"beforeDrop\">\n </nz-tree>\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\" [nzScroll]=\"scroll\" nzShowSizeChanger\n nzShowSizeChanger nzShowQuickJumper nzFrontPagination=\"false\" nzSize=\"middle\" [nzData]=\"tableData.content\"\n [nzTotal]=\"tableData.totalElements\" [(nzPageIndex)]=\"tablePageIndex\" [nzLoading]=\"tableLoading\"\n [nzPageSizeOptions]=\"[ 10, 50, 100, 200 ]\" [(nzPageSize)]=\"tablePageSize\" (nzPageSizeChange)=\"search(true)\"\n (nzPageIndexChange)=\"search(false)\" (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\"\n [nzShowTotal]=\"tableTotalTemplate\">\n <thead>\n <tr>\n <th nzWidth=\"40px\" nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngFor=\"let col of tableCols\">\n <th *ngIf=\"col.isShow\" [nzWidth]=\"col.width + 'px'\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\" nz-resizable nzBounds=\"window\"\n (nzResizeEnd)=\"onResize($event, col.title)\">\n {{ col.title }}\n <nz-resize-handle nzDirection=\"right\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\"\n (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngFor=\"let col of tableCols\">\n <td *ngIf=\"col.isShow\" [ngStyle]=\"{'max-width': col.width + 'px'}\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\">\n <ng-container *ngIf=\"col.title === '\u64CD\u4F5C';else notOperateTemplate\">\n <div class=\"common-btn-group\">\n <ng-container *ngFor=\"let btn of col.btnList\">\n <ng-container *ngIf=\"!btn.showConfirm;else showConfirmTemplate\">\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\"\n (click)=\"triggerEvent(btn.click || null, data)\">{{ btn.name }}</a>\n </ng-container>\n <ng-template #showConfirmTemplate>\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\" nz-popconfirm\n [nzPopconfirmTitle]=\"'\u786E\u8BA4\u8981' + btn.name + '\u5417?'\"\n (nzOnConfirm)=\"triggerEvent(btn.click || null, data)\">{{\n btn.name }}</a>\n </ng-template>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notOperateTemplate>\n <ng-container *ngIf=\"col.name === 'state';else otherTemplate\">\n <hd-status [status]=\"data['state']\">{{ col.render ? col.render(data) : data['state'] }}\n </hd-status>\n </ng-container>\n <ng-template #otherTemplate>\n <ng-container *ngIf=\"col.click;else noClickTemplate\">\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-container>\n <ng-template #overflowTemplate>\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-template>\n </ng-container>\n <ng-template #noClickTemplate>\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\">{{ col.render ? col.render(data) :\n data[col.name]}}</span>\n </ng-container>\n <ng-template #overflowTemplate>\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\">\n {{ col.render ? col.render(data) : data[col.name]}}</span>\n </ng-template>\n </ng-template>\n </ng-template>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n <!-- \u5408\u8BA1\u6240\u6709\u6570\u636E\u533A\u57DF \u9700\u8981\u540E\u7AEF\u63A5\u53E3\u914D\u5408 -->\n <tr *ngIf=\"showTableTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let tableTotalOption of tableTotalOptionList\">\n <td>{{ tableTotalOption }}</td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #tableTotalTemplate>\n \u5171 {{tableData.totalElements}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>",
3978
+ styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.nz-resizable-preview{position:absolute;top:0;left:0;z-index:8;border:1px dashed #d1d1d1}.nz-resizable-handle{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:9}.nz-resizable-handle-top{width:100%;height:10px;top:-5px;left:0}.nz-resizable-handle-right{width:10px;height:100%;top:0;right:-5px}.nz-resizable-handle-bottom{width:100%;height:10px;bottom:-5px;left:0}.nz-resizable-handle-left{width:10px;height:100%;top:0;left:-5px}.nz-resizable-handle-topRight{width:20px;height:20px;top:-5px;right:-5px;z-index:10}.nz-resizable-handle-bottomRight{width:20px;height:20px;right:-5px;bottom:-5px;z-index:10}.nz-resizable-handle-bottomLeft{width:20px;height:20px;bottom:-5px;left:-5px;z-index:10}.nz-resizable-handle-topLeft{width:20px;height:20px;top:-5px;left:-5px;z-index:10}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottom,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-top{cursor:row-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-left,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-right{cursor:col-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomRight,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topLeft{cursor:nwse-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomLeft,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topRight{cursor:nesw-resize}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}.resize-trigger{height:15px;background:#e8e8e8;position:absolute}.nz-resizable-preview{border-width:0 1px 0 0}"]
2908
3979
  }] }
2909
3980
  ];
2910
3981
  /** @nocollapse */
2911
- HdCurrentTableComponent.ctorParameters = function () { return []; };
2912
- HdCurrentTableComponent.propDecorators = {
3982
+ HdTableComponent.ctorParameters = function () { return [
3983
+ { type: CommonSessionService }
3984
+ ]; };
3985
+ HdTableComponent.propDecorators = {
3986
+ uuid: [{ type: core.Input }],
3987
+ tableCols: [{ type: core.Input }],
2913
3988
  tableData: [{ type: core.Input }],
2914
- scroll: [{ type: core.Input }],
2915
3989
  showSelected: [{ type: core.Input }],
2916
3990
  selectField: [{ type: core.Input }],
2917
3991
  showTableTotal: [{ type: core.Input }],
2918
3992
  tableTotalOption: [{ type: core.Input }],
2919
- selectEvent: [{ type: core.Output }],
2920
- tableSearchEvent: [{ type: core.Output }],
2921
- tableHead: [{ type: core.ContentChild, args: ["tableHead", { static: false },] }],
2922
- tableBody: [{ type: core.ContentChild, args: ["tableBody", { static: false },] }],
2923
- tableTotal: [{ type: core.ContentChild, args: ["tableTotal", { static: false },] }],
3993
+ selectEvent: [{ type: core.Output }],
3994
+ tableSearchEvent: [{ type: core.Output }],
2924
3995
  tableLoading: [{ type: core.Input }],
2925
3996
  tablePageIndex: [{ type: core.Input }],
2926
3997
  tablePageSize: [{ type: core.Input }],
2927
3998
  tablePageIndexChange: [{ type: core.Output }],
2928
- tablePageSizeChange: [{ type: core.Output }]
3999
+ tablePageSizeChange: [{ type: core.Output }],
4000
+ tableTotal: [{ type: core.ContentChild, args: ["tableTotal", { static: false },] }],
4001
+ tableLeftButton: [{ type: core.ContentChild, args: ["tableLeftButton", { static: false },] }],
4002
+ tableRightButton: [{ type: core.ContentChild, args: ["tableRightButton", { static: false },] }]
2929
4003
  };
2930
4004
  __decorate([
2931
4005
  core$1.InputBoolean(),
2932
4006
  __metadata("design:type", Boolean)
2933
- ], HdCurrentTableComponent.prototype, "showSelected", void 0);
4007
+ ], HdTableComponent.prototype, "showSelected", void 0);
2934
4008
  __decorate([
2935
4009
  core$1.InputBoolean(),
2936
4010
  __metadata("design:type", Boolean)
2937
- ], HdCurrentTableComponent.prototype, "showTableTotal", void 0);
2938
- return HdCurrentTableComponent;
4011
+ ], HdTableComponent.prototype, "showTableTotal", void 0);
4012
+ return HdTableComponent;
2939
4013
  }());
2940
4014
  if (false) {
2941
4015
  /** @type {?} */
2942
- HdCurrentTableComponent.prototype.tableData;
4016
+ HdTableComponent.prototype.uuid;
2943
4017
  /** @type {?} */
2944
- HdCurrentTableComponent.prototype.scroll;
4018
+ HdTableComponent.prototype.tableCols;
2945
4019
  /** @type {?} */
2946
- HdCurrentTableComponent.prototype.showSelected;
4020
+ HdTableComponent.prototype.tableData;
2947
4021
  /** @type {?} */
2948
- HdCurrentTableComponent.prototype.selectField;
4022
+ HdTableComponent.prototype.showSelected;
2949
4023
  /** @type {?} */
2950
- HdCurrentTableComponent.prototype.showTableTotal;
4024
+ HdTableComponent.prototype.selectField;
2951
4025
  /** @type {?} */
2952
- HdCurrentTableComponent.prototype.tableTotalOption;
4026
+ HdTableComponent.prototype.showTableTotal;
2953
4027
  /** @type {?} */
2954
- HdCurrentTableComponent.prototype.selectEvent;
4028
+ HdTableComponent.prototype.tableTotalOption;
2955
4029
  /** @type {?} */
2956
- HdCurrentTableComponent.prototype.tableSearchEvent;
4030
+ HdTableComponent.prototype.selectEvent;
2957
4031
  /** @type {?} */
2958
- HdCurrentTableComponent.prototype.tableHead;
4032
+ HdTableComponent.prototype.tableSearchEvent;
2959
4033
  /** @type {?} */
2960
- HdCurrentTableComponent.prototype.tableBody;
4034
+ HdTableComponent.prototype.tableLoading;
2961
4035
  /** @type {?} */
2962
- HdCurrentTableComponent.prototype.tableTotal;
4036
+ HdTableComponent.prototype.tablePageIndex;
2963
4037
  /** @type {?} */
2964
- HdCurrentTableComponent.prototype.tableLoading;
4038
+ HdTableComponent.prototype.tablePageSize;
2965
4039
  /** @type {?} */
2966
- HdCurrentTableComponent.prototype.tablePageIndex;
4040
+ HdTableComponent.prototype.tablePageIndexChange;
2967
4041
  /** @type {?} */
2968
- HdCurrentTableComponent.prototype.tablePageSize;
4042
+ HdTableComponent.prototype.tablePageSizeChange;
2969
4043
  /** @type {?} */
2970
- HdCurrentTableComponent.prototype.tablePageIndexChange;
4044
+ HdTableComponent.prototype.tableTotal;
2971
4045
  /** @type {?} */
2972
- HdCurrentTableComponent.prototype.tablePageSizeChange;
4046
+ HdTableComponent.prototype.tableLeftButton;
2973
4047
  /** @type {?} */
2974
- HdCurrentTableComponent.prototype.isAllDisplayDataChecked;
4048
+ HdTableComponent.prototype.tableRightButton;
2975
4049
  /** @type {?} */
2976
- HdCurrentTableComponent.prototype.isIndeterminate;
4050
+ HdTableComponent.prototype.scroll;
2977
4051
  /** @type {?} */
2978
- HdCurrentTableComponent.prototype.listOfDisplayData;
4052
+ HdTableComponent.prototype.isAllDisplayDataChecked;
2979
4053
  /** @type {?} */
2980
- HdCurrentTableComponent.prototype.listOfAllData;
4054
+ HdTableComponent.prototype.isIndeterminate;
2981
4055
  /** @type {?} */
2982
- HdCurrentTableComponent.prototype.listOfSelection;
4056
+ HdTableComponent.prototype.listOfDisplayData;
2983
4057
  /** @type {?} */
2984
- HdCurrentTableComponent.prototype.mapOfCheckedId;
4058
+ HdTableComponent.prototype.listOfAllData;
2985
4059
  /** @type {?} */
2986
- HdCurrentTableComponent.prototype.mapOfCheckList;
4060
+ HdTableComponent.prototype.listOfSelection;
2987
4061
  /** @type {?} */
2988
- HdCurrentTableComponent.prototype.tableTotalOptionList;
4062
+ HdTableComponent.prototype.mapOfCheckedId;
4063
+ /** @type {?} */
4064
+ HdTableComponent.prototype.mapOfCheckList;
4065
+ /** @type {?} */
4066
+ HdTableComponent.prototype.tableTotalOptionList;
4067
+ /**
4068
+ * @type {?}
4069
+ * @private
4070
+ */
4071
+ HdTableComponent.prototype.textWidthCache;
4072
+ /** @type {?} */
4073
+ HdTableComponent.prototype.tableCacheOption;
4074
+ /** @type {?} */
4075
+ HdTableComponent.prototype.userSession;
4076
+ /** @type {?} */
4077
+ HdTableComponent.prototype.tableColsCache;
4078
+ /** @type {?} */
4079
+ HdTableComponent.prototype.showTable;
4080
+ /** @type {?} */
4081
+ HdTableComponent.prototype.selectColListNodes;
4082
+ /** @type {?} */
4083
+ HdTableComponent.prototype.selectColListNodesCache;
4084
+ /** @type {?} */
4085
+ HdTableComponent.prototype.beforeDrop;
4086
+ /**
4087
+ * @type {?}
4088
+ * @private
4089
+ */
4090
+ HdTableComponent.prototype.commonSessionService;
2989
4091
  }
2990
4092
 
2991
4093
  /**
2992
4094
  * @fileoverview added by tsickle
2993
4095
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2994
4096
  */
2995
- var HdCurrentTableModule = /** @class */ (function () {
2996
- function HdCurrentTableModule() {
4097
+ var HdTableModule = /** @class */ (function () {
4098
+ function HdTableModule() {
2997
4099
  }
2998
- HdCurrentTableModule.decorators = [
4100
+ HdTableModule.decorators = [
2999
4101
  { type: core.NgModule, args: [{
3000
4102
  imports: [
3001
4103
  common.CommonModule,
3002
4104
  table.NzTableModule,
3003
- HdSpaceModule
4105
+ HdSpaceModule,
4106
+ HdStatusModule,
4107
+ HdButtonModule,
4108
+ HdButtonGroupModule,
4109
+ tooltip.NzToolTipModule,
4110
+ popconfirm.NzPopconfirmModule,
4111
+ resizable.NzResizableModule,
4112
+ dropdown.NzDropDownModule,
4113
+ tree.NzTreeModule
3004
4114
  ],
3005
- declarations: [HdCurrentTableComponent],
3006
- exports: [HdCurrentTableComponent],
4115
+ declarations: [HdTableComponent],
4116
+ providers: [CommonSessionService],
4117
+ exports: [HdTableComponent],
3007
4118
  schemas: [core.NO_ERRORS_SCHEMA]
3008
4119
  },] }
3009
4120
  ];
3010
- return HdCurrentTableModule;
4121
+ return HdTableModule;
3011
4122
  }());
3012
4123
 
3013
4124
  /**
@@ -3071,198 +4182,6 @@
3071
4182
  return HdTipModule;
3072
4183
  }());
3073
4184
 
3074
- /**
3075
- * @fileoverview added by tsickle
3076
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3077
- */
3078
- var HdPopconfirmComponent = /** @class */ (function () {
3079
- function HdPopconfirmComponent() {
3080
- this.confirmOption = new core.EventEmitter();
3081
- this.cancelOption = new core.EventEmitter();
3082
- }
3083
- /**
3084
- * @return {?}
3085
- */
3086
- HdPopconfirmComponent.prototype.ngOnInit = /**
3087
- * @return {?}
3088
- */
3089
- function () {
3090
- };
3091
- /**
3092
- * @param {?} e
3093
- * @return {?}
3094
- */
3095
- HdPopconfirmComponent.prototype.cancel = /**
3096
- * @param {?} e
3097
- * @return {?}
3098
- */
3099
- function (e) {
3100
- this.cancelOption.emit();
3101
- };
3102
- /**
3103
- * @param {?} e
3104
- * @return {?}
3105
- */
3106
- HdPopconfirmComponent.prototype.confirm = /**
3107
- * @param {?} e
3108
- * @return {?}
3109
- */
3110
- function (e) {
3111
- this.confirmOption.emit();
3112
- };
3113
- HdPopconfirmComponent.decorators = [
3114
- { type: core.Component, args: [{
3115
- selector: 'hd-popconfirm',
3116
- 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 <!-- \u6309\u94AE\u63D0\u793A -->\n <div class=\"btn-content\">\n <button type=\"button\" (click)=\"cancel($event)\" nz-button nzType=\"default\">\u53D6\u6D88</button>\n <button type=\"button\" (click)=\"confirm($event)\" nz-button nzType=\"primary\">\u786E\u8BA4</button>\n </div>\n </div>\n</div>\n",
3117
- styles: [".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}"]
3118
- }] }
3119
- ];
3120
- /** @nocollapse */
3121
- HdPopconfirmComponent.ctorParameters = function () { return []; };
3122
- HdPopconfirmComponent.propDecorators = {
3123
- message: [{ type: core.Input }],
3124
- confirmOption: [{ type: core.Output }],
3125
- cancelOption: [{ type: core.Output }]
3126
- };
3127
- return HdPopconfirmComponent;
3128
- }());
3129
- if (false) {
3130
- /** @type {?} */
3131
- HdPopconfirmComponent.prototype.message;
3132
- /** @type {?} */
3133
- HdPopconfirmComponent.prototype.confirmOption;
3134
- /** @type {?} */
3135
- HdPopconfirmComponent.prototype.cancelOption;
3136
- }
3137
-
3138
- /**
3139
- * @fileoverview added by tsickle
3140
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3141
- */
3142
- var HdPopconfirmModule = /** @class */ (function () {
3143
- function HdPopconfirmModule() {
3144
- }
3145
- HdPopconfirmModule.decorators = [
3146
- { type: core.NgModule, args: [{
3147
- declarations: [
3148
- HdPopconfirmComponent
3149
- ],
3150
- imports: [
3151
- forms.FormsModule,
3152
- forms.ReactiveFormsModule,
3153
- common.CommonModule,
3154
- ngZorroAntd.NgZorroAntdModule,
3155
- ],
3156
- exports: [HdPopconfirmComponent],
3157
- providers: [],
3158
- bootstrap: [HdPopconfirmComponent]
3159
- },] }
3160
- ];
3161
- return HdPopconfirmModule;
3162
- }());
3163
-
3164
- /**
3165
- * @fileoverview added by tsickle
3166
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3167
- */
3168
- var HdLogComponent = /** @class */ (function () {
3169
- function HdLogComponent() {
3170
- }
3171
- /**
3172
- * @return {?}
3173
- */
3174
- HdLogComponent.prototype.ngOnInit = /**
3175
- * @return {?}
3176
- */
3177
- function () {
3178
- };
3179
- HdLogComponent.decorators = [
3180
- { type: core.Component, args: [{
3181
- selector: 'hd-log',
3182
- template: "<hd-detail-lines [scroll]=\"{x: '1px'}\" [lines]=\"logs\" hdFrontPagination=\"true\">\n <ng-template #detailLineHead>\n <th>\u65F6\u95F4</th>\n <th>\u64CD\u4F5C\u4EBA</th>\n <th>\u4E8B\u4EF6</th>\n <th>\u63CF\u8FF0</th>\n </ng-template>\n <ng-template #detailLineBody let-data let-index=\"index\">\n <td>{{data.createInfo.operateTime}}</td>\n <td>{{data.createInfo.operatorName}}</td>\n <td>{{data.event}}</td>\n <td>{{data.describe}}</td>\n </ng-template>\n</hd-detail-lines>",
3183
- styles: [""]
3184
- }] }
3185
- ];
3186
- /** @nocollapse */
3187
- HdLogComponent.ctorParameters = function () { return []; };
3188
- HdLogComponent.propDecorators = {
3189
- logs: [{ type: core.Input }]
3190
- };
3191
- return HdLogComponent;
3192
- }());
3193
- if (false) {
3194
- /** @type {?} */
3195
- HdLogComponent.prototype.logs;
3196
- }
3197
-
3198
- /**
3199
- * @fileoverview added by tsickle
3200
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3201
- */
3202
- var HdLogService = /** @class */ (function () {
3203
- function HdLogService(modalService) {
3204
- this.modalService = modalService;
3205
- }
3206
- /**
3207
- * @param {?} logs
3208
- * @return {?}
3209
- */
3210
- HdLogService.prototype.showLogs = /**
3211
- * @param {?} logs
3212
- * @return {?}
3213
- */
3214
- function (logs) {
3215
- this.modalService.create({
3216
- nzTitle: '操作日志',
3217
- nzContent: HdLogComponent,
3218
- nzComponentParams: { logs: logs },
3219
- nzFooter: null,
3220
- nzWidth: 800
3221
- });
3222
- };
3223
- HdLogService.decorators = [
3224
- { type: core.Injectable, args: [{
3225
- providedIn: 'root',
3226
- },] }
3227
- ];
3228
- /** @nocollapse */
3229
- HdLogService.ctorParameters = function () { return [
3230
- { type: ngZorroAntd.NzModalService }
3231
- ]; };
3232
- /** @nocollapse */ HdLogService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdLogService_Factory() { return new HdLogService(core.ɵɵinject(modal.NzModalService)); }, token: HdLogService, providedIn: "root" });
3233
- return HdLogService;
3234
- }());
3235
- if (false) {
3236
- /**
3237
- * @type {?}
3238
- * @private
3239
- */
3240
- HdLogService.prototype.modalService;
3241
- }
3242
-
3243
- /**
3244
- * @fileoverview added by tsickle
3245
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3246
- */
3247
- var HdLogModule = /** @class */ (function () {
3248
- function HdLogModule() {
3249
- }
3250
- HdLogModule.decorators = [
3251
- { type: core.NgModule, args: [{
3252
- imports: [
3253
- common.CommonModule,
3254
- ngZorroAntd.NgZorroAntdModule,
3255
- HdDetailLinesModule
3256
- ],
3257
- entryComponents: [HdLogComponent],
3258
- declarations: [HdLogComponent],
3259
- exports: [HdLogComponent],
3260
- providers: [HdLogService]
3261
- },] }
3262
- ];
3263
- return HdLogModule;
3264
- }());
3265
-
3266
4185
  /**
3267
4186
  * @fileoverview added by tsickle
3268
4187
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -3284,6 +4203,7 @@
3284
4203
  HdSpaceModule,
3285
4204
  HdStatusModule,
3286
4205
  HdCurrentTableModule,
4206
+ HdTableModule,
3287
4207
  HdTipModule,
3288
4208
  HdPopconfirmModule,
3289
4209
  HdLogModule
@@ -3318,7 +4238,7 @@
3318
4238
  // 表格行
3319
4239
  var
3320
4240
  // 表格行
3321
- TableColumn = /** @class */ (function () {
4241
+ TableColumn$1 = /** @class */ (function () {
3322
4242
  function TableColumn() {
3323
4243
  // 字段名称
3324
4244
  this.value = null; // 值 不传默认为null
@@ -3327,31 +4247,31 @@
3327
4247
  }());
3328
4248
  if (false) {
3329
4249
  /** @type {?} */
3330
- TableColumn.prototype.label;
4250
+ TableColumn$1.prototype.label;
3331
4251
  /** @type {?} */
3332
- TableColumn.prototype.name;
4252
+ TableColumn$1.prototype.name;
3333
4253
  /** @type {?} */
3334
- TableColumn.prototype.value;
4254
+ TableColumn$1.prototype.value;
3335
4255
  /** @type {?} */
3336
- TableColumn.prototype.selectList;
4256
+ TableColumn$1.prototype.selectList;
3337
4257
  /** @type {?} */
3338
- TableColumn.prototype.show;
4258
+ TableColumn$1.prototype.show;
3339
4259
  }
3340
4260
  //
3341
4261
  var
3342
4262
  //
3343
- TableTotalOption = /** @class */ (function () {
4263
+ TableTotalOption$1 = /** @class */ (function () {
3344
4264
  function TableTotalOption() {
3345
4265
  }
3346
4266
  return TableTotalOption;
3347
4267
  }());
3348
4268
  if (false) {
3349
4269
  /** @type {?} */
3350
- TableTotalOption.prototype.columnNumber;
4270
+ TableTotalOption$1.prototype.columnNumber;
3351
4271
  /** @type {?} */
3352
- TableTotalOption.prototype.insertIndex;
4272
+ TableTotalOption$1.prototype.insertIndex;
3353
4273
  /** @type {?} */
3354
- TableTotalOption.prototype.insertName;
4274
+ TableTotalOption$1.prototype.insertName;
3355
4275
  }
3356
4276
 
3357
4277
  /**
@@ -3860,13 +4780,16 @@
3860
4780
  exports.InputNumber = InputNumber;
3861
4781
  exports.Page = Page;
3862
4782
  exports.SelectOption = SelectOption;
3863
- exports.TableColumn = TableColumn;
3864
- exports.TableTotalOption = TableTotalOption;
4783
+ exports.TableColumn = TableColumn$1;
4784
+ exports.TableTotalOption = TableTotalOption$1;
3865
4785
  exports.TotalOption = TotalOption;
3866
4786
  exports.Utils = Utils;
3867
4787
  exports.ɵa = HdComponentModule;
3868
4788
  exports.ɵb = HdButtonModule;
3869
- exports.ɵba = HdLogModule;
4789
+ exports.ɵba = HdTipComponent;
4790
+ exports.ɵbb = HdPopconfirmModule;
4791
+ exports.ɵbc = HdPopconfirmComponent;
4792
+ exports.ɵbd = HdLogModule;
3870
4793
  exports.ɵc = HdButtonComponent;
3871
4794
  exports.ɵd = HdButtonGroupModule;
3872
4795
  exports.ɵe = HdButtonGroupComponent;
@@ -3887,10 +4810,10 @@
3887
4810
  exports.ɵt = HdStatusModule;
3888
4811
  exports.ɵu = HdStatusComponent;
3889
4812
  exports.ɵv = HdCurrentTableModule;
3890
- exports.ɵw = HdTipModule;
3891
- exports.ɵx = HdTipComponent;
3892
- exports.ɵy = HdPopconfirmModule;
3893
- exports.ɵz = HdPopconfirmComponent;
4813
+ exports.ɵw = HdTableModule;
4814
+ exports.ɵx = HdTableComponent;
4815
+ exports.ɵy = CommonSessionService;
4816
+ exports.ɵz = HdTipModule;
3894
4817
 
3895
4818
  Object.defineProperty(exports, '__esModule', { value: true });
3896
4819