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