@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,558 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, Input, Component, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i5 from '@angular/forms';
6
+ import { FormsModule } from '@angular/forms';
7
+ import * as i6 from 'ng-zorro-antd/button';
8
+ import { NzButtonModule } from 'ng-zorro-antd/button';
9
+ import * as i9 from 'ng-zorro-antd/input';
10
+ import { NzInputModule } from 'ng-zorro-antd/input';
11
+ import * as i10 from 'ng-zorro-antd/spin';
12
+ import { NzSpinModule } from 'ng-zorro-antd/spin';
13
+ import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
14
+ import { GramCodemirrorModule } from '@ebuilding/abc/codemirror';
15
+ import _ from 'lodash';
16
+ import * as i1 from '@delon/theme';
17
+ import * as i2 from '@ebuilding/base/components/drawer';
18
+ import * as i3 from 'ng-zorro-antd/message';
19
+ import * as i7 from 'ng-zorro-antd/core/transition-patch';
20
+ import * as i8 from 'ng-zorro-antd/core/wave';
21
+ import { of, zip } from 'rxjs';
22
+
23
+ class FormulaService {
24
+ loading = true;
25
+ codeMirrorOptions = null;
26
+ /**
27
+ * ID
28
+ */
29
+ formulaValue = null;
30
+ /**
31
+ * Name
32
+ */
33
+ formulaTxt = null;
34
+ /**
35
+ * 左边项目集合
36
+ */
37
+ fieldData = [];
38
+ initOptions() {
39
+ this.codeMirrorOptions = {
40
+ autoCloseBrackets: true,
41
+ keywords: [],
42
+ textWrapping: true,
43
+ lineWrapping: true,
44
+ lineNumbers: false,
45
+ matchBrackets: true,
46
+ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/,
47
+ mode: "formula",
48
+ labelMap: null,
49
+ };
50
+ }
51
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaService, deps: [], target: i0.ɵɵFactoryTarget.Directive });
52
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: FormulaService, isStandalone: true, ngImport: i0 });
53
+ }
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaService, decorators: [{
55
+ type: Directive
56
+ }] });
57
+
58
+ class FormulaMainComponent {
59
+ http;
60
+ drawerRef;
61
+ msg;
62
+ formulaSrv;
63
+ _config = null;
64
+ loading = true;
65
+ name = null;
66
+ formulaValue = null;
67
+ formulaTxt = null;
68
+ fieldData = [];
69
+ codeMirrorOptions = {};
70
+ dataInfo = null;
71
+ set config(value) {
72
+ this._config = value;
73
+ this.getPageData();
74
+ }
75
+ get config() {
76
+ return this._config;
77
+ }
78
+ constructor(http, drawerRef, msg, formulaSrv) {
79
+ this.http = http;
80
+ this.drawerRef = drawerRef;
81
+ this.msg = msg;
82
+ this.formulaSrv = formulaSrv;
83
+ }
84
+ ngOnInit() { }
85
+ ngAfterViewInit() {
86
+ this.formulaSrv.codeMirrorOptions = {
87
+ autoCloseBrackets: true,
88
+ keywords: [],
89
+ textWrapping: true,
90
+ lineWrapping: true,
91
+ lineNumbers: false,
92
+ matchBrackets: true,
93
+ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/,
94
+ mode: "formula",
95
+ labelMap: null,
96
+ };
97
+ this.codeMirrorOptions = {
98
+ autoCloseBrackets: true,
99
+ keywords: [],
100
+ textWrapping: true,
101
+ lineWrapping: true,
102
+ lineNumbers: false,
103
+ matchBrackets: true,
104
+ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/,
105
+ mode: "formula",
106
+ labelMap: null,
107
+ };
108
+ }
109
+ getPageData() {
110
+ this.loading = true;
111
+ if (this.config && this.config.sourceField && this.config.sourceField.length > 0) {
112
+ this.fieldData = _.cloneDeep(this.config.sourceField);
113
+ }
114
+ if (this.config.type == "EDIT") {
115
+ this.http.post(`${ModuleAPI.rule}/rule/formula/getInfoById/${this.config.formulaId}`).subscribe((res) => {
116
+ if (res && res.success && res.result) {
117
+ this.dataInfo = res.result;
118
+ this.formulaValue = res.result.actualFormula;
119
+ this.formulaTxt = res.result.actualFormulaTxt;
120
+ }
121
+ this.loading = false;
122
+ });
123
+ }
124
+ else {
125
+ this.loading = false;
126
+ }
127
+ }
128
+ textChange(e) {
129
+ this.formulaTxt = e;
130
+ }
131
+ btnCancel() {
132
+ this.drawerRef.close({
133
+ type: 'close',
134
+ data: null,
135
+ });
136
+ }
137
+ btnSave() {
138
+ if (this.name == null || this.name == "") {
139
+ this.msg.warning("请输入表达式名称");
140
+ return;
141
+ }
142
+ if (this.config.type == "ADD") {
143
+ this.saveAdd();
144
+ }
145
+ else {
146
+ this.saveUpdate();
147
+ }
148
+ }
149
+ saveAdd() {
150
+ this.http.post(`${ModuleAPI.rule}/rule/formula/addInfo`, {
151
+ sourceId: this.config.sourceId,
152
+ sourceType: this.config.sourceType,
153
+ name: this.name,
154
+ actualFormula: this.formulaValue,
155
+ actualFormulaTxt: this.formulaTxt
156
+ }).subscribe((res) => {
157
+ if (res.success) {
158
+ this.msg.success("保存成功");
159
+ this.config["id"] = res.result;
160
+ this.drawerRef.close({
161
+ type: 'save',
162
+ data: {
163
+ formulaId: this.config["id"],
164
+ formulaValue: this.formulaValue
165
+ },
166
+ });
167
+ }
168
+ this.loading = false;
169
+ });
170
+ }
171
+ saveUpdate() {
172
+ this.http.post(`${ModuleAPI.rule}/rule/formula/updateInfo`, {
173
+ id: this.config.id,
174
+ sourceId: this.config.sourceId,
175
+ sourceType: this.config.sourceType,
176
+ name: this.name,
177
+ actualFormula: this.formulaValue,
178
+ actualFormulaTxt: this.formulaTxt
179
+ }).subscribe((res) => {
180
+ if (res.success) {
181
+ this.msg.success("保存成功");
182
+ this.drawerRef.close({
183
+ type: 'save',
184
+ data: {
185
+ formulaId: this.config["id"],
186
+ formulaValue: this.formulaValue
187
+ },
188
+ });
189
+ }
190
+ this.loading = false;
191
+ });
192
+ }
193
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzDrawerRef }, { token: i3.NzMessageService }, { token: FormulaService }], target: i0.ɵɵFactoryTarget.Component });
194
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaMainComponent, isStandalone: true, selector: "formula-main", inputs: { config: "config" }, providers: [FormulaService], ngImport: i0, template: "<div class=\"name\">\r\n <span>*</span>\r\n <label>\u8868\u8FBE\u5F0F\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n</div>\r\n\r\n<div class=\"codemirror\">\r\n <!-- <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror> -->\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .name{display:flex;align-items:center;padding:20px}:host ::ng-deep .name span{margin-right:3px;color:red}:host ::ng-deep .name label:after{padding:0 8px 0 5px;content:\":\"}:host ::ng-deep .name input{width:300px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.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: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { 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: "directive", type: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "ngmodule", type: GramCodemirrorModule }] });
195
+ }
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaMainComponent, decorators: [{
197
+ type: Component,
198
+ args: [{ selector: 'formula-main', providers: [FormulaService], imports: [
199
+ CommonModule,
200
+ FormsModule,
201
+ NzButtonModule,
202
+ NzInputModule,
203
+ NzSpinModule,
204
+ GramCodemirrorModule
205
+ ], template: "<div class=\"name\">\r\n <span>*</span>\r\n <label>\u8868\u8FBE\u5F0F\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n</div>\r\n\r\n<div class=\"codemirror\">\r\n <!-- <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror> -->\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .name{display:flex;align-items:center;padding:20px}:host ::ng-deep .name span{margin-right:3px;color:red}:host ::ng-deep .name label:after{padding:0 8px 0 5px;content:\":\"}:host ::ng-deep .name input{width:300px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px}\n"] }]
206
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzDrawerRef }, { type: i3.NzMessageService }, { type: FormulaService }], propDecorators: { config: [{
207
+ type: Input
208
+ }] } });
209
+
210
+ class FormulaFormSettingComponent {
211
+ http;
212
+ drawerRef;
213
+ msg;
214
+ _config = null;
215
+ loading = true;
216
+ name = null;
217
+ formulaValue = null;
218
+ formulaTxt = null;
219
+ fieldData = [];
220
+ codeMirrorOptions = {};
221
+ dataInfo = null;
222
+ set config(value) {
223
+ this._config = value;
224
+ this.getPageData();
225
+ }
226
+ get config() {
227
+ return this._config;
228
+ }
229
+ constructor(http, drawerRef, msg) {
230
+ this.http = http;
231
+ this.drawerRef = drawerRef;
232
+ this.msg = msg;
233
+ }
234
+ ngOnInit() { }
235
+ ngAfterViewInit() {
236
+ this.codeMirrorOptions = {
237
+ autoCloseBrackets: true,
238
+ keywords: [],
239
+ textWrapping: true,
240
+ lineWrapping: true,
241
+ lineNumbers: false,
242
+ matchBrackets: true,
243
+ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/,
244
+ mode: 'formula',
245
+ labelMap: null,
246
+ };
247
+ }
248
+ getFormulaInfo() {
249
+ if (this.config.type == 'EDIT') {
250
+ return this.http.post(`${ModuleAPI.rule}/rule/formula/getInfoById/${this.config.id}`);
251
+ }
252
+ else {
253
+ return of(null);
254
+ }
255
+ }
256
+ getPageData() {
257
+ this.loading = true;
258
+ new Promise((resolve) => {
259
+ zip(this.getFormulaInfo(), this.http.post(`${ModuleAPI.paas}/apaas/form/rule/${this.config.sourceId}`)).subscribe(([a, b]) => {
260
+ if (a && a.success && a.result) {
261
+ this.dataInfo = a.result;
262
+ this.name = this.dataInfo?.name;
263
+ this.formulaValue = this.dataInfo?.actualFormula;
264
+ this.formulaTxt = this.dataInfo?.actualFormulaTxt;
265
+ }
266
+ if (b.success && b.result) {
267
+ this.fieldData = [
268
+ {
269
+ label: '表单字段',
270
+ listField: b.result.map((res) => {
271
+ return {
272
+ key: res.itemKey,
273
+ label: `[${res.tableName}]-${res.itemLabel}`,
274
+ };
275
+ }),
276
+ },
277
+ ];
278
+ }
279
+ this.loading = false;
280
+ }, () => {
281
+ this.loading = false;
282
+ }, () => {
283
+ this.loading = false;
284
+ resolve();
285
+ });
286
+ });
287
+ }
288
+ textChange(e) {
289
+ this.formulaTxt = e;
290
+ }
291
+ btnCancel() {
292
+ this.drawerRef.close({
293
+ type: 'close',
294
+ data: null,
295
+ });
296
+ }
297
+ btnSave() {
298
+ if (this.name == null || this.name == '') {
299
+ this.msg.warning('请输入表达式名称');
300
+ return;
301
+ }
302
+ if (this.config.type == 'ADD') {
303
+ this.saveAdd();
304
+ }
305
+ else {
306
+ this.saveUpdate();
307
+ }
308
+ }
309
+ saveAdd() {
310
+ this.http
311
+ .post(`${ModuleAPI.rule}/rule/formula/addInfo`, {
312
+ sourceId: this.config.sourceId,
313
+ sourceType: 'FORM',
314
+ name: this.name,
315
+ actualFormula: this.formulaValue,
316
+ actualFormulaTxt: this.formulaTxt,
317
+ })
318
+ .subscribe((res) => {
319
+ if (res.success) {
320
+ this.msg.success('保存成功');
321
+ this.config['id'] = res.result;
322
+ this.drawerRef.close({
323
+ type: 'save',
324
+ data: null,
325
+ });
326
+ }
327
+ this.loading = false;
328
+ });
329
+ }
330
+ saveUpdate() {
331
+ this.http
332
+ .post(`${ModuleAPI.rule}/rule/formula/updateInfo`, {
333
+ id: this.config.id,
334
+ sourceId: this.config.sourceId,
335
+ sourceType: 'FORM',
336
+ name: this.name,
337
+ actualFormula: this.formulaValue,
338
+ actualFormulaTxt: this.formulaTxt,
339
+ })
340
+ .subscribe((res) => {
341
+ if (res.success) {
342
+ this.msg.success('保存成功');
343
+ this.drawerRef.close({
344
+ type: 'save',
345
+ data: null,
346
+ });
347
+ }
348
+ this.loading = false;
349
+ });
350
+ }
351
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormSettingComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzDrawerRef }, { token: i3.NzMessageService }], target: i0.ɵɵFactoryTarget.Component });
352
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaFormSettingComponent, isStandalone: true, selector: "formula-form-setting", inputs: { config: "config" }, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"name\">\r\n <label>\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n </div>\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <!-- <deon-codemirror\r\n #codemirror\r\n (textChange)=\"textChange($event)\"\r\n [options]=\"codeMirrorOptions\"\r\n [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\"\r\n >\r\n </deon-codemirror> -->\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .name{display:flex;flex-direction:row;align-items:center;padding:0 0 15px 20px}:host ::ng-deep .name label:before{content:\"*\";color:red;padding:0 5px 0 0}:host ::ng-deep .name label:after{content:\":\";padding:0 8px 0 5px}:host ::ng-deep .name input{width:260px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.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: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { 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: "directive", type: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i10.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: GramCodemirrorModule }] });
353
+ }
354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormSettingComponent, decorators: [{
355
+ type: Component,
356
+ args: [{ selector: 'formula-form-setting', imports: [
357
+ CommonModule,
358
+ FormsModule,
359
+ NzButtonModule,
360
+ NzInputModule,
361
+ NzSpinModule,
362
+ GramCodemirrorModule
363
+ ], template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"name\">\r\n <label>\u540D\u79F0</label>\r\n <input nz-input placeholder=\"\u8BF7\u8F93\u5165\u540D\u79F0\" [(ngModel)]=\"name\" />\r\n </div>\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <!-- <deon-codemirror\r\n #codemirror\r\n (textChange)=\"textChange($event)\"\r\n [options]=\"codeMirrorOptions\"\r\n [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\"\r\n >\r\n </deon-codemirror> -->\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .name{display:flex;flex-direction:row;align-items:center;padding:0 0 15px 20px}:host ::ng-deep .name label:before{content:\"*\";color:red;padding:0 5px 0 0}:host ::ng-deep .name label:after{content:\":\";padding:0 8px 0 5px}:host ::ng-deep .name input{width:260px}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"] }]
364
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzDrawerRef }, { type: i3.NzMessageService }], propDecorators: { config: [{
365
+ type: Input
366
+ }] } });
367
+
368
+ /**
369
+ * 为表单字段内部服务
370
+ */
371
+ class FormulaFormItemComponent {
372
+ http;
373
+ drawerRef;
374
+ msg;
375
+ _config = null;
376
+ loading = true;
377
+ name = null;
378
+ formulaValue = null;
379
+ formulaTxt = null;
380
+ fieldData = [];
381
+ codeMirrorOptions = {};
382
+ dataInfo = null;
383
+ set config(value) {
384
+ this._config = value;
385
+ this.getPageData();
386
+ }
387
+ get config() {
388
+ return this._config;
389
+ }
390
+ constructor(http, drawerRef, msg) {
391
+ this.http = http;
392
+ this.drawerRef = drawerRef;
393
+ this.msg = msg;
394
+ }
395
+ ngOnInit() { }
396
+ ngAfterViewInit() {
397
+ this.codeMirrorOptions = {
398
+ autoCloseBrackets: true,
399
+ keywords: [],
400
+ textWrapping: true,
401
+ lineWrapping: true,
402
+ lineNumbers: false,
403
+ matchBrackets: true,
404
+ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/,
405
+ mode: "formula",
406
+ labelMap: null,
407
+ };
408
+ }
409
+ getPageData() {
410
+ if (this.config && this.config.data && this.config.data.id) {
411
+ this.formulaValue = this.config.data.id;
412
+ this.formulaTxt = this.config.data.name;
413
+ }
414
+ this.loading = false;
415
+ }
416
+ textChange(e) {
417
+ if (!this.config.isView) {
418
+ this.formulaTxt = e;
419
+ }
420
+ }
421
+ btnCancel() {
422
+ this.drawerRef.close({
423
+ type: 'close',
424
+ data: null,
425
+ });
426
+ }
427
+ btnSave() {
428
+ if (this.formulaValue) {
429
+ this.drawerRef.close({
430
+ type: 'save',
431
+ data: {
432
+ id: this.formulaValue,
433
+ name: this.formulaTxt
434
+ }
435
+ });
436
+ }
437
+ else {
438
+ this.drawerRef.close({
439
+ type: 'save',
440
+ data: null
441
+ });
442
+ }
443
+ }
444
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormItemComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzDrawerRef }, { token: i3.NzMessageService }], target: i0.ɵɵFactoryTarget.Component });
445
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaFormItemComponent, isStandalone: true, selector: "formula-form-item", inputs: { config: "config" }, providers: [FormulaService], ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <!-- <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror> -->\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { 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: "directive", type: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i10.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: GramCodemirrorModule }] });
446
+ }
447
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaFormItemComponent, decorators: [{
448
+ type: Component,
449
+ args: [{ selector: 'formula-form-item', providers: [FormulaService], imports: [
450
+ CommonModule,
451
+ FormsModule,
452
+ NzButtonModule,
453
+ NzInputModule,
454
+ NzSpinModule,
455
+ GramCodemirrorModule
456
+ ], template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"codemirror\" *ngIf=\"codeMirrorOptions!!\">\r\n <!-- <deon-codemirror #codemirror (textChange)=\"textChange($event)\" [options]=\"codeMirrorOptions\" [fieldData]=\"fieldData\"\r\n [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror> -->\r\n </div>\r\n\r\n <div class=\"deon-button\" *ngIf=\"!config.isView\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 0;overflow:hidden}:host ::ng-deep .codemirror{flex:1;padding:0 20px 15px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .codemirror::-webkit-scrollbar{width:8px}:host ::ng-deep .codemirror::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .codemirror::-webkit-scrollbar-track{background-color:#fff}\n"] }]
457
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzDrawerRef }, { type: i3.NzMessageService }], propDecorators: { config: [{
458
+ type: Input
459
+ }] } });
460
+
461
+ class FormulaRuleEventComponent {
462
+ drawerRef;
463
+ _config = null;
464
+ loading = true;
465
+ formulaValue = null;
466
+ formulaTxt = null;
467
+ fieldData = [];
468
+ codeMirrorOptions = {};
469
+ set config(value) {
470
+ this._config = value;
471
+ this.getPageData();
472
+ }
473
+ get config() {
474
+ return this._config;
475
+ }
476
+ constructor(drawerRef) {
477
+ this.drawerRef = drawerRef;
478
+ }
479
+ ngOnInit() { }
480
+ ngAfterViewInit() {
481
+ this.codeMirrorOptions = {
482
+ autoCloseBrackets: true,
483
+ keywords: [],
484
+ textWrapping: true,
485
+ lineWrapping: true,
486
+ lineNumbers: false,
487
+ matchBrackets: true,
488
+ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/,
489
+ mode: "formula",
490
+ labelMap: null,
491
+ };
492
+ }
493
+ getPageData() {
494
+ this.loading = true;
495
+ if (this.config && this.config.sourceField && this.config.sourceField.length > 0) {
496
+ this.fieldData = _.cloneDeep(this.config.sourceField);
497
+ }
498
+ if (this.config?.value) {
499
+ this.formulaValue = this.config.value;
500
+ }
501
+ if (this.config?.text) {
502
+ this.formulaTxt = this.config.text;
503
+ }
504
+ this.loading = false;
505
+ }
506
+ textChange(e) {
507
+ this.formulaTxt = e;
508
+ }
509
+ btnCancel() {
510
+ this.drawerRef.close({
511
+ type: 'close',
512
+ data: null,
513
+ });
514
+ }
515
+ btnSave() {
516
+ this.drawerRef.close({
517
+ type: 'save',
518
+ data: {
519
+ value: this.formulaValue,
520
+ text: this.formulaTxt
521
+ },
522
+ });
523
+ }
524
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaRuleEventComponent, deps: [{ token: i2.NzDrawerRef }], target: i0.ɵɵFactoryTarget.Component });
525
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormulaRuleEventComponent, isStandalone: true, selector: "formula-rule-event", inputs: { config: "config" }, ngImport: i0, template: "<div class=\"codemirror\">\r\n <!-- <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror> -->\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .codemirror{flex:1;padding:20px 20px 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { 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: "directive", type: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: GramCodemirrorModule }] });
526
+ }
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaRuleEventComponent, decorators: [{
528
+ type: Component,
529
+ args: [{ selector: 'formula-rule-event', imports: [
530
+ CommonModule,
531
+ FormsModule,
532
+ NzButtonModule,
533
+ GramCodemirrorModule
534
+ ], template: "<div class=\"codemirror\">\r\n <!-- <deon-codemirror #codemirror [title]=\"''\" (textChange)=\"textChange($event)\" [fieldData]=\"fieldData\"\r\n [options]=\"codeMirrorOptions\" [(ngModel)]=\"formulaValue\">\r\n </deon-codemirror> -->\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnCancel()\" type=\"button\"><i nz-icon nzType=\"cancel\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" (click)=\"btnSave()\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .codemirror{flex:1;padding:20px 20px 15px}\n"] }]
535
+ }], ctorParameters: () => [{ type: i2.NzDrawerRef }], propDecorators: { config: [{
536
+ type: Input
537
+ }] } });
538
+
539
+ const components = [FormulaMainComponent, FormulaFormSettingComponent, FormulaFormItemComponent, FormulaRuleEventComponent];
540
+ class FormulaModule {
541
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
542
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FormulaModule, imports: [FormulaMainComponent, FormulaFormSettingComponent, FormulaFormItemComponent, FormulaRuleEventComponent], exports: [FormulaMainComponent, FormulaFormSettingComponent, FormulaFormItemComponent, FormulaRuleEventComponent] });
543
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaModule, imports: [components] });
544
+ }
545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormulaModule, decorators: [{
546
+ type: NgModule,
547
+ args: [{
548
+ imports: [...components],
549
+ exports: [...components],
550
+ }]
551
+ }] });
552
+
553
+ /**
554
+ * Generated bundle index. Do not edit.
555
+ */
556
+
557
+ export { FormulaFormItemComponent, FormulaFormSettingComponent, FormulaMainComponent, FormulaModule, FormulaRuleEventComponent };
558
+ //# sourceMappingURL=other.formula.mjs.map