@ebuilding/biz-comm 2.0.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.
Files changed (146) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/components/filter/index.d.ts +1 -0
  4. package/components/filter/src/compare-filter/index.d.ts +44 -0
  5. package/components/filter/src/default/index.d.ts +41 -0
  6. package/components/filter/src/index.module.d.ts +8 -0
  7. package/components/filter/src/public_api.d.ts +3 -0
  8. package/components/lookup/index.d.ts +1 -0
  9. package/components/lookup/src/default/index.d.ts +28 -0
  10. package/components/lookup/src/index.module.d.ts +8 -0
  11. package/components/lookup/src/public_api.d.ts +2 -0
  12. package/fesm2022/components.filter.mjs +411 -0
  13. package/fesm2022/components.filter.mjs.map +1 -0
  14. package/fesm2022/components.lookup.mjs +161 -0
  15. package/fesm2022/components.lookup.mjs.map +1 -0
  16. package/fesm2022/ebuilding-biz-comm.mjs +7 -0
  17. package/fesm2022/ebuilding-biz-comm.mjs.map +1 -0
  18. package/fesm2022/other.card.mjs +419 -0
  19. package/fesm2022/other.card.mjs.map +1 -0
  20. package/fesm2022/other.control.mjs +176 -0
  21. package/fesm2022/other.control.mjs.map +1 -0
  22. package/fesm2022/other.dict.mjs +1181 -0
  23. package/fesm2022/other.dict.mjs.map +1 -0
  24. package/fesm2022/other.formula.mjs +558 -0
  25. package/fesm2022/other.formula.mjs.map +1 -0
  26. package/fesm2022/other.rule.mjs +735 -0
  27. package/fesm2022/other.rule.mjs.map +1 -0
  28. package/fesm2022/other.source.args.mjs +290 -0
  29. package/fesm2022/other.source.args.mjs.map +1 -0
  30. package/fesm2022/other.source.field-map.mjs +245 -0
  31. package/fesm2022/other.source.field-map.mjs.map +1 -0
  32. package/fesm2022/other.source.filter.mjs +295 -0
  33. package/fesm2022/other.source.filter.mjs.map +1 -0
  34. package/fesm2022/other.source.group.mjs +219 -0
  35. package/fesm2022/other.source.group.mjs.map +1 -0
  36. package/fesm2022/other.source.mjs +1485 -0
  37. package/fesm2022/other.source.mjs.map +1 -0
  38. package/fesm2022/other.source.order.mjs +243 -0
  39. package/fesm2022/other.source.order.mjs.map +1 -0
  40. package/fesm2022/other.source.table.mjs +326 -0
  41. package/fesm2022/other.source.table.mjs.map +1 -0
  42. package/fesm2022/other.tree.mjs +441 -0
  43. package/fesm2022/other.tree.mjs.map +1 -0
  44. package/fesm2022/type.formula.mjs +133 -0
  45. package/fesm2022/type.formula.mjs.map +1 -0
  46. package/fesm2022/type.lookup.mjs +256 -0
  47. package/fesm2022/type.lookup.mjs.map +1 -0
  48. package/fesm2022/type.mjs +674 -0
  49. package/fesm2022/type.mjs.map +1 -0
  50. package/fesm2022/type.tree.mjs +225 -0
  51. package/fesm2022/type.tree.mjs.map +1 -0
  52. package/index.d.ts +2 -0
  53. package/other/card/index.d.ts +1 -0
  54. package/other/card/src/card-user/index.d.ts +31 -0
  55. package/other/card/src/card.service.d.ts +28 -0
  56. package/other/card/src/components/emp/index.d.ts +13 -0
  57. package/other/card/src/default/index.d.ts +48 -0
  58. package/other/card/src/index.module.d.ts +9 -0
  59. package/other/card/src/public_api.d.ts +3 -0
  60. package/other/control/index.d.ts +1 -0
  61. package/other/control/src/dict/index.d.ts +26 -0
  62. package/other/control/src/index.module.d.ts +7 -0
  63. package/other/control/src/public_api.d.ts +2 -0
  64. package/other/dict/index.d.ts +1 -0
  65. package/other/dict/src/field/index.d.ts +45 -0
  66. package/other/dict/src/field-info/index.d.ts +38 -0
  67. package/other/dict/src/field-read/index.d.ts +26 -0
  68. package/other/dict/src/index.module.d.ts +9 -0
  69. package/other/dict/src/public_api.d.ts +4 -0
  70. package/other/formula/index.d.ts +1 -0
  71. package/other/formula/src/default/index.d.ts +33 -0
  72. package/other/formula/src/form-item/index.d.ts +32 -0
  73. package/other/formula/src/form-setting/index.d.ts +32 -0
  74. package/other/formula/src/formula.service.d.ts +20 -0
  75. package/other/formula/src/index.module.d.ts +10 -0
  76. package/other/formula/src/public_api.d.ts +5 -0
  77. package/other/formula/src/rule-event/index.d.ts +23 -0
  78. package/other/rule/index.d.ts +1 -0
  79. package/other/rule/src/index.module.d.ts +16 -0
  80. package/other/rule/src/main/index.component.d.ts +34 -0
  81. package/other/rule/src/public_api.d.ts +2 -0
  82. package/other/rule/src/rule-change/index.component.d.ts +9 -0
  83. package/other/rule/src/rule-change-boolean/index.component.d.ts +13 -0
  84. package/other/rule/src/rule-change-date/index.component.d.ts +13 -0
  85. package/other/rule/src/rule-change-item/index.component.d.ts +13 -0
  86. package/other/rule/src/rule-change-number/index.component.d.ts +13 -0
  87. package/other/rule/src/rule-change-ref/index.component.d.ts +19 -0
  88. package/other/rule/src/rule-change-text/index.component.d.ts +13 -0
  89. package/other/rule/src/rule-change-upload/index.component.d.ts +11 -0
  90. package/other/rule/src/rule-fixed/index.component.d.ts +13 -0
  91. package/other/rule/src/service/config.service.d.ts +43 -0
  92. package/other/rule/src/service/rule.service.d.ts +11 -0
  93. package/other/source/args/index.d.ts +1 -0
  94. package/other/source/args/src/basic.d.ts +49 -0
  95. package/other/source/args/src/default/index.d.ts +24 -0
  96. package/other/source/args/src/index.module.d.ts +7 -0
  97. package/other/source/args/src/public_api.d.ts +2 -0
  98. package/other/source/field-map/index.d.ts +1 -0
  99. package/other/source/field-map/src/basic.d.ts +39 -0
  100. package/other/source/field-map/src/default/index.d.ts +26 -0
  101. package/other/source/field-map/src/index.module.d.ts +7 -0
  102. package/other/source/field-map/src/public_api.d.ts +2 -0
  103. package/other/source/filter/index.d.ts +1 -0
  104. package/other/source/filter/src/basic.d.ts +45 -0
  105. package/other/source/filter/src/default/index.d.ts +26 -0
  106. package/other/source/filter/src/index.module.d.ts +8 -0
  107. package/other/source/filter/src/public_api.d.ts +3 -0
  108. package/other/source/filter/src/second/index.d.ts +30 -0
  109. package/other/source/group/index.d.ts +1 -0
  110. package/other/source/group/src/basic.d.ts +32 -0
  111. package/other/source/group/src/default/index.d.ts +26 -0
  112. package/other/source/group/src/index.module.d.ts +7 -0
  113. package/other/source/group/src/public_api.d.ts +2 -0
  114. package/other/source/index.d.ts +6 -0
  115. package/other/source/order/index.d.ts +1 -0
  116. package/other/source/order/src/basic.d.ts +39 -0
  117. package/other/source/order/src/default/index.d.ts +26 -0
  118. package/other/source/order/src/index.module.d.ts +7 -0
  119. package/other/source/order/src/public_api.d.ts +2 -0
  120. package/other/source/table/index.d.ts +1 -0
  121. package/other/source/table/src/basic.d.ts +62 -0
  122. package/other/source/table/src/default/index.d.ts +26 -0
  123. package/other/source/table/src/index.module.d.ts +7 -0
  124. package/other/source/table/src/public_api.d.ts +2 -0
  125. package/other/tree/index.d.ts +1 -0
  126. package/other/tree/src/components/form/index.d.ts +17 -0
  127. package/other/tree/src/components/tree/index.d.ts +19 -0
  128. package/other/tree/src/default/index.d.ts +18 -0
  129. package/other/tree/src/index.module.d.ts +9 -0
  130. package/other/tree/src/public_api.d.ts +4 -0
  131. package/other/tree/src/treeService.d.ts +59 -0
  132. package/package.json +96 -0
  133. package/type/formula/index.d.ts +1 -0
  134. package/type/formula/src/default/index.d.ts +19 -0
  135. package/type/formula/src/index.module.d.ts +8 -0
  136. package/type/formula/src/public_api.d.ts +2 -0
  137. package/type/index.d.ts +1 -0
  138. package/type/index.module.d.ts +11 -0
  139. package/type/lookup/index.d.ts +1 -0
  140. package/type/lookup/src/default/index.d.ts +31 -0
  141. package/type/lookup/src/index.module.d.ts +8 -0
  142. package/type/lookup/src/public_api.d.ts +2 -0
  143. package/type/tree/index.d.ts +1 -0
  144. package/type/tree/src/default/index.d.ts +31 -0
  145. package/type/tree/src/index.module.d.ts +8 -0
  146. package/type/tree/src/public_api.d.ts +2 -0
@@ -0,0 +1,411 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i3 from '@angular/forms';
6
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import * as i4 from 'ng-zorro-antd/select';
8
+ import { NzSelectModule } from 'ng-zorro-antd/select';
9
+ import * as i5 from 'ng-zorro-antd/input';
10
+ import { NzInputModule } from 'ng-zorro-antd/input';
11
+ import * as i6 from 'ng-zorro-antd/input-number';
12
+ import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
13
+ import { NzButtonModule } from 'ng-zorro-antd/button';
14
+ import * as i8 from 'ng-zorro-antd/date-picker';
15
+ import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
16
+ import * as i9 from 'ng-zorro-antd/icon';
17
+ import { NzIconModule } from 'ng-zorro-antd/icon';
18
+ import * as i10 from '@ebuilding/biz-comm/components/lookup';
19
+ import { GramDeonLookUpModule } from '@ebuilding/biz-comm/components/lookup';
20
+ import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
21
+ import { FilterType, BracketType, SpecialField, CompareType, CompareConditions, CompareFieldType } from '@ebuilding/base/shared.util/static';
22
+ import _ from 'lodash';
23
+ import * as i1 from '@delon/theme';
24
+ import * as i7 from 'ng-zorro-antd/core/transition-patch';
25
+
26
+ class GramDeonFilterComponent {
27
+ http;
28
+ _data = null;
29
+ loading = true;
30
+ listItem = [];
31
+ title = null;
32
+ data = null;
33
+ tableData = [];
34
+ filterData = [];
35
+ itemOptions = {};
36
+ dataChange = new EventEmitter();
37
+ FilterTypeData = FilterType();
38
+ BracketTypeData = BracketType();
39
+ SpecialFieldData = SpecialField();
40
+ CompareTypeData = CompareType();
41
+ CompareConditionsData = CompareConditions().filter((item) => {
42
+ return item.value != 'IN' && item.value != 'LIKE' && item.value != 'LEFT_LIKE' && item.value != 'RIGHT_LIKE';
43
+ });
44
+ constructor(http) {
45
+ this.http = http;
46
+ }
47
+ ngOnInit() { }
48
+ ngOnChanges(changes) {
49
+ if (changes['data']) {
50
+ if (this.data && this.data.tableData) {
51
+ this.tableData = _.cloneDeep(this.data.tableData);
52
+ if (this.data.filterData && this.data.filterData.length > 0) {
53
+ this.data.filterData.forEach((item) => {
54
+ let arrTable = this.tableData.filter((table) => {
55
+ return table.code == item.cellTable;
56
+ });
57
+ if (arrTable && arrTable.length > 0) {
58
+ if (arrTable[0].listField && arrTable[0].listField.length > 0 && item.cellField) {
59
+ let arrField = arrTable[0].listField.filter((field) => {
60
+ return field.code == item.cellField;
61
+ });
62
+ if (arrField && arrField.length > 0) {
63
+ item['fieldType'] = arrField[0].type;
64
+ }
65
+ }
66
+ this.initValueConfig(item, arrTable[0].name);
67
+ }
68
+ });
69
+ }
70
+ this.filterData = this.data.filterData;
71
+ this.initPageData();
72
+ }
73
+ }
74
+ }
75
+ initPageData() {
76
+ let listItemId = [];
77
+ this.tableData.forEach((table) => {
78
+ if (table && table.listField && table.listField.length > 0) {
79
+ table.listField.forEach((field) => {
80
+ if (field.type == 'ITEM' && field.refId) {
81
+ listItemId.push(field.refId);
82
+ }
83
+ });
84
+ }
85
+ });
86
+ listItemId = [...new Set(listItemId)];
87
+ if (listItemId != null && listItemId.length > 0) {
88
+ this.http.post(`${ModuleAPI.user}/user/sys/listItemByIds`, { idList: listItemId }).subscribe((res) => {
89
+ if (res.success && res.result && res.result.length > 0) {
90
+ res.result.forEach((item) => {
91
+ this.itemOptions[item.id] = item.listDetail;
92
+ });
93
+ }
94
+ });
95
+ }
96
+ }
97
+ addCondition() {
98
+ if (this.filterData) {
99
+ this.filterData = [...this.filterData, {}];
100
+ }
101
+ else {
102
+ this.filterData = [{}];
103
+ }
104
+ this.dataChange.emit(this.filterData);
105
+ }
106
+ delCondition(i) {
107
+ if (this.filterData) {
108
+ this.filterData = this.filterData.filter((a, index) => {
109
+ return index != i;
110
+ });
111
+ }
112
+ this.dataChange.emit(this.filterData);
113
+ }
114
+ getFieldData(cellTable) {
115
+ let fieldArray = [];
116
+ this.tableData.forEach((item) => {
117
+ if (item.code == cellTable) {
118
+ fieldArray = item.listField;
119
+ }
120
+ });
121
+ return fieldArray;
122
+ }
123
+ /**
124
+ * 获取常用参数
125
+ * @param cellTable
126
+ * @param cellField
127
+ * @returns
128
+ */
129
+ getItemData(cellTable, cellField) {
130
+ let array = [];
131
+ this.tableData.forEach((table) => {
132
+ if (table.code == cellTable) {
133
+ table.listField.forEach((field) => {
134
+ if (field.type == 'ITEM' && field.code == cellField && field.refId) {
135
+ if (this.itemOptions && this.itemOptions[field.refId]) {
136
+ array = this.itemOptions[field.refId];
137
+ }
138
+ }
139
+ });
140
+ }
141
+ });
142
+ return array;
143
+ }
144
+ tableChange(e, item) {
145
+ item['cellField'] = null;
146
+ item['fieldType'] = null;
147
+ item['cellValue'] = null;
148
+ item['cellMultiple'] = null;
149
+ }
150
+ fieldChange(e, item) {
151
+ item['fieldType'] = null;
152
+ item['cellValue'] = null;
153
+ item['cellMultiple'] = null;
154
+ item['cellValueConfig'] = null;
155
+ if (item.cellTable && item.cellField) {
156
+ this.tableData.forEach((t) => {
157
+ if (t.code == item.cellTable) {
158
+ t.listField.forEach((f) => {
159
+ if (f.code == item.cellField) {
160
+ item.fieldType = f.type;
161
+ item.cellMultiple = f.multiple;
162
+ this.initValueConfig(item, t.name);
163
+ }
164
+ });
165
+ }
166
+ });
167
+ }
168
+ }
169
+ operationChange(e, item) {
170
+ if (item.cellOperation == 'SQL_RULES') {
171
+ item['cellTable'] = null;
172
+ item['cellField'] = null;
173
+ item['parameterTable'] = null;
174
+ item['parameterField'] = null;
175
+ item['cellValue'] = null;
176
+ }
177
+ }
178
+ refDataChange(e, item) {
179
+ if (e && e.id) {
180
+ item['cellValue'] = e.id;
181
+ item['cellValueInfo'] = e;
182
+ }
183
+ else {
184
+ item['cellValue'] = null;
185
+ item['cellValueInfo'] = null;
186
+ }
187
+ }
188
+ initValueConfig(item, tableName) {
189
+ item.cellValueConfig = {
190
+ type: 'ref2',
191
+ label: tableName,
192
+ selectType: 'single',
193
+ isRowData: true,
194
+ parameter: {
195
+ tableCode: item.cellTable,
196
+ fieldCode: item.cellField,
197
+ },
198
+ };
199
+ }
200
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFilterComponent, deps: [{ token: i1._HttpClient }], target: i0.ɵɵFactoryTarget.Component });
201
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramDeonFilterComponent, isStandalone: true, selector: "gram-filter", inputs: { title: "title", data: "data" }, outputs: { dataChange: "dataChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"header-box\">\r\n {{title}}\r\n <a (click)=\"addCondition()\">\r\n <i nz-icon nzType=\"plus-circle\"></i>\r\n \u65B0\u589E\r\n </a>\r\n</div>\r\n<div class=\"body-box\">\r\n <ng-container *ngIf=\"filterData!! && filterData.length>0;else tmpEmpty\">\r\n <ng-container *ngFor=\"let item of filterData;let i=index\">\r\n <ul>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"cellOperation\">\r\n <nz-select [(ngModel)]=\"item.cellOperation\" nzAllowClear (ngModelChange)=\"operationChange($event,item)\">\r\n <ng-container *ngFor=\"let option of CompareConditionsData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li *ngIf=\"item?.cellOperation!='SQL_RULES'\" class=\"conditionTable\">\r\n <nz-select [(ngModel)]=\"item.cellTable\" nzAllowClear (ngModelChange)=\"tableChange($event,item)\">\r\n <ng-container *ngFor=\"let option of tableData\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <li *ngIf=\"item?.cellOperation!='SQL_RULES'\" class=\"conditionField\">\r\n <nz-select [(ngModel)]=\"item.cellField\" nzAllowClear (ngModelChange)=\"fieldChange($event,item)\">\r\n <ng-container *ngFor=\"let option of getFieldData(item.cellTable)\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <ng-container *ngIf=\"item.cellTable!! && item.cellField!! && item.fieldType!!\">\r\n <div class=\"cellValue\">\r\n <ng-container [ngSwitch]=\"item.fieldType\">\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <nz-select [(ngModel)]=\"item.cellValue\">\r\n <nz-option nzValue=\"0\" nzLabel=\"\u5426\"></nz-option>\r\n <nz-option nzValue=\"1\" nzLabel=\"\u662F\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'DATETIME'\">\r\n <ng-container\r\n *ngIf=\"item?.cellOperation!='DATE_YEAR' \r\n && item?.cellOperation!='DATE_MONTH' \r\n && item?.cellOperation!='DATE_WEEK' \r\n && item?.cellOperation!='DATE_QUARTER'\"\r\n >\r\n <nz-date-picker nzShowTime nzFormat=\"yyyy-MM-dd HH:mm:ss\" [(ngModel)]=\"item.cellValue\"></nz-date-picker>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\" [nzPrecision]=\"0\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\" [nzPrecision]=\"2\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <ng-container *ngIf=\"item?.cellMultiple==true;else tmp1\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp1>\r\n <nz-select [(ngModel)]=\"item.cellValue\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of getItemData(item.cellTable,item.cellField)\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <ng-container *ngIf=\"item?.cellMultiple==true;else tmp2\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp2>\r\n <gram-lookup\r\n [config]=\"item.cellValueConfig\"\r\n [data]=\"item.cellValueInfo\"\r\n (valueChange)=\"refDataChange($event,item)\"\r\n ></gram-lookup>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </li>\r\n <li *ngIf=\"item?.cellOperation=='SQL_RULES' \">\r\n <div class=\"cellValue\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </div>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"cellFunction\">\r\n <nz-select [(ngModel)]=\"item.cellFunction\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of FilterTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <div class=\"btnDel\">\r\n <a (click)=\"delCondition(i)\">\r\n <i nz-icon nzType=\"delete\"></i>\r\n </a>\r\n </div>\r\n </ul>\r\n </ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #tmpEmpty>\r\n <div class=\"empty\">\r\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;font-size:12px;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .header-box{display:flex;align-items:center;padding:8px 10px;background:#edeff3;border-bottom:1px solid #eaeaea}:host ::ng-deep .header-box i{margin-left:15px}:host ::ng-deep .body-box{display:inline-block;padding:15px 0 0}:host ::ng-deep .body-box ul{position:relative;display:flex;align-items:center;margin:0;padding:0 10px 10px}:host ::ng-deep .body-box ul li{display:flex;flex-direction:column;padding:0 10px 0 0}:host ::ng-deep .body-box .btnAdd{padding:8px 10px;border-top:1px solid #eaeaea}:host ::ng-deep .body-box .leftBracket,:host ::ng-deep .body-box .rightBracket{width:60px}:host ::ng-deep .body-box .cellOperation{width:140px}:host ::ng-deep .body-box .conditionTable,:host ::ng-deep .body-box .conditionField{width:200px}:host ::ng-deep .body-box .cellValue nz-select,:host ::ng-deep .body-box .cellValue .ant-input{width:190px}:host ::ng-deep .body-box .cellFunction{width:80px}:host ::ng-deep .between{margin:0 5px}:host ::ng-deep .empty{display:flex;padding:0 0 15px}:host ::ng-deep .empty .image{margin:auto}:host ::ng-deep .empty img{width:80px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i4.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i4.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i6.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i7.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i8.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-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", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i9.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: GramDeonLookUpModule }, { kind: "component", type: i10.GramDeonLookUpComponent, selector: "gram-lookup", inputs: ["placeholder", "config", "data", "noSave"], outputs: ["valueChange"] }] });
202
+ }
203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFilterComponent, decorators: [{
204
+ type: Component,
205
+ args: [{ selector: 'gram-filter', imports: [
206
+ CommonModule,
207
+ FormsModule,
208
+ ReactiveFormsModule,
209
+ NzSelectModule,
210
+ NzInputModule,
211
+ NzInputNumberModule,
212
+ NzButtonModule,
213
+ NzDatePickerModule,
214
+ NzIconModule,
215
+ GramDeonLookUpModule
216
+ ], template: "<div class=\"header-box\">\r\n {{title}}\r\n <a (click)=\"addCondition()\">\r\n <i nz-icon nzType=\"plus-circle\"></i>\r\n \u65B0\u589E\r\n </a>\r\n</div>\r\n<div class=\"body-box\">\r\n <ng-container *ngIf=\"filterData!! && filterData.length>0;else tmpEmpty\">\r\n <ng-container *ngFor=\"let item of filterData;let i=index\">\r\n <ul>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"cellOperation\">\r\n <nz-select [(ngModel)]=\"item.cellOperation\" nzAllowClear (ngModelChange)=\"operationChange($event,item)\">\r\n <ng-container *ngFor=\"let option of CompareConditionsData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li *ngIf=\"item?.cellOperation!='SQL_RULES'\" class=\"conditionTable\">\r\n <nz-select [(ngModel)]=\"item.cellTable\" nzAllowClear (ngModelChange)=\"tableChange($event,item)\">\r\n <ng-container *ngFor=\"let option of tableData\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <li *ngIf=\"item?.cellOperation!='SQL_RULES'\" class=\"conditionField\">\r\n <nz-select [(ngModel)]=\"item.cellField\" nzAllowClear (ngModelChange)=\"fieldChange($event,item)\">\r\n <ng-container *ngFor=\"let option of getFieldData(item.cellTable)\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <ng-container *ngIf=\"item.cellTable!! && item.cellField!! && item.fieldType!!\">\r\n <div class=\"cellValue\">\r\n <ng-container [ngSwitch]=\"item.fieldType\">\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <nz-select [(ngModel)]=\"item.cellValue\">\r\n <nz-option nzValue=\"0\" nzLabel=\"\u5426\"></nz-option>\r\n <nz-option nzValue=\"1\" nzLabel=\"\u662F\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'DATETIME'\">\r\n <ng-container\r\n *ngIf=\"item?.cellOperation!='DATE_YEAR' \r\n && item?.cellOperation!='DATE_MONTH' \r\n && item?.cellOperation!='DATE_WEEK' \r\n && item?.cellOperation!='DATE_QUARTER'\"\r\n >\r\n <nz-date-picker nzShowTime nzFormat=\"yyyy-MM-dd HH:mm:ss\" [(ngModel)]=\"item.cellValue\"></nz-date-picker>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\" [nzPrecision]=\"0\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\" [nzPrecision]=\"2\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <ng-container *ngIf=\"item?.cellMultiple==true;else tmp1\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp1>\r\n <nz-select [(ngModel)]=\"item.cellValue\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of getItemData(item.cellTable,item.cellField)\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <ng-container *ngIf=\"item?.cellMultiple==true;else tmp2\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp2>\r\n <gram-lookup\r\n [config]=\"item.cellValueConfig\"\r\n [data]=\"item.cellValueInfo\"\r\n (valueChange)=\"refDataChange($event,item)\"\r\n ></gram-lookup>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </li>\r\n <li *ngIf=\"item?.cellOperation=='SQL_RULES' \">\r\n <div class=\"cellValue\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </div>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"cellFunction\">\r\n <nz-select [(ngModel)]=\"item.cellFunction\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of FilterTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <div class=\"btnDel\">\r\n <a (click)=\"delCondition(i)\">\r\n <i nz-icon nzType=\"delete\"></i>\r\n </a>\r\n </div>\r\n </ul>\r\n </ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #tmpEmpty>\r\n <div class=\"empty\">\r\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;font-size:12px;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .header-box{display:flex;align-items:center;padding:8px 10px;background:#edeff3;border-bottom:1px solid #eaeaea}:host ::ng-deep .header-box i{margin-left:15px}:host ::ng-deep .body-box{display:inline-block;padding:15px 0 0}:host ::ng-deep .body-box ul{position:relative;display:flex;align-items:center;margin:0;padding:0 10px 10px}:host ::ng-deep .body-box ul li{display:flex;flex-direction:column;padding:0 10px 0 0}:host ::ng-deep .body-box .btnAdd{padding:8px 10px;border-top:1px solid #eaeaea}:host ::ng-deep .body-box .leftBracket,:host ::ng-deep .body-box .rightBracket{width:60px}:host ::ng-deep .body-box .cellOperation{width:140px}:host ::ng-deep .body-box .conditionTable,:host ::ng-deep .body-box .conditionField{width:200px}:host ::ng-deep .body-box .cellValue nz-select,:host ::ng-deep .body-box .cellValue .ant-input{width:190px}:host ::ng-deep .body-box .cellFunction{width:80px}:host ::ng-deep .between{margin:0 5px}:host ::ng-deep .empty{display:flex;padding:0 0 15px}:host ::ng-deep .empty .image{margin:auto}:host ::ng-deep .empty img{width:80px}\n"] }]
217
+ }], ctorParameters: () => [{ type: i1._HttpClient }], propDecorators: { title: [{
218
+ type: Input
219
+ }], data: [{
220
+ type: Input
221
+ }], dataChange: [{
222
+ type: Output
223
+ }] } });
224
+
225
+ class GramFilterCompareComponent {
226
+ loading = true;
227
+ /**
228
+ * 常量
229
+ */
230
+ FilterTypeData = FilterType();
231
+ BracketTypeData = BracketType();
232
+ SpecialFieldData = SpecialField();
233
+ CompareTypeData = CompareType();
234
+ CompareFieldTypeData = CompareFieldType();
235
+ CompareConditionsData = CompareConditions().filter((item) => {
236
+ return item.value != 'IN' && item.value != 'LIKE' && item.value != 'LEFT_LIKE' && item.value != 'RIGHT_LIKE';
237
+ });
238
+ /**
239
+ * 基础数据
240
+ */
241
+ tableFieldData;
242
+ sourceTableData;
243
+ fieldOptions;
244
+ filterData = [];
245
+ title = null;
246
+ data;
247
+ dataChange = new EventEmitter();
248
+ constructor() { }
249
+ ngOnInit() { }
250
+ ngOnChanges(changes) {
251
+ if (changes['data']) {
252
+ if (this.data) {
253
+ this.tableFieldData = _.cloneDeep(this.data.tableFieldData);
254
+ this.sourceTableData = _.cloneDeep(this.data.sourceTableData);
255
+ this.fieldOptions = _.cloneDeep(this.data.fieldOptions);
256
+ this.filterData = this.data.filterData;
257
+ if (this.filterData && this.filterData.length > 0) {
258
+ this.filterData.forEach((a) => {
259
+ this.tableFieldData.forEach((b) => {
260
+ if (b.value == a.cellField) {
261
+ a['cellFieldType'] = b.type;
262
+ a['cellFieldMultiple'] = b.multiple;
263
+ if (this.fieldOptions && this.fieldOptions[a.cellField]) {
264
+ a['cellFieldOptions'] = this.fieldOptions[a.cellField];
265
+ }
266
+ }
267
+ });
268
+ });
269
+ }
270
+ }
271
+ }
272
+ }
273
+ addCondition() {
274
+ if (this.filterData) {
275
+ this.filterData = [
276
+ ...this.filterData,
277
+ {
278
+ cellOperation: 'EQ',
279
+ cellType: 'FIELD',
280
+ },
281
+ ];
282
+ }
283
+ else {
284
+ this.filterData = [
285
+ {
286
+ cellOperation: 'EQ',
287
+ cellType: 'FIELD',
288
+ },
289
+ ];
290
+ }
291
+ this.dataChange.emit(this.filterData);
292
+ }
293
+ delCondition(i) {
294
+ if (this.filterData) {
295
+ this.filterData = this.filterData.filter((a, index) => {
296
+ return index != i;
297
+ });
298
+ }
299
+ this.dataChange.emit(this.filterData);
300
+ }
301
+ cellFieldChange(e, item) {
302
+ item['cellFieldType'] = null;
303
+ item['cellFieldOptions'] = null;
304
+ item['cellFieldMultiple'] = null;
305
+ if (item.cellField) {
306
+ this.tableFieldData.forEach((a) => {
307
+ if (a.value == item.cellField) {
308
+ item['cellFieldType'] = a.type;
309
+ item['cellFieldMultiple'] = a.multiple;
310
+ if (this.fieldOptions && this.fieldOptions[item.cellField]) {
311
+ item['cellFieldOptions'] = this.fieldOptions[item.cellField];
312
+ }
313
+ this.initValueConfig(item, a.name);
314
+ }
315
+ });
316
+ }
317
+ this.dataChange.emit(this.filterData);
318
+ }
319
+ tableChange(e, item) {
320
+ item['parameterField'] = null;
321
+ item['cellValue'] = null;
322
+ this.dataChange.emit(this.filterData);
323
+ }
324
+ getFieldData(parameterTable) {
325
+ let arr = [];
326
+ this.sourceTableData.forEach((item) => {
327
+ if (item.code == parameterTable) {
328
+ arr = item.listField;
329
+ }
330
+ });
331
+ return arr;
332
+ }
333
+ operationChange(e, item) {
334
+ if (item.cellOperation == 'SQL_RULES') {
335
+ item['cellTable'] = null;
336
+ item['cellField'] = null;
337
+ item['parameterTable'] = null;
338
+ item['parameterField'] = null;
339
+ item['cellValue'] = null;
340
+ }
341
+ this.dataChange.emit(this.filterData);
342
+ }
343
+ refDataChange(e, item) {
344
+ if (e && e.id) {
345
+ item['cellValue'] = e.id;
346
+ item['cellValueInfo'] = e;
347
+ }
348
+ else {
349
+ item['cellValue'] = null;
350
+ item['cellValueInfo'] = null;
351
+ }
352
+ }
353
+ initValueConfig(item, tableName) {
354
+ item.cellValueConfig = {
355
+ type: 'ref2',
356
+ label: tableName,
357
+ selectType: 'single',
358
+ isRowData: true,
359
+ parameter: {
360
+ tableCode: this.data?.tableCode,
361
+ fieldCode: item.cellField,
362
+ },
363
+ };
364
+ }
365
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramFilterCompareComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
366
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramFilterCompareComponent, isStandalone: true, selector: "gram-filter-compare", inputs: { title: "title", data: "data" }, outputs: { dataChange: "dataChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"header-box\">\r\n {{title}}\r\n <a (click)=\"addCondition()\">\r\n <i nz-icon nzType=\"plus-circle\"></i>\r\n \u65B0\u589E\r\n </a>\r\n</div>\r\n<div class=\"body-box\">\r\n <ng-container *ngIf=\"filterData!! && filterData.length>0;else tmpEmpty\">\r\n <ng-container *ngFor=\"let item of filterData;let i=index\">\r\n <ul>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <!-- \u5B57\u6BB5\u5339\u914D\u7C7B\u578B -->\r\n <li class=\"cellOperation\" *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <nz-select [(ngModel)]=\"item.cellType\">\r\n <ng-container *ngFor=\"let option of CompareFieldTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <!-- \u5B57\u6BB5 -->\r\n <li class=\"cellOperation\" *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <nz-select [(ngModel)]=\"item.cellField\" nzAllowClear (ngModelChange)=\"cellFieldChange($event,item)\">\r\n <ng-container *ngFor=\"let option of tableFieldData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <!-- \u64CD\u4F5C\u7B26 -->\r\n <li class=\"cellOperation\">\r\n <nz-select [(ngModel)]=\"item.cellOperation\" nzAllowClear (ngModelChange)=\"operationChange($event,item)\">\r\n <ng-container *ngFor=\"let option of CompareConditionsData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <ng-container *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <!-- \u5B57\u6BB5\u5339\u914D\u7C7B\u578B--\u81EA\u5B9A\u4E49\u503C -->\r\n <ng-container *ngIf=\"item.cellType=='CUSTOM' && item.cellFieldType!!\">\r\n <ng-container [ngSwitch]=\"item.cellFieldType\">\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <li class=\"cellOperation\">\r\n <ng-container *ngIf=\"item?.cellFieldMultiple==true;else tmp1\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp1>\r\n <nz-select [(ngModel)]=\"item.cellValue\">\r\n <ng-container *ngFor=\"let option of item.cellFieldOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <li class=\"cellOperation\">\r\n <nz-select [(ngModel)]=\"item.cellValue\">\r\n <ng-container *ngFor=\"let option of item.cellFieldOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <li class=\"cellOperation\">\r\n <ng-container *ngIf=\"item?.cellFieldMultiple==true;else tmp2\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp2>\r\n <gram-lookup\r\n [config]=\"item.cellValueConfig\"\r\n [data]=\"item.cellValueInfo\"\r\n (valueChange)=\"refDataChange($event,item)\"\r\n ></gram-lookup>\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXT'\">\r\n <li class=\"cellOperation\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXTAREA'\">\r\n <li class=\"cellOperation\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <li class=\"cellOperation\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\" [nzPrecision]=\"0\"></nz-input-number>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <li class=\"cellOperation\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\"></nz-input-number>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'DATETIME'\">\r\n <li class=\"cellOperation\">\r\n <nz-date-picker [(ngModel)]=\"item.cellValue\" nzShowTime nzFormat=\"yyyy-MM-dd HH:mm:ss\"></nz-date-picker>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <!-- \u5B57\u6BB5\u5339\u914D\u7C7B\u578B--\u5B57\u6BB5\u5339\u914D -->\r\n <ng-container *ngIf=\"item.cellType=='FIELD'\">\r\n <li class=\"conditionTable\">\r\n <nz-select [(ngModel)]=\"item.parameterTable\" nzAllowClear (ngModelChange)=\"tableChange($event,item)\">\r\n <ng-container *ngFor=\"let option of sourceTableData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <li class=\"conditionField\">\r\n <nz-select [(ngModel)]=\"item.parameterField\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of getFieldData(item.parameterTable)\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <li *ngIf=\"item?.cellOperation=='SQL_RULES' \">\r\n <div class=\"cellValue\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </div>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"cellFunction\">\r\n <nz-select [(ngModel)]=\"item.cellFunction\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of FilterTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <div class=\"btnDel\">\r\n <a (click)=\"delCondition(i)\">\r\n <i nz-icon nzType=\"delete\"></i>\r\n </a>\r\n </div>\r\n </ul>\r\n </ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #tmpEmpty>\r\n <div class=\"empty\">\r\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;font-size:12px;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .header-box{display:flex;align-items:center;padding:8px 10px;background:#edeff3;border-bottom:1px solid #eaeaea}:host ::ng-deep .header-box i{margin-left:15px}:host ::ng-deep .body-box{display:inline-block;padding:15px 0 0}:host ::ng-deep .body-box ul{position:relative;display:flex;align-items:center;margin:0;padding:0 10px 10px}:host ::ng-deep .body-box ul li{display:flex;flex-direction:column;padding:0 10px 0 0}:host ::ng-deep .body-box .btnAdd{padding:8px 10px;border-top:1px solid #eaeaea}:host ::ng-deep .body-box .leftBracket,:host ::ng-deep .body-box .rightBracket{width:60px}:host ::ng-deep .body-box .cellOperation{min-width:120px}:host ::ng-deep .body-box .conditionTable,:host ::ng-deep .body-box .conditionField{width:200px}:host ::ng-deep .body-box .cellValue nz-select,:host ::ng-deep .body-box .cellValue .ant-input{width:190px}:host ::ng-deep .body-box .cellFunction{width:80px}:host ::ng-deep .empty{display:flex;padding:0 0 15px}:host ::ng-deep .empty .image{margin:auto}:host ::ng-deep .empty img{width:80px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i4.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i4.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i6.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i7.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i8.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-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", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i9.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: GramDeonLookUpModule }, { kind: "component", type: i10.GramDeonLookUpComponent, selector: "gram-lookup", inputs: ["placeholder", "config", "data", "noSave"], outputs: ["valueChange"] }] });
367
+ }
368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramFilterCompareComponent, decorators: [{
369
+ type: Component,
370
+ args: [{ selector: 'gram-filter-compare', imports: [
371
+ CommonModule,
372
+ FormsModule,
373
+ ReactiveFormsModule,
374
+ NzSelectModule,
375
+ NzInputModule,
376
+ NzInputNumberModule,
377
+ NzButtonModule,
378
+ NzDatePickerModule,
379
+ NzIconModule,
380
+ GramDeonLookUpModule
381
+ ], template: "<div class=\"header-box\">\r\n {{title}}\r\n <a (click)=\"addCondition()\">\r\n <i nz-icon nzType=\"plus-circle\"></i>\r\n \u65B0\u589E\r\n </a>\r\n</div>\r\n<div class=\"body-box\">\r\n <ng-container *ngIf=\"filterData!! && filterData.length>0;else tmpEmpty\">\r\n <ng-container *ngFor=\"let item of filterData;let i=index\">\r\n <ul>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"leftBracket\">\r\n <nz-select [(ngModel)]=\"item.leftBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <!-- \u5B57\u6BB5\u5339\u914D\u7C7B\u578B -->\r\n <li class=\"cellOperation\" *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <nz-select [(ngModel)]=\"item.cellType\">\r\n <ng-container *ngFor=\"let option of CompareFieldTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <!-- \u5B57\u6BB5 -->\r\n <li class=\"cellOperation\" *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <nz-select [(ngModel)]=\"item.cellField\" nzAllowClear (ngModelChange)=\"cellFieldChange($event,item)\">\r\n <ng-container *ngFor=\"let option of tableFieldData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <!-- \u64CD\u4F5C\u7B26 -->\r\n <li class=\"cellOperation\">\r\n <nz-select [(ngModel)]=\"item.cellOperation\" nzAllowClear (ngModelChange)=\"operationChange($event,item)\">\r\n <ng-container *ngFor=\"let option of CompareConditionsData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <ng-container *ngIf=\"item?.cellOperation!='SQL_RULES'\">\r\n <!-- \u5B57\u6BB5\u5339\u914D\u7C7B\u578B--\u81EA\u5B9A\u4E49\u503C -->\r\n <ng-container *ngIf=\"item.cellType=='CUSTOM' && item.cellFieldType!!\">\r\n <ng-container [ngSwitch]=\"item.cellFieldType\">\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <li class=\"cellOperation\">\r\n <ng-container *ngIf=\"item?.cellFieldMultiple==true;else tmp1\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp1>\r\n <nz-select [(ngModel)]=\"item.cellValue\">\r\n <ng-container *ngFor=\"let option of item.cellFieldOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <li class=\"cellOperation\">\r\n <nz-select [(ngModel)]=\"item.cellValue\">\r\n <ng-container *ngFor=\"let option of item.cellFieldOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <li class=\"cellOperation\">\r\n <ng-container *ngIf=\"item?.cellFieldMultiple==true;else tmp2\">\u6682\u4E0D\u652F\u6301\u591A\u9009</ng-container>\r\n <ng-template #tmp2>\r\n <gram-lookup\r\n [config]=\"item.cellValueConfig\"\r\n [data]=\"item.cellValueInfo\"\r\n (valueChange)=\"refDataChange($event,item)\"\r\n ></gram-lookup>\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXT'\">\r\n <li class=\"cellOperation\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXTAREA'\">\r\n <li class=\"cellOperation\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <li class=\"cellOperation\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\" [nzPrecision]=\"0\"></nz-input-number>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <li class=\"cellOperation\">\r\n <nz-input-number [(ngModel)]=\"item.cellValue\" [nzStep]=\"1\"></nz-input-number>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'DATETIME'\">\r\n <li class=\"cellOperation\">\r\n <nz-date-picker [(ngModel)]=\"item.cellValue\" nzShowTime nzFormat=\"yyyy-MM-dd HH:mm:ss\"></nz-date-picker>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <!-- \u5B57\u6BB5\u5339\u914D\u7C7B\u578B--\u5B57\u6BB5\u5339\u914D -->\r\n <ng-container *ngIf=\"item.cellType=='FIELD'\">\r\n <li class=\"conditionTable\">\r\n <nz-select [(ngModel)]=\"item.parameterTable\" nzAllowClear (ngModelChange)=\"tableChange($event,item)\">\r\n <ng-container *ngFor=\"let option of sourceTableData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n\r\n <li class=\"conditionField\">\r\n <nz-select [(ngModel)]=\"item.parameterField\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of getFieldData(item.parameterTable)\">\r\n <nz-option [nzValue]=\"option.code\" [nzLabel]=\"option.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <li *ngIf=\"item?.cellOperation=='SQL_RULES' \">\r\n <div class=\"cellValue\">\r\n <input nz-input [(ngModel)]=\"item.cellValue\" />\r\n </div>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"rightBracket\">\r\n <nz-select [(ngModel)]=\"item.rightBracket2\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of BracketTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"cellFunction\">\r\n <nz-select [(ngModel)]=\"item.cellFunction\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of FilterTypeData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <div class=\"btnDel\">\r\n <a (click)=\"delCondition(i)\">\r\n <i nz-icon nzType=\"delete\"></i>\r\n </a>\r\n </div>\r\n </ul>\r\n </ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #tmpEmpty>\r\n <div class=\"empty\">\r\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;font-size:12px;border:1px solid #eaeaea;border-radius:4px}:host ::ng-deep .header-box{display:flex;align-items:center;padding:8px 10px;background:#edeff3;border-bottom:1px solid #eaeaea}:host ::ng-deep .header-box i{margin-left:15px}:host ::ng-deep .body-box{display:inline-block;padding:15px 0 0}:host ::ng-deep .body-box ul{position:relative;display:flex;align-items:center;margin:0;padding:0 10px 10px}:host ::ng-deep .body-box ul li{display:flex;flex-direction:column;padding:0 10px 0 0}:host ::ng-deep .body-box .btnAdd{padding:8px 10px;border-top:1px solid #eaeaea}:host ::ng-deep .body-box .leftBracket,:host ::ng-deep .body-box .rightBracket{width:60px}:host ::ng-deep .body-box .cellOperation{min-width:120px}:host ::ng-deep .body-box .conditionTable,:host ::ng-deep .body-box .conditionField{width:200px}:host ::ng-deep .body-box .cellValue nz-select,:host ::ng-deep .body-box .cellValue .ant-input{width:190px}:host ::ng-deep .body-box .cellFunction{width:80px}:host ::ng-deep .empty{display:flex;padding:0 0 15px}:host ::ng-deep .empty .image{margin:auto}:host ::ng-deep .empty img{width:80px}\n"] }]
382
+ }], ctorParameters: () => [], propDecorators: { title: [{
383
+ type: Input
384
+ }], data: [{
385
+ type: Input
386
+ }], dataChange: [{
387
+ type: Output
388
+ }] } });
389
+
390
+ const components = [GramDeonFilterComponent, GramFilterCompareComponent];
391
+ class GramDeonFilterModule {
392
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
393
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFilterModule, imports: [GramDeonFilterComponent, GramFilterCompareComponent], exports: [GramDeonFilterComponent, GramFilterCompareComponent] });
394
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFilterModule, imports: [components] });
395
+ }
396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFilterModule, decorators: [{
397
+ type: NgModule,
398
+ args: [{
399
+ imports: [
400
+ ...components
401
+ ],
402
+ exports: [...components],
403
+ }]
404
+ }] });
405
+
406
+ /**
407
+ * Generated bundle index. Do not edit.
408
+ */
409
+
410
+ export { GramDeonFilterComponent, GramDeonFilterModule, GramFilterCompareComponent };
411
+ //# sourceMappingURL=components.filter.mjs.map