@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.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/components/filter/index.d.ts +1 -0
- package/components/filter/src/compare-filter/index.d.ts +44 -0
- package/components/filter/src/default/index.d.ts +41 -0
- package/components/filter/src/index.module.d.ts +8 -0
- package/components/filter/src/public_api.d.ts +3 -0
- package/components/lookup/index.d.ts +1 -0
- package/components/lookup/src/default/index.d.ts +28 -0
- package/components/lookup/src/index.module.d.ts +8 -0
- package/components/lookup/src/public_api.d.ts +2 -0
- package/fesm2022/components.filter.mjs +411 -0
- package/fesm2022/components.filter.mjs.map +1 -0
- package/fesm2022/components.lookup.mjs +161 -0
- package/fesm2022/components.lookup.mjs.map +1 -0
- package/fesm2022/ebuilding-biz-comm.mjs +7 -0
- package/fesm2022/ebuilding-biz-comm.mjs.map +1 -0
- package/fesm2022/other.card.mjs +419 -0
- package/fesm2022/other.card.mjs.map +1 -0
- package/fesm2022/other.control.mjs +176 -0
- package/fesm2022/other.control.mjs.map +1 -0
- package/fesm2022/other.dict.mjs +1181 -0
- package/fesm2022/other.dict.mjs.map +1 -0
- package/fesm2022/other.formula.mjs +558 -0
- package/fesm2022/other.formula.mjs.map +1 -0
- package/fesm2022/other.rule.mjs +735 -0
- package/fesm2022/other.rule.mjs.map +1 -0
- package/fesm2022/other.source.args.mjs +290 -0
- package/fesm2022/other.source.args.mjs.map +1 -0
- package/fesm2022/other.source.field-map.mjs +245 -0
- package/fesm2022/other.source.field-map.mjs.map +1 -0
- package/fesm2022/other.source.filter.mjs +295 -0
- package/fesm2022/other.source.filter.mjs.map +1 -0
- package/fesm2022/other.source.group.mjs +219 -0
- package/fesm2022/other.source.group.mjs.map +1 -0
- package/fesm2022/other.source.mjs +1485 -0
- package/fesm2022/other.source.mjs.map +1 -0
- package/fesm2022/other.source.order.mjs +243 -0
- package/fesm2022/other.source.order.mjs.map +1 -0
- package/fesm2022/other.source.table.mjs +326 -0
- package/fesm2022/other.source.table.mjs.map +1 -0
- package/fesm2022/other.tree.mjs +441 -0
- package/fesm2022/other.tree.mjs.map +1 -0
- package/fesm2022/type.formula.mjs +133 -0
- package/fesm2022/type.formula.mjs.map +1 -0
- package/fesm2022/type.lookup.mjs +256 -0
- package/fesm2022/type.lookup.mjs.map +1 -0
- package/fesm2022/type.mjs +674 -0
- package/fesm2022/type.mjs.map +1 -0
- package/fesm2022/type.tree.mjs +225 -0
- package/fesm2022/type.tree.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/other/card/index.d.ts +1 -0
- package/other/card/src/card-user/index.d.ts +31 -0
- package/other/card/src/card.service.d.ts +28 -0
- package/other/card/src/components/emp/index.d.ts +13 -0
- package/other/card/src/default/index.d.ts +48 -0
- package/other/card/src/index.module.d.ts +9 -0
- package/other/card/src/public_api.d.ts +3 -0
- package/other/control/index.d.ts +1 -0
- package/other/control/src/dict/index.d.ts +26 -0
- package/other/control/src/index.module.d.ts +7 -0
- package/other/control/src/public_api.d.ts +2 -0
- package/other/dict/index.d.ts +1 -0
- package/other/dict/src/field/index.d.ts +45 -0
- package/other/dict/src/field-info/index.d.ts +38 -0
- package/other/dict/src/field-read/index.d.ts +26 -0
- package/other/dict/src/index.module.d.ts +9 -0
- package/other/dict/src/public_api.d.ts +4 -0
- package/other/formula/index.d.ts +1 -0
- package/other/formula/src/default/index.d.ts +33 -0
- package/other/formula/src/form-item/index.d.ts +32 -0
- package/other/formula/src/form-setting/index.d.ts +32 -0
- package/other/formula/src/formula.service.d.ts +20 -0
- package/other/formula/src/index.module.d.ts +10 -0
- package/other/formula/src/public_api.d.ts +5 -0
- package/other/formula/src/rule-event/index.d.ts +23 -0
- package/other/rule/index.d.ts +1 -0
- package/other/rule/src/index.module.d.ts +16 -0
- package/other/rule/src/main/index.component.d.ts +34 -0
- package/other/rule/src/public_api.d.ts +2 -0
- package/other/rule/src/rule-change/index.component.d.ts +9 -0
- package/other/rule/src/rule-change-boolean/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-date/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-item/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-number/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-ref/index.component.d.ts +19 -0
- package/other/rule/src/rule-change-text/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-upload/index.component.d.ts +11 -0
- package/other/rule/src/rule-fixed/index.component.d.ts +13 -0
- package/other/rule/src/service/config.service.d.ts +43 -0
- package/other/rule/src/service/rule.service.d.ts +11 -0
- package/other/source/args/index.d.ts +1 -0
- package/other/source/args/src/basic.d.ts +49 -0
- package/other/source/args/src/default/index.d.ts +24 -0
- package/other/source/args/src/index.module.d.ts +7 -0
- package/other/source/args/src/public_api.d.ts +2 -0
- package/other/source/field-map/index.d.ts +1 -0
- package/other/source/field-map/src/basic.d.ts +39 -0
- package/other/source/field-map/src/default/index.d.ts +26 -0
- package/other/source/field-map/src/index.module.d.ts +7 -0
- package/other/source/field-map/src/public_api.d.ts +2 -0
- package/other/source/filter/index.d.ts +1 -0
- package/other/source/filter/src/basic.d.ts +45 -0
- package/other/source/filter/src/default/index.d.ts +26 -0
- package/other/source/filter/src/index.module.d.ts +8 -0
- package/other/source/filter/src/public_api.d.ts +3 -0
- package/other/source/filter/src/second/index.d.ts +30 -0
- package/other/source/group/index.d.ts +1 -0
- package/other/source/group/src/basic.d.ts +32 -0
- package/other/source/group/src/default/index.d.ts +26 -0
- package/other/source/group/src/index.module.d.ts +7 -0
- package/other/source/group/src/public_api.d.ts +2 -0
- package/other/source/index.d.ts +6 -0
- package/other/source/order/index.d.ts +1 -0
- package/other/source/order/src/basic.d.ts +39 -0
- package/other/source/order/src/default/index.d.ts +26 -0
- package/other/source/order/src/index.module.d.ts +7 -0
- package/other/source/order/src/public_api.d.ts +2 -0
- package/other/source/table/index.d.ts +1 -0
- package/other/source/table/src/basic.d.ts +62 -0
- package/other/source/table/src/default/index.d.ts +26 -0
- package/other/source/table/src/index.module.d.ts +7 -0
- package/other/source/table/src/public_api.d.ts +2 -0
- package/other/tree/index.d.ts +1 -0
- package/other/tree/src/components/form/index.d.ts +17 -0
- package/other/tree/src/components/tree/index.d.ts +19 -0
- package/other/tree/src/default/index.d.ts +18 -0
- package/other/tree/src/index.module.d.ts +9 -0
- package/other/tree/src/public_api.d.ts +4 -0
- package/other/tree/src/treeService.d.ts +59 -0
- package/package.json +96 -0
- package/type/formula/index.d.ts +1 -0
- package/type/formula/src/default/index.d.ts +19 -0
- package/type/formula/src/index.module.d.ts +8 -0
- package/type/formula/src/public_api.d.ts +2 -0
- package/type/index.d.ts +1 -0
- package/type/index.module.d.ts +11 -0
- package/type/lookup/index.d.ts +1 -0
- package/type/lookup/src/default/index.d.ts +31 -0
- package/type/lookup/src/index.module.d.ts +8 -0
- package/type/lookup/src/public_api.d.ts +2 -0
- package/type/tree/index.d.ts +1 -0
- package/type/tree/src/default/index.d.ts +31 -0
- package/type/tree/src/index.module.d.ts +8 -0
- package/type/tree/src/public_api.d.ts +2 -0
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, Input, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i4 from '@angular/forms';
|
|
6
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import * as i5$1 from 'ng-zorro-antd/select';
|
|
8
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
9
|
+
import * as i8 from 'ng-zorro-antd/table';
|
|
10
|
+
import { NzTableModule } from 'ng-zorro-antd/table';
|
|
11
|
+
import * as i9 from 'ng-zorro-antd/button';
|
|
12
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
13
|
+
import * as i12 from 'ng-zorro-antd/icon';
|
|
14
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
15
|
+
import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
|
|
16
|
+
import * as i13 from '@ebuilding/abc/empty';
|
|
17
|
+
import { GramDeonEmptyModule } from '@ebuilding/abc/empty';
|
|
18
|
+
import * as i5 from 'ng-zorro-antd/input';
|
|
19
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
20
|
+
import * as i6 from 'ng-zorro-antd/input-number';
|
|
21
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
22
|
+
import * as i1 from '@delon/theme';
|
|
23
|
+
import _ from 'lodash';
|
|
24
|
+
import * as i6$1 from '@ebuilding/biz-comm/components/lookup';
|
|
25
|
+
import { GramDeonLookUpModule } from '@ebuilding/biz-comm/components/lookup';
|
|
26
|
+
import { zip } from 'rxjs';
|
|
27
|
+
import * as i2 from '@ebuilding/base/components/drawer';
|
|
28
|
+
import * as i3$1 from 'ng-zorro-antd/message';
|
|
29
|
+
import * as i10 from 'ng-zorro-antd/core/transition-patch';
|
|
30
|
+
import * as i11 from 'ng-zorro-antd/core/wave';
|
|
31
|
+
|
|
32
|
+
class RuleSettingService {
|
|
33
|
+
http;
|
|
34
|
+
editOptions = [
|
|
35
|
+
{ value: 'true', label: '编辑' },
|
|
36
|
+
{ value: 'false', label: '只读' },
|
|
37
|
+
];
|
|
38
|
+
showOptions = [
|
|
39
|
+
{ value: 'true', label: '显示' },
|
|
40
|
+
{ value: 'false', label: '隐藏' },
|
|
41
|
+
];
|
|
42
|
+
requiredOptions = [
|
|
43
|
+
{ value: 'true', label: '必填' },
|
|
44
|
+
{ value: 'false', label: '不必填' },
|
|
45
|
+
];
|
|
46
|
+
constructor(http) {
|
|
47
|
+
this.http = http;
|
|
48
|
+
}
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleSettingService, deps: [{ token: i1._HttpClient }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: RuleSettingService, isStandalone: true, ngImport: i0 });
|
|
51
|
+
}
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleSettingService, decorators: [{
|
|
53
|
+
type: Directive
|
|
54
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }] });
|
|
55
|
+
|
|
56
|
+
class RuleConfigService {
|
|
57
|
+
/**
|
|
58
|
+
* 当前字段Key
|
|
59
|
+
*/
|
|
60
|
+
itemKey = null;
|
|
61
|
+
/**
|
|
62
|
+
* 当前字段对象
|
|
63
|
+
*/
|
|
64
|
+
itemInfo = null;
|
|
65
|
+
/**
|
|
66
|
+
* 当前字段下拉框数据源
|
|
67
|
+
*/
|
|
68
|
+
itemOptions = [];
|
|
69
|
+
/**
|
|
70
|
+
* 表单字段集合
|
|
71
|
+
*/
|
|
72
|
+
sourceFieldData = [];
|
|
73
|
+
/**
|
|
74
|
+
* 表单字段所有下拉框数据源
|
|
75
|
+
*/
|
|
76
|
+
sourceFieldOptions = null;
|
|
77
|
+
itemSelectType = null;
|
|
78
|
+
triggerType = [];
|
|
79
|
+
pythonData = [];
|
|
80
|
+
formulaData = [];
|
|
81
|
+
refConfig = {
|
|
82
|
+
type: '',
|
|
83
|
+
label: '',
|
|
84
|
+
pageId: '',
|
|
85
|
+
selectType: 'single',
|
|
86
|
+
isRowData: true,
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 初始化
|
|
90
|
+
* @param e
|
|
91
|
+
*/
|
|
92
|
+
init(e) {
|
|
93
|
+
this.refConfig = null;
|
|
94
|
+
this.itemInfo = e.fieldInfo;
|
|
95
|
+
this.sourceFieldData = e.listField;
|
|
96
|
+
this.itemKey = e.fieldInfo.itemKey;
|
|
97
|
+
/**
|
|
98
|
+
* 触发条件
|
|
99
|
+
*/
|
|
100
|
+
let arr = this.initTrigger();
|
|
101
|
+
this.triggerType = _.cloneDeep(arr);
|
|
102
|
+
if (this.itemInfo && this.itemInfo.fieldType == 'REF') {
|
|
103
|
+
this.refConfig = {
|
|
104
|
+
type: this.itemInfo?.itemType,
|
|
105
|
+
label: this.itemInfo?.fieldName,
|
|
106
|
+
pageId: this.itemInfo?.itemPageId,
|
|
107
|
+
selectType: 'single',
|
|
108
|
+
isRowData: true,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
initOptions(e) {
|
|
113
|
+
if (e != undefined && e != null) {
|
|
114
|
+
this.sourceFieldOptions = e;
|
|
115
|
+
if (e[this.itemInfo.itemKey]) {
|
|
116
|
+
this.itemOptions = e[this.itemInfo.itemKey];
|
|
117
|
+
}
|
|
118
|
+
this.sourceFieldData.forEach((item) => {
|
|
119
|
+
if (this.sourceFieldOptions[item.itemKey]) {
|
|
120
|
+
item['options'] = this.sourceFieldOptions[item.itemKey];
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
initTrigger() {
|
|
126
|
+
let arr = [
|
|
127
|
+
{
|
|
128
|
+
value: 'EMPTY',
|
|
129
|
+
label: '为空',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
value: 'NOT_EMPTY',
|
|
133
|
+
label: '不为空',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
value: 'FIXED_VALUE',
|
|
137
|
+
label: '固定值',
|
|
138
|
+
},
|
|
139
|
+
];
|
|
140
|
+
if (this.itemInfo.fieldType == 'ITEM' || this.itemInfo.fieldType == 'REF') {
|
|
141
|
+
arr.push({
|
|
142
|
+
value: 'SELECT_NOT_EQUALS',
|
|
143
|
+
label: '选择值不等于',
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
arr.push({
|
|
148
|
+
value: 'NOT_EQUALS',
|
|
149
|
+
label: '值不等于',
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
return arr;
|
|
153
|
+
}
|
|
154
|
+
initText(arr) {
|
|
155
|
+
arr.push({ value: 'LENGTH', label: '变更长度限制' });
|
|
156
|
+
}
|
|
157
|
+
initNumber(arr) {
|
|
158
|
+
arr.push({ value: 'NUMBER', label: '变更大小限制' });
|
|
159
|
+
}
|
|
160
|
+
initDate(arr) {
|
|
161
|
+
//arr.push({ value: "MIN_LE", label: "变更大小限制" });
|
|
162
|
+
}
|
|
163
|
+
initBoolean(arr) { }
|
|
164
|
+
initSelect(arr) {
|
|
165
|
+
arr.push({ value: 'HIDE_SELECT', label: '隐藏部分选项' });
|
|
166
|
+
arr.push({ value: 'SHOW_SELECT', label: '显示部分选项' });
|
|
167
|
+
}
|
|
168
|
+
initLookUp(arr) {
|
|
169
|
+
// arr.push({ value: "SELECTED", label: "选中某些项" });
|
|
170
|
+
}
|
|
171
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleConfigService, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
172
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: RuleConfigService, isStandalone: true, ngImport: i0 });
|
|
173
|
+
}
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleConfigService, decorators: [{
|
|
175
|
+
type: Directive
|
|
176
|
+
}] });
|
|
177
|
+
|
|
178
|
+
class RuleChangeTextComponent {
|
|
179
|
+
settingSrv;
|
|
180
|
+
configSrv;
|
|
181
|
+
item = null;
|
|
182
|
+
constructor(settingSrv, configSrv) {
|
|
183
|
+
this.settingSrv = settingSrv;
|
|
184
|
+
this.configSrv = configSrv;
|
|
185
|
+
}
|
|
186
|
+
ngOnInit() { }
|
|
187
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeTextComponent, deps: [{ token: RuleSettingService }, { token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
188
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeTextComponent, isStandalone: true, selector: "rule-change-text", inputs: { item: "item" }, providers: [RuleSettingService], ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u53D8\u66F4\u503C\" [(ngModel)]=\"item.changeValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'LENGTH'\">\r\n <div class=\"between\">\r\n <nz-input-number [(ngModel)]=\"item.minLength\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"2000\"></nz-input-number>\r\n <span>~</span>\r\n <nz-input-number [(ngModel)]=\"item.maxLength\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"2000\"></nz-input-number>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: NzSelectModule }, { kind: "component", type: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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"] }] });
|
|
189
|
+
}
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeTextComponent, decorators: [{
|
|
191
|
+
type: Component,
|
|
192
|
+
args: [{ selector: 'rule-change-text', providers: [RuleSettingService], imports: [
|
|
193
|
+
CommonModule,
|
|
194
|
+
FormsModule,
|
|
195
|
+
ReactiveFormsModule,
|
|
196
|
+
NzInputModule,
|
|
197
|
+
NzInputNumberModule,
|
|
198
|
+
NzSelectModule
|
|
199
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u53D8\u66F4\u503C\" [(ngModel)]=\"item.changeValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'LENGTH'\">\r\n <div class=\"between\">\r\n <nz-input-number [(ngModel)]=\"item.minLength\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"2000\"></nz-input-number>\r\n <span>~</span>\r\n <nz-input-number [(ngModel)]=\"item.maxLength\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"2000\"></nz-input-number>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"] }]
|
|
200
|
+
}], ctorParameters: () => [{ type: RuleSettingService }, { type: RuleConfigService }], propDecorators: { item: [{
|
|
201
|
+
type: Input
|
|
202
|
+
}] } });
|
|
203
|
+
|
|
204
|
+
class RuleChangeNumberComponent {
|
|
205
|
+
settingSrv;
|
|
206
|
+
configSrv;
|
|
207
|
+
item = null;
|
|
208
|
+
constructor(settingSrv, configSrv) {
|
|
209
|
+
this.settingSrv = settingSrv;
|
|
210
|
+
this.configSrv = configSrv;
|
|
211
|
+
}
|
|
212
|
+
ngOnInit() { }
|
|
213
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeNumberComponent, deps: [{ token: RuleSettingService }, { token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
214
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeNumberComponent, isStandalone: true, selector: "rule-change-number", inputs: { item: "item" }, providers: [RuleSettingService], ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u53D8\u66F4\u503C\" [(ngModel)]=\"item.changeValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'NUMBER'\">\r\n <div class=\"between\">\r\n <nz-input-number [(ngModel)]=\"item.min\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"999999\"></nz-input-number>\r\n <span>~</span>\r\n <nz-input-number [(ngModel)]=\"item.max\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"999999\"></nz-input-number>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: NzSelectModule }, { kind: "component", type: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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: GramDeonLookUpModule }] });
|
|
215
|
+
}
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeNumberComponent, decorators: [{
|
|
217
|
+
type: Component,
|
|
218
|
+
args: [{ selector: 'rule-change-number', providers: [RuleSettingService], imports: [
|
|
219
|
+
CommonModule,
|
|
220
|
+
FormsModule,
|
|
221
|
+
ReactiveFormsModule,
|
|
222
|
+
NzInputModule,
|
|
223
|
+
NzInputNumberModule,
|
|
224
|
+
NzSelectModule,
|
|
225
|
+
GramDeonLookUpModule
|
|
226
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u53D8\u66F4\u503C\" [(ngModel)]=\"item.changeValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'NUMBER'\">\r\n <div class=\"between\">\r\n <nz-input-number [(ngModel)]=\"item.min\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"999999\"></nz-input-number>\r\n <span>~</span>\r\n <nz-input-number [(ngModel)]=\"item.max\" [nzStep]=\"1\" [nzMin]=\"0\" [nzMax]=\"999999\"></nz-input-number>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"] }]
|
|
227
|
+
}], ctorParameters: () => [{ type: RuleSettingService }, { type: RuleConfigService }], propDecorators: { item: [{
|
|
228
|
+
type: Input
|
|
229
|
+
}] } });
|
|
230
|
+
|
|
231
|
+
class RuleChangeBooleanComponent {
|
|
232
|
+
settingSrv;
|
|
233
|
+
configSrv;
|
|
234
|
+
item = null;
|
|
235
|
+
constructor(settingSrv, configSrv) {
|
|
236
|
+
this.settingSrv = settingSrv;
|
|
237
|
+
this.configSrv = configSrv;
|
|
238
|
+
}
|
|
239
|
+
ngOnInit() { }
|
|
240
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeBooleanComponent, deps: [{ token: RuleSettingService }, { token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
241
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeBooleanComponent, isStandalone: true, selector: "rule-change-boolean", inputs: { item: "item" }, providers: [RuleSettingService], ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <nz-option nzValue=\"1\" nzLabel=\"\u662F\"></nz-option>\r\n <nz-option nzValue=\"0\" nzLabel=\"\u5426\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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: GramDeonLookUpModule }] });
|
|
242
|
+
}
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeBooleanComponent, decorators: [{
|
|
244
|
+
type: Component,
|
|
245
|
+
args: [{ selector: 'rule-change-boolean', providers: [RuleSettingService], imports: [
|
|
246
|
+
CommonModule,
|
|
247
|
+
FormsModule,
|
|
248
|
+
ReactiveFormsModule,
|
|
249
|
+
NzInputModule,
|
|
250
|
+
NzInputNumberModule,
|
|
251
|
+
NzSelectModule,
|
|
252
|
+
GramDeonLookUpModule
|
|
253
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <nz-option nzValue=\"1\" nzLabel=\"\u662F\"></nz-option>\r\n <nz-option nzValue=\"0\" nzLabel=\"\u5426\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"] }]
|
|
254
|
+
}], ctorParameters: () => [{ type: RuleSettingService }, { type: RuleConfigService }], propDecorators: { item: [{
|
|
255
|
+
type: Input
|
|
256
|
+
}] } });
|
|
257
|
+
|
|
258
|
+
class RuleChangeItemComponent {
|
|
259
|
+
settingSrv;
|
|
260
|
+
configSrv;
|
|
261
|
+
item = null;
|
|
262
|
+
constructor(settingSrv, configSrv) {
|
|
263
|
+
this.settingSrv = settingSrv;
|
|
264
|
+
this.configSrv = configSrv;
|
|
265
|
+
}
|
|
266
|
+
ngOnInit() { }
|
|
267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeItemComponent, deps: [{ token: RuleSettingService }, { token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
268
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeItemComponent, isStandalone: true, selector: "rule-change-item", inputs: { item: "item" }, providers: [RuleSettingService], ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'HIDE_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" [nzMaxTagCount]=\"9\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" [nzMaxTagCount]=\"9\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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: GramDeonLookUpModule }] });
|
|
269
|
+
}
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeItemComponent, decorators: [{
|
|
271
|
+
type: Component,
|
|
272
|
+
args: [{ selector: 'rule-change-item', providers: [RuleSettingService], imports: [
|
|
273
|
+
CommonModule,
|
|
274
|
+
FormsModule,
|
|
275
|
+
ReactiveFormsModule,
|
|
276
|
+
NzInputModule,
|
|
277
|
+
NzInputNumberModule,
|
|
278
|
+
NzSelectModule,
|
|
279
|
+
GramDeonLookUpModule
|
|
280
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'HIDE_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" [nzMaxTagCount]=\"9\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" [nzMaxTagCount]=\"9\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"] }]
|
|
281
|
+
}], ctorParameters: () => [{ type: RuleSettingService }, { type: RuleConfigService }], propDecorators: { item: [{
|
|
282
|
+
type: Input
|
|
283
|
+
}] } });
|
|
284
|
+
|
|
285
|
+
class RuleChangeDateComponent {
|
|
286
|
+
settingSrv;
|
|
287
|
+
configSrv;
|
|
288
|
+
item = null;
|
|
289
|
+
constructor(settingSrv, configSrv) {
|
|
290
|
+
this.settingSrv = settingSrv;
|
|
291
|
+
this.configSrv = configSrv;
|
|
292
|
+
}
|
|
293
|
+
ngOnInit() { }
|
|
294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeDateComponent, deps: [{ token: RuleSettingService }, { token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
295
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeDateComponent, isStandalone: true, selector: "rule-change-date", inputs: { item: "item" }, providers: [RuleSettingService], ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u53D8\u66F4\u503C\" [(ngModel)]=\"item.changeValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: NzSelectModule }, { kind: "component", type: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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: GramDeonLookUpModule }] });
|
|
296
|
+
}
|
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeDateComponent, decorators: [{
|
|
298
|
+
type: Component,
|
|
299
|
+
args: [{ selector: 'rule-change-date', providers: [RuleSettingService], imports: [
|
|
300
|
+
CommonModule,
|
|
301
|
+
FormsModule,
|
|
302
|
+
ReactiveFormsModule,
|
|
303
|
+
NzInputModule,
|
|
304
|
+
NzInputNumberModule,
|
|
305
|
+
NzSelectModule,
|
|
306
|
+
GramDeonLookUpModule
|
|
307
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u53D8\u66F4\u503C\" [(ngModel)]=\"item.changeValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"] }]
|
|
308
|
+
}], ctorParameters: () => [{ type: RuleSettingService }, { type: RuleConfigService }], propDecorators: { item: [{
|
|
309
|
+
type: Input
|
|
310
|
+
}] } });
|
|
311
|
+
|
|
312
|
+
class RuleChangeRefComponent {
|
|
313
|
+
settingSrv;
|
|
314
|
+
configSrv;
|
|
315
|
+
_item = null;
|
|
316
|
+
set item(value) {
|
|
317
|
+
this.initItem(value);
|
|
318
|
+
this._item = value;
|
|
319
|
+
}
|
|
320
|
+
get item() {
|
|
321
|
+
return this._item;
|
|
322
|
+
}
|
|
323
|
+
refConfig = null;
|
|
324
|
+
data = null;
|
|
325
|
+
constructor(settingSrv, configSrv) {
|
|
326
|
+
this.settingSrv = settingSrv;
|
|
327
|
+
this.configSrv = configSrv;
|
|
328
|
+
}
|
|
329
|
+
ngOnInit() { }
|
|
330
|
+
initItem(value) {
|
|
331
|
+
this.refConfig = null;
|
|
332
|
+
if (value) {
|
|
333
|
+
this.configSrv.sourceFieldData.forEach((item) => {
|
|
334
|
+
if (value.changeFieldKey == item.itemKey && item.fieldType == 'REF') {
|
|
335
|
+
this.data = item;
|
|
336
|
+
this.refConfig = {
|
|
337
|
+
type: item?.itemType,
|
|
338
|
+
label: item?.fieldName,
|
|
339
|
+
pageId: item?.itemPageId,
|
|
340
|
+
selectType: 'single',
|
|
341
|
+
isRowData: true,
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
refDataChange(e, item) {
|
|
348
|
+
item['changeValueInfo'] = e;
|
|
349
|
+
}
|
|
350
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeRefComponent, deps: [{ token: RuleSettingService }, { token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
351
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeRefComponent, isStandalone: true, selector: "rule-change-ref", inputs: { item: "item" }, providers: [RuleSettingService], ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <ng-container *ngIf=\"data.itemPageType == 'SELECT'; else tmpLookUp\">\r\n <nz-select [(ngModel)]=\"item.changeValueInfo\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of data.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n\r\n <ng-template #tmpLookUp>\r\n <gram-lookup [config]=\"refConfig\" [data]=\"item.changeValueInfo\" (valueChange)=\"refDataChange($event, item)\"></gram-lookup>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'HIDE_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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: GramDeonLookUpModule }, { kind: "component", type: i6$1.GramDeonLookUpComponent, selector: "gram-lookup", inputs: ["placeholder", "config", "data", "noSave"], outputs: ["valueChange"] }] });
|
|
352
|
+
}
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeRefComponent, decorators: [{
|
|
354
|
+
type: Component,
|
|
355
|
+
args: [{ selector: 'rule-change-ref', providers: [RuleSettingService], imports: [
|
|
356
|
+
CommonModule,
|
|
357
|
+
FormsModule,
|
|
358
|
+
ReactiveFormsModule,
|
|
359
|
+
NzInputModule,
|
|
360
|
+
NzInputNumberModule,
|
|
361
|
+
NzSelectModule,
|
|
362
|
+
GramDeonLookUpModule
|
|
363
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'CHANGE'\">\r\n <ng-container *ngIf=\"data.itemPageType == 'SELECT'; else tmpLookUp\">\r\n <nz-select [(ngModel)]=\"item.changeValueInfo\" nzAllowClear>\r\n <ng-container *ngFor=\"let option of data.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n\r\n <ng-template #tmpLookUp>\r\n <gram-lookup [config]=\"refConfig\" [data]=\"item.changeValueInfo\" (valueChange)=\"refDataChange($event, item)\"></gram-lookup>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'HIDE_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FORMULA'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.formulaData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SCRIPT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of configSrv.pythonData\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"] }]
|
|
364
|
+
}], ctorParameters: () => [{ type: RuleSettingService }, { type: RuleConfigService }], propDecorators: { item: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}] } });
|
|
367
|
+
|
|
368
|
+
class RuleChangeUploadComponent {
|
|
369
|
+
settingSrv;
|
|
370
|
+
item = null;
|
|
371
|
+
constructor(settingSrv) {
|
|
372
|
+
this.settingSrv = settingSrv;
|
|
373
|
+
}
|
|
374
|
+
ngOnInit() { }
|
|
375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeUploadComponent, deps: [{ token: RuleSettingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
376
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeUploadComponent, isStandalone: true, selector: "rule-change-upload", inputs: { item: "item" }, providers: [RuleSettingService], ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'HIDE_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.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: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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"] }] });
|
|
377
|
+
}
|
|
378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeUploadComponent, decorators: [{
|
|
379
|
+
type: Component,
|
|
380
|
+
args: [{ selector: 'rule-change-upload', providers: [RuleSettingService], imports: [
|
|
381
|
+
CommonModule,
|
|
382
|
+
FormsModule,
|
|
383
|
+
ReactiveFormsModule,
|
|
384
|
+
NzSelectModule,
|
|
385
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeType\">\r\n <ng-container *ngSwitchCase=\"'SHOW'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.showOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'EDITOR'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.editOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REQUIRED'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\">\r\n <ng-container *ngFor=\"let option of settingSrv.requiredOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'HIDE_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'SHOW_SELECT'\">\r\n <nz-select [(ngModel)]=\"item.changeValue\" nzMode=\"multiple\">\r\n <ng-container *ngFor=\"let option of item.options\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [":host ::ng-deep .between{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .between span{display:inline-block;padding:0 5px}\n"] }]
|
|
386
|
+
}], ctorParameters: () => [{ type: RuleSettingService }], propDecorators: { item: [{
|
|
387
|
+
type: Input
|
|
388
|
+
}] } });
|
|
389
|
+
|
|
390
|
+
class RuleChangeComponent {
|
|
391
|
+
item = null;
|
|
392
|
+
constructor() { }
|
|
393
|
+
ngOnInit() { }
|
|
394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
395
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleChangeComponent, isStandalone: true, selector: "rule-change", inputs: { item: "item" }, ngImport: i0, template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeFieldType\">\r\n <ng-container *ngSwitchCase=\"'TEXT'\">\r\n <rule-change-text [item]=\"item\"></rule-change-text>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXTAREA'\">\r\n <rule-change-text [item]=\"item\"></rule-change-text>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <rule-change-number [item]=\"item\"></rule-change-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <rule-change-number [item]=\"item\"></rule-change-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <rule-change-boolean [item]=\"item\"></rule-change-boolean>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <rule-change-item [item]=\"item\"></rule-change-item>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'DATETIME'\">\r\n <rule-change-date [item]=\"item\"></rule-change-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <rule-change-ref [item]=\"item\"></rule-change-ref>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ATTACHMENT'\">\r\n <rule-change-upload [item]=\"item\"></rule-change-upload>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: RuleChangeTextComponent, selector: "rule-change-text", inputs: ["item"] }, { kind: "component", type: RuleChangeNumberComponent, selector: "rule-change-number", inputs: ["item"] }, { kind: "component", type: RuleChangeBooleanComponent, selector: "rule-change-boolean", inputs: ["item"] }, { kind: "component", type: RuleChangeItemComponent, selector: "rule-change-item", inputs: ["item"] }, { kind: "component", type: RuleChangeDateComponent, selector: "rule-change-date", inputs: ["item"] }, { kind: "component", type: RuleChangeRefComponent, selector: "rule-change-ref", inputs: ["item"] }, { kind: "component", type: RuleChangeUploadComponent, selector: "rule-change-upload", inputs: ["item"] }] });
|
|
396
|
+
}
|
|
397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleChangeComponent, decorators: [{
|
|
398
|
+
type: Component,
|
|
399
|
+
args: [{ selector: 'rule-change', imports: [
|
|
400
|
+
CommonModule,
|
|
401
|
+
FormsModule,
|
|
402
|
+
ReactiveFormsModule,
|
|
403
|
+
RuleChangeTextComponent,
|
|
404
|
+
RuleChangeNumberComponent,
|
|
405
|
+
RuleChangeBooleanComponent,
|
|
406
|
+
RuleChangeItemComponent,
|
|
407
|
+
RuleChangeDateComponent,
|
|
408
|
+
RuleChangeRefComponent,
|
|
409
|
+
RuleChangeUploadComponent
|
|
410
|
+
], template: "<ng-container *ngIf=\"item!!\">\r\n <ng-container [ngSwitch]=\"item.changeFieldType\">\r\n <ng-container *ngSwitchCase=\"'TEXT'\">\r\n <rule-change-text [item]=\"item\"></rule-change-text>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXTAREA'\">\r\n <rule-change-text [item]=\"item\"></rule-change-text>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <rule-change-number [item]=\"item\"></rule-change-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <rule-change-number [item]=\"item\"></rule-change-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <rule-change-boolean [item]=\"item\"></rule-change-boolean>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <rule-change-item [item]=\"item\"></rule-change-item>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'DATETIME'\">\r\n <rule-change-date [item]=\"item\"></rule-change-date>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <rule-change-ref [item]=\"item\"></rule-change-ref>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ATTACHMENT'\">\r\n <rule-change-upload [item]=\"item\"></rule-change-upload>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n" }]
|
|
411
|
+
}], ctorParameters: () => [], propDecorators: { item: [{
|
|
412
|
+
type: Input
|
|
413
|
+
}] } });
|
|
414
|
+
|
|
415
|
+
class RuleFixedComponent {
|
|
416
|
+
configSrv;
|
|
417
|
+
fieldType = null;
|
|
418
|
+
item = null;
|
|
419
|
+
constructor(configSrv) {
|
|
420
|
+
this.configSrv = configSrv;
|
|
421
|
+
}
|
|
422
|
+
ngOnInit() { }
|
|
423
|
+
refDataChange(e, item) {
|
|
424
|
+
item['triggerValueInfo'] = e;
|
|
425
|
+
}
|
|
426
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleFixedComponent, deps: [{ token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
427
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RuleFixedComponent, isStandalone: true, selector: "rule-fixed", inputs: { fieldType: "fieldType", item: "item" }, ngImport: i0, template: "<ng-container *ngIf=\"item!! && configSrv.itemInfo!! && configSrv.itemInfo.fieldType!!\">\r\n <ng-container [ngSwitch]=\"configSrv.itemInfo.fieldType\">\r\n <ng-container *ngSwitchCase=\"'TEXT'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u56FA\u5B9A\u503C\" [(ngModel)]=\"item.triggerValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXTAREA'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u56FA\u5B9A\u503C\" [(ngModel)]=\"item.triggerValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <nz-input-number [nzStep]=\"1\" [nzPrecision]=\"0\" [(ngModel)]=\"item.triggerValue\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <nz-input-number placeholder=\"\u8F93\u5165\u56FA\u5B9A\u503C\" [(ngModel)]=\"item.triggerValue\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <nz-select [(ngModel)]=\"item.triggerValue\" nzAllowClear>\r\n <nz-option nzValue=\"1\" nzLabel=\"\u662F\"></nz-option>\r\n <nz-option nzValue=\"0\" nzLabel=\"\u5426\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <nz-select [(ngModel)]=\"item.triggerValue\" nzAllowClear>\r\n <ng-container *ngIf=\"configSrv.itemOptions!!\">\r\n <ng-container *ngFor=\"let option of configSrv.itemOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <ng-container *ngIf=\"configSrv?.itemSelectType == 'multiple'; else tmpSingle\">\r\n <label>\u6682\u4E0D\u652F\u6301\u56FA\u5B9A\u503C\u4E3A\u591A\u9009</label>\r\n </ng-container>\r\n <ng-template #tmpSingle>\r\n <ng-container *ngIf=\"configSrv.itemInfo.itemPageType == 'SELECT'; else tmpLookUp\">\r\n <nz-select [(ngModel)]=\"item.triggerValue\" nzAllowClear>\r\n <ng-container *ngIf=\"configSrv.itemOptions!!\">\r\n <ng-container *ngFor=\"let option of configSrv.itemOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #tmpLookUp>\r\n <gram-lookup [config]=\"configSrv.refConfig\" [data]=\"item.triggerValueInfo\"\r\n (valueChange)=\"refDataChange($event, item)\"></gram-lookup>\r\n</ng-template>", styles: [":host ::ng-deep{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: NzSelectModule }, { kind: "component", type: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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: GramDeonLookUpModule }, { kind: "component", type: i6$1.GramDeonLookUpComponent, selector: "gram-lookup", inputs: ["placeholder", "config", "data", "noSave"], outputs: ["valueChange"] }] });
|
|
428
|
+
}
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleFixedComponent, decorators: [{
|
|
430
|
+
type: Component,
|
|
431
|
+
args: [{ selector: 'rule-fixed', imports: [
|
|
432
|
+
CommonModule,
|
|
433
|
+
FormsModule,
|
|
434
|
+
ReactiveFormsModule,
|
|
435
|
+
NzInputModule,
|
|
436
|
+
NzInputNumberModule,
|
|
437
|
+
NzSelectModule,
|
|
438
|
+
GramDeonLookUpModule
|
|
439
|
+
], template: "<ng-container *ngIf=\"item!! && configSrv.itemInfo!! && configSrv.itemInfo.fieldType!!\">\r\n <ng-container [ngSwitch]=\"configSrv.itemInfo.fieldType\">\r\n <ng-container *ngSwitchCase=\"'TEXT'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u56FA\u5B9A\u503C\" [(ngModel)]=\"item.triggerValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'TEXTAREA'\">\r\n <input nz-input placeholder=\"\u8F93\u5165\u56FA\u5B9A\u503C\" [(ngModel)]=\"item.triggerValue\" />\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'INT'\">\r\n <nz-input-number [nzStep]=\"1\" [nzPrecision]=\"0\" [(ngModel)]=\"item.triggerValue\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'FLOAT'\">\r\n <nz-input-number placeholder=\"\u8F93\u5165\u56FA\u5B9A\u503C\" [(ngModel)]=\"item.triggerValue\"></nz-input-number>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'BOOLEAN'\">\r\n <nz-select [(ngModel)]=\"item.triggerValue\" nzAllowClear>\r\n <nz-option nzValue=\"1\" nzLabel=\"\u662F\"></nz-option>\r\n <nz-option nzValue=\"0\" nzLabel=\"\u5426\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'ITEM'\">\r\n <nz-select [(ngModel)]=\"item.triggerValue\" nzAllowClear>\r\n <ng-container *ngIf=\"configSrv.itemOptions!!\">\r\n <ng-container *ngFor=\"let option of configSrv.itemOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'REF'\">\r\n <ng-container *ngIf=\"configSrv?.itemSelectType == 'multiple'; else tmpSingle\">\r\n <label>\u6682\u4E0D\u652F\u6301\u56FA\u5B9A\u503C\u4E3A\u591A\u9009</label>\r\n </ng-container>\r\n <ng-template #tmpSingle>\r\n <ng-container *ngIf=\"configSrv.itemInfo.itemPageType == 'SELECT'; else tmpLookUp\">\r\n <nz-select [(ngModel)]=\"item.triggerValue\" nzAllowClear>\r\n <ng-container *ngIf=\"configSrv.itemOptions!!\">\r\n <ng-container *ngFor=\"let option of configSrv.itemOptions\">\r\n <nz-option [nzValue]=\"option.value\" [nzLabel]=\"option.label\"></nz-option>\r\n </ng-container>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault> </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<ng-template #tmpLookUp>\r\n <gram-lookup [config]=\"configSrv.refConfig\" [data]=\"item.triggerValueInfo\"\r\n (valueChange)=\"refDataChange($event, item)\"></gram-lookup>\r\n</ng-template>", styles: [":host ::ng-deep{display:inline-block}\n"] }]
|
|
440
|
+
}], ctorParameters: () => [{ type: RuleConfigService }], propDecorators: { fieldType: [{
|
|
441
|
+
type: Input
|
|
442
|
+
}], item: [{
|
|
443
|
+
type: Input
|
|
444
|
+
}] } });
|
|
445
|
+
|
|
446
|
+
class SettingRoleComponent {
|
|
447
|
+
http;
|
|
448
|
+
drawerRef;
|
|
449
|
+
msgSrv;
|
|
450
|
+
configSrv;
|
|
451
|
+
_config = null;
|
|
452
|
+
set config(value) {
|
|
453
|
+
this._config = value;
|
|
454
|
+
this.getPageData(value);
|
|
455
|
+
}
|
|
456
|
+
get config() {
|
|
457
|
+
return this._config;
|
|
458
|
+
}
|
|
459
|
+
loading = true;
|
|
460
|
+
pageData = [];
|
|
461
|
+
parameterData = [];
|
|
462
|
+
constructor(http, drawerRef, msgSrv, configSrv) {
|
|
463
|
+
this.http = http;
|
|
464
|
+
this.drawerRef = drawerRef;
|
|
465
|
+
this.msgSrv = msgSrv;
|
|
466
|
+
this.configSrv = configSrv;
|
|
467
|
+
}
|
|
468
|
+
ngOnInit() { }
|
|
469
|
+
getPageData(value) {
|
|
470
|
+
this.loading = true;
|
|
471
|
+
this.configSrv.init(_.cloneDeep(value));
|
|
472
|
+
new Promise((resolve) => {
|
|
473
|
+
zip(this.http.post(`${ModuleAPI.rule}/rule/python/listAll`), this.http.post(`${ModuleAPI.rule}/rule/formula/listByForm/${this.config.formId}`), this.http.post(`${this.config.itemAPI}`), this.http.post(`${ModuleAPI.rule}/rule/form/getInfoByField`, {
|
|
474
|
+
formId: this.config.formId,
|
|
475
|
+
fieldKey: this.configSrv.itemKey,
|
|
476
|
+
})).subscribe(([a, formula, op, rule]) => {
|
|
477
|
+
if (a.success && a.result) {
|
|
478
|
+
this.configSrv.pythonData = a.result;
|
|
479
|
+
}
|
|
480
|
+
if (formula && formula.success && formula.result) {
|
|
481
|
+
let arr = formula.result.filter((item) => {
|
|
482
|
+
return item.disFlag != true;
|
|
483
|
+
});
|
|
484
|
+
this.configSrv.formulaData = arr.map((item) => {
|
|
485
|
+
return {
|
|
486
|
+
value: item.code,
|
|
487
|
+
label: item.name,
|
|
488
|
+
};
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
if (op && op.success) {
|
|
492
|
+
this.configSrv.initOptions(op.result);
|
|
493
|
+
}
|
|
494
|
+
if (rule && rule.success && rule.result) {
|
|
495
|
+
if (rule.result.listItem) {
|
|
496
|
+
rule.result.listItem.forEach((item) => {
|
|
497
|
+
this.fieldChange(item);
|
|
498
|
+
if (item.changeFieldType == 'ITEM') {
|
|
499
|
+
if (item.changeValue) {
|
|
500
|
+
let type = null;
|
|
501
|
+
if (this.configSrv.sourceFieldData) {
|
|
502
|
+
this.configSrv.sourceFieldData.forEach((i) => {
|
|
503
|
+
if (i.itemKey == item.changeFieldKey) {
|
|
504
|
+
type = i.fieldType;
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
if (type == 'REF' || item.changeType == 'CHANGE') {
|
|
509
|
+
item.changeValue = item.changeValue;
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
item.changeValue = item.changeValue.split(',');
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
this.pageData = rule.result.listItem;
|
|
518
|
+
}
|
|
519
|
+
if (rule.result.listField) {
|
|
520
|
+
this.parameterData = rule.result.listField.map((item) => {
|
|
521
|
+
return item.fieldKey;
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
// this.configSrv.initOptions(this.itemOptions);
|
|
526
|
+
// this.fieldData = this.config.listField;
|
|
527
|
+
this.loading = false;
|
|
528
|
+
}, () => {
|
|
529
|
+
this.loading = false;
|
|
530
|
+
}, () => {
|
|
531
|
+
this.loading = false;
|
|
532
|
+
resolve();
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
btnAdd() {
|
|
537
|
+
this.pageData = [...this.pageData, {}];
|
|
538
|
+
}
|
|
539
|
+
btnDelete(e, i) {
|
|
540
|
+
this.pageData = this.pageData.filter((item, index, object) => {
|
|
541
|
+
return i != index;
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
btnClose() {
|
|
545
|
+
this.drawerRef.close({
|
|
546
|
+
type: 'close',
|
|
547
|
+
data: null,
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
btnSave() {
|
|
551
|
+
let checkResult = true;
|
|
552
|
+
if (this.pageData && this.pageData.length > 0) {
|
|
553
|
+
this.pageData.forEach((item, index) => {
|
|
554
|
+
if (checkResult) {
|
|
555
|
+
if (item.changeFieldType == 'TEXTAREA' || item.changeFieldType == 'TEXT') {
|
|
556
|
+
if (item.changeType == 'LENGTH' &&
|
|
557
|
+
item.minLength != undefined &&
|
|
558
|
+
item.minLength != null &&
|
|
559
|
+
item.maxLength != undefined &&
|
|
560
|
+
item.maxLength != null) {
|
|
561
|
+
if (item.minLength >= item.maxLength) {
|
|
562
|
+
checkResult = false;
|
|
563
|
+
this.msgSrv.warning(`第${(index = 1)}行配置中,字符最小长度必须小于最大长度`);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
else if (item.changeFieldType == 'INT' || item.changeFieldType == 'FLOAT') {
|
|
568
|
+
if (item.changeType == 'NUMBER' && item.min != undefined && item.min != null && item.max != undefined && item.max != null) {
|
|
569
|
+
if (item.min >= item.max) {
|
|
570
|
+
checkResult = false;
|
|
571
|
+
this.msgSrv.warning(`第${(index = 1)}行配置中,最小值必须小于最大值`);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
if (!checkResult) {
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
let postData = {
|
|
582
|
+
formId: this.config.formId,
|
|
583
|
+
fieldKey: this.configSrv.itemKey,
|
|
584
|
+
listItem: this.pageData,
|
|
585
|
+
listField: this.parameterData && this.parameterData.length > 0
|
|
586
|
+
? this.parameterData.map((item) => {
|
|
587
|
+
return {
|
|
588
|
+
fieldKey: item,
|
|
589
|
+
};
|
|
590
|
+
})
|
|
591
|
+
: [],
|
|
592
|
+
};
|
|
593
|
+
if (postData.listItem && postData.listItem.length > 0) {
|
|
594
|
+
postData.listItem.forEach((item) => {
|
|
595
|
+
if (item.changeFieldType == 'ITEM') {
|
|
596
|
+
if (item.changeValue && item.changeValue.length > 0) {
|
|
597
|
+
item.changeValue = item.changeValue.toString();
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
this.loading = true;
|
|
603
|
+
this.http.post(`${ModuleAPI.rule}/rule/form/saveData`, postData).subscribe((res) => {
|
|
604
|
+
if (res.success) {
|
|
605
|
+
this.msgSrv.success('保存成功!');
|
|
606
|
+
this.drawerRef.close({
|
|
607
|
+
type: 'save',
|
|
608
|
+
data: null,
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
this.loading = false;
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
fieldChange(e) {
|
|
615
|
+
let field = null;
|
|
616
|
+
let arr = [
|
|
617
|
+
{ value: 'CHANGE', label: '变更值' },
|
|
618
|
+
{ value: 'SHOW', label: '变更显示' },
|
|
619
|
+
{ value: 'EDITOR', label: '变更编辑' },
|
|
620
|
+
{ value: 'REQUIRED', label: '变更必填' },
|
|
621
|
+
];
|
|
622
|
+
this.configSrv.sourceFieldData.forEach((item) => {
|
|
623
|
+
if (item.itemKey == e.changeFieldKey) {
|
|
624
|
+
field = item;
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
if (field && field?.fieldType) {
|
|
628
|
+
switch (field.fieldType) {
|
|
629
|
+
case 'TEXT':
|
|
630
|
+
case 'TEXTAREA':
|
|
631
|
+
this.initText(arr);
|
|
632
|
+
break;
|
|
633
|
+
case 'INT':
|
|
634
|
+
case 'FLOAT':
|
|
635
|
+
this.initNumber(arr);
|
|
636
|
+
break;
|
|
637
|
+
case 'BOOLEAN':
|
|
638
|
+
this.initBoolean(arr);
|
|
639
|
+
break;
|
|
640
|
+
case 'DATETIME':
|
|
641
|
+
this.initDate(arr);
|
|
642
|
+
break;
|
|
643
|
+
case 'ITEM':
|
|
644
|
+
this.initSelect(arr);
|
|
645
|
+
break;
|
|
646
|
+
case 'REF':
|
|
647
|
+
this.initLookUp(arr);
|
|
648
|
+
break;
|
|
649
|
+
default:
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
e['changeFieldType'] = field.fieldType;
|
|
653
|
+
}
|
|
654
|
+
arr.push({ value: 'FORMULA', label: '已有表达式' });
|
|
655
|
+
arr.push({ value: 'SCRIPT', label: 'Python代码片段' });
|
|
656
|
+
e['changeTypeData'] = arr;
|
|
657
|
+
e['options'] = field?.options;
|
|
658
|
+
}
|
|
659
|
+
initText(arr) {
|
|
660
|
+
arr.push({ value: 'LENGTH', label: '变更长度限制' });
|
|
661
|
+
}
|
|
662
|
+
initNumber(arr) {
|
|
663
|
+
arr.push({ value: 'NUMBER', label: '变更大小限制' });
|
|
664
|
+
}
|
|
665
|
+
initDate(arr) {
|
|
666
|
+
//arr.push({ value: "MIN_LE", label: "变更大小限制" });
|
|
667
|
+
}
|
|
668
|
+
initBoolean(arr) { }
|
|
669
|
+
initSelect(arr) {
|
|
670
|
+
arr.push({ value: 'HIDE_SELECT', label: '隐藏部分选项' });
|
|
671
|
+
arr.push({ value: 'SHOW_SELECT', label: '显示部分选项' });
|
|
672
|
+
}
|
|
673
|
+
initLookUp(arr) {
|
|
674
|
+
// arr.push({ value: "SELECTED", label: "选中某些项" });
|
|
675
|
+
}
|
|
676
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SettingRoleComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzDrawerRef }, { token: i3$1.NzMessageService }, { token: RuleConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
677
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: SettingRoleComponent, isStandalone: true, selector: "setting-rule", inputs: { config: "config" }, providers: [RuleConfigService], ngImport: i0, template: "<div class=\"deon-body\">\r\n <div class=\"fields\">\r\n <label>\u9009\u62E9\u89C4\u5219\u6240\u9700\u53C2\u6570</label>\r\n <nz-select [(ngModel)]=\"parameterData\" nzMode=\"multiple\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\">\r\n <ng-container *ngFor=\"let option of configSrv.sourceFieldData\">\r\n <nz-option [nzValue]=\"option.itemKey\" [nzLabel]=\"option.itemLabel + '-' + option.tableName\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </div>\r\n <nz-table #basicTable class=\"default-table\" [nzShowPagination]=\"false\" [nzData]=\"pageData\" [nzLoading]=\"loading\" [nzNoResult]=\"noResult\">\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"60px\">\u5E8F\u53F7</th>\r\n <th nzWidth=\"150px\">\u89E6\u53D1\u7C7B\u578B</th>\r\n <th>\u89C4\u5219\u914D\u7F6E</th>\r\n <th nzWidth=\"60px\">\u64CD\u4F5C</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngIf=\"pageData!! && pageData.length > 0\">\r\n <tr *ngFor=\"let item of pageData; let index = index\" [ngClass]=\"{ 'tr-table': item.type == 'table' }\">\r\n <td>{{ index + 1 }}</td>\r\n <td>\r\n <nz-select [(ngModel)]=\"item.triggerType\">\r\n <ng-container *ngFor=\"let item of configSrv.triggerType\">\r\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </td>\r\n <td>\r\n <ul class=\"config-info\">\r\n <li *ngIf=\"item.triggerType == 'FIXED_VALUE' || item.triggerType == 'NOT_EQUALS' || item.triggerType == 'SELECT_NOT_EQUALS'\">\r\n <!-- \u56FA\u5B9A\u503C -->\r\n <rule-fixed [item]=\"item\"></rule-fixed>\r\n </li>\r\n <li class=\"changeField\">\r\n <!-- \u53D8\u66F4\u5BF9\u8C61 -->\r\n <nz-select [(ngModel)]=\"item.changeFieldKey\" nzAllowClear nzPlaceHolder=\"\u9009\u62E9\u53D8\u66F4\u5BF9\u8C61\" (ngModelChange)=\"fieldChange(item)\">\r\n <ng-container *ngFor=\"let option of configSrv.sourceFieldData\">\r\n <nz-option [nzValue]=\"option.itemKey\" [nzLabel]=\"option.itemLabel + '-' + option.tableName\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"changeType\">\r\n <!-- \u53D8\u66F4\u52A8\u4F5C -->\r\n <nz-select [(ngModel)]=\"item.changeType\" nzAllowClear nzPlaceHolder=\"\u9009\u62E9\u53D8\u66F4\u52A8\u4F5C\">\r\n <ng-container *ngFor=\"let option of item?.changeTypeData\">\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>\r\n <!-- \u53D8\u66F4\u5C5E\u6027 -->\r\n <rule-change [item]=\"item\"></rule-change>\r\n </li>\r\n </ul>\r\n </td>\r\n <td>\r\n <a (click)=\"btnDelete(item, index)\">\u5220\u9664</a>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"4\">\r\n <a nz-button nzType=\"link\" type=\"button\" (click)=\"btnAdd()\">+\u6DFB\u52A0</a>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </tbody>\r\n </nz-table>\r\n <ng-template #noResult>\r\n <div class=\"result-empty\">\r\n <gram-empty></gram-empty>\r\n </div>\r\n <div class=\"result-button\">\r\n <a nz-button nzType=\"link\" type=\"button\" (click)=\"btnAdd()\">+\u6DFB\u52A0</a>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u5173\u95ED</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", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-body{flex:1;padding:0 20px 20px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .deon-body::-webkit-scrollbar{width:8px}:host ::ng-deep .deon-body::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .deon-body::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .fields{display:flex;flex-direction:column;padding:10px 0 15px}:host ::ng-deep .fields .ant-select{flex:1;width:auto!important;height:auto!important;margin-top:5px}:host ::ng-deep .ant-input,:host ::ng-deep .ant-select{width:180px!important;height:32px}:host ::ng-deep .config-info{display:flex;flex:1;flex-direction:row;align-items:center;margin:0;padding:0;list-style:none}:host ::ng-deep .config-info li{display:flex;padding:0 15px 0 0}:host ::ng-deep .config-info .changeField{width:195px}:host ::ng-deep .config-info .changeField .ant-select{width:100%!important}:host ::ng-deep .config-info .changeType{width:135px}:host ::ng-deep .config-info .changeType .ant-select{width:100%!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.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: i5$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i5$1.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: NzTableModule }, { kind: "component", type: i8.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i8.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i8.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i8.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i8.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i8.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i9.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i10.ɵ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: i11.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i12.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: GramDeonEmptyModule }, { kind: "component", type: i13.GramDeonEmptyComponent, selector: "gram-empty", inputs: ["desc", "state"], outputs: ["emptyClick"] }, { kind: "component", type: RuleChangeComponent, selector: "rule-change", inputs: ["item"] }, { kind: "component", type: RuleFixedComponent, selector: "rule-fixed", inputs: ["fieldType", "item"] }] });
|
|
678
|
+
}
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SettingRoleComponent, decorators: [{
|
|
680
|
+
type: Component,
|
|
681
|
+
args: [{ selector: 'setting-rule', providers: [RuleConfigService], imports: [
|
|
682
|
+
CommonModule,
|
|
683
|
+
FormsModule,
|
|
684
|
+
ReactiveFormsModule,
|
|
685
|
+
NzSelectModule,
|
|
686
|
+
NzTableModule,
|
|
687
|
+
NzButtonModule,
|
|
688
|
+
NzIconModule,
|
|
689
|
+
GramDeonEmptyModule,
|
|
690
|
+
RuleChangeComponent,
|
|
691
|
+
RuleFixedComponent
|
|
692
|
+
], template: "<div class=\"deon-body\">\r\n <div class=\"fields\">\r\n <label>\u9009\u62E9\u89C4\u5219\u6240\u9700\u53C2\u6570</label>\r\n <nz-select [(ngModel)]=\"parameterData\" nzMode=\"multiple\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\">\r\n <ng-container *ngFor=\"let option of configSrv.sourceFieldData\">\r\n <nz-option [nzValue]=\"option.itemKey\" [nzLabel]=\"option.itemLabel + '-' + option.tableName\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </div>\r\n <nz-table #basicTable class=\"default-table\" [nzShowPagination]=\"false\" [nzData]=\"pageData\" [nzLoading]=\"loading\" [nzNoResult]=\"noResult\">\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"60px\">\u5E8F\u53F7</th>\r\n <th nzWidth=\"150px\">\u89E6\u53D1\u7C7B\u578B</th>\r\n <th>\u89C4\u5219\u914D\u7F6E</th>\r\n <th nzWidth=\"60px\">\u64CD\u4F5C</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngIf=\"pageData!! && pageData.length > 0\">\r\n <tr *ngFor=\"let item of pageData; let index = index\" [ngClass]=\"{ 'tr-table': item.type == 'table' }\">\r\n <td>{{ index + 1 }}</td>\r\n <td>\r\n <nz-select [(ngModel)]=\"item.triggerType\">\r\n <ng-container *ngFor=\"let item of configSrv.triggerType\">\r\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </td>\r\n <td>\r\n <ul class=\"config-info\">\r\n <li *ngIf=\"item.triggerType == 'FIXED_VALUE' || item.triggerType == 'NOT_EQUALS' || item.triggerType == 'SELECT_NOT_EQUALS'\">\r\n <!-- \u56FA\u5B9A\u503C -->\r\n <rule-fixed [item]=\"item\"></rule-fixed>\r\n </li>\r\n <li class=\"changeField\">\r\n <!-- \u53D8\u66F4\u5BF9\u8C61 -->\r\n <nz-select [(ngModel)]=\"item.changeFieldKey\" nzAllowClear nzPlaceHolder=\"\u9009\u62E9\u53D8\u66F4\u5BF9\u8C61\" (ngModelChange)=\"fieldChange(item)\">\r\n <ng-container *ngFor=\"let option of configSrv.sourceFieldData\">\r\n <nz-option [nzValue]=\"option.itemKey\" [nzLabel]=\"option.itemLabel + '-' + option.tableName\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </li>\r\n <li class=\"changeType\">\r\n <!-- \u53D8\u66F4\u52A8\u4F5C -->\r\n <nz-select [(ngModel)]=\"item.changeType\" nzAllowClear nzPlaceHolder=\"\u9009\u62E9\u53D8\u66F4\u52A8\u4F5C\">\r\n <ng-container *ngFor=\"let option of item?.changeTypeData\">\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>\r\n <!-- \u53D8\u66F4\u5C5E\u6027 -->\r\n <rule-change [item]=\"item\"></rule-change>\r\n </li>\r\n </ul>\r\n </td>\r\n <td>\r\n <a (click)=\"btnDelete(item, index)\">\u5220\u9664</a>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"4\">\r\n <a nz-button nzType=\"link\" type=\"button\" (click)=\"btnAdd()\">+\u6DFB\u52A0</a>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </tbody>\r\n </nz-table>\r\n <ng-template #noResult>\r\n <div class=\"result-empty\">\r\n <gram-empty></gram-empty>\r\n </div>\r\n <div class=\"result-button\">\r\n <a nz-button nzType=\"link\" type=\"button\" (click)=\"btnAdd()\">+\u6DFB\u52A0</a>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u5173\u95ED</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", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-body{flex:1;padding:0 20px 20px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .deon-body::-webkit-scrollbar{width:8px}:host ::ng-deep .deon-body::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .deon-body::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .fields{display:flex;flex-direction:column;padding:10px 0 15px}:host ::ng-deep .fields .ant-select{flex:1;width:auto!important;height:auto!important;margin-top:5px}:host ::ng-deep .ant-input,:host ::ng-deep .ant-select{width:180px!important;height:32px}:host ::ng-deep .config-info{display:flex;flex:1;flex-direction:row;align-items:center;margin:0;padding:0;list-style:none}:host ::ng-deep .config-info li{display:flex;padding:0 15px 0 0}:host ::ng-deep .config-info .changeField{width:195px}:host ::ng-deep .config-info .changeField .ant-select{width:100%!important}:host ::ng-deep .config-info .changeType{width:135px}:host ::ng-deep .config-info .changeType .ant-select{width:100%!important}\n"] }]
|
|
693
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzDrawerRef }, { type: i3$1.NzMessageService }, { type: RuleConfigService }], propDecorators: { config: [{
|
|
694
|
+
type: Input
|
|
695
|
+
}] } });
|
|
696
|
+
|
|
697
|
+
const COMPONENTS = [SettingRoleComponent];
|
|
698
|
+
const COMPONENTS_NOROUNT = [
|
|
699
|
+
RuleFixedComponent,
|
|
700
|
+
RuleChangeComponent,
|
|
701
|
+
RuleChangeTextComponent,
|
|
702
|
+
RuleChangeNumberComponent,
|
|
703
|
+
RuleChangeBooleanComponent,
|
|
704
|
+
RuleChangeItemComponent,
|
|
705
|
+
RuleChangeDateComponent,
|
|
706
|
+
RuleChangeRefComponent,
|
|
707
|
+
RuleChangeUploadComponent,
|
|
708
|
+
];
|
|
709
|
+
class RuleSettingModule {
|
|
710
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleSettingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
711
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: RuleSettingModule, imports: [SettingRoleComponent, RuleFixedComponent,
|
|
712
|
+
RuleChangeComponent,
|
|
713
|
+
RuleChangeTextComponent,
|
|
714
|
+
RuleChangeNumberComponent,
|
|
715
|
+
RuleChangeBooleanComponent,
|
|
716
|
+
RuleChangeItemComponent,
|
|
717
|
+
RuleChangeDateComponent,
|
|
718
|
+
RuleChangeRefComponent,
|
|
719
|
+
RuleChangeUploadComponent], exports: [SettingRoleComponent] });
|
|
720
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleSettingModule, imports: [COMPONENTS, COMPONENTS_NOROUNT] });
|
|
721
|
+
}
|
|
722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RuleSettingModule, decorators: [{
|
|
723
|
+
type: NgModule,
|
|
724
|
+
args: [{
|
|
725
|
+
imports: [...COMPONENTS, ...COMPONENTS_NOROUNT],
|
|
726
|
+
exports: [...COMPONENTS]
|
|
727
|
+
}]
|
|
728
|
+
}] });
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Generated bundle index. Do not edit.
|
|
732
|
+
*/
|
|
733
|
+
|
|
734
|
+
export { RuleSettingModule, SettingRoleComponent };
|
|
735
|
+
//# sourceMappingURL=other.rule.mjs.map
|