fantasy-ngzorro 1.0.38 → 1.0.39

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,101 @@
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
+ /** @type {?} */
1795
+ var filterValue = this.filterStr.trim().toLowerCase();
1796
+ // 如果没有输入搜索字符串,则显示所有数据
1797
+ if (!filterValue) {
1798
+ this.resetForm();
1799
+ this.addExistingFormLines(this.formLinesData);
1800
+ return;
1801
+ }
1802
+ // 根据搜索字符串过滤数据
1803
+ /** @type {?} */
1804
+ var filteredData = this.formLinesData.filter((/**
1805
+ * @param {?} data
1806
+ * @return {?}
1807
+ */
1808
+ function (data) {
1809
+ /** @type {?} */
1810
+ var values = Object.values(data).map((/**
1811
+ * @param {?} value
1812
+ * @return {?}
1813
+ */
1814
+ function (value) { return value ? value.toString().toLowerCase() : ''; }));
1815
+ return values.some((/**
1816
+ * @param {?} val
1817
+ * @return {?}
1818
+ */
1819
+ function (val) { return val.includes(filterValue); }));
1820
+ }));
1821
+ // 如果没有匹配的数据,则显示空白表单行
1822
+ if (filteredData.length === 0) {
1823
+ this.resetForm();
1824
+ this.addFormLine();
1825
+ }
1826
+ else {
1827
+ this.resetForm();
1828
+ this.addExistingFormLines(filteredData);
1829
+ }
1830
+ };
1831
+ /**
1832
+ * @param {?} filteredData
1833
+ * @return {?}
1834
+ */
1835
+ HdFormLinesComponent.prototype.addExistingFormLines = /**
1836
+ * @param {?} filteredData
1837
+ * @return {?}
1838
+ */
1839
+ function (filteredData) {
1840
+ var _this = this;
1841
+ filteredData.forEach((/**
1842
+ * @param {?} formLinesDataItem
1843
+ * @return {?}
1844
+ */
1845
+ function (formLinesDataItem) {
1846
+ /** @type {?} */
1847
+ var formGroupObj = {};
1848
+ _this.formLines.forEach((/**
1849
+ * @param {?} item
1850
+ * @return {?}
1851
+ */
1852
+ function (item) {
1853
+ formGroupObj[item.name] = _this.fb.control({ value: formLinesDataItem[item.name], disabled: item.disabled }, item.require ? [forms.Validators.required] : []);
1854
+ if (item.selectOption && item.selectOption.label) {
1855
+ formGroupObj[item.selectOption.label] = _this.fb.control(formLinesDataItem[item.selectOption.label], []);
1856
+ }
1857
+ }));
1858
+ formGroupObj.lineIndex = _this.fb.control(_this.linesFormArray.controls.length, []);
1859
+ /** @type {?} */
1860
+ var formGroupTmp = _this.fb.group(formGroupObj);
1861
+ _this.formLines.forEach((/**
1862
+ * @param {?} item
1863
+ * @return {?}
1864
+ */
1865
+ function (item) {
1866
+ if (item.onChangeEvent) {
1867
+ formGroupTmp.get(item.name).valueChanges.subscribe((/**
1868
+ * @param {?} value
1869
+ * @return {?}
1870
+ */
1871
+ function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupTmp); }));
1872
+ }
1873
+ }));
1874
+ _this.linesFormArray.insert(_this.linesFormArray.controls.length, formGroupTmp);
1875
+ }));
1876
+ this.deleteFormLine(1);
1877
+ };
1670
1878
  /**
1671
1879
  * @param {?} line
1672
1880
  * @param {?} formItem
@@ -2095,7 +2303,7 @@
2095
2303
  HdFormLinesComponent.decorators = [
2096
2304
  { type: core.Component, args: [{
2097
2305
  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>",
2306
+ 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\">\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>",
2099
2307
  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
2308
  }] }
2101
2309
  ];
@@ -2161,6 +2369,8 @@
2161
2369
  HdFormLinesComponent.prototype.totalOptionList;
2162
2370
  /** @type {?} */
2163
2371
  HdFormLinesComponent.prototype.showForm;
2372
+ /** @type {?} */
2373
+ HdFormLinesComponent.prototype.filterStr;
2164
2374
  /**
2165
2375
  * @type {?}
2166
2376
  * @private
@@ -2173,119 +2383,6 @@
2173
2383
  HdFormLinesComponent.prototype.ngZone;
2174
2384
  }
2175
2385
 
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
2386
  /**
2290
2387
  * @fileoverview added by tsickle
2291
2388
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2301,7 +2398,8 @@
2301
2398
  forms.ReactiveFormsModule,
2302
2399
  ngZorroAntd.NgZorroAntdModule,
2303
2400
  HdButtonModule,
2304
- HdSpaceModule
2401
+ HdSpaceModule,
2402
+ HdButtonGroupModule
2305
2403
  ],
2306
2404
  declarations: [HdFormLinesComponent],
2307
2405
  exports: [HdFormLinesComponent]