fantasy-ngzorro 1.2.19 → 1.3.0

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.
@@ -1486,14 +1486,144 @@
1486
1486
  return HdSpaceModule;
1487
1487
  }());
1488
1488
 
1489
+ /**
1490
+ * @fileoverview added by tsickle
1491
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1492
+ */
1493
+ // 控件列表
1494
+ var
1495
+ // 控件列表
1496
+ FormLine = /** @class */ (function () {
1497
+ function FormLine() {
1498
+ // 输入框的提示文件
1499
+ this.require = false; // 是否必填
1500
+ // 是否必填
1501
+ this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
1502
+ // 列对齐方式
1503
+ this.value = null; // 值 不传默认为null
1504
+ // 需要保留小数的列的位数
1505
+ this.inputNumber = new InputNumber(); // number组件的min、max、step
1506
+ // 不可输入状态
1507
+ this.showTime = false; // 日期选择器是否包含时间
1508
+ this.canSearch = false; // 指明hide 情况下的控件是否可以被搜索,默认false
1509
+ }
1510
+ return FormLine;
1511
+ }());
1512
+ if (false) {
1513
+ /** @type {?} */
1514
+ FormLine.prototype.type;
1515
+ /** @type {?} */
1516
+ FormLine.prototype.label;
1517
+ /** @type {?} */
1518
+ FormLine.prototype.name;
1519
+ /** @type {?} */
1520
+ FormLine.prototype.placeholder;
1521
+ /** @type {?} */
1522
+ FormLine.prototype.require;
1523
+ /** @type {?} */
1524
+ FormLine.prototype.hide;
1525
+ /** @type {?} */
1526
+ FormLine.prototype.align;
1527
+ /** @type {?} */
1528
+ FormLine.prototype.value;
1529
+ /** @type {?} */
1530
+ FormLine.prototype.isSelect;
1531
+ /** @type {?} */
1532
+ FormLine.prototype.selectOption;
1533
+ /** @type {?} */
1534
+ FormLine.prototype.explainOptionRight;
1535
+ /** @type {?} */
1536
+ FormLine.prototype.explainOption;
1537
+ /** @type {?} */
1538
+ FormLine.prototype.colorOption;
1539
+ /** @type {?} */
1540
+ FormLine.prototype.maxLength;
1541
+ /** @type {?} */
1542
+ FormLine.prototype.preserveNumber;
1543
+ /** @type {?} */
1544
+ FormLine.prototype.inputNumber;
1545
+ /** @type {?} */
1546
+ FormLine.prototype.onChangeEvent;
1547
+ /** @type {?} */
1548
+ FormLine.prototype.onSearchEvent;
1549
+ /** @type {?} */
1550
+ FormLine.prototype.defaultLabel;
1551
+ /** @type {?} */
1552
+ FormLine.prototype.hdDisabledDate;
1553
+ /** @type {?} */
1554
+ FormLine.prototype.disabled;
1555
+ /** @type {?} */
1556
+ FormLine.prototype.showTime;
1557
+ /** @type {?} */
1558
+ FormLine.prototype.style;
1559
+ /** @type {?} */
1560
+ FormLine.prototype.canSearch;
1561
+ /** @type {?} */
1562
+ FormLine.prototype.onChangeEventDebounceTime;
1563
+ /** @type {?} */
1564
+ FormLine.prototype.onSearchEventEventDebounceTime;
1565
+ }
1566
+ var ColorOption = /** @class */ (function () {
1567
+ function ColorOption() {
1568
+ }
1569
+ return ColorOption;
1570
+ }());
1571
+ if (false) {
1572
+ /** @type {?} */
1573
+ ColorOption.prototype.name;
1574
+ /** @type {?} */
1575
+ ColorOption.prototype.color;
1576
+ }
1577
+ var ExplainOption = /** @class */ (function () {
1578
+ function ExplainOption() {
1579
+ }
1580
+ return ExplainOption;
1581
+ }());
1582
+ if (false) {
1583
+ /** @type {?} */
1584
+ ExplainOption.prototype.show;
1585
+ /** @type {?} */
1586
+ ExplainOption.prototype.name;
1587
+ /** @type {?} */
1588
+ ExplainOption.prototype.color;
1589
+ }
1590
+ /** @enum {string} */
1591
+ var FormLineType = {
1592
+ Input: 'Input',
1593
+ Select: 'Select',
1594
+ Date: 'Date',
1595
+ DateRange: 'DateRange',
1596
+ TextArea: 'TextArea',
1597
+ InputNumber: 'InputNumber',
1598
+ MultipleSelect: 'MultipleSelect',
1599
+ ViewDom: 'ViewDom',
1600
+ Switch: 'Switch',
1601
+ Time: 'Time' // 时间选择器
1602
+ ,
1603
+ };
1604
+ var HdFormLinesService = /** @class */ (function () {
1605
+ function HdFormLinesService() {
1606
+ }
1607
+ HdFormLinesService.decorators = [
1608
+ { type: core.Injectable, args: [{
1609
+ providedIn: 'root'
1610
+ },] }
1611
+ ];
1612
+ /** @nocollapse */
1613
+ HdFormLinesService.ctorParameters = function () { return []; };
1614
+ /** @nocollapse */ HdFormLinesService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdFormLinesService_Factory() { return new HdFormLinesService(); }, token: HdFormLinesService, providedIn: "root" });
1615
+ return HdFormLinesService;
1616
+ }());
1617
+
1489
1618
  /**
1490
1619
  * @fileoverview added by tsickle
1491
1620
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1492
1621
  */
1493
1622
  var HdFormLinesComponent = /** @class */ (function () {
1494
- function HdFormLinesComponent(fb) {
1623
+ function HdFormLinesComponent(fb, cdr) {
1495
1624
  var _this = this;
1496
1625
  this.fb = fb;
1626
+ this.cdr = cdr;
1497
1627
  this.tableLoading = false;
1498
1628
  this.showSearch = false;
1499
1629
  this.operateButtons = ['add', 'delete'];
@@ -1501,7 +1631,8 @@
1501
1631
  this.changeEvent = new core.EventEmitter();
1502
1632
  this.showDeleteConfirm = false;
1503
1633
  this.paginationPageIndex = 1;
1504
- this.paginationPageSize = 10;
1634
+ // TODO:这里暂时变成2条去处理,做完之后需要改成10
1635
+ this.paginationPageSize = 3;
1505
1636
  // 合计区域
1506
1637
  this.showTotal = false;
1507
1638
  this.totalOption = [];
@@ -1520,6 +1651,13 @@
1520
1651
  // 表单当前的状态
1521
1652
  this.searchSubject = new rxjs.Subject();
1522
1653
  this.debounceTimeout = 0; // 默认防抖时间
1654
+ // 当前页的dom二维数组
1655
+ this.collectDomList = [];
1656
+ // 当前聚焦的dom元素坐标
1657
+ this.activeDomX = null;
1658
+ this.activeDomY = null;
1659
+ this.activeDom = null;
1660
+ this.activeSelectedComponentOpen = false;
1523
1661
  this.textWidthCache = {};
1524
1662
  this.searchSubscription = this.searchSubject.pipe(operators.debounceTime(this.debounceTimeout)).subscribe((/**
1525
1663
  * @param {?} __0
@@ -1533,13 +1671,533 @@
1533
1671
  /**
1534
1672
  * @return {?}
1535
1673
  */
1536
- HdFormLinesComponent.prototype.ngOnInit = /**
1674
+ HdFormLinesComponent.prototype.ngOnInit = /**
1675
+ * @return {?}
1676
+ */
1677
+ function () {
1678
+ // 缓存一下总的表单数据
1679
+ this.storeFormLinesData = this.formLinesData;
1680
+ this.init();
1681
+ };
1682
+ /**
1683
+ * @return {?}
1684
+ */
1685
+ HdFormLinesComponent.prototype.ngAfterViewInit = /**
1686
+ * @return {?}
1687
+ */
1688
+ function () {
1689
+ this.collectDomData();
1690
+ };
1691
+ Object.defineProperty(HdFormLinesComponent.prototype, "formLinesLength", {
1692
+ get: /**
1693
+ * @return {?}
1694
+ */
1695
+ function () {
1696
+ return this.linesFormArray.controls.length;
1697
+ },
1698
+ enumerable: true,
1699
+ configurable: true
1700
+ });
1701
+ /**
1702
+ * @return {?}
1703
+ */
1704
+ HdFormLinesComponent.prototype.collectDomData = /**
1705
+ * @return {?}
1706
+ */
1707
+ function () {
1708
+ this.collectDomList = [];
1709
+ /** @type {?} */
1710
+ var pageDomList = this.formInputDomList.toArray();
1711
+ // Step 1: 获取当前页的数据量
1712
+ /** @type {?} */
1713
+ var startIndex = (this.paginationPageIndex - 1) * this.paginationPageSize;
1714
+ /** @type {?} */
1715
+ var endIndex = this.paginationPageIndex * this.paginationPageSize;
1716
+ /** @type {?} */
1717
+ var adjustedEndIndex = endIndex > this.formLinesLength ? this.formLinesLength : endIndex;
1718
+ /** @type {?} */
1719
+ var pageLinesLength = adjustedEndIndex - startIndex;
1720
+ /** @type {?} */
1721
+ var interval = pageDomList.length / pageLinesLength;
1722
+ // Step 2: 拆分formInputDomList
1723
+ for (var i = 0; i < pageLinesLength; i++) {
1724
+ this.collectDomList.push(pageDomList.splice(0, interval));
1725
+ }
1726
+ // 关闭所有NzInputNumberComponent的键盘上下箭头触发+-的功能
1727
+ for (var i = 0; i < this.collectDomList.length; i++) {
1728
+ for (var j = 0; j < this.collectDomList[i].length; j++) {
1729
+ /** @type {?} */
1730
+ var dom = this.collectDomList[i][j];
1731
+ if (dom instanceof ngZorroAntd.NzInputNumberComponent) {
1732
+ dom.down = (/**
1733
+ * @return {?}
1734
+ */
1735
+ function () { });
1736
+ dom.up = (/**
1737
+ * @return {?}
1738
+ */
1739
+ function () { });
1740
+ }
1741
+ }
1742
+ }
1743
+ };
1744
+ // 聚焦下一个dom
1745
+ // 聚焦下一个dom
1746
+ /**
1747
+ * @param {?} x
1748
+ * @param {?} y
1749
+ * @return {?}
1750
+ */
1751
+ HdFormLinesComponent.prototype.jumpToNextInput =
1752
+ // 聚焦下一个dom
1753
+ /**
1754
+ * @param {?} x
1755
+ * @param {?} y
1756
+ * @return {?}
1757
+ */
1758
+ function (x, y) {
1759
+ if (x === null || y === null || !this.collectDomList || this.collectDomList.length === 0) {
1760
+ return;
1761
+ }
1762
+ // 如果是最后一个可输入元素,新增行
1763
+ if (x === this.collectDomList.length - 1 && y === this.collectDomList[0].length - 1) {
1764
+ this.addNewLineAndFocus();
1765
+ }
1766
+ else {
1767
+ if (y === this.collectDomList[0].length - 1) {
1768
+ // 如果是最后一列,则跳转到下一行第一个输入框
1769
+ this.focusDom(x + 1, 0, 'right');
1770
+ }
1771
+ else {
1772
+ // 如果不是最后一列,则跳转到当前行下一个输入框
1773
+ this.focusDom(x, y + 1, 'right');
1774
+ }
1775
+ }
1776
+ };
1777
+ /**
1778
+ * 增加新行并且聚焦到第一个元素,
1779
+ * 这里要注意,如果存在翻页情况,需要处理
1780
+ */
1781
+ /**
1782
+ * 增加新行并且聚焦到第一个元素,
1783
+ * 这里要注意,如果存在翻页情况,需要处理
1784
+ * @return {?}
1785
+ */
1786
+ HdFormLinesComponent.prototype.addNewLineAndFocus = /**
1787
+ * 增加新行并且聚焦到第一个元素,
1788
+ * 这里要注意,如果存在翻页情况,需要处理
1789
+ * @return {?}
1790
+ */
1791
+ function () {
1792
+ var _this = this;
1793
+ // 当前行为当前页最后一行的时候,判断下一页是否有数据
1794
+ // 1、如果有:翻页+聚焦第一行第一个元素
1795
+ // 2、如果没有:新增行+翻页+聚焦第一行第一个元素
1796
+ if (this.activeDomX === this.paginationPageSize - 1) {
1797
+ // 判断下一页是否有数据
1798
+ if (this.paginationPageIndex < Math.ceil(this.formLinesLength / this.paginationPageSize)) {
1799
+ // 翻页+聚焦第一行第一个元素
1800
+ this.paginationPageIndex++;
1801
+ setTimeout((/**
1802
+ * @return {?}
1803
+ */
1804
+ function () {
1805
+ _this.collectDomData();
1806
+ _this.focusDom(0, 0, 'right');
1807
+ }), 0);
1808
+ }
1809
+ else {
1810
+ // 新增行+翻页+聚焦第一行第一个元素
1811
+ this.addFormLine();
1812
+ this.paginationPageIndex++;
1813
+ setTimeout((/**
1814
+ * @return {?}
1815
+ */
1816
+ function () {
1817
+ _this.collectDomData();
1818
+ _this.focusDom(0, 0);
1819
+ }), 0);
1820
+ }
1821
+ }
1822
+ else {
1823
+ this.addFormLine();
1824
+ }
1825
+ };
1826
+ // 聚焦到上一个dom
1827
+ // 聚焦到上一个dom
1828
+ /**
1829
+ * @param {?} x
1830
+ * @param {?} y
1831
+ * @return {?}
1832
+ */
1833
+ HdFormLinesComponent.prototype.jumpToPrevInput =
1834
+ // 聚焦到上一个dom
1835
+ /**
1836
+ * @param {?} x
1837
+ * @param {?} y
1838
+ * @return {?}
1839
+ */
1840
+ function (x, y) {
1841
+ var _this = this;
1842
+ if (x === null || y === null || !this.collectDomList || this.collectDomList.length === 0) {
1843
+ return;
1844
+ }
1845
+ if (x === 0 && y === 0) {
1846
+ // 如果是第一个可输入元素, 判断是否有上一页, 如果有,则翻页+聚焦到上一页最后一个元素
1847
+ if (this.paginationPageIndex > 1) {
1848
+ // 翻页+聚焦到上一页最后一个元素
1849
+ this.paginationPageIndex--;
1850
+ setTimeout((/**
1851
+ * @return {?}
1852
+ */
1853
+ function () {
1854
+ _this.collectDomData();
1855
+ _this.focusDom(_this.collectDomList.length - 1, _this.collectDomList[0].length - 1);
1856
+ }), 0);
1857
+ }
1858
+ return;
1859
+ }
1860
+ else {
1861
+ if (y === 0) {
1862
+ // 如果是第一列,则跳转到上一行最后一个输入框
1863
+ this.focusDom(x - 1, this.collectDomList[0].length - 1, 'left');
1864
+ }
1865
+ else {
1866
+ // 如果不是第一列,则跳转到当前行上一个输入框
1867
+ this.focusDom(x, y - 1, 'left');
1868
+ }
1869
+ }
1870
+ };
1871
+ /**
1872
+ * 聚焦到某个dom
1873
+ * @param x 坐标x
1874
+ * @param y 坐标y
1875
+ * @param jumpDirection 跳转方向
1876
+ */
1877
+ /**
1878
+ * 聚焦到某个dom
1879
+ * @param {?} x 坐标x
1880
+ * @param {?} y 坐标y
1881
+ * @param {?=} jumpDirection 跳转方向
1882
+ * @return {?}
1883
+ */
1884
+ HdFormLinesComponent.prototype.focusDom = /**
1885
+ * 聚焦到某个dom
1886
+ * @param {?} x 坐标x
1887
+ * @param {?} y 坐标y
1888
+ * @param {?=} jumpDirection 跳转方向
1889
+ * @return {?}
1890
+ */
1891
+ function (x, y, jumpDirection) {
1892
+ if (jumpDirection === void 0) { jumpDirection = 'right'; }
1893
+ if (x === null || y === null || !this.collectDomList || this.collectDomList.length === 0) {
1894
+ return;
1895
+ }
1896
+ // 先清除一下当前的焦点
1897
+ this.cleanFocusDom(this.activeDomX, this.activeDomY);
1898
+ if (this.collectDomList[x] && this.collectDomList[x][y]) {
1899
+ /** @type {?} */
1900
+ var dom_1 = this.collectDomList[x][y];
1901
+ // 需要判断下一个focus的dom是否是禁用状态,如果是禁用状态需要跳过
1902
+ if (dom_1 instanceof ngZorroAntd.NzSelectComponent) {
1903
+ if (dom_1.nzDisabled) {
1904
+ if (jumpDirection === 'right') {
1905
+ this.jumpToNextInput(x, y);
1906
+ }
1907
+ else if (jumpDirection === 'left') {
1908
+ this.jumpToPrevInput(x, y);
1909
+ }
1910
+ return;
1911
+ }
1912
+ dom_1.nzSelectTopControlComponent.inputElement.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' });
1913
+ // 这里多选框需要额外处理下,因为向下的时候会触发内部Input的聚焦,把下一个dom的focus放到宏任务中,延迟处理。
1914
+ if (dom_1.nzSelectService.mode === 'multiple') {
1915
+ setTimeout((/**
1916
+ * @return {?}
1917
+ */
1918
+ function () {
1919
+ dom_1.focus();
1920
+ }), 0);
1921
+ }
1922
+ else {
1923
+ dom_1.focus();
1924
+ }
1925
+ }
1926
+ else if (dom_1 instanceof ngZorroAntd.NzInputNumberComponent) {
1927
+ if (dom_1.nzDisabled) {
1928
+ if (jumpDirection === 'right') {
1929
+ this.jumpToNextInput(x, y);
1930
+ }
1931
+ else if (jumpDirection === 'left') {
1932
+ this.jumpToPrevInput(x, y);
1933
+ }
1934
+ return;
1935
+ }
1936
+ /** @type {?} */
1937
+ var inputDom_1 = document.getElementById(dom_1.nzId);
1938
+ inputDom_1.focus();
1939
+ inputDom_1.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' });
1940
+ setTimeout((/**
1941
+ * @return {?}
1942
+ */
1943
+ function () {
1944
+ inputDom_1.select();
1945
+ }), 0);
1946
+ }
1947
+ else if (dom_1 instanceof core.ElementRef) {
1948
+ if (dom_1.nativeElement.disabled) {
1949
+ if (jumpDirection === 'right') {
1950
+ this.jumpToNextInput(x, y);
1951
+ }
1952
+ else if (jumpDirection === 'left') {
1953
+ this.jumpToPrevInput(x, y);
1954
+ }
1955
+ return;
1956
+ }
1957
+ dom_1.nativeElement.focus();
1958
+ dom_1.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' });
1959
+ setTimeout((/**
1960
+ * @return {?}
1961
+ */
1962
+ function () {
1963
+ dom_1.nativeElement.select();
1964
+ }), 0);
1965
+ }
1966
+ else if (dom_1 instanceof ngZorroAntd.NzDatePickerComponent || dom_1 instanceof ngZorroAntd.NzRangePickerComponent || dom_1 instanceof ngZorroAntd.NzTimePickerComponent) {
1967
+ // TODO:在ngzorro8.5.x版本,时间相关的选择器没有暴露出open方法,暂时先不处理。(10.x及以上版本提供了open方法)
1968
+ if (jumpDirection === 'right') {
1969
+ this.jumpToNextInput(x, y);
1970
+ }
1971
+ else if (jumpDirection === 'left') {
1972
+ this.jumpToPrevInput(x, y);
1973
+ }
1974
+ return;
1975
+ }
1976
+ this.setActiveDom(x, y);
1977
+ }
1978
+ else {
1979
+ // 没有dom的场景下,需要判断是左还是右,
1980
+ }
1981
+ };
1982
+ /**
1983
+ * @param {?} x
1984
+ * @param {?} y
1985
+ * @return {?}
1986
+ */
1987
+ HdFormLinesComponent.prototype.cleanFocusDom = /**
1988
+ * @param {?} x
1989
+ * @param {?} y
1990
+ * @return {?}
1991
+ */
1992
+ function (x, y) {
1993
+ if (x === null || y === null || !this.collectDomList || this.collectDomList.length === 0) {
1994
+ return;
1995
+ }
1996
+ if (this.collectDomList[x] && this.collectDomList[x][y]) {
1997
+ /** @type {?} */
1998
+ var dom = this.collectDomList[x][y];
1999
+ if (dom instanceof ngZorroAntd.NzSelectComponent) {
2000
+ dom.blur();
2001
+ dom.nzOpen = false;
2002
+ }
2003
+ else if (dom instanceof ngZorroAntd.NzInputNumberComponent) {
2004
+ dom.nzOpen = false;
2005
+ dom.blur();
2006
+ }
2007
+ else if (dom instanceof core.ElementRef) {
2008
+ dom.nativeElement.blur();
2009
+ }
2010
+ else { }
2011
+ }
2012
+ };
2013
+ /**
2014
+ * @param {?} x
2015
+ * @param {?} y
2016
+ * @return {?}
2017
+ */
2018
+ HdFormLinesComponent.prototype.setActiveDom = /**
2019
+ * @param {?} x
2020
+ * @param {?} y
2021
+ * @return {?}
2022
+ */
2023
+ function (x, y) {
2024
+ this.activeDomX = x;
2025
+ this.activeDomY = y;
2026
+ this.activeDom = this.collectDomList[this.activeDomX][this.activeDomY];
2027
+ if (this.activeDom instanceof ngZorroAntd.NzSelectComponent) {
2028
+ this.activeSelectedComponentOpen = this.activeDom.open;
2029
+ }
2030
+ };
2031
+ /**
2032
+ * 根据行号和列号名称获取当前聚焦的dom位置
2033
+ * @param rowNumber 行号
2034
+ * @param colNumber 列号
2035
+ */
2036
+ /**
2037
+ * 根据行号和列号名称获取当前聚焦的dom位置
2038
+ * @param {?} rowNumber 行号
2039
+ * @param {?} colNumber 列号
2040
+ * @return {?}
2041
+ */
2042
+ HdFormLinesComponent.prototype.setActiveDomInFormLines = /**
2043
+ * 根据行号和列号名称获取当前聚焦的dom位置
2044
+ * @param {?} rowNumber 行号
2045
+ * @param {?} colNumber 列号
2046
+ * @return {?}
2047
+ */
2048
+ function (rowNumber, colNumber) {
2049
+ this.activeDomX = rowNumber;
2050
+ this.activeDomY = this.getDomIndex(colNumber, this.formLines);
2051
+ this.setActiveDom(this.activeDomX, this.activeDomY);
2052
+ };
2053
+ /**
2054
+ * 键盘点击事件
2055
+ * @param event 键盘事件
2056
+ * @returns
2057
+ */
2058
+ /**
2059
+ * 键盘点击事件
2060
+ * @param {?} event 键盘事件
2061
+ * @return {?}
2062
+ */
2063
+ HdFormLinesComponent.prototype.onKeyDown = /**
2064
+ * 键盘点击事件
2065
+ * @param {?} event 键盘事件
2066
+ * @return {?}
2067
+ */
2068
+ function (event) {
2069
+ var _this = this;
2070
+ if (this.activeDomX === null || this.activeDomY === null) {
2071
+ return;
2072
+ }
2073
+ switch (event.key) {
2074
+ case 'ArrowUp':
2075
+ if (this.activeDom instanceof ngZorroAntd.NzSelectComponent && this.activeSelectedComponentOpen) {
2076
+ return;
2077
+ }
2078
+ if (this.activeDomX !== 0) {
2079
+ this.focusDom(this.activeDomX - 1, this.activeDomY);
2080
+ }
2081
+ break;
2082
+ case 'ArrowDown':
2083
+ // 判断是否在最后一行,如果在最后一行,直接+行翻页
2084
+ if (this.activeDom instanceof ngZorroAntd.NzSelectComponent && this.activeSelectedComponentOpen) {
2085
+ return;
2086
+ }
2087
+ if (this.activeDomX !== this.collectDomList.length - 1) {
2088
+ this.focusDom(this.activeDomX + 1, this.activeDomY);
2089
+ }
2090
+ break;
2091
+ case 'ArrowLeft':
2092
+ this.jumpToPrevInput(this.activeDomX, this.activeDomY);
2093
+ break;
2094
+ case 'ArrowRight':
2095
+ this.jumpToNextInput(this.activeDomX, this.activeDomY);
2096
+ break;
2097
+ case 'Enter':
2098
+ if (this.activeDom instanceof ngZorroAntd.NzSelectComponent) {
2099
+ this.activeSelectedComponentOpen = this.activeDom.open;
2100
+ if (this.activeSelectedComponentOpen === false) {
2101
+ this.focusDom(this.activeDomX, this.activeDomY);
2102
+ }
2103
+ break;
2104
+ }
2105
+ if (this.activeDomX === this.collectDomList.length - 1) {
2106
+ this.addNewLineAndFocus();
2107
+ }
2108
+ break;
2109
+ case 'Escape':
2110
+ if (this.activeDom instanceof ngZorroAntd.NzSelectComponent) {
2111
+ /** @type {?} */
2112
+ var nowActiveDom_1 = (/** @type {?} */ (this.activeDom));
2113
+ setTimeout((/**
2114
+ * @return {?}
2115
+ */
2116
+ function () {
2117
+ _this.activeSelectedComponentOpen = nowActiveDom_1.open;
2118
+ if (_this.activeSelectedComponentOpen === false) {
2119
+ if (nowActiveDom_1.nzSelectService.mode === 'multiple') {
2120
+ setTimeout((/**
2121
+ * @return {?}
2122
+ */
2123
+ function () {
2124
+ _this.focusDom(_this.activeDomX, _this.activeDomY);
2125
+ }), 0);
2126
+ }
2127
+ else {
2128
+ _this.focusDom(_this.activeDomX, _this.activeDomY);
2129
+ }
2130
+ }
2131
+ }), 0);
2132
+ }
2133
+ break;
2134
+ default:
2135
+ // 如果当前聚焦的是选择框,且键入0-9a-zA-Z,则弹出
2136
+ if (this.activeDom instanceof ngZorroAntd.NzSelectComponent && this.activeSelectedComponentOpen === false && /^[0-9a-zA-Z]$/.test(event.key)) {
2137
+ /** @type {?} */
2138
+ var dom = this.activeDom;
2139
+ dom.nzOpen = true;
2140
+ this.activeSelectedComponentOpen = true;
2141
+ // // TODO:这里暂时注释,不能直接带入键入值,这样会导致输入中文的时候带入英文字符,不符合预期
2142
+ // dom.nzSelectTopControlComponent.inputValue = event.key;
2143
+ // // 获取 input 元素
2144
+ // const inputElement = dom.nzSelectTopControlComponent.inputElement.nativeElement;
2145
+ // setTimeout(() => {
2146
+ // // 触发输入事件,以确保 Angular 检测到值的变化
2147
+ // const eventInput = new Event('input', { bubbles: true });
2148
+ // inputElement.dispatchEvent(eventInput);
2149
+ // }, 0);
2150
+ }
2151
+ break;
2152
+ }
2153
+ };
2154
+ /**
2155
+ * 根据在初始dom下标和数据集 获取在collectDomList中的下标
2156
+ * @param index 初始下标
2157
+ * @param list 数据集
2158
+ * @returns
2159
+ */
2160
+ /**
2161
+ * 根据在初始dom下标和数据集 获取在collectDomList中的下标
2162
+ * @private
2163
+ * @param {?} index 初始下标
2164
+ * @param {?} list 数据集
2165
+ * @return {?}
2166
+ */
2167
+ HdFormLinesComponent.prototype.getDomIndex = /**
2168
+ * 根据在初始dom下标和数据集 获取在collectDomList中的下标
2169
+ * @private
2170
+ * @param {?} index 初始下标
2171
+ * @param {?} list 数据集
2172
+ * @return {?}
2173
+ */
2174
+ function (index, list) {
2175
+ /** @type {?} */
2176
+ var typeList = ['Input', 'Select', 'Date', 'DateRange', 'TextArea', 'InputNumber', 'MultipleSelect'];
2177
+ /** @type {?} */
2178
+ var filterList = [];
2179
+ for (var i = 0; i < list.length; i++) {
2180
+ if (i === index) {
2181
+ return filterList.length;
2182
+ }
2183
+ if (typeList.includes(list[i].type)) {
2184
+ filterList.push(list[i]);
2185
+ }
2186
+ }
2187
+ return null;
2188
+ };
2189
+ // TODO:待删
2190
+ // TODO:待删
2191
+ /**
2192
+ * @return {?}
2193
+ */
2194
+ HdFormLinesComponent.prototype.testPage =
2195
+ // TODO:待删
2196
+ /**
1537
2197
  * @return {?}
1538
2198
  */
1539
2199
  function () {
1540
- // 缓存一下总的表单数据
1541
- this.storeFormLinesData = this.formLinesData;
1542
- this.init();
2200
+ this.paginationPageIndex++;
1543
2201
  };
1544
2202
  Object.defineProperty(HdFormLinesComponent.prototype, "linesFormArray", {
1545
2203
  get: /**
@@ -1682,14 +2340,18 @@
1682
2340
  * @param {?} value
1683
2341
  * @return {?}
1684
2342
  */
1685
- function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupTmp); }));
2343
+ function (value) {
2344
+ _this.triggerEvent(item.onChangeEvent, value, formGroupTmp);
2345
+ }));
1686
2346
  }
1687
2347
  else {
1688
2348
  formGroupTmp.get(item.name).valueChanges.subscribe((/**
1689
2349
  * @param {?} value
1690
2350
  * @return {?}
1691
2351
  */
1692
- function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupTmp); }));
2352
+ function (value) {
2353
+ _this.triggerEvent(item.onChangeEvent, value, formGroupTmp);
2354
+ }));
1693
2355
  }
1694
2356
  }
1695
2357
  }));
@@ -1838,13 +2500,10 @@
1838
2500
  * @return {?}
1839
2501
  */
1840
2502
  function (changes) {
1841
- console.log('changes', changes);
1842
2503
  if (changes['formLinesData'] && JSON.stringify(changes['formLinesData'].currentValue) !== JSON.stringify(changes['formLinesData'].previousValue)) {
1843
2504
  if (this.storeFormLinesData && this.storeFormLinesData.length === 0) {
1844
- console.log('1');
1845
2505
  this.storeFormLinesData = this.formLinesData;
1846
2506
  }
1847
- console.log('2');
1848
2507
  this.init();
1849
2508
  }
1850
2509
  if (changes['totalOption'] && JSON.stringify(changes['totalOption'].currentValue) !== JSON.stringify(changes['totalOption'].previousValue)) {
@@ -1965,9 +2624,10 @@
1965
2624
  var formGroupSubmit = this.fb.group(formGroupObj);
1966
2625
  this.formLines.forEach((/**
1967
2626
  * @param {?} item
2627
+ * @param {?} innerIndex
1968
2628
  * @return {?}
1969
2629
  */
1970
- function (item) {
2630
+ function (item, innerIndex) {
1971
2631
  if (item.onChangeEvent) {
1972
2632
  if (item.onChangeEvent) {
1973
2633
  if (item.onChangeEventDebounceTime) {
@@ -1975,14 +2635,24 @@
1975
2635
  * @param {?} value
1976
2636
  * @return {?}
1977
2637
  */
1978
- function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupSubmit); }));
2638
+ function (value) {
2639
+ if (item.type === FormLineType.Select && value !== null) {
2640
+ _this.jumpToNextInput(_this.activeDomX, _this.activeDomY);
2641
+ }
2642
+ _this.triggerEvent(item.onChangeEvent, value, formGroupSubmit);
2643
+ }));
1979
2644
  }
1980
2645
  else {
1981
2646
  formGroupSubmit.get(item.name).valueChanges.subscribe((/**
1982
2647
  * @param {?} value
1983
2648
  * @return {?}
1984
2649
  */
1985
- function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupSubmit); }));
2650
+ function (value) {
2651
+ if (item.type === FormLineType.Select && value !== null) {
2652
+ _this.jumpToNextInput(_this.activeDomX, _this.activeDomY);
2653
+ }
2654
+ _this.triggerEvent(item.onChangeEvent, value, formGroupSubmit);
2655
+ }));
1986
2656
  }
1987
2657
  }
1988
2658
  }
@@ -2022,9 +2692,10 @@
2022
2692
  var _this = this;
2023
2693
  this.formLinesData.forEach((/**
2024
2694
  * @param {?} formLinesDataItem
2695
+ * @param {?} index
2025
2696
  * @return {?}
2026
2697
  */
2027
- function (formLinesDataItem) {
2698
+ function (formLinesDataItem, index) {
2028
2699
  /** @type {?} */
2029
2700
  var formGroupObj = {};
2030
2701
  _this.formLines.forEach((/**
@@ -2043,9 +2714,10 @@
2043
2714
  var formGroupTmp = _this.fb.group(formGroupObj);
2044
2715
  _this.formLines.forEach((/**
2045
2716
  * @param {?} item
2717
+ * @param {?} innerIndex
2046
2718
  * @return {?}
2047
2719
  */
2048
- function (item) {
2720
+ function (item, innerIndex) {
2049
2721
  if (item.onChangeEvent) {
2050
2722
  if (item.onChangeEventDebounceTime) {
2051
2723
  formGroupTmp.get(item.name).valueChanges.pipe(operators.debounceTime(item.onChangeEventDebounceTime)).subscribe((/**
@@ -2053,6 +2725,9 @@
2053
2725
  * @return {?}
2054
2726
  */
2055
2727
  function (value) {
2728
+ if (item.type === FormLineType.Select && value !== null) {
2729
+ _this.jumpToNextInput(_this.activeDomX, _this.activeDomY);
2730
+ }
2056
2731
  _this.triggerEvent(item.onChangeEvent, value, formGroupTmp);
2057
2732
  }));
2058
2733
  }
@@ -2062,6 +2737,9 @@
2062
2737
  * @return {?}
2063
2738
  */
2064
2739
  function (value) {
2740
+ if (item.type === FormLineType.Select && value !== null) {
2741
+ _this.jumpToNextInput(_this.activeDomX, _this.activeDomY);
2742
+ }
2065
2743
  _this.triggerEvent(item.onChangeEvent, value, formGroupTmp);
2066
2744
  }));
2067
2745
  }
@@ -2081,8 +2759,23 @@
2081
2759
  * @return {?}
2082
2760
  */
2083
2761
  function (index) {
2762
+ var _this = this;
2084
2763
  this.linesFormArray.insert(index || this.linesFormArray.controls.length, this.newLineItem());
2085
2764
  this.calculateLineNumber();
2765
+ setTimeout((/**
2766
+ * @return {?}
2767
+ */
2768
+ function () {
2769
+ _this.collectDomData();
2770
+ if (index !== null && index !== undefined) {
2771
+ _this.activeDomX = index;
2772
+ }
2773
+ else {
2774
+ _this.activeDomX = _this.collectDomList.length - 1;
2775
+ }
2776
+ _this.activeDomY = 0;
2777
+ _this.focusDom(_this.activeDomX, _this.activeDomY);
2778
+ }), 0);
2086
2779
  };
2087
2780
  /**
2088
2781
  * @param {?} index
@@ -2093,6 +2786,7 @@
2093
2786
  * @return {?}
2094
2787
  */
2095
2788
  function (index) {
2789
+ var _this = this;
2096
2790
  this.linesFormArray.removeAt(index - 1);
2097
2791
  if (!this.isFilterData && this.linesFormArray.controls && this.linesFormArray.controls.length === 0) {
2098
2792
  this.addFormLine();
@@ -2104,6 +2798,12 @@
2104
2798
  }
2105
2799
  this.calculateLineNumber();
2106
2800
  }
2801
+ setTimeout((/**
2802
+ * @return {?}
2803
+ */
2804
+ function () {
2805
+ _this.collectDomData();
2806
+ }), 0);
2107
2807
  };
2108
2808
  /**
2109
2809
  * @param {?} event
@@ -2114,7 +2814,14 @@
2114
2814
  * @return {?}
2115
2815
  */
2116
2816
  function (event) {
2817
+ var _this = this;
2117
2818
  this.paginationPageIndex = event;
2819
+ setTimeout((/**
2820
+ * @return {?}
2821
+ */
2822
+ function () {
2823
+ _this.collectDomData();
2824
+ }), 0);
2118
2825
  };
2119
2826
  /**
2120
2827
  * @param {?} event
@@ -2125,7 +2832,14 @@
2125
2832
  * @return {?}
2126
2833
  */
2127
2834
  function (event) {
2835
+ var _this = this;
2128
2836
  this.paginationPageSize = event;
2837
+ setTimeout((/**
2838
+ * @return {?}
2839
+ */
2840
+ function () {
2841
+ _this.collectDomData();
2842
+ }), 0);
2129
2843
  };
2130
2844
  /**
2131
2845
  * @private
@@ -2345,16 +3059,21 @@
2345
3059
  };
2346
3060
  /**
2347
3061
  * @param {?} id
3062
+ * @param {?} rowNumber
3063
+ * @param {?} colNumber
2348
3064
  * @return {?}
2349
3065
  */
2350
3066
  HdFormLinesComponent.prototype.selectValue = /**
2351
3067
  * @param {?} id
3068
+ * @param {?} rowNumber
3069
+ * @param {?} colNumber
2352
3070
  * @return {?}
2353
3071
  */
2354
- function (id) {
3072
+ function (id, rowNumber, colNumber) {
2355
3073
  /** @type {?} */
2356
3074
  var inputDom = document.querySelector(id);
2357
3075
  inputDom.select();
3076
+ this.setActiveDomInFormLines(rowNumber, colNumber);
2358
3077
  };
2359
3078
  /**
2360
3079
  * @param {?} text
@@ -2407,15 +3126,17 @@
2407
3126
  HdFormLinesComponent.decorators = [
2408
3127
  { type: core.Component, args: [{
2409
3128
  selector: 'hd-form-lines',
2410
- 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 nzDropdownClassName=\"hd-select-table\"\n *ngIf=\"formItem.selectOption.tableColumns;else nomarlSelectTemplate\"\n [nzShowSearch]=\"formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true\"\n [nzAllowClear]=\"formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true\"\n [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)\"\n [ngStyle]=\"getStyle(line, formItem, '200px')\">\n <nz-option nzCustomContent nzDisabled>\n <div class=\"hd-option-header\"\n *ngIf=\"(formItem.selectOption?.selectList?.length > 0 || line.get(formItem.selectOption.selectListName)?.value?.length > 0);else emptyTemplate\">\n <div class=\"hd-option-header-column\"\n *ngFor=\"let selectOptionTableColumn of formItem.selectOption.tableColumns;index as index \"\n [ngStyle]=\"{'width': selectOptionTableColumn?.width ? (selectOptionTableColumn.width + ((index === 0 && !selectOptionTableColumn.label) ? 12 : 0) + 'px') : 'unset'}\">\n {{selectOptionTableColumn.label}}\n </div>\n </div>\n <ng-template #emptyTemplate>\n <div class=\"hd-select-empty\">\n <img\n src=\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNjQgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NzIuMDAwMDAwLCAtMTMzNS4wMDAwMDApIj4KICAgICAgICAgICAgPGcgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDY0LjAwMDAwMCwgMTExNC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MC4wMDAwMDAsIDc4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNjguMDAwMDAwLCAxNDQuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxnID4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxlbGxpcHNlICBmaWxsPSIjRjVGNUY1IiBjeD0iMzIiIGN5PSIzMyIgcng9IjMyIiByeT0iNyI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGcgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5LjAwMDAwMCwgMC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTQ2LDEyLjc2MDU2MDQgTDM1Ljg1NDMwNDcsMS4yNTczOTYzMyBDMzUuMzY3NDQxNCwwLjQ3MzgyNjYwNSAzNC42NTU4Nzg5LDAgMzMuOTA2NzYxNywwIEwxMi4wOTMyMzgzLDAgQzExLjM0NDEyMTEsMCAxMC42MzI1NTg2LDAuNDczOTUwMjU1IDEwLjE0NTY5NTMsMS4yNTczOTYzMyBMMi42MTQ3OTcyN2UtMTIsMTIuNzYwNTYwNCBMMCwyMiBMNDYsMjIgTDQ2LDEyLjc2MDU2MDQgWiIgID48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTMyLjYxMzI4MTMsMTUuOTMxNSBDMzIuNjEzMjgxMywxNC4zMjU4NTExIDMzLjYwNjk1MzEsMTMuMDAwMjM0IDM0LjgzOTY5OTIsMTMgTDQ2LDEzIEw0NiwzMS4xMzcxMjc3IEM0NiwzMy4yNTg5NTc0IDQ0LjY3OTM4NjcsMzUgNDMuMDUwNDI5NywzNSBMMi45NDk1NzAzMSwzNSBDMS4zMjA1MjM0NCwzNSAwLDMzLjI1ODg0MDQgMCwzMS4xMzcxMjc3IEwwLDEzIEwxMS4xNjAzMDA4LDEzIEMxMi4zOTMwNDY5LDEzIDEzLjM4NjcxODgsMTQuMzIyODA4NSAxMy4zODY3MTg4LDE1LjkyODQ1NzQgTDEzLjM4NjcxODgsMTUuOTQ5NjM4MyBDMTMuMzg2NzE4OCwxNy41NTUyODcyIDE0LjM5MTcxMDksMTguODUxMTgwOSAxNS42MjQ0NTcsMTguODUxMTgwOSBMMzAuMzc1NTQzLDE4Ljg1MTE4MDkgQzMxLjYwODI4OTEsMTguODUxMTgwOSAzMi42MTMyODEzLDE3LjU0MzM1MTEgMzIuNjEzMjgxMywxNS45Mzc3MDIxIEwzMi42MTMyODEzLDE1LjkzMTUgWiIgIGZpbGw9IiNGQUZBRkEiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+\"\n alt=\"empty\">\n <p class=\"ant-empty-description\">\u6682\u65E0\u6570\u636E</p>\n </div>\n </ng-template>\n </nz-option>\n\n <nz-option nzCustomContent\n *ngFor=\"let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)\"\n [nzValue]=\"selectItem[formItem.selectOption.value]\" [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\">\n <div class=\"hd-option-line\">\n <div *ngFor=\"let selectOptionTableColumn of formItem.selectOption.tableColumns\"\n [ngStyle]=\"{'width': selectOptionTableColumn?.width ? selectOptionTableColumn.width + 'px' : 'unset'}\">\n <ng-container *ngIf=\"selectOptionTableColumn.icons;else notPictureTemplate\">\n <ng-container *ngFor=\"let icon of selectOptionTableColumn.icons\">\n <img *ngIf=\"icon.iconName === 'hd-recommend-star' && selectItem[icon.fieldName]\"\n src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVpJREFUOE+l07FLQkEcB/Dv7713Zg1GQ0SgW9AmTYVp1BRUokZBEI1u/QVBUBD1D0Rt0dQaPYmotXza1tKQzQ1Fk0iDHr5vPEOTUpO88e77+9zvjjtBh8HTOb8e0hu0eN8Xzz22ikonoGzHdgXcAVB16S75U/mbn/m2AK+mglqbBUAGvCIRuVCJ7HLXQCUTPQOxXi8Q4FolnYWuAH0+HaEpjrdxAyC3VSq33xKgPTWiYYUai8IjUCabw4Zw1XWNF2+OZrXoi+cLImBth4odfQAw0elCW6zdKvU2/wVkYs8ggzBlRqrcI/DrrK1wQ7DWAIToV8lsqGxHDwTY6qYbA1jpCVAux3oBSirhDPYCOL6kE/s/QB77UrnNJoDDVkCN6pI+BJH+6xINQdpKOCf1d/AEYBxgUUQC5PcLbPMDXy1lhGXx7r0G6ExklpBwI0xh2w7ID+UzL71iL/MJdzuZdDL/kXcAAAAASUVORK5CYII=\"\n style=\"width: 16px;height: 16px;\">\n <img *ngIf=\"icon.iconName === 'hd-img-star' && selectItem[icon.fieldName]\"\n src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAyhJREFUWEe1ll1o1XYYxp8nPUmUihdCV3bAirvYzUC80Xpy3KwTZNR2CdOhDkTBwe6G32XzwqpjE3Qt4pUKZQqDyQZNTp1uY8yCJG0F2d2+LlWOOkShovQkaV45lcJpTdOTHJubBPI+z/Pj//H+/0TGR66uf8sPoz8A/Kstkp38YORxFitmEVU1vm1cBPlp9ZuQXtX0jmfxygQgvxSWBRWlDECvhgrwQFuqLufG4TAtRCaAwCl+IcDXtWEi2KFb7pUFBxCBEpSMMsDWGWEiNzXLe2/BASp2cTuJH+KCRMJ3dGvsrzQQqafAtw0XpBEfIhc00/tswQD8QWM1FP45d4A8V9XJN9k5Nl4vRKoR8G3jMshdyebRPs0cOftaAaRUbAsRrRRRhuczFsF/lPATNQrL3Hr7/nz1lGvvtkwGUSEC8gLkWfMGkAfQMp9J0n8ByhS5J+QDVr+BshBlUu6q3d5v9G3jIcg3GgnJqp2C853iCIB1WU0a1F2iOO2tPnK3CLQ1aJZKLpCfddPrmtoF8uuqZn9iyfcEzVQumYtlQDO9vS8PsprHd4xvAR7I7FuHUIBvdNP9crr0lT7g24U+UNlfh1f6Esrn2ofeuVphbCPyneJuAN+lT0jokZCduum9cobM2Qn9krEGEa6+hi36jEC3aro34vASW3FoG9si8sdGRoKCY6rlnpjLIxGgYhunSPY0AiAiP+mW93EmAN8ujoJobwgAuKOb7orUAHKjY1EwHjwFkGsEoKpVJ6WVH3n/p1oDwVBhk0TK742GV/UKYOZMt5QKoGIbX5E8mgwg4wCbADQn1c1uPvP2gWqB7xjDADck7OwBVan0QFFyQaj2A9wxV60A13XT7Uw1Ar5TlDiBQP6hRHs0a3Ss9n8wuK4jYtN5Em/H6B5ppht7r4jvhEOFtYiUGQEAnhDoV033ZNJwB45xRAS9IBfX1qnhRD7uhhQLENiFQ0Ll9LSBCM7olnu43gUpTjEfiPSB3D6tUQRbcpZ7bbZHLEBYKnRFogxV505rmjzIrtG/6w2fMS0l430RHAVoULBZtdybdQFkCcuqSXUtzxqSpHsBfmUdgJhaiDQAAAAASUVORK5CYII=\"\n style=\"width: 16px;height: 16px;\">\n </ng-container>\n </ng-container>\n <ng-template #notPictureTemplate>\n <ng-container\n *ngIf=\"!isTextOverflow(selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name], selectOptionTableColumn.width);else overflowTemplate\">\n <div>{{ judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])}}</div>\n </ng-container>\n <ng-template #overflowTemplate>\n <div class=\"hd-option-overflow\" nz-tooltip\n [nzTooltipTitle]=\"selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name]\">\n {{\n judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])}}</div>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </nz-option>\n <nz-option\n *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\"\n [nzLabel]=\"(formItem.selectOption.value === 'code' || formItem.selectOption.value === 'productCode' || formItem.selectOption.hdShowItemCode) ? ('['+ line.get(formItem.selectOption.value).value + ']' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value\"\n [nzValue]=\"line.get(formItem.selectOption.value).value\" nzHide></nz-option>\n </nz-select>\n <ng-template #nomarlSelectTemplate>\n <nz-select\n [nzShowSearch]=\"formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true\"\n [nzAllowClear]=\"formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true\"\n [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)\"\n [ngStyle]=\"getStyle(line, formItem, '200px')\">\n <nz-option\n *ngFor=\"let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)\"\n [nzValue]=\"selectItem[formItem.selectOption.value]\" [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\">\n </nz-option>\n <nz-option\n *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\"\n [nzLabel]=\"(formItem.selectOption.value === 'code' || formItem.selectOption.value === 'productCode' || formItem.selectOption.hdShowItemCode) ? ('['+ line.get(formItem.selectOption.value).value + ']' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value\"\n [nzValue]=\"line.get(formItem.selectOption.value).value\" nzHide></nz-option>\n </nz-select>\n </ng-template>\n\n </ng-container>\n <ng-container *ngSwitchCase=\"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 [nzPrecision]=\"formItem?.inputNumber?.precision || 2\"\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]=\"formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true\"\n [nzAllowClear]=\"formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [ngStyle]=\"getStyle(line, formItem, '200px')\"\n (nzOnSearch)=\"onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\"\n [nzValue]=\"selectItem[formItem.selectOption.value]\" [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <ng-container\n *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\">\n <nz-option *ngFor=\"let option of line.get(formItem.selectOption.value).value;index as i\"\n [nzLabel]=\"line.get(formItem.selectOption.label).value[i]\" [nzValue]=\"option\" nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"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>",
3129
+ 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<!-- TODO: \u6D4B\u8BD5\u6309\u94AE\u7EC4 -->\n<hd-button-group>\n <ng-template #buttonGroupLeft>\n <hd-button type=\"primary\" (clickAction)=\"testPage()\">\u6D4B\u8BD5\u7FFB\u9875\u6309\u94AE</hd-button>\n <hd-button type=\"primary\" (clickAction)=\"focusDom(0, 0)\">\u6D4B\u8BD5\u805A\u7126\u9009\u62E9\u6846</hd-button>\n <hd-button type=\"primary\" (clickAction)=\"focusDom(0, 2)\">\u6D4B\u8BD5\u805A\u7126\u666E\u901A\u9009\u62E9\u6846</hd-button>\n <hd-button type=\"primary\" (clickAction)=\"focusDom(0, 3)\">\u6D4B\u8BD5\u805A\u7126\u591A\u9879\u9009\u62E9\u6846</hd-button>\n <hd-button type=\"primary\" (clickAction)=\"focusDom(0, 4)\">\u6D4B\u8BD5\u805A\u7126\u7981\u7528\u8F93\u5165\u6846</hd-button>\n <hd-button type=\"primary\" (clickAction)=\"focusDom(0, 7)\">\u6D4B\u8BD5\u805A\u7126\u6570\u5B57\u8F93\u5165\u6846</hd-button>\n <hd-button type=\"primary\" (clickAction)=\"jumpToNextInput(0, 1)\">\u6D4B\u8BD5\u805A\u7126\u4E0B\u4E00\u4E2A</hd-button>\n </ng-template>\n</hd-button-group>\n\n<hd-space background=\"transparent\" type=\"row\" size=\"16\"></hd-space>\n<form *ngIf=\"showForm\" nz-form [formGroup]=\"validateHdFormLines\" class=\"ant-advanced-search-form hd-formLines-container\"\n (keydown)=\"onKeyDown($event)\">\n <nz-table nzTemplateMode [nzFrontPagination]=\"false\" [nzLoading]=\"tableLoading\" [nzScroll]=\"scroll\">\n <thead>\n <tr>\n <th nzWidth=\"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; index as innerIndex\">\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=\"'Input'\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input #formInputDom (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\n [ngStyle]=\"getStyle(line, formItem, '100px')\" nz-input\n [ngStyle]=\"{'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}\"\n [id]=\"'input-' + formItem.name + line.get('lineIndex').value\"\n (click)=\"formItem.isSelect ? selectValue('#input-' + formItem.name + line.get('lineIndex').value, dataIndex , innerIndex) : null\"\n [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=\"'Select'\">\n <nz-select #formInputDom (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\n nzDropdownClassName=\"hd-select-table\"\n *ngIf=\"formItem.selectOption.tableColumns;else nomarlSelectTemplate\"\n [nzShowSearch]=\"formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true\"\n [nzAllowClear]=\"formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true\"\n [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)\"\n [ngStyle]=\"getStyle(line, formItem, '200px')\">\n <nz-option nzCustomContent nzDisabled>\n <div class=\"hd-option-header\"\n *ngIf=\"(formItem.selectOption?.selectList?.length > 0 || line.get(formItem.selectOption.selectListName)?.value?.length > 0);else emptyTemplate\">\n <div class=\"hd-option-header-column\"\n *ngFor=\"let selectOptionTableColumn of formItem.selectOption.tableColumns;index as index \"\n [ngStyle]=\"{'width': selectOptionTableColumn?.width ? (selectOptionTableColumn.width + ((index === 0 && !selectOptionTableColumn.label) ? 12 : 0) + 'px') : 'unset'}\">\n {{selectOptionTableColumn.label}}\n </div>\n </div>\n <ng-template #emptyTemplate>\n <div class=\"hd-select-empty\">\n <img\n src=\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI0MXB4IiB2aWV3Qm94PSIwIDAgNjQgNDEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjUgKDY3NDY5KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NzIuMDAwMDAwLCAtMTMzNS4wMDAwMDApIj4KICAgICAgICAgICAgPGcgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDY0LjAwMDAwMCwgMTExNC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MC4wMDAwMDAsIDc4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxnICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNjguMDAwMDAwLCAxNDQuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxnID4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxlbGxpcHNlICBmaWxsPSIjRjVGNUY1IiBjeD0iMzIiIGN5PSIzMyIgcng9IjMyIiByeT0iNyI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGcgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5LjAwMDAwMCwgMC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTQ2LDEyLjc2MDU2MDQgTDM1Ljg1NDMwNDcsMS4yNTczOTYzMyBDMzUuMzY3NDQxNCwwLjQ3MzgyNjYwNSAzNC42NTU4Nzg5LDAgMzMuOTA2NzYxNywwIEwxMi4wOTMyMzgzLDAgQzExLjM0NDEyMTEsMCAxMC42MzI1NTg2LDAuNDczOTUwMjU1IDEwLjE0NTY5NTMsMS4yNTczOTYzMyBMMi42MTQ3OTcyN2UtMTIsMTIuNzYwNTYwNCBMMCwyMiBMNDYsMjIgTDQ2LDEyLjc2MDU2MDQgWiIgID48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTMyLjYxMzI4MTMsMTUuOTMxNSBDMzIuNjEzMjgxMywxNC4zMjU4NTExIDMzLjYwNjk1MzEsMTMuMDAwMjM0IDM0LjgzOTY5OTIsMTMgTDQ2LDEzIEw0NiwzMS4xMzcxMjc3IEM0NiwzMy4yNTg5NTc0IDQ0LjY3OTM4NjcsMzUgNDMuMDUwNDI5NywzNSBMMi45NDk1NzAzMSwzNSBDMS4zMjA1MjM0NCwzNSAwLDMzLjI1ODg0MDQgMCwzMS4xMzcxMjc3IEwwLDEzIEwxMS4xNjAzMDA4LDEzIEMxMi4zOTMwNDY5LDEzIDEzLjM4NjcxODgsMTQuMzIyODA4NSAxMy4zODY3MTg4LDE1LjkyODQ1NzQgTDEzLjM4NjcxODgsMTUuOTQ5NjM4MyBDMTMuMzg2NzE4OCwxNy41NTUyODcyIDE0LjM5MTcxMDksMTguODUxMTgwOSAxNS42MjQ0NTcsMTguODUxMTgwOSBMMzAuMzc1NTQzLDE4Ljg1MTE4MDkgQzMxLjYwODI4OTEsMTguODUxMTgwOSAzMi42MTMyODEzLDE3LjU0MzM1MTEgMzIuNjEzMjgxMywxNS45Mzc3MDIxIEwzMi42MTMyODEzLDE1LjkzMTUgWiIgIGZpbGw9IiNGQUZBRkEiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+\"\n alt=\"empty\">\n <p class=\"ant-empty-description\">\u6682\u65E0\u6570\u636E</p>\n </div>\n </ng-template>\n </nz-option>\n\n <nz-option nzCustomContent\n *ngFor=\"let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)\"\n [nzValue]=\"selectItem[formItem.selectOption.value]\" [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\">\n <div class=\"hd-option-line\">\n <div *ngFor=\"let selectOptionTableColumn of formItem.selectOption.tableColumns\"\n [ngStyle]=\"{'width': selectOptionTableColumn?.width ? selectOptionTableColumn.width + 'px' : 'unset'}\">\n <ng-container *ngIf=\"selectOptionTableColumn.icons;else notPictureTemplate\">\n <ng-container *ngFor=\"let icon of selectOptionTableColumn.icons\">\n <img *ngIf=\"icon.iconName === 'hd-recommend-star' && selectItem[icon.fieldName]\"\n src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVpJREFUOE+l07FLQkEcB/Dv7713Zg1GQ0SgW9AmTYVp1BRUokZBEI1u/QVBUBD1D0Rt0dQaPYmotXza1tKQzQ1Fk0iDHr5vPEOTUpO88e77+9zvjjtBh8HTOb8e0hu0eN8Xzz22ikonoGzHdgXcAVB16S75U/mbn/m2AK+mglqbBUAGvCIRuVCJ7HLXQCUTPQOxXi8Q4FolnYWuAH0+HaEpjrdxAyC3VSq33xKgPTWiYYUai8IjUCabw4Zw1XWNF2+OZrXoi+cLImBth4odfQAw0elCW6zdKvU2/wVkYs8ggzBlRqrcI/DrrK1wQ7DWAIToV8lsqGxHDwTY6qYbA1jpCVAux3oBSirhDPYCOL6kE/s/QB77UrnNJoDDVkCN6pI+BJH+6xINQdpKOCf1d/AEYBxgUUQC5PcLbPMDXy1lhGXx7r0G6ExklpBwI0xh2w7ID+UzL71iL/MJdzuZdDL/kXcAAAAASUVORK5CYII=\"\n style=\"width: 16px;height: 16px;\">\n <img *ngIf=\"icon.iconName === 'hd-img-star' && selectItem[icon.fieldName]\"\n src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAyhJREFUWEe1ll1o1XYYxp8nPUmUihdCV3bAirvYzUC80Xpy3KwTZNR2CdOhDkTBwe6G32XzwqpjE3Qt4pUKZQqDyQZNTp1uY8yCJG0F2d2+LlWOOkShovQkaV45lcJpTdOTHJubBPI+z/Pj//H+/0TGR66uf8sPoz8A/Kstkp38YORxFitmEVU1vm1cBPlp9ZuQXtX0jmfxygQgvxSWBRWlDECvhgrwQFuqLufG4TAtRCaAwCl+IcDXtWEi2KFb7pUFBxCBEpSMMsDWGWEiNzXLe2/BASp2cTuJH+KCRMJ3dGvsrzQQqafAtw0XpBEfIhc00/tswQD8QWM1FP45d4A8V9XJN9k5Nl4vRKoR8G3jMshdyebRPs0cOftaAaRUbAsRrRRRhuczFsF/lPATNQrL3Hr7/nz1lGvvtkwGUSEC8gLkWfMGkAfQMp9J0n8ByhS5J+QDVr+BshBlUu6q3d5v9G3jIcg3GgnJqp2C853iCIB1WU0a1F2iOO2tPnK3CLQ1aJZKLpCfddPrmtoF8uuqZn9iyfcEzVQumYtlQDO9vS8PsprHd4xvAR7I7FuHUIBvdNP9crr0lT7g24U+UNlfh1f6Esrn2ofeuVphbCPyneJuAN+lT0jokZCduum9cobM2Qn9krEGEa6+hi36jEC3aro34vASW3FoG9si8sdGRoKCY6rlnpjLIxGgYhunSPY0AiAiP+mW93EmAN8ujoJobwgAuKOb7orUAHKjY1EwHjwFkGsEoKpVJ6WVH3n/p1oDwVBhk0TK742GV/UKYOZMt5QKoGIbX5E8mgwg4wCbADQn1c1uPvP2gWqB7xjDADck7OwBVan0QFFyQaj2A9wxV60A13XT7Uw1Ar5TlDiBQP6hRHs0a3Ss9n8wuK4jYtN5Em/H6B5ppht7r4jvhEOFtYiUGQEAnhDoV033ZNJwB45xRAS9IBfX1qnhRD7uhhQLENiFQ0Ll9LSBCM7olnu43gUpTjEfiPSB3D6tUQRbcpZ7bbZHLEBYKnRFogxV505rmjzIrtG/6w2fMS0l430RHAVoULBZtdybdQFkCcuqSXUtzxqSpHsBfmUdgJhaiDQAAAAASUVORK5CYII=\"\n style=\"width: 16px;height: 16px;\">\n </ng-container>\n </ng-container>\n <ng-template #notPictureTemplate>\n <ng-container\n *ngIf=\"!isTextOverflow(selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name], selectOptionTableColumn.width);else overflowTemplate\">\n <div>{{ judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])}}</div>\n </ng-container>\n <ng-template #overflowTemplate>\n <div class=\"hd-option-overflow\" nz-tooltip\n [nzTooltipTitle]=\"selectOptionTableColumn.render ? selectOptionTableColumn.render(selectItem) : selectItem[selectOptionTableColumn.name]\">\n {{\n judgeColEmpty(selectOptionTableColumn.render ?\n selectOptionTableColumn.render(selectItem) :\n selectItem[selectOptionTableColumn.name])}}</div>\n </ng-template>\n </ng-template>\n </div>\n </div>\n </nz-option>\n <nz-option\n *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\"\n [nzLabel]=\"(formItem.selectOption.value === 'code' || formItem.selectOption.value === 'productCode' || formItem.selectOption.hdShowItemCode) ? ('['+ line.get(formItem.selectOption.value).value + ']' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value\"\n [nzValue]=\"line.get(formItem.selectOption.value).value\" nzHide></nz-option>\n </nz-select>\n <ng-template #nomarlSelectTemplate>\n <nz-select #formInputDom (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\n [nzShowSearch]=\"formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true\"\n [nzAllowClear]=\"formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true\"\n [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)\"\n [ngStyle]=\"getStyle(line, formItem, '200px')\">\n <nz-option\n *ngFor=\"let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)\"\n [nzValue]=\"selectItem[formItem.selectOption.value]\" [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\">\n </nz-option>\n <nz-option\n *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\"\n [nzLabel]=\"(formItem.selectOption.value === 'code' || formItem.selectOption.value === 'productCode' || formItem.selectOption.hdShowItemCode) ? ('['+ line.get(formItem.selectOption.value).value + ']' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value\"\n [nzValue]=\"line.get(formItem.selectOption.value).value\" nzHide></nz-option>\n </nz-select>\n </ng-template>\n\n </ng-container>\n <ng-container *ngSwitchCase=\"'Date'\">\n <nz-date-picker #formInputDom (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\n *ngIf=\"formItem.showTime\" [ngStyle]=\"getStyle(line, formItem, '150px')\"\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 #formInputDom *ngIf=\"!formItem.showTime\"\n [ngStyle]=\"getStyle(line, formItem, '150px')\"\n (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\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=\"'DateRange'\">\n <nz-range-picker #formInputDom [ngStyle]=\"getStyle(line, formItem, '200px')\"\n (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\" [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"formItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"'TextArea'\">\n <textarea #formInputDom (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\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=\"'InputNumber'\">\n <div style=\"display: flex;align-items: center;\">\n <nz-input-number #formInputDom [ngStyle]=\"getStyle(line, formItem, '100px')\"\n [maxlength]=\"formItem.maxLength || null\" [formControlName]=\"formItem.name\"\n [nzMin]=\"formItem?.inputNumber?.min || 0\" [nzMax]=\"formItem?.inputNumber?.max || 99999999\"\n [nzStep]=\"formItem?.inputNumber?.step || 1\"\n [nzPrecision]=\"formItem?.inputNumber?.precision || 2\"\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, dataIndex , innerIndex) : setActiveDomInFormLines(dataIndex , innerIndex)\">\n </nz-input-number>\n <div *ngIf=\"formItem?.explainOptionRight?.show\"\n [style.color]=\"formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null\">\n &nbsp;&nbsp;{{line.get(formItem.explainOptionRight.name).value}}</div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'MultipleSelect'\">\n <nz-select #formInputDom (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\n nzMode=\"multiple\" [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\"\n [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\"\n [nzShowSearch]=\"formItem.selectOption.hdShowSearch != null ? formItem.selectOption.hdShowSearch : true\"\n [nzAllowClear]=\"formItem.selectOption.hdAllowClear != null ? formItem.selectOption.hdAllowClear : true\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [ngStyle]=\"getStyle(line, formItem, '200px')\"\n (nzOnSearch)=\"onSearchEvent(formItem.onSearchEvent || null, $event, line, formItem.onSearchEventEventDebounceTime)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\"\n [nzValue]=\"selectItem[formItem.selectOption.value]\" [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <ng-container\n *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\">\n <nz-option *ngFor=\"let option of line.get(formItem.selectOption.value).value;index as i\"\n [nzLabel]=\"line.get(formItem.selectOption.label).value[i]\" [nzValue]=\"option\" nzHide>\n </nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'ViewDom'\">\n {{(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=\"'Switch'\">\n <nz-switch (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\n [formControlName]=\"formItem.name\"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Time' \">\n <nz-time-picker #formInputDom [ngStyle]=\"getStyle(line, formItem, '200px')\"\n (click)=\"setActiveDomInFormLines(dataIndex , innerIndex)\"\n [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]=\"[2, 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>",
2411
3130
  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%}::ng-deep .hd-select-table .ant-select-dropdown-menu-item-disabled{background:#f5f8f6!important;border-bottom:1px solid #e8e8e8;position:-webkit-sticky;position:sticky;top:0;z-index:10;padding:0}::ng-deep .hd-select-table .ant-select-dropdown-menu-item-disabled:hover{background:#f5f8f6!important}.hd-option-header{display:flex;align-items:center;color:rgba(0,0,0,.85);background:#f5f8f6}.hd-option-header-column{padding:5px 0}.hd-option-line{display:flex;align-items:center}.hd-option-overflow{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-select-empty{display:flex;align-items:center;flex-direction:column;padding:20px 0;background:#fff}::ng-deep .ant-empty-small{background:#fff!important;padding:8px 0;margin:0}"]
2412
3131
  }] }
2413
3132
  ];
2414
3133
  /** @nocollapse */
2415
3134
  HdFormLinesComponent.ctorParameters = function () { return [
2416
- { type: forms.FormBuilder }
3135
+ { type: forms.FormBuilder },
3136
+ { type: core.ChangeDetectorRef }
2417
3137
  ]; };
2418
3138
  HdFormLinesComponent.propDecorators = {
3139
+ formInputDomList: [{ type: core.ViewChildren, args: ['formInputDom',] }],
2419
3140
  tableLoading: [{ type: core.Input }],
2420
3141
  showSearch: [{ type: core.Input }],
2421
3142
  formLines: [{ type: core.Input }],
@@ -2447,6 +3168,8 @@
2447
3168
  return HdFormLinesComponent;
2448
3169
  }());
2449
3170
  if (false) {
3171
+ /** @type {?} */
3172
+ HdFormLinesComponent.prototype.formInputDomList;
2450
3173
  /** @type {?} */
2451
3174
  HdFormLinesComponent.prototype.tableLoading;
2452
3175
  /** @type {?} */
@@ -2510,6 +3233,16 @@
2510
3233
  * @private
2511
3234
  */
2512
3235
  HdFormLinesComponent.prototype.searchSubscription;
3236
+ /** @type {?} */
3237
+ HdFormLinesComponent.prototype.collectDomList;
3238
+ /** @type {?} */
3239
+ HdFormLinesComponent.prototype.activeDomX;
3240
+ /** @type {?} */
3241
+ HdFormLinesComponent.prototype.activeDomY;
3242
+ /** @type {?} */
3243
+ HdFormLinesComponent.prototype.activeDom;
3244
+ /** @type {?} */
3245
+ HdFormLinesComponent.prototype.activeSelectedComponentOpen;
2513
3246
  /**
2514
3247
  * @type {?}
2515
3248
  * @private
@@ -2520,6 +3253,11 @@
2520
3253
  * @private
2521
3254
  */
2522
3255
  HdFormLinesComponent.prototype.fb;
3256
+ /**
3257
+ * @type {?}
3258
+ * @private
3259
+ */
3260
+ HdFormLinesComponent.prototype.cdr;
2523
3261
  }
2524
3262
 
2525
3263
  /**
@@ -3870,8 +4608,6 @@
3870
4608
  */
3871
4609
  function () {
3872
4610
  var _this = this;
3873
- console.log('local', location);
3874
- console.log('window', window);
3875
4611
  this.localtionTmp = location.pathname;
3876
4612
  if (this.localtionTmp) {
3877
4613
  this.localtionTmp = this.localtionTmp.replace(/\//g, "_");
@@ -4706,7 +5442,7 @@
4706
5442
  { type: core.Component, args: [{
4707
5443
  selector: 'hd-table',
4708
5444
  template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n <hd-button *ngIf=\"showOperateColWarpButton\" type=\"default\" (click)=\"showDetail = !showDetail\">{{showDetail ?\n '\u7F29\u7565\u663E\u793A': '\u5C55\u5F00\u663E\u793A'}}</hd-button>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet=\"tableRightButton\"></ng-container>\n <hd-button type=\"primary\" nz-dropdown nzTrigger=\"click\" [nzDropdownMenu]=\"menu\" (clickAction)=\"confirmDropdown()\"\n [nzVisible]=\"isDropdownVisible\">\u8BBE\u7F6E\u5217</hd-button>\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <div style=\"max-height: 400px;overflow-y: scroll;\">\n <div *ngIf=\"showListNodes && nowListNodes.length > 0\" nz-menu style=\"padding: 5px 10px;\">\n <nz-tree *ngIf=\"showListNodes\" [nzData]=\"nowListNodes\" nzCheckable nzDraggable nzBlockNode\n nzShowExpand=\"false\" (nzCheckBoxChange)=\"checkAction($event)\" [nzBeforeDrop]=\"beforeDrop\"\n [nzTreeTemplate]=\"nzTreeTemplate\">\n </nz-tree>\n <ng-template #nzTreeTemplate let-node>\n <span\n class=\"ng-tns-c31-110 draggable ng-star-inserted ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close\"\n [title]=\"node.key\" draggable=\"true\" aria-grabbed=\"true\">\n <span class=\"ant-tree-title\">\n <div class=\"hd-table-tree-node\">\n <span>{{node.key}}</span>\n <div *ngIf=\"!node.origin.disabled\" class=\"hd-table-tree-node-img\">\n <i nz-icon nzType=\"caret-up\" nzTheme=\"outline\"></i>\n <i nz-icon nzType=\"caret-down\" nzTheme=\"outline\"></i>\n </div>\n </div>\n </span>\n </span>\n </ng-template>\n </div>\n <div *ngIf=\"showListNodes && hideListNodes.length > 0\" nz-menu style=\"padding: 5px 10px;\">\n <nz-tree *ngIf=\"showListNodes\" [nzData]=\"hideListNodes\" nzCheckable nzShowExpand=\"false\"\n (nzCheckBoxChange)=\"checkAction($event)\">\n </nz-tree>\n </div>\n </div>\n <div style=\"text-align: right;background: #fff;padding: 4px;\">\n <hd-button style=\"margin-right: 4px;\" type=\"default\" size=\"small\" (clickAction)=\"cancelDropdown()\">\u53D6\u6D88\n </hd-button>\n <hd-button type=\"primary\" size=\"small\" (clickAction)=\"submitGrids()\">\u5B8C\u6210</hd-button>\n </div>\n </nz-dropdown-menu>\n </ng-template>\n </hd-button-group>\n <hd-space type=\"row\" size=\"12\"></hd-space>\n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n <hd-space *ngIf=\"tableTotal\" type=\"row\" size=\"12\"></hd-space>\n <nz-table *ngIf=\"showTable\" #hdTable class=\"hd-table-container\" [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 (nzSortChange)=\"sort($event)\" nzSingleSort>\n <tr>\n <th nzWidth=\"40px\" nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngFor=\"let col of tableCols\">\n <th *ngIf=\"col.isShow\" [nzWidth]=\"col.width + 'px'\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\" nz-resizable nzBounds=\"window\" nzPreview\n (nzResizeEnd)=\"onResize($event, col)\" [nzShowSort]=\"col.canSort\" [nzSortKey]=\"col.name\">\n {{ col.title }}\n <nz-resize-handle nzDirection=\"right\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <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 [ngClass]=\"(col.canWarp && showDetail) ? 'common-td-wrap' : ''\">\n <ng-container *ngIf=\"col.title === '\u64CD\u4F5C';else notOperateTemplate\">\n <div class=\"common-btn-group\">\n <ng-container *ngFor=\"let btn of col.btnList\">\n <ng-container *ngIf=\"!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']\">{{ judgeColEmpty(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)\">{{ judgeColEmpty(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)\">{{ judgeColEmpty(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}\">{{ judgeColEmpty(col.render ?\n 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 {{ judgeColEmpty(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>",
4709
- 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;padding:0 6px!important}::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{height:100%}.nz-resizable-handle-bottom{width:100%;height:10px;bottom:-5px;left:0}.nz-resizable-handle-left{width:10px;height:100%;top:0;left:-5px}.nz-resizable-handle-topRight{width:20px;height:20px;top:-5px;right:-5px;z-index:10}.nz-resizable-handle-bottomRight{width:20px;height:20px;right:-5px;bottom:-5px;z-index:10}.nz-resizable-handle-bottomLeft{width:20px;height:20px;bottom:-5px;left:-5px;z-index:10}.nz-resizable-handle-topLeft{width:20px;height:20px;top:-5px;left:-5px;z-index:10}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottom,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-top{cursor:row-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-left,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-right{cursor:col-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomRight,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topLeft{cursor:nwse-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomLeft,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topRight{cursor:nesw-resize}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}::ng-deep .ant-dropdown-menu{border-radius:0}::ng-deep .ant-dropdown{margin-top:8px!important}.common-td-wrap{white-space:normal!important}.nz-resizable-preview{border-width:0 1px 0 0}.resize-trigger{width:10px;height:15px;position:relative;top:calc((100% - 15px)/ 2)}.resize-trigger::after{position:absolute;top:calc((100% - 15px)/ 2);left:0;background:#d5d5d5;content:'';width:1px;height:15px;z-index:1}.nz-resizable-handle-right{position:absolute;width:10px;top:0;right:-5px;z-index:inherit}.hd-table-tree-node{display:inline-flex;align-items:center;padding-right:10px}.hd-table-tree-node .hd-table-tree-node-img{display:flex;flex-direction:column;position:absolute;right:0;margin-top:-2.5px}.hd-table-tree-node .hd-table-tree-node-img i{opacity:.3}.hd-table-tree-node .hd-table-tree-node-img i:last-child{margin-top:-5px}img{width:20px;height:20px}.ant-table-th-left-sticky{z-index:2}::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}"]
5445
+ 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;padding:0 6px!important}::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{height:100%}.nz-resizable-handle-bottom{width:100%;height:10px;bottom:-5px;left:0}.nz-resizable-handle-left{width:10px;height:100%;top:0;left:-5px}.nz-resizable-handle-topRight{width:20px;height:20px;top:-5px;right:-5px;z-index:10}.nz-resizable-handle-bottomRight{width:20px;height:20px;right:-5px;bottom:-5px;z-index:10}.nz-resizable-handle-bottomLeft{width:20px;height:20px;bottom:-5px;left:-5px;z-index:10}.nz-resizable-handle-topLeft{width:20px;height:20px;top:-5px;left:-5px;z-index:10}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottom,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-top{cursor:row-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-left,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-right{cursor:col-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomRight,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topLeft{cursor:nwse-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomLeft,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topRight{cursor:nesw-resize}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}::ng-deep .ant-dropdown-menu{border-radius:0}::ng-deep .ant-dropdown{margin-top:8px!important}.common-td-wrap{white-space:normal!important;word-break:break-all}.nz-resizable-preview{border-width:0 1px 0 0}.resize-trigger{width:10px;height:15px;position:relative;top:calc((100% - 15px)/ 2)}.resize-trigger::after{position:absolute;top:calc((100% - 15px)/ 2);left:0;background:#d5d5d5;content:'';width:1px;height:15px;z-index:1}.nz-resizable-handle-right{position:absolute;width:10px;top:0;right:-5px;z-index:inherit}.hd-table-tree-node{display:inline-flex;align-items:center;padding-right:10px}.hd-table-tree-node .hd-table-tree-node-img{display:flex;flex-direction:column;position:absolute;right:0;margin-top:-2.5px}.hd-table-tree-node .hd-table-tree-node-img i{opacity:.3}.hd-table-tree-node .hd-table-tree-node-img i:last-child{margin-top:-5px}img{width:20px;height:20px}.ant-table-th-left-sticky{z-index:2}::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}"]
4710
5446
  }] }
4711
5447
  ];
4712
5448
  /** @nocollapse */
@@ -5152,145 +5888,6 @@
5152
5888
  return HdFilterService;
5153
5889
  }());
5154
5890
 
5155
- /**
5156
- * @fileoverview added by tsickle
5157
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5158
- */
5159
- // 控件列表
5160
- var
5161
- // 控件列表
5162
- FormLine = /** @class */ (function () {
5163
- function FormLine() {
5164
- // 输入框的提示文件
5165
- this.require = false; // 是否必填
5166
- // 是否必填
5167
- this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
5168
- // 列对齐方式
5169
- this.value = null; // 值 不传默认为null
5170
- // 需要保留小数的列的位数
5171
- this.inputNumber = new InputNumber(); // number组件的min、max、step
5172
- // 不可输入状态
5173
- this.showTime = false; // 日期选择器是否包含时间
5174
- this.canSearch = false; // 指明hide 情况下的控件是否可以被搜索,默认false
5175
- }
5176
- return FormLine;
5177
- }());
5178
- if (false) {
5179
- /** @type {?} */
5180
- FormLine.prototype.type;
5181
- /** @type {?} */
5182
- FormLine.prototype.label;
5183
- /** @type {?} */
5184
- FormLine.prototype.name;
5185
- /** @type {?} */
5186
- FormLine.prototype.placeholder;
5187
- /** @type {?} */
5188
- FormLine.prototype.require;
5189
- /** @type {?} */
5190
- FormLine.prototype.hide;
5191
- /** @type {?} */
5192
- FormLine.prototype.align;
5193
- /** @type {?} */
5194
- FormLine.prototype.value;
5195
- /** @type {?} */
5196
- FormLine.prototype.isSelect;
5197
- /** @type {?} */
5198
- FormLine.prototype.selectOption;
5199
- /** @type {?} */
5200
- FormLine.prototype.explainOptionRight;
5201
- /** @type {?} */
5202
- FormLine.prototype.explainOption;
5203
- /** @type {?} */
5204
- FormLine.prototype.colorOption;
5205
- /** @type {?} */
5206
- FormLine.prototype.maxLength;
5207
- /** @type {?} */
5208
- FormLine.prototype.preserveNumber;
5209
- /** @type {?} */
5210
- FormLine.prototype.inputNumber;
5211
- /** @type {?} */
5212
- FormLine.prototype.onChangeEvent;
5213
- /** @type {?} */
5214
- FormLine.prototype.onSearchEvent;
5215
- /** @type {?} */
5216
- FormLine.prototype.defaultLabel;
5217
- /** @type {?} */
5218
- FormLine.prototype.hdDisabledDate;
5219
- /** @type {?} */
5220
- FormLine.prototype.disabled;
5221
- /** @type {?} */
5222
- FormLine.prototype.showTime;
5223
- /** @type {?} */
5224
- FormLine.prototype.style;
5225
- /** @type {?} */
5226
- FormLine.prototype.canSearch;
5227
- /** @type {?} */
5228
- FormLine.prototype.onChangeEventDebounceTime;
5229
- /** @type {?} */
5230
- FormLine.prototype.onSearchEventEventDebounceTime;
5231
- }
5232
- var ColorOption = /** @class */ (function () {
5233
- function ColorOption() {
5234
- }
5235
- return ColorOption;
5236
- }());
5237
- if (false) {
5238
- /** @type {?} */
5239
- ColorOption.prototype.name;
5240
- /** @type {?} */
5241
- ColorOption.prototype.color;
5242
- }
5243
- var ExplainOption = /** @class */ (function () {
5244
- function ExplainOption() {
5245
- }
5246
- return ExplainOption;
5247
- }());
5248
- if (false) {
5249
- /** @type {?} */
5250
- ExplainOption.prototype.show;
5251
- /** @type {?} */
5252
- ExplainOption.prototype.name;
5253
- /** @type {?} */
5254
- ExplainOption.prototype.color;
5255
- }
5256
- /** @enum {number} */
5257
- var FormLineType = {
5258
- Input: 0,
5259
- Select: 1,
5260
- Date: 2,
5261
- DateRange: 3,
5262
- TextArea: 4,
5263
- InputNumber: 5,
5264
- MultipleSelect: 6,
5265
- ViewDom: 7,
5266
- Switch: 8,
5267
- Time: 9 // 时间选择器
5268
- ,
5269
- };
5270
- FormLineType[FormLineType.Input] = 'Input';
5271
- FormLineType[FormLineType.Select] = 'Select';
5272
- FormLineType[FormLineType.Date] = 'Date';
5273
- FormLineType[FormLineType.DateRange] = 'DateRange';
5274
- FormLineType[FormLineType.TextArea] = 'TextArea';
5275
- FormLineType[FormLineType.InputNumber] = 'InputNumber';
5276
- FormLineType[FormLineType.MultipleSelect] = 'MultipleSelect';
5277
- FormLineType[FormLineType.ViewDom] = 'ViewDom';
5278
- FormLineType[FormLineType.Switch] = 'Switch';
5279
- FormLineType[FormLineType.Time] = 'Time';
5280
- var HdFormLinesService = /** @class */ (function () {
5281
- function HdFormLinesService() {
5282
- }
5283
- HdFormLinesService.decorators = [
5284
- { type: core.Injectable, args: [{
5285
- providedIn: 'root'
5286
- },] }
5287
- ];
5288
- /** @nocollapse */
5289
- HdFormLinesService.ctorParameters = function () { return []; };
5290
- /** @nocollapse */ HdFormLinesService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdFormLinesService_Factory() { return new HdFormLinesService(); }, token: HdFormLinesService, providedIn: "root" });
5291
- return HdFormLinesService;
5292
- }());
5293
-
5294
5891
  /**
5295
5892
  * @fileoverview added by tsickle
5296
5893
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc