fantasy-ngzorro 1.0.38 → 1.0.40

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.
@@ -1616,6 +1616,119 @@
1616
1616
  return HdFormModule;
1617
1617
  }());
1618
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;
1730
+ }());
1731
+
1619
1732
  /**
1620
1733
  * @fileoverview added by tsickle
1621
1734
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -1667,6 +1780,107 @@
1667
1780
  enumerable: true,
1668
1781
  configurable: true
1669
1782
  });
1783
+ // 全局性的搜索(涵盖页面上所有的可视文字)
1784
+ // 全局性的搜索(涵盖页面上所有的可视文字)
1785
+ /**
1786
+ * @return {?}
1787
+ */
1788
+ HdFormLinesComponent.prototype.searchLines =
1789
+ // 全局性的搜索(涵盖页面上所有的可视文字)
1790
+ /**
1791
+ * @return {?}
1792
+ */
1793
+ function () {
1794
+ var _this = this;
1795
+ /** @type {?} */
1796
+ var filterValue = this.filterStr.trim().toLowerCase();
1797
+ // 如果没有输入搜索字符串,则显示所有数据
1798
+ if (!filterValue) {
1799
+ this.hideForm();
1800
+ this.addExistingFormLines(this.formLinesData);
1801
+ return;
1802
+ }
1803
+ // 根据搜索字符串过滤数据
1804
+ /** @type {?} */
1805
+ var filteredData = this.formLinesData.filter((/**
1806
+ * @param {?} data
1807
+ * @return {?}
1808
+ */
1809
+ function (data) {
1810
+ /** @type {?} */
1811
+ var values = Object.entries(data).reduce((/**
1812
+ * @param {?} acc
1813
+ * @param {?} __1
1814
+ * @return {?}
1815
+ */
1816
+ function (acc, _a) {
1817
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
1818
+ if (_this.formLines.some((/**
1819
+ * @param {?} item
1820
+ * @return {?}
1821
+ */
1822
+ function (item) { return item.name === key; }))) {
1823
+ acc[key] = value ? value.toString().toLowerCase() : '';
1824
+ }
1825
+ return Object.values(acc).map((/**
1826
+ * @param {?} value
1827
+ * @return {?}
1828
+ */
1829
+ function (value) { return value ? value.toString().toLowerCase() : ''; }));
1830
+ }), {});
1831
+ return values.some((/**
1832
+ * @param {?} val
1833
+ * @return {?}
1834
+ */
1835
+ function (val) { return val.includes(filterValue); }));
1836
+ }));
1837
+ // 如果没有匹配的数据,则显示空白表单行
1838
+ if (filteredData.length === 0) {
1839
+ this.hideForm();
1840
+ this.addFormLine();
1841
+ }
1842
+ else {
1843
+ this.hideForm();
1844
+ this.addExistingFormLines(filteredData);
1845
+ }
1846
+ };
1847
+ /**
1848
+ * @return {?}
1849
+ */
1850
+ HdFormLinesComponent.prototype.hideForm = /**
1851
+ * @return {?}
1852
+ */
1853
+ function () {
1854
+ // 隐藏所有表单行
1855
+ for (var i = 0; i < this.linesFormArray.controls.length; i++) {
1856
+ this.linesFormArray.controls[i].get('hide').setValue(true);
1857
+ }
1858
+ };
1859
+ /**
1860
+ * @param {?} filteredData
1861
+ * @return {?}
1862
+ */
1863
+ HdFormLinesComponent.prototype.addExistingFormLines = /**
1864
+ * @param {?} filteredData
1865
+ * @return {?}
1866
+ */
1867
+ function (filteredData) {
1868
+ var _this = this;
1869
+ // 显示匹配的数据行
1870
+ filteredData.forEach((/**
1871
+ * @param {?} formLinesDataItem
1872
+ * @return {?}
1873
+ */
1874
+ function (formLinesDataItem) {
1875
+ /** @type {?} */
1876
+ var index = _this.formLinesData.findIndex((/**
1877
+ * @param {?} data
1878
+ * @return {?}
1879
+ */
1880
+ function (data) { return data === formLinesDataItem; }));
1881
+ _this.linesFormArray.controls[index].get('hide').setValue(false);
1882
+ }));
1883
+ };
1670
1884
  /**
1671
1885
  * @param {?} line
1672
1886
  * @param {?} formItem
@@ -1810,6 +2024,7 @@
1810
2024
  formGroupObj[item.name] = _this.fb.control({ value: item.value, disabled: item.disabled } || null, item.require && !item.hide ? [forms.Validators.required] : []);
1811
2025
  }));
1812
2026
  formGroupObj.lineIndex = this.fb.control(this.linesFormArray.controls.length, []);
2027
+ formGroupObj.hide = this.fb.control(false, []);
1813
2028
  /** @type {?} */
1814
2029
  var formGroupSubmit = this.fb.group(formGroupObj);
1815
2030
  this.formLines.forEach((/**
@@ -1879,6 +2094,7 @@
1879
2094
  }
1880
2095
  }));
1881
2096
  formGroupObj.lineIndex = _this.fb.control(_this.linesFormArray.controls.length, []);
2097
+ formGroupObj.hide = _this.fb.control(false, []);
1882
2098
  /** @type {?} */
1883
2099
  var formGroupTmp = _this.fb.group(formGroupObj);
1884
2100
  _this.formLines.forEach((/**
@@ -2095,7 +2311,7 @@
2095
2311
  HdFormLinesComponent.decorators = [
2096
2312
  { type: core.Component, args: [{
2097
2313
  selector: 'hd-form-lines',
2098
- template: "<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 <ng-container *ngIf=\"linesFormArray.controls.length > 10\">\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\" [nzTotal]=\"linesFormArray.controls.length\" nzShowSizeChanger\n (nzPageIndexChange)=\"pageIndexChange($event)\" (nzPageSizeChange)=\"pageSizeChange($event)\"></nz-pagination>\n </ng-container>\n</form>",
2314
+ template: "<hd-button-group *ngIf=\"showForm\">\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\" *ngIf=\"!line.get('hide').value\">\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 <ng-container *ngIf=\"linesFormArray.controls.length > 10\">\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, 100, 200]\"\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>",
2099
2315
  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%}"]
2100
2316
  }] }
2101
2317
  ];
@@ -2161,6 +2377,8 @@
2161
2377
  HdFormLinesComponent.prototype.totalOptionList;
2162
2378
  /** @type {?} */
2163
2379
  HdFormLinesComponent.prototype.showForm;
2380
+ /** @type {?} */
2381
+ HdFormLinesComponent.prototype.filterStr;
2164
2382
  /**
2165
2383
  * @type {?}
2166
2384
  * @private
@@ -2173,119 +2391,6 @@
2173
2391
  HdFormLinesComponent.prototype.ngZone;
2174
2392
  }
2175
2393
 
2176
- /**
2177
- * @fileoverview added by tsickle
2178
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2179
- */
2180
- /** @enum {string} */
2181
- var SpaceType = {
2182
- row: 'row',
2183
- column: 'column',
2184
- };
2185
- var Style = /** @class */ (function () {
2186
- function Style() {
2187
- }
2188
- return Style;
2189
- }());
2190
- if (false) {
2191
- /** @type {?} */
2192
- Style.prototype.background;
2193
- /** @type {?} */
2194
- Style.prototype.width;
2195
- /** @type {?} */
2196
- Style.prototype.height;
2197
- }
2198
- var HdSpaceService = /** @class */ (function () {
2199
- function HdSpaceService() {
2200
- }
2201
- HdSpaceService.decorators = [
2202
- { type: core.Injectable, args: [{
2203
- providedIn: 'root'
2204
- },] }
2205
- ];
2206
- /** @nocollapse */
2207
- HdSpaceService.ctorParameters = function () { return []; };
2208
- /** @nocollapse */ HdSpaceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdSpaceService_Factory() { return new HdSpaceService(); }, token: HdSpaceService, providedIn: "root" });
2209
- return HdSpaceService;
2210
- }());
2211
-
2212
- /**
2213
- * @fileoverview added by tsickle
2214
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2215
- */
2216
- var HdSpaceComponent = /** @class */ (function () {
2217
- function HdSpaceComponent() {
2218
- this.type = SpaceType.row;
2219
- this.background = 'inherit';
2220
- this.style = new Style();
2221
- }
2222
- /**
2223
- * @return {?}
2224
- */
2225
- HdSpaceComponent.prototype.ngOnInit = /**
2226
- * @return {?}
2227
- */
2228
- function () {
2229
- this.style['background'] = this.background;
2230
- if (this.type === SpaceType.row) {
2231
- this.style['width'] = '100%';
2232
- this.style['height'] = this.size + 'px';
2233
- }
2234
- else {
2235
- this.style['height'] = '100%';
2236
- this.style['width'] = this.size + 'px';
2237
- }
2238
- };
2239
- HdSpaceComponent.decorators = [
2240
- { type: core.Component, args: [{
2241
- selector: 'hd-space',
2242
- template: "<nz-content>\n <div [ngStyle]=\"style\"></div>\n</nz-content>\n",
2243
- styles: [""]
2244
- }] }
2245
- ];
2246
- /** @nocollapse */
2247
- HdSpaceComponent.ctorParameters = function () { return []; };
2248
- HdSpaceComponent.propDecorators = {
2249
- type: [{ type: core.Input }],
2250
- size: [{ type: core.Input }],
2251
- background: [{ type: core.Input }]
2252
- };
2253
- return HdSpaceComponent;
2254
- }());
2255
- if (false) {
2256
- /** @type {?} */
2257
- HdSpaceComponent.prototype.type;
2258
- /** @type {?} */
2259
- HdSpaceComponent.prototype.size;
2260
- /** @type {?} */
2261
- HdSpaceComponent.prototype.background;
2262
- /** @type {?} */
2263
- HdSpaceComponent.prototype.style;
2264
- }
2265
-
2266
- /**
2267
- * @fileoverview added by tsickle
2268
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2269
- */
2270
- var HdSpaceModule = /** @class */ (function () {
2271
- function HdSpaceModule() {
2272
- }
2273
- HdSpaceModule.decorators = [
2274
- { type: core.NgModule, args: [{
2275
- imports: [
2276
- common.CommonModule,
2277
- forms.FormsModule,
2278
- forms.ReactiveFormsModule,
2279
- ngZorroAntd.NgZorroAntdModule,
2280
- HdButtonModule
2281
- ],
2282
- declarations: [HdSpaceComponent],
2283
- exports: [HdSpaceComponent]
2284
- },] }
2285
- ];
2286
- return HdSpaceModule;
2287
- }());
2288
-
2289
2394
  /**
2290
2395
  * @fileoverview added by tsickle
2291
2396
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2301,7 +2406,8 @@
2301
2406
  forms.ReactiveFormsModule,
2302
2407
  ngZorroAntd.NgZorroAntdModule,
2303
2408
  HdButtonModule,
2304
- HdSpaceModule
2409
+ HdSpaceModule,
2410
+ HdButtonGroupModule
2305
2411
  ],
2306
2412
  declarations: [HdFormLinesComponent],
2307
2413
  exports: [HdFormLinesComponent]