atr-components 0.2.103 → 0.2.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/atr-components.module.d.ts +4 -7
  2. package/atr-public-api.d.ts +6 -0
  3. package/core/base/atr-common.d.ts +7 -2
  4. package/core/directive/hq-spin.directive.d.ts +4 -3
  5. package/core/pipe/china-num.pipe.d.ts +7 -0
  6. package/core/pipe/count.pipe.d.ts +7 -0
  7. package/core/pipe/is-empty.pipe.d.ts +1 -1
  8. package/core/pipe/oss.pipe.d.ts +7 -0
  9. package/core/pipe/ossStatic.pipe.d.ts +7 -0
  10. package/core/pipe/pipe-module.module.d.ts +8 -2
  11. package/core/pipe/remove-html.pipe.d.ts +10 -0
  12. package/core/pipe/safe-url.pipe.d.ts +10 -0
  13. package/core/services/upload-oss.service.d.ts +3 -1
  14. package/core/utils/ToolsUtil.d.ts +4 -0
  15. package/esm2020/atr-components.module.mjs +5 -10
  16. package/esm2020/atr-public-api.mjs +7 -4
  17. package/esm2020/core/base/atr-common.mjs +5 -1
  18. package/esm2020/core/directive/hq-spin.directive.mjs +16 -4
  19. package/esm2020/core/pipe/china-num.pipe.mjs +36 -0
  20. package/esm2020/core/pipe/count.pipe.mjs +34 -0
  21. package/esm2020/core/pipe/is-empty.pipe.mjs +5 -2
  22. package/esm2020/core/pipe/oss.pipe.mjs +17 -0
  23. package/esm2020/core/pipe/ossStatic.pipe.mjs +17 -0
  24. package/esm2020/core/pipe/pipe-module.module.mjs +12 -3
  25. package/esm2020/core/pipe/remove-html.pipe.mjs +21 -0
  26. package/esm2020/core/pipe/safe-url.pipe.mjs +20 -0
  27. package/esm2020/core/services/upload-oss.service.mjs +47 -1
  28. package/esm2020/core/utils/ToolsUtil.mjs +31 -1
  29. package/esm2020/lib/shared/atr-shared.module.mjs +10 -4
  30. package/esm2020/lib/shared/quill-editor/quill-editor.component.mjs +86 -1
  31. package/esm2020/lib/shared/table/table-form-item/table-form-item.component.mjs +3 -3
  32. package/esm2020/lib/shared/table/table.component.mjs +8 -1
  33. package/fesm2015/atr-components.mjs +461 -146
  34. package/fesm2015/atr-components.mjs.map +1 -1
  35. package/fesm2020/atr-components.mjs +461 -146
  36. package/fesm2020/atr-components.mjs.map +1 -1
  37. package/lib/shared/atr-shared.module.d.ts +15 -12
  38. package/lib/shared/quill-editor/quill-editor.component.d.ts +8 -0
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { animation, style, animate, trigger, state, transition, keyframes } from '@angular/animations';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, EventEmitter, NgModule, Directive, Input, HostListener, Pipe, Component, forwardRef, Output, LOCALE_ID, Inject, ViewChild } from '@angular/core';
3
+ import { Injectable, EventEmitter, NgModule, Pipe, Component, Directive, Input, HostListener, forwardRef, Output, LOCALE_ID, Inject, ViewChild } from '@angular/core';
4
4
  import * as i2 from '@angular/common/http';
5
5
  import { HttpHeaders, HttpRequest, HttpEventType, HttpErrorResponse, HttpResponse, HttpResponseBase } from '@angular/common/http';
6
6
  import { Observable, throwError, of, Subject } from 'rxjs';
@@ -132,6 +132,10 @@ const atr_static_datas = {
132
132
  * oss地址前缀
133
133
  */
134
134
  OSS_URL: '',
135
+ /**
136
+ * 静态地址
137
+ */
138
+ STATIC_OSS_URL: '',
135
139
  OSS_POLICY: 'third/oss/getPolicy',
136
140
  STORAGE_PRE: 'DQ_',
137
141
  menu_url: '',
@@ -168,6 +172,21 @@ var UserAction;
168
172
  })(UserAction || (UserAction = {}));
169
173
 
170
174
  class ToolsUtil {
175
+ static isBase64(string) {
176
+ let reg = /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*?)\s*$/i;
177
+ return reg.test(string);
178
+ }
179
+ static dataURItoBlob(code) {
180
+ const parts = code.split(';base64,');
181
+ const contentType = parts[0].split(':')[1];
182
+ const raw = window.atob(parts[1]);
183
+ const rawLength = raw.length;
184
+ const uInt8Array = new Uint8Array(rawLength);
185
+ for (let i = 0; i < rawLength; ++i) {
186
+ uInt8Array[i] = raw.charCodeAt(i);
187
+ }
188
+ return new Blob([uInt8Array], { type: contentType });
189
+ }
171
190
  static isNull(val) {
172
191
  if (val || ['boolean', 'string', 'number'].some(v => typeof val == v)) {
173
192
  return false;
@@ -310,6 +329,21 @@ class ToolsUtil {
310
329
  }
311
330
  return atr_static_datas.OSS_URL + url;
312
331
  }
332
+ static getStaticOssUrl(url) {
333
+ if (!url) {
334
+ return "";
335
+ }
336
+ if (url.startsWith("http")) {
337
+ return url;
338
+ }
339
+ return atr_static_datas.STATIC_OSS_URL + url;
340
+ }
341
+ static removeHtml(value) {
342
+ if (!value) {
343
+ return '';
344
+ }
345
+ return value.replace(/<[^<>]+>/g, '').replace(/&nbsp;/ig, '');
346
+ }
313
347
  static mul(...numbers) {
314
348
  if (numbers.length < 2) {
315
349
  return;
@@ -1405,135 +1439,11 @@ const scrollScreen = trigger('scrollScreen', [
1405
1439
  // ]),
1406
1440
  ]);
1407
1441
 
1408
- class AtrRoleDirective {
1409
- constructor(injector, render, templateRef, viewContainer) {
1410
- this.injector = injector;
1411
- this.render = render;
1412
- this.templateRef = templateRef;
1413
- this.viewContainer = viewContainer;
1414
- this.hasView = false;
1415
- }
1416
- set atrRole(condition) {
1417
- if (ToolsUtil.isNull(condition)) {
1418
- this.viewContainer.createEmbeddedView(this.templateRef);
1419
- this.hasView = true;
1420
- return;
1421
- }
1422
- if (condition == "any") {
1423
- this.viewContainer.createEmbeddedView(this.templateRef);
1424
- this.hasView = true;
1425
- return;
1426
- }
1427
- let curPath = this.getRouterUrl();
1428
- this.menuService.getCurMenu(curPath).subscribe(result => {
1429
- let curMenu = result;
1430
- let isExited = false;
1431
- if (curMenu && curMenu != null && curMenu.operation) {
1432
- let operations = curMenu.operation.split(",");
1433
- for (let operation of operations) {
1434
- if (operation == condition) {
1435
- isExited = true;
1436
- break;
1437
- }
1438
- }
1439
- }
1440
- if (isExited && !this.hasView) {
1441
- this.viewContainer.createEmbeddedView(this.templateRef);
1442
- this.hasView = true;
1443
- }
1444
- else if (!condition && this.hasView) {
1445
- this.viewContainer.clear();
1446
- this.hasView = false;
1447
- }
1448
- }, error => {
1449
- });
1450
- }
1451
- ngOnInit() {
1452
- }
1453
- get menuService() {
1454
- return this.injector.get(MenuService);
1455
- }
1456
- getRouterUrl() {
1457
- return this.injector.get(Router).url;
1458
- }
1459
- }
1460
- AtrRoleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrRoleDirective, deps: [{ token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1461
- AtrRoleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AtrRoleDirective, selector: "[atrRole]", inputs: { atrRole: "atrRole" }, ngImport: i0 });
1462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrRoleDirective, decorators: [{
1463
- type: Directive,
1464
- args: [{
1465
- selector: '[atrRole]'
1466
- }]
1467
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Renderer2 }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { atrRole: [{
1468
- type: Input,
1469
- args: ['atrRole']
1470
- }] } });
1471
-
1472
- class AtrErrorImgDirective {
1473
- constructor(elementRef) {
1474
- this.elementRef = elementRef;
1475
- this.errorImagSrc = "";
1476
- }
1477
- ImageError(event) {
1478
- if (this.errorImagSrc) {
1479
- event.src = this.errorImagSrc;
1480
- }
1481
- else {
1482
- event.src = 'https://atr-demo.oss-cn-hangzhou.aliyuncs.com/common/null.png';
1483
- }
1484
- }
1485
- }
1486
- AtrErrorImgDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrErrorImgDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1487
- AtrErrorImgDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AtrErrorImgDirective, selector: "[atrErrorImg]", inputs: { errorImagSrc: ["atrErrorImg", "errorImagSrc"] }, host: { listeners: { "error": "ImageError($event.target)" } }, ngImport: i0 });
1488
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrErrorImgDirective, decorators: [{
1489
- type: Directive,
1490
- args: [{
1491
- selector: '[atrErrorImg]'
1492
- }]
1493
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { errorImagSrc: [{
1494
- type: Input,
1495
- args: ['atrErrorImg']
1496
- }], ImageError: [{
1497
- type: HostListener,
1498
- args: ['error', ['$event.target']]
1499
- }] } });
1500
-
1501
- class HqSpinDirective {
1502
- constructor(el, render) {
1503
- this.el = el;
1504
- this.render = render;
1505
- this.spinLoading = false;
1506
- this.render.addClass(this.el.nativeElement, 'hq-spin-container');
1507
- this.loadingEle = this.render.createElement('div');
1508
- this.render.addClass(this.loadingEle, 'loader-03');
1509
- }
1510
- ngOnChanges(changes) {
1511
- const { spinLoading } = changes;
1512
- if (spinLoading) {
1513
- if (spinLoading.currentValue) {
1514
- this.render.addClass(this.el.nativeElement, 'hq-spin-blur');
1515
- this.render.appendChild(this.el.nativeElement, this.loadingEle);
1516
- }
1517
- else {
1518
- this.render.removeClass(this.el.nativeElement, 'hq-spin-blur');
1519
- this.render.removeChild(this.el.nativeElement, this.loadingEle);
1520
- }
1521
- }
1522
- }
1523
- }
1524
- HqSpinDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HqSpinDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1525
- HqSpinDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: HqSpinDirective, selector: "[HqSpin]", inputs: { spinLoading: "spinLoading" }, usesOnChanges: true, ngImport: i0 });
1526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HqSpinDirective, decorators: [{
1527
- type: Directive,
1528
- args: [{
1529
- selector: '[HqSpin]'
1530
- }]
1531
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { spinLoading: [{
1532
- type: Input
1533
- }] } });
1534
-
1535
1442
  class IsEmptyPipe {
1536
- transform(value) {
1443
+ transform(value, defaultVal) {
1444
+ if (defaultVal) {
1445
+ return ToolsUtil.isNull(value) ? defaultVal : 0;
1446
+ }
1537
1447
  return ToolsUtil.isNull(value);
1538
1448
  }
1539
1449
  }
@@ -1806,12 +1716,143 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1806
1716
  }]
1807
1717
  }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
1808
1718
 
1719
+ class ChinaNumPipe {
1720
+ transform(value, ...args) {
1721
+ let changeNum = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'];
1722
+ let unit = ["", "十", "百", "千", "万"];
1723
+ if (!value)
1724
+ return value;
1725
+ if (typeof value === 'number') {
1726
+ let getWan = (temp) => {
1727
+ let strArr = temp.toString().split("").reverse();
1728
+ let newNum = "";
1729
+ for (var i = 0; i < strArr.length; i++) {
1730
+ newNum = (i == 0 && strArr[i] == 0 ? "" : (i > 0 && strArr[i] == 0 && strArr[i - 1] == 0 ? "" : changeNum[strArr[i]] + (strArr[i] == 0 ? unit[0] : unit[i]))) + newNum;
1731
+ }
1732
+ return newNum;
1733
+ };
1734
+ let overWan = Math.floor(value / 10000);
1735
+ let noWan = value % 10000 + "";
1736
+ if (noWan.toString().length < 4) {
1737
+ noWan = "0" + noWan;
1738
+ }
1739
+ return overWan ? getWan(overWan) + "万" + getWan(noWan) + "、" : getWan(value) + "、";
1740
+ }
1741
+ return "";
1742
+ }
1743
+ }
1744
+ ChinaNumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChinaNumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1745
+ ChinaNumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChinaNumPipe, name: "chinaNum" });
1746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChinaNumPipe, decorators: [{
1747
+ type: Pipe,
1748
+ args: [{
1749
+ name: 'chinaNum'
1750
+ }]
1751
+ }] });
1752
+
1753
+ class CountPipe {
1754
+ transform(value, ...args) {
1755
+ if (!value)
1756
+ return value;
1757
+ if (typeof value !== 'number') {
1758
+ throw new Error('Invalid pipe argument for WelcomePipe');
1759
+ }
1760
+ let leftd = Math.floor(value / (1000 * 60 * 60 * 24)), //计算天数
1761
+ lefth = Math.floor(value / (1000 * 60 * 60) % 24), //计算小时数
1762
+ leftm = Math.floor(value / (1000 * 60) % 60), //计算分钟数
1763
+ lefts = Math.floor(value / 1000 % 60); //计算秒数
1764
+ let returnStr = "";
1765
+ if (leftd > 0) {
1766
+ returnStr = leftd < 10 ? "0" : "" + leftd + "天";
1767
+ }
1768
+ // if(lefth > 0){
1769
+ returnStr += (lefth < 10 ? "0" : "") + lefth + "小时";
1770
+ returnStr += (leftm < 10 ? "0" : "") + leftm + "分";
1771
+ returnStr += (lefts < 10 ? "0" : "") + lefts + "秒";
1772
+ // }
1773
+ return returnStr;
1774
+ }
1775
+ }
1776
+ CountPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CountPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1777
+ CountPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CountPipe, name: "count" });
1778
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CountPipe, decorators: [{
1779
+ type: Pipe,
1780
+ args: [{
1781
+ name: 'count'
1782
+ }]
1783
+ }] });
1784
+
1785
+ class OssPipe {
1786
+ transform(value, defaultVal) {
1787
+ return ToolsUtil.getOssUrl(value);
1788
+ }
1789
+ }
1790
+ OssPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OssPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1791
+ OssPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OssPipe, name: "oss" });
1792
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OssPipe, decorators: [{
1793
+ type: Pipe,
1794
+ args: [{
1795
+ name: 'oss'
1796
+ }]
1797
+ }] });
1798
+
1799
+ class OssStaticPipe {
1800
+ transform(value, defaultVal) {
1801
+ return ToolsUtil.getStaticOssUrl(value);
1802
+ }
1803
+ }
1804
+ OssStaticPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OssStaticPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1805
+ OssStaticPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OssStaticPipe, name: "ossStatic" });
1806
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OssStaticPipe, decorators: [{
1807
+ type: Pipe,
1808
+ args: [{
1809
+ name: 'ossStatic'
1810
+ }]
1811
+ }] });
1812
+
1813
+ class RemoveHtmlPipe {
1814
+ constructor(sanitized) {
1815
+ this.sanitized = sanitized;
1816
+ }
1817
+ transform(value, ...args) {
1818
+ return ToolsUtil.removeHtml(value);
1819
+ }
1820
+ }
1821
+ RemoveHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RemoveHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1822
+ RemoveHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RemoveHtmlPipe, name: "removeHtml" });
1823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RemoveHtmlPipe, decorators: [{
1824
+ type: Pipe,
1825
+ args: [{
1826
+ name: 'removeHtml'
1827
+ }]
1828
+ }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
1829
+
1830
+ class SafeUrlPipe {
1831
+ constructor(sanitized) {
1832
+ this.sanitized = sanitized;
1833
+ }
1834
+ transform(value, ...args) {
1835
+ return this.sanitized.bypassSecurityTrustResourceUrl(value);
1836
+ }
1837
+ }
1838
+ SafeUrlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SafeUrlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1839
+ SafeUrlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SafeUrlPipe, name: "safeUrl" });
1840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SafeUrlPipe, decorators: [{
1841
+ type: Pipe,
1842
+ args: [{
1843
+ name: 'safeUrl'
1844
+ }]
1845
+ }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
1846
+
1809
1847
  // const PIPES = [IsNotEmptyPipe, DefaultValPipe, DictsPipe, DayPipe, IsEmptyPipe, SafeComputePipe,OssImgPipe]
1810
- const PIPES = [IsNotEmptyPipe, DefaultValPipe, DictsPipe, DayPipe, IsEmptyPipe, SafeComputePipe, OssImgPipe, SafeHtmlPipe];
1848
+ const PIPES = [IsNotEmptyPipe, DefaultValPipe, DictsPipe, DayPipe, IsEmptyPipe, SafeComputePipe, OssImgPipe, SafeHtmlPipe,
1849
+ ChinaNumPipe, CountPipe, OssPipe, OssStaticPipe, RemoveHtmlPipe, SafeUrlPipe];
1811
1850
  class PipeModuleModule {
1812
1851
  }
1813
1852
  PipeModuleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PipeModuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1814
- PipeModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PipeModuleModule, declarations: [IsNotEmptyPipe, DefaultValPipe, DictsPipe, DayPipe, IsEmptyPipe, SafeComputePipe, OssImgPipe, SafeHtmlPipe], imports: [CommonModule], exports: [IsNotEmptyPipe, DefaultValPipe, DictsPipe, DayPipe, IsEmptyPipe, SafeComputePipe, OssImgPipe, SafeHtmlPipe] });
1853
+ PipeModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PipeModuleModule, declarations: [IsNotEmptyPipe, DefaultValPipe, DictsPipe, DayPipe, IsEmptyPipe, SafeComputePipe, OssImgPipe, SafeHtmlPipe,
1854
+ ChinaNumPipe, CountPipe, OssPipe, OssStaticPipe, RemoveHtmlPipe, SafeUrlPipe], imports: [CommonModule], exports: [IsNotEmptyPipe, DefaultValPipe, DictsPipe, DayPipe, IsEmptyPipe, SafeComputePipe, OssImgPipe, SafeHtmlPipe,
1855
+ ChinaNumPipe, CountPipe, OssPipe, OssStaticPipe, RemoveHtmlPipe, SafeUrlPipe] });
1815
1856
  PipeModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PipeModuleModule, imports: [[
1816
1857
  CommonModule,
1817
1858
  ]] });
@@ -1853,6 +1894,52 @@ class UploadOssService {
1853
1894
  this.httpService.post(atr_static_datas.OSS_POLICY, { dir: dir, fileName: fileName }, ToolsUtil.getHttpOptions()).subscribe(success, error);
1854
1895
  });
1855
1896
  };
1897
+ this.customReqP = (file) => {
1898
+ const formData = new FormData();
1899
+ formData.append('OSSAccessKeyId', this.uploadData.OSSAccessKeyId);
1900
+ formData.append('policy', this.uploadData.policy);
1901
+ formData.append('Signature', this.uploadData.Signature);
1902
+ // @ts-ignore
1903
+ formData.append('key', file['key']);
1904
+ formData.append('success_action_status', '200');
1905
+ formData.append('file', file);
1906
+ const req = new HttpRequest('POST', atr_static_datas.OSS_URL, formData, {
1907
+ reportProgress: true
1908
+ });
1909
+ return this.httpClient.request(req).toPromise();
1910
+ };
1911
+ this.uploadOssFiles = (files) => {
1912
+ return new Observable(observe => {
1913
+ const success = (result) => {
1914
+ if (result.status === 200) {
1915
+ this.uploadData = result.data;
1916
+ let param = [];
1917
+ files.forEach(item => {
1918
+ item.key = this.uploadData.dir + ToolsUtil.getRandomFileName() + '.' + ToolsUtil.getFileExt(item.name);
1919
+ param.push(this.customReqP(item));
1920
+ });
1921
+ Promise.all(param).then(events => {
1922
+ for (let i = 0; i < events.length; i++) {
1923
+ if (events[i].status == 200) {
1924
+ events[i].url = events[i].url + files[i].key;
1925
+ }
1926
+ }
1927
+ observe.next(events);
1928
+ observe.unsubscribe();
1929
+ });
1930
+ }
1931
+ else {
1932
+ observe.next(false);
1933
+ observe.unsubscribe();
1934
+ }
1935
+ };
1936
+ const error = (err) => {
1937
+ observe.next(false);
1938
+ observe.unsubscribe();
1939
+ };
1940
+ this.httpService.post(atr_static_datas.OSS_POLICY, { dir: 'ueditor' }, ToolsUtil.getHttpOptions()).subscribe(success, error);
1941
+ });
1942
+ };
1856
1943
  this.customReq = (file) => {
1857
1944
  const formData = new FormData();
1858
1945
  for (let key in this.uploadData) {
@@ -1888,14 +1975,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1888
1975
  type: Injectable
1889
1976
  }], ctorParameters: function () { return [{ type: HttpService }, { type: i2.HttpClient }]; } });
1890
1977
 
1891
- const DIRECTIVES = [AtrRoleDirective, AtrErrorImgDirective, HqSpinDirective,];
1892
1978
  const COMMON_COMPONENT = [];
1893
1979
  class AtrComponentsModule {
1894
1980
  }
1895
1981
  AtrComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1896
- AtrComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrComponentsModule, declarations: [AtrRoleDirective, AtrErrorImgDirective, HqSpinDirective], imports: [CommonModule,
1982
+ AtrComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrComponentsModule, imports: [CommonModule,
1897
1983
  CusNgZorroAntdModule,
1898
- PipeModuleModule], exports: [AtrRoleDirective, AtrErrorImgDirective, HqSpinDirective, CusNgZorroAntdModule,
1984
+ PipeModuleModule], exports: [CusNgZorroAntdModule,
1899
1985
  PipeModuleModule] });
1900
1986
  AtrComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrComponentsModule, providers: [HttpService, MenuService, UploadOssService], imports: [[
1901
1987
  CommonModule,
@@ -1906,15 +1992,14 @@ AtrComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
1906
1992
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrComponentsModule, decorators: [{
1907
1993
  type: NgModule,
1908
1994
  args: [{
1909
- declarations: [...COMMON_COMPONENT, ...DIRECTIVES],
1995
+ declarations: [...COMMON_COMPONENT],
1910
1996
  imports: [
1911
1997
  CommonModule,
1912
1998
  CusNgZorroAntdModule,
1913
1999
  PipeModuleModule,
1914
2000
  ],
1915
2001
  providers: [HttpService, MenuService, UploadOssService],
1916
- exports: [...COMMON_COMPONENT,
1917
- ...DIRECTIVES, CusNgZorroAntdModule,
2002
+ exports: [...COMMON_COMPONENT, CusNgZorroAntdModule,
1918
2003
  PipeModuleModule
1919
2004
  ]
1920
2005
  }]
@@ -1977,6 +2062,145 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1977
2062
  }]
1978
2063
  }], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
1979
2064
 
2065
+ class AtrRoleDirective {
2066
+ constructor(injector, render, templateRef, viewContainer) {
2067
+ this.injector = injector;
2068
+ this.render = render;
2069
+ this.templateRef = templateRef;
2070
+ this.viewContainer = viewContainer;
2071
+ this.hasView = false;
2072
+ }
2073
+ set atrRole(condition) {
2074
+ if (ToolsUtil.isNull(condition)) {
2075
+ this.viewContainer.createEmbeddedView(this.templateRef);
2076
+ this.hasView = true;
2077
+ return;
2078
+ }
2079
+ if (condition == "any") {
2080
+ this.viewContainer.createEmbeddedView(this.templateRef);
2081
+ this.hasView = true;
2082
+ return;
2083
+ }
2084
+ let curPath = this.getRouterUrl();
2085
+ this.menuService.getCurMenu(curPath).subscribe(result => {
2086
+ let curMenu = result;
2087
+ let isExited = false;
2088
+ if (curMenu && curMenu != null && curMenu.operation) {
2089
+ let operations = curMenu.operation.split(",");
2090
+ for (let operation of operations) {
2091
+ if (operation == condition) {
2092
+ isExited = true;
2093
+ break;
2094
+ }
2095
+ }
2096
+ }
2097
+ if (isExited && !this.hasView) {
2098
+ this.viewContainer.createEmbeddedView(this.templateRef);
2099
+ this.hasView = true;
2100
+ }
2101
+ else if (!condition && this.hasView) {
2102
+ this.viewContainer.clear();
2103
+ this.hasView = false;
2104
+ }
2105
+ }, error => {
2106
+ });
2107
+ }
2108
+ ngOnInit() {
2109
+ }
2110
+ get menuService() {
2111
+ return this.injector.get(MenuService);
2112
+ }
2113
+ getRouterUrl() {
2114
+ return this.injector.get(Router).url;
2115
+ }
2116
+ }
2117
+ AtrRoleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrRoleDirective, deps: [{ token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
2118
+ AtrRoleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AtrRoleDirective, selector: "[atrRole]", inputs: { atrRole: "atrRole" }, ngImport: i0 });
2119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrRoleDirective, decorators: [{
2120
+ type: Directive,
2121
+ args: [{
2122
+ selector: '[atrRole]'
2123
+ }]
2124
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Renderer2 }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { atrRole: [{
2125
+ type: Input,
2126
+ args: ['atrRole']
2127
+ }] } });
2128
+
2129
+ class AtrErrorImgDirective {
2130
+ constructor(elementRef) {
2131
+ this.elementRef = elementRef;
2132
+ this.errorImagSrc = "";
2133
+ }
2134
+ ImageError(event) {
2135
+ if (this.errorImagSrc) {
2136
+ event.src = this.errorImagSrc;
2137
+ }
2138
+ else {
2139
+ event.src = 'https://atr-demo.oss-cn-hangzhou.aliyuncs.com/common/null.png';
2140
+ }
2141
+ }
2142
+ }
2143
+ AtrErrorImgDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrErrorImgDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2144
+ AtrErrorImgDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AtrErrorImgDirective, selector: "[atrErrorImg]", inputs: { errorImagSrc: ["atrErrorImg", "errorImagSrc"] }, host: { listeners: { "error": "ImageError($event.target)" } }, ngImport: i0 });
2145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrErrorImgDirective, decorators: [{
2146
+ type: Directive,
2147
+ args: [{
2148
+ selector: '[atrErrorImg]'
2149
+ }]
2150
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { errorImagSrc: [{
2151
+ type: Input,
2152
+ args: ['atrErrorImg']
2153
+ }], ImageError: [{
2154
+ type: HostListener,
2155
+ args: ['error', ['$event.target']]
2156
+ }] } });
2157
+
2158
+ class HqSpinDirective {
2159
+ constructor(el, render) {
2160
+ this.el = el;
2161
+ this.render = render;
2162
+ this.spinLoading = false;
2163
+ this.text = null;
2164
+ this.render.addClass(this.el.nativeElement, 'hq-spin-container');
2165
+ this.loadingEle = this.render.createElement('div');
2166
+ let dom1 = document.createElement('div');
2167
+ this.loadingEle.append(dom1);
2168
+ this.render.addClass(dom1, 'loader-03');
2169
+ // this.render.addClass(this.loadingEle, 'loader-04');
2170
+ }
2171
+ ngOnChanges(changes) {
2172
+ const { spinLoading, text } = changes;
2173
+ if (text && text.currentValue) {
2174
+ let dom = document.createElement('div');
2175
+ dom.innerText = text.currentValue;
2176
+ this.loadingEle.append(dom);
2177
+ this.render.addClass(dom, 'loader-04');
2178
+ }
2179
+ if (spinLoading) {
2180
+ if (spinLoading.currentValue) {
2181
+ this.render.addClass(this.el.nativeElement, 'hq-spin-blur');
2182
+ this.render.appendChild(this.el.nativeElement, this.loadingEle);
2183
+ }
2184
+ else {
2185
+ this.render.removeClass(this.el.nativeElement, 'hq-spin-blur');
2186
+ this.render.removeChild(this.el.nativeElement, this.loadingEle);
2187
+ }
2188
+ }
2189
+ }
2190
+ }
2191
+ HqSpinDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HqSpinDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2192
+ HqSpinDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: HqSpinDirective, selector: "[HqSpin]", inputs: { spinLoading: "spinLoading", text: "text" }, usesOnChanges: true, ngImport: i0 });
2193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HqSpinDirective, decorators: [{
2194
+ type: Directive,
2195
+ args: [{
2196
+ selector: '[HqSpin]'
2197
+ }]
2198
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { spinLoading: [{
2199
+ type: Input
2200
+ }], text: [{
2201
+ type: Input
2202
+ }] } });
2203
+
1980
2204
  class TableFormItemComponent {
1981
2205
  constructor() {
1982
2206
  this.dictList = [];
@@ -2037,7 +2261,7 @@ TableFormItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
2037
2261
  useExisting: forwardRef(() => TableFormItemComponent),
2038
2262
  multi: true
2039
2263
  }
2040
- ], ngImport: i0, template: "<nz-form-item style=\"position: relative\" title=\"{{header.name}}\" nzFlex>\n <nz-form-control [nzSpan]=\"header.cspan || 24\" [ngSwitch]=\"header.type\">\n <nz-input-group [nzSuffix]=\"inputClearTpl\" *ngSwitchCase=\"'text'\">\n <input\n nz-input\n placeholder=\"{{header.name}}\"\n [attr.id]=\"header.key\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n />\n\n </nz-input-group>\n\n <nz-select *ngSwitchCase=\"'select'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n nzServerSearch\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of dictList\" [nzLabel]=\"o.typeName\"\n [nzValue]=\"o.id\"></nz-option>\n </nz-select>\n <nz-select *ngSwitchCase=\"'selectCus'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of header.dictList\" nzCustomContent [nzLabel]=\"o.label\"\n [nzValue]=\"o.value\">\n <i class=\"select-icon\" *ngIf=\"header.icon?.isShow\" nz-icon [nzType]=\"header.icon.icon\"\n nzTheme=\"outline\" style=\"margin-right: 1rem;\"\n (click)=\"clickIcon(o.value,header,$event)\"></i>\n {{o.label}}\n </nz-option>\n\n </nz-select>\n <nz-cascader\n *ngSwitchCase=\"'cascader'\"\n (ngModelChange)=\"onChange($event)\"\n style=\"flex: 1\" [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [nzOptions]=\"header.dictList\"\n [(ngModel)]=\"value\"\n ></nz-cascader>\n <nz-tree-select\n *ngSwitchCase=\"'treeSelect'\"\n (ngModelChange)=\"onChange($event)\"\n [nzAllowClear]=\"!header.disableClear\"\n [nzNodes]=\"header.treeList\"\n nzShowSearch=\"true\"\n nzHideUnMatched=\"true\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n [nzMultiple]=\"header.selectUrl.isMultiple\"\n [nzMaxTagCount]=\"header.maxTagCount || 3\"\n >\n </nz-tree-select>\n <nz-range-picker\n *ngSwitchCase=\"'dateRange'\"\n [nzShowTime]=\"header.nzShowTime ? header.nzShowTime : false\"\n (ngModelChange)=\"onChange($event)\"\n\n [nzFormat]=\"header.nzShowTime && header.nzShowTime.nzFormat ?\n ('yyyy-MM-dd '+ header.nzShowTime.nzFormat) : 'yyyy-MM-dd HH:mm:ss'\"\n\n [nzShowNow]=\"header.nzShowTime && header.nzShowNow \"\n [(ngModel)]=\"value\"\n style=\"width: 100%;\"\n nzAllowClear=\"true\"\n [nzPlaceHolder]=\"[header.name+'\u5F00\u59CB\u65F6\u95F4','\u7ED3\u675F\u65F6\u95F4']\"\n [nzDefaultPickerValue]=\"header.defaultVal\"></nz-range-picker>\n <ng-container *ngSwitchCase=\"'sdate'\">\n <nz-date-picker style=\"width: 100%\" [nzFormat]=\"'yyyy-MM-dd'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"!header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n <nz-date-picker style=\"width: 100%\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"header.dateMode\"\n [nzMode]=\"header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n </ng-container>\n <nz-month-picker\n *ngSwitchCase=\"'smonth'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [nzFormat]=\"'yyyy-MM'\"\n [nzPlaceHolder]=\"[header.name]\"\n nzAllowClear=\"true\"></nz-month-picker>\n <span class=\"label-title\">{{header.name}}</span>\n </nz-form-control>\n</nz-form-item>\n\n<ng-template #inputClearTpl>\n <i nz-icon class=\"ant-input-clear-icon\" nzTheme=\"fill\" nzType=\"close-circle\"\n *ngIf=\"!header.disableClear && value|isNotEmpty\" (click)=\"value = null;onChange()\"></i>\n</ng-template>\n", styles: [":host{margin-bottom:5px}:host .label-title{z-index:80}\n", ":host{width:100%;height:100%;display:flex;flex-direction:column}:host ::ng-deep .ant-modal{top:50px;padding:0}:host .ant-advanced-search-form{padding:10px 6px 6px;background:#fbfbfb;border:1px solid #d9d9d9;border-radius:6px;margin-bottom:5px}:host .select-icon:hover{color:#1890ff}:host ::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:5px}:host ::ng-deep .ant-table-column-title{font-size:.65rem}:host ::ng-deep .ant-table-tbody>tr.ant-table-row:hover>td{background:#d0eeea}:host ::ng-deep .ant-modal-header,:host ::ng-deep .ant-modal-content{border-radius:4px}:host ::ng-deep .ant-table-tbody>tr.selected:hover>td{background-color:#cfe1d0!important}:host ::ng-deep .ant-table{height:100%}:host ::ng-deep nz-pagination{position:absolute;bottom:0;right:0}:host .search-result-list{padding:1px;border:1px dashed #e9e9e9;border-radius:6px;background-color:#fff;flex:1;text-align:center;position:relative}:host [nz-form-label]{overflow:visible}:host button{margin:2px 4px}:host .collapse{margin-left:6px;font-size:12px}:host .action-area{text-align:left}:host .search-area{text-align:right}:host ::ng-deep .main-table{position:absolute;top:0;left:0;right:0;bottom:0}:host ::ng-deep .main-table .ant-spin-nested-loading{height:100%}:host ::ng-deep .main-table .ant-spin-container{height:100%}:host ::ng-deep .ant-table-tbody>tr.selected>td{background-color:#cfe1d0}:host ::ng-deep .ant-table-tbody>tr>td>img{display:block;width:40%;margin:0 auto}:host ::ng-deep .ant-table-body{-ms-overflow-style:none;overflow:-moz-scrollbars-none}:host ::ng-deep .ant-table-body::-webkit-scrollbar,:host ::ng-deep .ant-table-header::-webkit-scrollbar{width:6px!important;height:6px!important}:host ::ng-deep .ant-table-body::-webkit-scrollbar-track,:host ::ng-deep .ant-table-header::-webkit-scrollbar-track{width:6px!important;cursor:pointer}:host ::ng-deep .ant-table-body::-webkit-scrollbar-thumb,:host ::ng-deep .ant-table-header::-webkit-scrollbar-thumb{background:#1890ff;border-radius:3px;cursor:pointer}:host ::ng-deep .ant-table-bordered .ant-table-thead>tr>th{border-right:1px solid #ddd}:host ::ng-deep .ant-table-header{-ms-overflow-style:none;overflow:-moz-scrollbars-none;margin-bottom:-5px!important}:host ::ng-deep .ant-table-placeholder{border-bottom:none!important;border-top:none!important}:host .tabel-colunmn{display:block;width:160px;height:300px;background:#fff;border:1px solid #ddd;padding:10px;border-radius:5px;overflow-x:hidden;overflow-y:auto;position:relative}:host .tabel-colunmn-header{position:fixed;top:0;left:0;right:0;height:30px;z-index:999;line-height:30px;border-bottom:1px solid #ddd;text-align:left;font-size:13px;padding-left:10px}:host .t-tr{background:#fff}:host .t-tr:nth-child(odd){background:#f8f9fa}:host ::ng-deep .ant-table-thead>tr>th{background:#e7ebef!important;border-radius:0;word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-tbody>tr>td{word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-header{background:#e7ebef!important}:host td{font-size:.65rem}:host .resize-trigger{height:100%}:host .nz-resizable-preview{border-width:0;border-right-width:1px}:host ::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}:host ::ng-deep .ant-table-tbody>tr>td{padding:5px}:host ::ng-deep .ant-table{line-height:15px}:host ::ng-deep .ant-table-middle .ant-table-footer,:host .ant-table-middle .ant-table-tbody>tr>td,:host .ant-table-middle .ant-table-thead>tr>th,:host .ant-table-middle .ant-table-title{padding:5px}:host ::ng-deep .ant-table-tbody>tr>td>img{width:35px}:host ::ng-deep .ant-modal-body{padding:10px}:host ::ng-deep .ant-table.ant-table-bordered tbody>tr>td{font-size:13px}:host ::ng-deep th{z-index:80!important}:host .left-zindex-header{z-index:90!important}:host .left-zindex{z-index:80!important}:host ::ng-deep input,:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,:host ::ng-deep .ant-picker{border-radius:5px}:host .border-text{width:100%;height:36px;line-height:36px;display:flex}:host .border-text .border-text-line{display:inline-block;border-top:1px solid #cccccc;margin-top:18px}:host .border-text .border-text-line-left{width:10px;border-left:1px solid #cccccc}:host .border-text .border-text-line-right{flex:1;border-right:1px solid #cccccc}:host .border-text .border-text-span{margin-left:5px;margin-right:5px}:host .label-title{position:absolute;display:block;top:-7px;left:10px;background-color:#fff;color:#000;font-weight:600;font-size:12px;line-height:12px}:host ::ng-deep .tabel-colunmn-header{position:absolute!important;top:0!important}:host ::ng-deep .ant-table-cell-fix-left,:host .ant-table-cell-fix-right{position:sticky!important}\n"], components: [{ type: i6.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { type: i6.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { type: i2$1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { type: i4.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { type: i5.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }, { type: i6$1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }], directives: [{ type: i7.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i7.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i9.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { type: i2$1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { type: i2$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i6$1.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { type: i6$1.NzMonthPickerComponent, selector: "nz-month-picker", exportAs: ["nzMonthPicker"] }], pipes: { "isNotEmpty": IsNotEmptyPipe } });
2264
+ ], ngImport: i0, template: "<nz-form-item style=\"position: relative\" title=\"{{header.name}}\" nzFlex>\n <nz-form-control [nzSpan]=\"header.cspan || 24\" [ngSwitch]=\"header.type\">\n <nz-input-group [nzSuffix]=\"inputClearTpl\" *ngSwitchCase=\"'text'\">\n <input\n nz-input\n placeholder=\"{{header.name}}\"\n [attr.id]=\"header.key\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n />\n\n </nz-input-group>\n\n <nz-select *ngSwitchCase=\"'select'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n [nzMode]=\"header.nzMode || 'default'\"\n nzServerSearch\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of dictList\" [nzLabel]=\"o.typeName\"\n [nzValue]=\"o.id\"></nz-option>\n </nz-select>\n <nz-select *ngSwitchCase=\"'selectCus'\"\n [nzMode]=\"header.nzMode || 'default'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of header.dictList\" nzCustomContent [nzLabel]=\"o.label\"\n [nzValue]=\"o.value\">\n <i class=\"select-icon\" *ngIf=\"header.icon?.isShow\" nz-icon [nzType]=\"header.icon.icon\"\n nzTheme=\"outline\" style=\"margin-right: 1rem;\"\n (click)=\"clickIcon(o.value,header,$event)\"></i>\n {{o.label}}\n </nz-option>\n\n </nz-select>\n <nz-cascader\n *ngSwitchCase=\"'cascader'\"\n (ngModelChange)=\"onChange($event)\"\n style=\"flex: 1\" [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [nzOptions]=\"header.dictList\"\n [(ngModel)]=\"value\"\n ></nz-cascader>\n <nz-tree-select\n *ngSwitchCase=\"'treeSelect'\"\n (ngModelChange)=\"onChange($event)\"\n [nzAllowClear]=\"!header.disableClear\"\n [nzNodes]=\"header.treeList\"\n nzShowSearch=\"true\"\n nzHideUnMatched=\"true\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n [nzMultiple]=\"header.selectUrl.isMultiple\"\n [nzMaxTagCount]=\"header.maxTagCount || 3\"\n >\n </nz-tree-select>\n <nz-range-picker *ngSwitchCase=\"'dayRange'\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n style=\"width: 100%;\"\n nzAllowClear=\"true\"\n [nzPlaceHolder]=\"[header.name+'\u5F00\u59CB\u65F6\u95F4','\u7ED3\u675F\u65F6\u95F4']\"\n [nzDefaultPickerValue]=\"header.defaultVal\"\n ></nz-range-picker>\n <nz-range-picker\n *ngSwitchCase=\"'dateRange'\"\n [nzShowTime]=\"header.nzShowTime ? header.nzShowTime : false\"\n (ngModelChange)=\"onChange($event)\"\n\n [nzFormat]=\"header.nzShowTime && header.nzShowTime.nzFormat ?\n ('yyyy-MM-dd '+ header.nzShowTime.nzFormat) : 'yyyy-MM-dd HH:mm:ss'\"\n\n [nzShowNow]=\"header.nzShowTime && header.nzShowNow \"\n [(ngModel)]=\"value\"\n style=\"width: 100%;\"\n nzAllowClear=\"true\"\n [nzPlaceHolder]=\"[header.name+'\u5F00\u59CB\u65F6\u95F4','\u7ED3\u675F\u65F6\u95F4']\"\n [nzDefaultPickerValue]=\"header.defaultVal\"></nz-range-picker>\n <ng-container *ngSwitchCase=\"'sdate'\">\n <nz-date-picker style=\"width: 100%\" [nzFormat]=\"'yyyy-MM-dd'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"!header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n <nz-date-picker style=\"width: 100%\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"header.dateMode\"\n [nzMode]=\"header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n </ng-container>\n <nz-month-picker\n *ngSwitchCase=\"'smonth'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [nzFormat]=\"'yyyy-MM'\"\n [nzPlaceHolder]=\"[header.name]\"\n nzAllowClear=\"true\"></nz-month-picker>\n <span class=\"label-title\">{{header.name}}</span>\n </nz-form-control>\n</nz-form-item>\n\n<ng-template #inputClearTpl>\n <i nz-icon class=\"ant-input-clear-icon\" nzTheme=\"fill\" nzType=\"close-circle\"\n *ngIf=\"!header.disableClear && value|isNotEmpty\" (click)=\"value = null;onChange()\"></i>\n</ng-template>\n", styles: [":host{margin-bottom:5px}:host .label-title{z-index:80}\n", ":host{width:100%;height:100%;display:flex;flex-direction:column}:host ::ng-deep .ant-modal{top:50px;padding:0}:host .ant-advanced-search-form{padding:10px 6px 6px;background:#fbfbfb;border:1px solid #d9d9d9;border-radius:6px;margin-bottom:5px}:host .select-icon:hover{color:#1890ff}:host ::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:5px}:host ::ng-deep .ant-table-column-title{font-size:.65rem}:host ::ng-deep .ant-table-tbody>tr.ant-table-row:hover>td{background:#d0eeea}:host ::ng-deep .ant-modal-header,:host ::ng-deep .ant-modal-content{border-radius:4px}:host ::ng-deep .ant-table-tbody>tr.selected:hover>td{background-color:#cfe1d0!important}:host ::ng-deep .ant-table{height:100%}:host ::ng-deep nz-pagination{position:absolute;bottom:0;right:0}:host .search-result-list{padding:1px;border:1px dashed #e9e9e9;border-radius:6px;background-color:#fff;flex:1;text-align:center;position:relative}:host [nz-form-label]{overflow:visible}:host button{margin:2px 4px}:host .collapse{margin-left:6px;font-size:12px}:host .action-area{text-align:left}:host .search-area{text-align:right}:host ::ng-deep .main-table{position:absolute;top:0;left:0;right:0;bottom:0}:host ::ng-deep .main-table .ant-spin-nested-loading{height:100%}:host ::ng-deep .main-table .ant-spin-container{height:100%}:host ::ng-deep .ant-table-tbody>tr.selected>td{background-color:#cfe1d0}:host ::ng-deep .ant-table-tbody>tr>td>img{display:block;width:40%;margin:0 auto}:host ::ng-deep .ant-table-body{-ms-overflow-style:none;overflow:-moz-scrollbars-none}:host ::ng-deep .ant-table-body::-webkit-scrollbar,:host ::ng-deep .ant-table-header::-webkit-scrollbar{width:6px!important;height:6px!important}:host ::ng-deep .ant-table-body::-webkit-scrollbar-track,:host ::ng-deep .ant-table-header::-webkit-scrollbar-track{width:6px!important;cursor:pointer}:host ::ng-deep .ant-table-body::-webkit-scrollbar-thumb,:host ::ng-deep .ant-table-header::-webkit-scrollbar-thumb{background:#1890ff;border-radius:3px;cursor:pointer}:host ::ng-deep .ant-table-bordered .ant-table-thead>tr>th{border-right:1px solid #ddd}:host ::ng-deep .ant-table-header{-ms-overflow-style:none;overflow:-moz-scrollbars-none;margin-bottom:-5px!important}:host ::ng-deep .ant-table-placeholder{border-bottom:none!important;border-top:none!important}:host .tabel-colunmn{display:block;width:160px;height:300px;background:#fff;border:1px solid #ddd;padding:10px;border-radius:5px;overflow-x:hidden;overflow-y:auto;position:relative}:host .tabel-colunmn-header{position:fixed;top:0;left:0;right:0;height:30px;z-index:999;line-height:30px;border-bottom:1px solid #ddd;text-align:left;font-size:13px;padding-left:10px}:host .t-tr{background:#fff}:host .t-tr:nth-child(odd){background:#f8f9fa}:host ::ng-deep .ant-table-thead>tr>th{background:#e7ebef!important;border-radius:0;word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-tbody>tr>td{word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-header{background:#e7ebef!important}:host td{font-size:.65rem}:host .resize-trigger{height:100%}:host .nz-resizable-preview{border-width:0;border-right-width:1px}:host ::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}:host ::ng-deep .ant-table-tbody>tr>td{padding:5px}:host ::ng-deep .ant-table{line-height:15px}:host ::ng-deep .ant-table-middle .ant-table-footer,:host .ant-table-middle .ant-table-tbody>tr>td,:host .ant-table-middle .ant-table-thead>tr>th,:host .ant-table-middle .ant-table-title{padding:5px}:host ::ng-deep .ant-table-tbody>tr>td>img{width:35px}:host ::ng-deep .ant-modal-body{padding:10px}:host ::ng-deep .ant-table.ant-table-bordered tbody>tr>td{font-size:13px}:host ::ng-deep th{z-index:80!important}:host .left-zindex-header{z-index:90!important}:host .left-zindex{z-index:80!important}:host ::ng-deep input,:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,:host ::ng-deep .ant-picker{border-radius:5px}:host .border-text{width:100%;height:36px;line-height:36px;display:flex}:host .border-text .border-text-line{display:inline-block;border-top:1px solid #cccccc;margin-top:18px}:host .border-text .border-text-line-left{width:10px;border-left:1px solid #cccccc}:host .border-text .border-text-line-right{flex:1;border-right:1px solid #cccccc}:host .border-text .border-text-span{margin-left:5px;margin-right:5px}:host .label-title{position:absolute;display:block;top:-7px;left:10px;background-color:#fff;color:#000;font-weight:600;font-size:12px;line-height:12px}:host ::ng-deep .tabel-colunmn-header{position:absolute!important;top:0!important}:host ::ng-deep .ant-table-cell-fix-left,:host .ant-table-cell-fix-right{position:sticky!important}\n"], components: [{ type: i6.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { type: i6.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { type: i2$1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { type: i4.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { type: i5.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }, { type: i6$1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }], directives: [{ type: i7.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i7.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i9.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { type: i2$1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { type: i2$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i6$1.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { type: i6$1.NzMonthPickerComponent, selector: "nz-month-picker", exportAs: ["nzMonthPicker"] }], pipes: { "isNotEmpty": IsNotEmptyPipe } });
2041
2265
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableFormItemComponent, decorators: [{
2042
2266
  type: Component,
2043
2267
  args: [{ selector: 'app-table-form-item', providers: [
@@ -2046,7 +2270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2046
2270
  useExisting: forwardRef(() => TableFormItemComponent),
2047
2271
  multi: true
2048
2272
  }
2049
- ], template: "<nz-form-item style=\"position: relative\" title=\"{{header.name}}\" nzFlex>\n <nz-form-control [nzSpan]=\"header.cspan || 24\" [ngSwitch]=\"header.type\">\n <nz-input-group [nzSuffix]=\"inputClearTpl\" *ngSwitchCase=\"'text'\">\n <input\n nz-input\n placeholder=\"{{header.name}}\"\n [attr.id]=\"header.key\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n />\n\n </nz-input-group>\n\n <nz-select *ngSwitchCase=\"'select'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n nzServerSearch\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of dictList\" [nzLabel]=\"o.typeName\"\n [nzValue]=\"o.id\"></nz-option>\n </nz-select>\n <nz-select *ngSwitchCase=\"'selectCus'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of header.dictList\" nzCustomContent [nzLabel]=\"o.label\"\n [nzValue]=\"o.value\">\n <i class=\"select-icon\" *ngIf=\"header.icon?.isShow\" nz-icon [nzType]=\"header.icon.icon\"\n nzTheme=\"outline\" style=\"margin-right: 1rem;\"\n (click)=\"clickIcon(o.value,header,$event)\"></i>\n {{o.label}}\n </nz-option>\n\n </nz-select>\n <nz-cascader\n *ngSwitchCase=\"'cascader'\"\n (ngModelChange)=\"onChange($event)\"\n style=\"flex: 1\" [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [nzOptions]=\"header.dictList\"\n [(ngModel)]=\"value\"\n ></nz-cascader>\n <nz-tree-select\n *ngSwitchCase=\"'treeSelect'\"\n (ngModelChange)=\"onChange($event)\"\n [nzAllowClear]=\"!header.disableClear\"\n [nzNodes]=\"header.treeList\"\n nzShowSearch=\"true\"\n nzHideUnMatched=\"true\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n [nzMultiple]=\"header.selectUrl.isMultiple\"\n [nzMaxTagCount]=\"header.maxTagCount || 3\"\n >\n </nz-tree-select>\n <nz-range-picker\n *ngSwitchCase=\"'dateRange'\"\n [nzShowTime]=\"header.nzShowTime ? header.nzShowTime : false\"\n (ngModelChange)=\"onChange($event)\"\n\n [nzFormat]=\"header.nzShowTime && header.nzShowTime.nzFormat ?\n ('yyyy-MM-dd '+ header.nzShowTime.nzFormat) : 'yyyy-MM-dd HH:mm:ss'\"\n\n [nzShowNow]=\"header.nzShowTime && header.nzShowNow \"\n [(ngModel)]=\"value\"\n style=\"width: 100%;\"\n nzAllowClear=\"true\"\n [nzPlaceHolder]=\"[header.name+'\u5F00\u59CB\u65F6\u95F4','\u7ED3\u675F\u65F6\u95F4']\"\n [nzDefaultPickerValue]=\"header.defaultVal\"></nz-range-picker>\n <ng-container *ngSwitchCase=\"'sdate'\">\n <nz-date-picker style=\"width: 100%\" [nzFormat]=\"'yyyy-MM-dd'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"!header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n <nz-date-picker style=\"width: 100%\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"header.dateMode\"\n [nzMode]=\"header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n </ng-container>\n <nz-month-picker\n *ngSwitchCase=\"'smonth'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [nzFormat]=\"'yyyy-MM'\"\n [nzPlaceHolder]=\"[header.name]\"\n nzAllowClear=\"true\"></nz-month-picker>\n <span class=\"label-title\">{{header.name}}</span>\n </nz-form-control>\n</nz-form-item>\n\n<ng-template #inputClearTpl>\n <i nz-icon class=\"ant-input-clear-icon\" nzTheme=\"fill\" nzType=\"close-circle\"\n *ngIf=\"!header.disableClear && value|isNotEmpty\" (click)=\"value = null;onChange()\"></i>\n</ng-template>\n", styles: [":host{margin-bottom:5px}:host .label-title{z-index:80}\n", ":host{width:100%;height:100%;display:flex;flex-direction:column}:host ::ng-deep .ant-modal{top:50px;padding:0}:host .ant-advanced-search-form{padding:10px 6px 6px;background:#fbfbfb;border:1px solid #d9d9d9;border-radius:6px;margin-bottom:5px}:host .select-icon:hover{color:#1890ff}:host ::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:5px}:host ::ng-deep .ant-table-column-title{font-size:.65rem}:host ::ng-deep .ant-table-tbody>tr.ant-table-row:hover>td{background:#d0eeea}:host ::ng-deep .ant-modal-header,:host ::ng-deep .ant-modal-content{border-radius:4px}:host ::ng-deep .ant-table-tbody>tr.selected:hover>td{background-color:#cfe1d0!important}:host ::ng-deep .ant-table{height:100%}:host ::ng-deep nz-pagination{position:absolute;bottom:0;right:0}:host .search-result-list{padding:1px;border:1px dashed #e9e9e9;border-radius:6px;background-color:#fff;flex:1;text-align:center;position:relative}:host [nz-form-label]{overflow:visible}:host button{margin:2px 4px}:host .collapse{margin-left:6px;font-size:12px}:host .action-area{text-align:left}:host .search-area{text-align:right}:host ::ng-deep .main-table{position:absolute;top:0;left:0;right:0;bottom:0}:host ::ng-deep .main-table .ant-spin-nested-loading{height:100%}:host ::ng-deep .main-table .ant-spin-container{height:100%}:host ::ng-deep .ant-table-tbody>tr.selected>td{background-color:#cfe1d0}:host ::ng-deep .ant-table-tbody>tr>td>img{display:block;width:40%;margin:0 auto}:host ::ng-deep .ant-table-body{-ms-overflow-style:none;overflow:-moz-scrollbars-none}:host ::ng-deep .ant-table-body::-webkit-scrollbar,:host ::ng-deep .ant-table-header::-webkit-scrollbar{width:6px!important;height:6px!important}:host ::ng-deep .ant-table-body::-webkit-scrollbar-track,:host ::ng-deep .ant-table-header::-webkit-scrollbar-track{width:6px!important;cursor:pointer}:host ::ng-deep .ant-table-body::-webkit-scrollbar-thumb,:host ::ng-deep .ant-table-header::-webkit-scrollbar-thumb{background:#1890ff;border-radius:3px;cursor:pointer}:host ::ng-deep .ant-table-bordered .ant-table-thead>tr>th{border-right:1px solid #ddd}:host ::ng-deep .ant-table-header{-ms-overflow-style:none;overflow:-moz-scrollbars-none;margin-bottom:-5px!important}:host ::ng-deep .ant-table-placeholder{border-bottom:none!important;border-top:none!important}:host .tabel-colunmn{display:block;width:160px;height:300px;background:#fff;border:1px solid #ddd;padding:10px;border-radius:5px;overflow-x:hidden;overflow-y:auto;position:relative}:host .tabel-colunmn-header{position:fixed;top:0;left:0;right:0;height:30px;z-index:999;line-height:30px;border-bottom:1px solid #ddd;text-align:left;font-size:13px;padding-left:10px}:host .t-tr{background:#fff}:host .t-tr:nth-child(odd){background:#f8f9fa}:host ::ng-deep .ant-table-thead>tr>th{background:#e7ebef!important;border-radius:0;word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-tbody>tr>td{word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-header{background:#e7ebef!important}:host td{font-size:.65rem}:host .resize-trigger{height:100%}:host .nz-resizable-preview{border-width:0;border-right-width:1px}:host ::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}:host ::ng-deep .ant-table-tbody>tr>td{padding:5px}:host ::ng-deep .ant-table{line-height:15px}:host ::ng-deep .ant-table-middle .ant-table-footer,:host .ant-table-middle .ant-table-tbody>tr>td,:host .ant-table-middle .ant-table-thead>tr>th,:host .ant-table-middle .ant-table-title{padding:5px}:host ::ng-deep .ant-table-tbody>tr>td>img{width:35px}:host ::ng-deep .ant-modal-body{padding:10px}:host ::ng-deep .ant-table.ant-table-bordered tbody>tr>td{font-size:13px}:host ::ng-deep th{z-index:80!important}:host .left-zindex-header{z-index:90!important}:host .left-zindex{z-index:80!important}:host ::ng-deep input,:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,:host ::ng-deep .ant-picker{border-radius:5px}:host .border-text{width:100%;height:36px;line-height:36px;display:flex}:host .border-text .border-text-line{display:inline-block;border-top:1px solid #cccccc;margin-top:18px}:host .border-text .border-text-line-left{width:10px;border-left:1px solid #cccccc}:host .border-text .border-text-line-right{flex:1;border-right:1px solid #cccccc}:host .border-text .border-text-span{margin-left:5px;margin-right:5px}:host .label-title{position:absolute;display:block;top:-7px;left:10px;background-color:#fff;color:#000;font-weight:600;font-size:12px;line-height:12px}:host ::ng-deep .tabel-colunmn-header{position:absolute!important;top:0!important}:host ::ng-deep .ant-table-cell-fix-left,:host .ant-table-cell-fix-right{position:sticky!important}\n"] }]
2273
+ ], template: "<nz-form-item style=\"position: relative\" title=\"{{header.name}}\" nzFlex>\n <nz-form-control [nzSpan]=\"header.cspan || 24\" [ngSwitch]=\"header.type\">\n <nz-input-group [nzSuffix]=\"inputClearTpl\" *ngSwitchCase=\"'text'\">\n <input\n nz-input\n placeholder=\"{{header.name}}\"\n [attr.id]=\"header.key\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n />\n\n </nz-input-group>\n\n <nz-select *ngSwitchCase=\"'select'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n [nzMode]=\"header.nzMode || 'default'\"\n nzServerSearch\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of dictList\" [nzLabel]=\"o.typeName\"\n [nzValue]=\"o.id\"></nz-option>\n </nz-select>\n <nz-select *ngSwitchCase=\"'selectCus'\"\n [nzMode]=\"header.nzMode || 'default'\"\n [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n nzAllowClear=\"true\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n >\n <nz-option *ngFor=\"let o of header.dictList\" nzCustomContent [nzLabel]=\"o.label\"\n [nzValue]=\"o.value\">\n <i class=\"select-icon\" *ngIf=\"header.icon?.isShow\" nz-icon [nzType]=\"header.icon.icon\"\n nzTheme=\"outline\" style=\"margin-right: 1rem;\"\n (click)=\"clickIcon(o.value,header,$event)\"></i>\n {{o.label}}\n </nz-option>\n\n </nz-select>\n <nz-cascader\n *ngSwitchCase=\"'cascader'\"\n (ngModelChange)=\"onChange($event)\"\n style=\"flex: 1\" [nzAllowClear]=\"!header.disableClear\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [nzOptions]=\"header.dictList\"\n [(ngModel)]=\"value\"\n ></nz-cascader>\n <nz-tree-select\n *ngSwitchCase=\"'treeSelect'\"\n (ngModelChange)=\"onChange($event)\"\n [nzAllowClear]=\"!header.disableClear\"\n [nzNodes]=\"header.treeList\"\n nzShowSearch=\"true\"\n nzHideUnMatched=\"true\"\n nzPlaceHolder=\"{{header.name}}\"\n [nzShowSearch]=\"true\"\n [(ngModel)]=\"value\"\n [nzMultiple]=\"header.selectUrl.isMultiple\"\n [nzMaxTagCount]=\"header.maxTagCount || 3\"\n >\n </nz-tree-select>\n <nz-range-picker *ngSwitchCase=\"'dayRange'\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n style=\"width: 100%;\"\n nzAllowClear=\"true\"\n [nzPlaceHolder]=\"[header.name+'\u5F00\u59CB\u65F6\u95F4','\u7ED3\u675F\u65F6\u95F4']\"\n [nzDefaultPickerValue]=\"header.defaultVal\"\n ></nz-range-picker>\n <nz-range-picker\n *ngSwitchCase=\"'dateRange'\"\n [nzShowTime]=\"header.nzShowTime ? header.nzShowTime : false\"\n (ngModelChange)=\"onChange($event)\"\n\n [nzFormat]=\"header.nzShowTime && header.nzShowTime.nzFormat ?\n ('yyyy-MM-dd '+ header.nzShowTime.nzFormat) : 'yyyy-MM-dd HH:mm:ss'\"\n\n [nzShowNow]=\"header.nzShowTime && header.nzShowNow \"\n [(ngModel)]=\"value\"\n style=\"width: 100%;\"\n nzAllowClear=\"true\"\n [nzPlaceHolder]=\"[header.name+'\u5F00\u59CB\u65F6\u95F4','\u7ED3\u675F\u65F6\u95F4']\"\n [nzDefaultPickerValue]=\"header.defaultVal\"></nz-range-picker>\n <ng-container *ngSwitchCase=\"'sdate'\">\n <nz-date-picker style=\"width: 100%\" [nzFormat]=\"'yyyy-MM-dd'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"!header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n <nz-date-picker style=\"width: 100%\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n *ngIf=\"header.dateMode\"\n [nzMode]=\"header.dateMode\"\n nzAllowClear=\"true\"></nz-date-picker>\n </ng-container>\n <nz-month-picker\n *ngSwitchCase=\"'smonth'\"\n (ngModelChange)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [nzFormat]=\"'yyyy-MM'\"\n [nzPlaceHolder]=\"[header.name]\"\n nzAllowClear=\"true\"></nz-month-picker>\n <span class=\"label-title\">{{header.name}}</span>\n </nz-form-control>\n</nz-form-item>\n\n<ng-template #inputClearTpl>\n <i nz-icon class=\"ant-input-clear-icon\" nzTheme=\"fill\" nzType=\"close-circle\"\n *ngIf=\"!header.disableClear && value|isNotEmpty\" (click)=\"value = null;onChange()\"></i>\n</ng-template>\n", styles: [":host{margin-bottom:5px}:host .label-title{z-index:80}\n", ":host{width:100%;height:100%;display:flex;flex-direction:column}:host ::ng-deep .ant-modal{top:50px;padding:0}:host .ant-advanced-search-form{padding:10px 6px 6px;background:#fbfbfb;border:1px solid #d9d9d9;border-radius:6px;margin-bottom:5px}:host .select-icon:hover{color:#1890ff}:host ::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:5px}:host ::ng-deep .ant-table-column-title{font-size:.65rem}:host ::ng-deep .ant-table-tbody>tr.ant-table-row:hover>td{background:#d0eeea}:host ::ng-deep .ant-modal-header,:host ::ng-deep .ant-modal-content{border-radius:4px}:host ::ng-deep .ant-table-tbody>tr.selected:hover>td{background-color:#cfe1d0!important}:host ::ng-deep .ant-table{height:100%}:host ::ng-deep nz-pagination{position:absolute;bottom:0;right:0}:host .search-result-list{padding:1px;border:1px dashed #e9e9e9;border-radius:6px;background-color:#fff;flex:1;text-align:center;position:relative}:host [nz-form-label]{overflow:visible}:host button{margin:2px 4px}:host .collapse{margin-left:6px;font-size:12px}:host .action-area{text-align:left}:host .search-area{text-align:right}:host ::ng-deep .main-table{position:absolute;top:0;left:0;right:0;bottom:0}:host ::ng-deep .main-table .ant-spin-nested-loading{height:100%}:host ::ng-deep .main-table .ant-spin-container{height:100%}:host ::ng-deep .ant-table-tbody>tr.selected>td{background-color:#cfe1d0}:host ::ng-deep .ant-table-tbody>tr>td>img{display:block;width:40%;margin:0 auto}:host ::ng-deep .ant-table-body{-ms-overflow-style:none;overflow:-moz-scrollbars-none}:host ::ng-deep .ant-table-body::-webkit-scrollbar,:host ::ng-deep .ant-table-header::-webkit-scrollbar{width:6px!important;height:6px!important}:host ::ng-deep .ant-table-body::-webkit-scrollbar-track,:host ::ng-deep .ant-table-header::-webkit-scrollbar-track{width:6px!important;cursor:pointer}:host ::ng-deep .ant-table-body::-webkit-scrollbar-thumb,:host ::ng-deep .ant-table-header::-webkit-scrollbar-thumb{background:#1890ff;border-radius:3px;cursor:pointer}:host ::ng-deep .ant-table-bordered .ant-table-thead>tr>th{border-right:1px solid #ddd}:host ::ng-deep .ant-table-header{-ms-overflow-style:none;overflow:-moz-scrollbars-none;margin-bottom:-5px!important}:host ::ng-deep .ant-table-placeholder{border-bottom:none!important;border-top:none!important}:host .tabel-colunmn{display:block;width:160px;height:300px;background:#fff;border:1px solid #ddd;padding:10px;border-radius:5px;overflow-x:hidden;overflow-y:auto;position:relative}:host .tabel-colunmn-header{position:fixed;top:0;left:0;right:0;height:30px;z-index:999;line-height:30px;border-bottom:1px solid #ddd;text-align:left;font-size:13px;padding-left:10px}:host .t-tr{background:#fff}:host .t-tr:nth-child(odd){background:#f8f9fa}:host ::ng-deep .ant-table-thead>tr>th{background:#e7ebef!important;border-radius:0;word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-tbody>tr>td{word-break:break-all;white-space:pre-wrap}:host ::ng-deep .ant-table-header{background:#e7ebef!important}:host td{font-size:.65rem}:host .resize-trigger{height:100%}:host .nz-resizable-preview{border-width:0;border-right-width:1px}:host ::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}:host ::ng-deep .ant-table-tbody>tr>td{padding:5px}:host ::ng-deep .ant-table{line-height:15px}:host ::ng-deep .ant-table-middle .ant-table-footer,:host .ant-table-middle .ant-table-tbody>tr>td,:host .ant-table-middle .ant-table-thead>tr>th,:host .ant-table-middle .ant-table-title{padding:5px}:host ::ng-deep .ant-table-tbody>tr>td>img{width:35px}:host ::ng-deep .ant-modal-body{padding:10px}:host ::ng-deep .ant-table.ant-table-bordered tbody>tr>td{font-size:13px}:host ::ng-deep th{z-index:80!important}:host .left-zindex-header{z-index:90!important}:host .left-zindex{z-index:80!important}:host ::ng-deep input,:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,:host ::ng-deep .ant-picker{border-radius:5px}:host .border-text{width:100%;height:36px;line-height:36px;display:flex}:host .border-text .border-text-line{display:inline-block;border-top:1px solid #cccccc;margin-top:18px}:host .border-text .border-text-line-left{width:10px;border-left:1px solid #cccccc}:host .border-text .border-text-line-right{flex:1;border-right:1px solid #cccccc}:host .border-text .border-text-span{margin-left:5px;margin-right:5px}:host .label-title{position:absolute;display:block;top:-7px;left:10px;background-color:#fff;color:#000;font-weight:600;font-size:12px;line-height:12px}:host ::ng-deep .tabel-colunmn-header{position:absolute!important;top:0!important}:host ::ng-deep .ant-table-cell-fix-left,:host .ant-table-cell-fix-right{position:sticky!important}\n"] }]
2050
2274
  }], ctorParameters: function () { return []; }, propDecorators: { header: [{
2051
2275
  type: Input
2052
2276
  }], value: [{
@@ -2720,6 +2944,13 @@ class AtrTableComponent {
2720
2944
  params[begin] = formatDate(this.atrForm.value[key][0], formate, this.locale);
2721
2945
  params[end] = formatDate(this.atrForm.value[key][1], formate, this.locale);
2722
2946
  }
2947
+ else if (this.getHederType(key) == "dayRange") {
2948
+ let begin = key + "Begin";
2949
+ let end = key + "End";
2950
+ let formate = 'yyyy-MM-dd 00:00:00';
2951
+ params[begin] = formatDate(this.atrForm.value[key][0], formate, this.locale);
2952
+ params[end] = formatDate(this.atrForm.value[key][1], formate, this.locale);
2953
+ }
2723
2954
  else if (this.getHederType(key) == "sdate") {
2724
2955
  params[key] = formatDate(this.atrForm.value[key], 'yyyy-MM-dd 00:00:00', this.locale);
2725
2956
  }
@@ -3321,6 +3552,90 @@ class QuillEditorComponent {
3321
3552
  const toolbar = quill.getModule('toolbar');
3322
3553
  toolbar.addHandler('image', this.imageHandler.bind(this));
3323
3554
  this.editor = quill;
3555
+ let that = this;
3556
+ quill.on('text-change', function (delta, oldDelta, source) {
3557
+ if (source == 'api') {
3558
+ }
3559
+ else if (source == 'user') {
3560
+ console.log('user');
3561
+ that.uploadImgs([], 0);
3562
+ }
3563
+ });
3564
+ }
3565
+ getBlobByBase64(url, oldUrl) {
3566
+ const c = document.createElement('canvas');
3567
+ console.log(c);
3568
+ const ctx = c.getContext('2d');
3569
+ ctx.stroke();
3570
+ let blob = ToolsUtil.dataURItoBlob(url);
3571
+ blob.name = '.png';
3572
+ let delta = this.editor.getContents();
3573
+ console.log('delta', delta);
3574
+ for (let i = 0; i < delta.ops.length; i++) {
3575
+ if (delta.ops[i].insert.image == oldUrl) {
3576
+ return {
3577
+ index: i,
3578
+ blob: blob,
3579
+ oldUrl: oldUrl
3580
+ };
3581
+ }
3582
+ }
3583
+ return;
3584
+ }
3585
+ uploadImgs(blods, index) {
3586
+ let details = this.editor.getContents();
3587
+ let opt = details.ops[index];
3588
+ if (opt && opt.insert && opt.insert.image) {
3589
+ if (ToolsUtil.isBase64(opt.insert.image)) {
3590
+ blods.push(this.getBlobByBase64(opt.insert.image, opt.insert.image));
3591
+ this.isEndContents(blods, index);
3592
+ }
3593
+ else {
3594
+ let c = document.createElement('canvas');
3595
+ let ctx = c.getContext('2d');
3596
+ let img = new Image();
3597
+ img.src = opt.insert.image;
3598
+ img.setAttribute('crossOrigin', '*');
3599
+ let that = this;
3600
+ img.onload = function () {
3601
+ c.width = img.width;
3602
+ c.height = img.height;
3603
+ ctx.drawImage(img, 0, 0, img.width, img.height);
3604
+ let url = c.toDataURL();
3605
+ blods.push(that.getBlobByBase64(url, img.src));
3606
+ that.isEndContents(blods, index);
3607
+ };
3608
+ }
3609
+ }
3610
+ else {
3611
+ this.isEndContents(blods, index);
3612
+ }
3613
+ }
3614
+ uploadImg(blods) {
3615
+ if (!blods || blods.length <= 0) {
3616
+ return;
3617
+ }
3618
+ this.uploadOssService.uploadOssFiles(blods.map((v) => v.blob)).subscribe((res) => {
3619
+ if (res && res.length > 0) {
3620
+ let delta = this.editor.getContents();
3621
+ for (let i = 0; i < res.length; i++) {
3622
+ console.log('delta', delta);
3623
+ delta.filter((opt) => opt && opt.insert && opt.insert.image == blods[i].oldUrl).forEach((opt, index) => {
3624
+ opt.insert.image = res[i].url;
3625
+ });
3626
+ }
3627
+ this.editor.setContents(delta, 'api');
3628
+ }
3629
+ });
3630
+ }
3631
+ isEndContents(blods, index) {
3632
+ let details = this.editor.getContents();
3633
+ if (++index != details.ops.length) {
3634
+ this.uploadImgs(blods, index);
3635
+ }
3636
+ else {
3637
+ this.uploadImg(blods);
3638
+ }
3324
3639
  }
3325
3640
  imageHandler() {
3326
3641
  const Imageinput = document.createElement('input');
@@ -4282,6 +4597,7 @@ registerLocaleData(zh);
4282
4597
  // #region your componets & directives
4283
4598
  const COMPONENTS = [QuillEditorComponent, TableFormItemComponent, TableTdComponent, AtrTableComponent, UploadComponent, AtrFormComponent, LocalUploadComponent,
4284
4599
  SelectTreeComponent, VideoComponent, SelectIconsComponent, EchartsComponent, ViewFormComponent];
4600
+ const DIRECTIVES = [AtrRoleDirective, AtrErrorImgDirective, HqSpinDirective,];
4285
4601
  //SharedModule
4286
4602
  // 应 包含定义:
4287
4603
  // 应用通用自定义业务组件
@@ -4291,7 +4607,7 @@ class AtrSharedModule {
4291
4607
  }
4292
4608
  AtrSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4293
4609
  AtrSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrSharedModule, declarations: [QuillEditorComponent, TableFormItemComponent, TableTdComponent, AtrTableComponent, UploadComponent, AtrFormComponent, LocalUploadComponent,
4294
- SelectTreeComponent, VideoComponent, SelectIconsComponent, EchartsComponent, ViewFormComponent], imports: [PipeModuleModule,
4610
+ SelectTreeComponent, VideoComponent, SelectIconsComponent, EchartsComponent, ViewFormComponent, AtrRoleDirective, AtrErrorImgDirective, HqSpinDirective], imports: [PipeModuleModule,
4295
4611
  CommonModule,
4296
4612
  FormsModule,
4297
4613
  ReactiveFormsModule,
@@ -4306,7 +4622,7 @@ AtrSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
4306
4622
  ReactiveFormsModule,
4307
4623
  RouterModule, CusNgZorroAntdModule,
4308
4624
  NzResizableModule, QuillEditorComponent, TableFormItemComponent, TableTdComponent, AtrTableComponent, UploadComponent, AtrFormComponent, LocalUploadComponent,
4309
- SelectTreeComponent, VideoComponent, SelectIconsComponent, EchartsComponent, ViewFormComponent, PipeModuleModule] });
4625
+ SelectTreeComponent, VideoComponent, SelectIconsComponent, EchartsComponent, ViewFormComponent, PipeModuleModule, AtrRoleDirective, AtrErrorImgDirective, HqSpinDirective] });
4310
4626
  AtrSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AtrSharedModule, providers: SERVICE_PROVIDES, imports: [[
4311
4627
  PipeModuleModule,
4312
4628
  CommonModule,
@@ -4416,6 +4732,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
4416
4732
  declarations: [
4417
4733
  // your components
4418
4734
  ...COMPONENTS,
4735
+ ...DIRECTIVES
4419
4736
  ],
4420
4737
  exports: [
4421
4738
  DragDropModule,
@@ -4427,7 +4744,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
4427
4744
  ...THIRDMODULES,
4428
4745
  // your components
4429
4746
  ...COMPONENTS,
4430
- PipeModuleModule
4747
+ PipeModuleModule,
4748
+ ...DIRECTIVES
4431
4749
  ],
4432
4750
  providers: SERVICE_PROVIDES
4433
4751
  }]
@@ -4495,14 +4813,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
4495
4813
  args: [LOCALE_ID]
4496
4814
  }] }, { type: i2$3.NzMessageService }]; } });
4497
4815
 
4498
- /*
4499
- * Public API Surface of components
4500
- */
4501
4816
  window.global = window;
4502
4817
 
4503
4818
  /**
4504
4819
  * Generated bundle index. Do not edit.
4505
4820
  */
4506
4821
 
4507
- export { AtrComponentsModule, AtrErrorImgDirective, AtrFormComponent, AtrReuseStrategy, AtrRoleDirective, AtrSharedModule, AtrTableComponent, AuthGuard, BaseInterceptor, BusiService, CusNgZorroAntdModule, DayPipe, DefaultValPipe, DictService, DictsPipe, EchartsComponent, HelloComponent, HelloModule, HqSpinDirective, HttpService, IsEmptyPipe, IsNotEmptyPipe, LocalStorageUtil, LocalUploadComponent, MenuService, OssImgPipe, PipeModuleModule, QuillEditorComponent, SafeComputePipe, SafeHtmlPipe, SelectIconsComponent, SelectTreeComponent, SessionStorageUtil, ShareService, TableFormItemComponent, TableTdComponent, ToolsUtil, UploadComponent, UploadOssService, UserAction, VideoComponent, ViewFormComponent, atr_static_datas, commonDatas, flyIn, scrollScreen, telphoneValidator, transAnimation };
4822
+ export { AtrComponentsModule, AtrErrorImgDirective, AtrFormComponent, AtrReuseStrategy, AtrRoleDirective, AtrSharedModule, AtrTableComponent, AuthGuard, BaseInterceptor, BusiService, ChinaNumPipe, CountPipe, CusNgZorroAntdModule, DayPipe, DefaultValPipe, DictService, DictsPipe, EchartsComponent, HelloComponent, HelloModule, HqSpinDirective, HttpService, IsEmptyPipe, IsNotEmptyPipe, LocalStorageUtil, LocalUploadComponent, MenuService, OssImgPipe, OssPipe, OssStaticPipe, PipeModuleModule, QuillEditorComponent, RemoveHtmlPipe, SafeComputePipe, SafeHtmlPipe, SafeUrlPipe, SelectIconsComponent, SelectTreeComponent, SessionStorageUtil, ShareService, TableFormItemComponent, TableTdComponent, ToolsUtil, UploadComponent, UploadOssService, UserAction, VideoComponent, ViewFormComponent, atr_static_datas, commonDatas, flyIn, scrollScreen, telphoneValidator, transAnimation };
4508
4823
  //# sourceMappingURL=atr-components.mjs.map