@ebuilding/biz-comm 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/components/filter/index.d.ts +1 -0
  4. package/components/filter/src/compare-filter/index.d.ts +44 -0
  5. package/components/filter/src/default/index.d.ts +41 -0
  6. package/components/filter/src/index.module.d.ts +8 -0
  7. package/components/filter/src/public_api.d.ts +3 -0
  8. package/components/lookup/index.d.ts +1 -0
  9. package/components/lookup/src/default/index.d.ts +28 -0
  10. package/components/lookup/src/index.module.d.ts +8 -0
  11. package/components/lookup/src/public_api.d.ts +2 -0
  12. package/fesm2022/components.filter.mjs +411 -0
  13. package/fesm2022/components.filter.mjs.map +1 -0
  14. package/fesm2022/components.lookup.mjs +161 -0
  15. package/fesm2022/components.lookup.mjs.map +1 -0
  16. package/fesm2022/ebuilding-biz-comm.mjs +7 -0
  17. package/fesm2022/ebuilding-biz-comm.mjs.map +1 -0
  18. package/fesm2022/other.card.mjs +419 -0
  19. package/fesm2022/other.card.mjs.map +1 -0
  20. package/fesm2022/other.control.mjs +176 -0
  21. package/fesm2022/other.control.mjs.map +1 -0
  22. package/fesm2022/other.dict.mjs +1181 -0
  23. package/fesm2022/other.dict.mjs.map +1 -0
  24. package/fesm2022/other.formula.mjs +558 -0
  25. package/fesm2022/other.formula.mjs.map +1 -0
  26. package/fesm2022/other.rule.mjs +735 -0
  27. package/fesm2022/other.rule.mjs.map +1 -0
  28. package/fesm2022/other.source.args.mjs +290 -0
  29. package/fesm2022/other.source.args.mjs.map +1 -0
  30. package/fesm2022/other.source.field-map.mjs +245 -0
  31. package/fesm2022/other.source.field-map.mjs.map +1 -0
  32. package/fesm2022/other.source.filter.mjs +295 -0
  33. package/fesm2022/other.source.filter.mjs.map +1 -0
  34. package/fesm2022/other.source.group.mjs +219 -0
  35. package/fesm2022/other.source.group.mjs.map +1 -0
  36. package/fesm2022/other.source.mjs +1485 -0
  37. package/fesm2022/other.source.mjs.map +1 -0
  38. package/fesm2022/other.source.order.mjs +243 -0
  39. package/fesm2022/other.source.order.mjs.map +1 -0
  40. package/fesm2022/other.source.table.mjs +326 -0
  41. package/fesm2022/other.source.table.mjs.map +1 -0
  42. package/fesm2022/other.tree.mjs +441 -0
  43. package/fesm2022/other.tree.mjs.map +1 -0
  44. package/fesm2022/type.formula.mjs +133 -0
  45. package/fesm2022/type.formula.mjs.map +1 -0
  46. package/fesm2022/type.lookup.mjs +256 -0
  47. package/fesm2022/type.lookup.mjs.map +1 -0
  48. package/fesm2022/type.mjs +674 -0
  49. package/fesm2022/type.mjs.map +1 -0
  50. package/fesm2022/type.tree.mjs +225 -0
  51. package/fesm2022/type.tree.mjs.map +1 -0
  52. package/index.d.ts +2 -0
  53. package/other/card/index.d.ts +1 -0
  54. package/other/card/src/card-user/index.d.ts +31 -0
  55. package/other/card/src/card.service.d.ts +28 -0
  56. package/other/card/src/components/emp/index.d.ts +13 -0
  57. package/other/card/src/default/index.d.ts +48 -0
  58. package/other/card/src/index.module.d.ts +9 -0
  59. package/other/card/src/public_api.d.ts +3 -0
  60. package/other/control/index.d.ts +1 -0
  61. package/other/control/src/dict/index.d.ts +26 -0
  62. package/other/control/src/index.module.d.ts +7 -0
  63. package/other/control/src/public_api.d.ts +2 -0
  64. package/other/dict/index.d.ts +1 -0
  65. package/other/dict/src/field/index.d.ts +45 -0
  66. package/other/dict/src/field-info/index.d.ts +38 -0
  67. package/other/dict/src/field-read/index.d.ts +26 -0
  68. package/other/dict/src/index.module.d.ts +9 -0
  69. package/other/dict/src/public_api.d.ts +4 -0
  70. package/other/formula/index.d.ts +1 -0
  71. package/other/formula/src/default/index.d.ts +33 -0
  72. package/other/formula/src/form-item/index.d.ts +32 -0
  73. package/other/formula/src/form-setting/index.d.ts +32 -0
  74. package/other/formula/src/formula.service.d.ts +20 -0
  75. package/other/formula/src/index.module.d.ts +10 -0
  76. package/other/formula/src/public_api.d.ts +5 -0
  77. package/other/formula/src/rule-event/index.d.ts +23 -0
  78. package/other/rule/index.d.ts +1 -0
  79. package/other/rule/src/index.module.d.ts +16 -0
  80. package/other/rule/src/main/index.component.d.ts +34 -0
  81. package/other/rule/src/public_api.d.ts +2 -0
  82. package/other/rule/src/rule-change/index.component.d.ts +9 -0
  83. package/other/rule/src/rule-change-boolean/index.component.d.ts +13 -0
  84. package/other/rule/src/rule-change-date/index.component.d.ts +13 -0
  85. package/other/rule/src/rule-change-item/index.component.d.ts +13 -0
  86. package/other/rule/src/rule-change-number/index.component.d.ts +13 -0
  87. package/other/rule/src/rule-change-ref/index.component.d.ts +19 -0
  88. package/other/rule/src/rule-change-text/index.component.d.ts +13 -0
  89. package/other/rule/src/rule-change-upload/index.component.d.ts +11 -0
  90. package/other/rule/src/rule-fixed/index.component.d.ts +13 -0
  91. package/other/rule/src/service/config.service.d.ts +43 -0
  92. package/other/rule/src/service/rule.service.d.ts +11 -0
  93. package/other/source/args/index.d.ts +1 -0
  94. package/other/source/args/src/basic.d.ts +49 -0
  95. package/other/source/args/src/default/index.d.ts +24 -0
  96. package/other/source/args/src/index.module.d.ts +7 -0
  97. package/other/source/args/src/public_api.d.ts +2 -0
  98. package/other/source/field-map/index.d.ts +1 -0
  99. package/other/source/field-map/src/basic.d.ts +39 -0
  100. package/other/source/field-map/src/default/index.d.ts +26 -0
  101. package/other/source/field-map/src/index.module.d.ts +7 -0
  102. package/other/source/field-map/src/public_api.d.ts +2 -0
  103. package/other/source/filter/index.d.ts +1 -0
  104. package/other/source/filter/src/basic.d.ts +45 -0
  105. package/other/source/filter/src/default/index.d.ts +26 -0
  106. package/other/source/filter/src/index.module.d.ts +8 -0
  107. package/other/source/filter/src/public_api.d.ts +3 -0
  108. package/other/source/filter/src/second/index.d.ts +30 -0
  109. package/other/source/group/index.d.ts +1 -0
  110. package/other/source/group/src/basic.d.ts +32 -0
  111. package/other/source/group/src/default/index.d.ts +26 -0
  112. package/other/source/group/src/index.module.d.ts +7 -0
  113. package/other/source/group/src/public_api.d.ts +2 -0
  114. package/other/source/index.d.ts +6 -0
  115. package/other/source/order/index.d.ts +1 -0
  116. package/other/source/order/src/basic.d.ts +39 -0
  117. package/other/source/order/src/default/index.d.ts +26 -0
  118. package/other/source/order/src/index.module.d.ts +7 -0
  119. package/other/source/order/src/public_api.d.ts +2 -0
  120. package/other/source/table/index.d.ts +1 -0
  121. package/other/source/table/src/basic.d.ts +62 -0
  122. package/other/source/table/src/default/index.d.ts +26 -0
  123. package/other/source/table/src/index.module.d.ts +7 -0
  124. package/other/source/table/src/public_api.d.ts +2 -0
  125. package/other/tree/index.d.ts +1 -0
  126. package/other/tree/src/components/form/index.d.ts +17 -0
  127. package/other/tree/src/components/tree/index.d.ts +19 -0
  128. package/other/tree/src/default/index.d.ts +18 -0
  129. package/other/tree/src/index.module.d.ts +9 -0
  130. package/other/tree/src/public_api.d.ts +4 -0
  131. package/other/tree/src/treeService.d.ts +59 -0
  132. package/package.json +96 -0
  133. package/type/formula/index.d.ts +1 -0
  134. package/type/formula/src/default/index.d.ts +19 -0
  135. package/type/formula/src/index.module.d.ts +8 -0
  136. package/type/formula/src/public_api.d.ts +2 -0
  137. package/type/index.d.ts +1 -0
  138. package/type/index.module.d.ts +11 -0
  139. package/type/lookup/index.d.ts +1 -0
  140. package/type/lookup/src/default/index.d.ts +31 -0
  141. package/type/lookup/src/index.module.d.ts +8 -0
  142. package/type/lookup/src/public_api.d.ts +2 -0
  143. package/type/tree/index.d.ts +1 -0
  144. package/type/tree/src/default/index.d.ts +31 -0
  145. package/type/tree/src/index.module.d.ts +8 -0
  146. package/type/tree/src/public_api.d.ts +2 -0
@@ -0,0 +1,245 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Directive, Component, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i5 from '@angular/forms';
6
+ import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import * as i6 from '@kre-form/core';
8
+ import { FormlyModule } from '@kre-form/core';
9
+ import * as i7 from 'ng-zorro-antd/spin';
10
+ import { NzSpinModule } from 'ng-zorro-antd/spin';
11
+ import * as i8 from 'ng-zorro-antd/empty';
12
+ import { NzEmptyModule } from 'ng-zorro-antd/empty';
13
+ import * as i9 from 'ng-zorro-antd/button';
14
+ import { NzButtonModule } from 'ng-zorro-antd/button';
15
+ import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
16
+ import { zip } from 'rxjs';
17
+ import * as i1 from '@delon/theme';
18
+ import * as i2 from 'ng-zorro-antd/message';
19
+ import * as i3 from '@ebuilding/base/components/drawer';
20
+ import * as i10 from 'ng-zorro-antd/core/transition-patch';
21
+ import * as i11 from 'ng-zorro-antd/core/wave';
22
+
23
+ class BasicService {
24
+ http;
25
+ msgSrv;
26
+ _config = null;
27
+ loading = false;
28
+ form = new FormGroup({});
29
+ model = {};
30
+ options = {};
31
+ fields = [];
32
+ tableFieldData = [];
33
+ /**
34
+ * Api Address
35
+ */
36
+ getApi = null;
37
+ saveApi = null;
38
+ sourceApi = null;
39
+ set config(value) {
40
+ this._config = value;
41
+ this.initParameter();
42
+ this.getPageData();
43
+ }
44
+ get config() {
45
+ return this._config;
46
+ }
47
+ btnCloseEvent = new EventEmitter();
48
+ btnSaveEvent = new EventEmitter();
49
+ constructor(http, msgSrv) {
50
+ this.http = http;
51
+ this.msgSrv = msgSrv;
52
+ }
53
+ initParameter() {
54
+ this.getApi = `${ModuleAPI.paas}/apaas/source/fieldMap/getDataInfo`;
55
+ this.saveApi = `${ModuleAPI.paas}/apaas/source/fieldMap/saveData`;
56
+ this.sourceApi = `${ModuleAPI.paas}/apaas/table/field/listBySourceMaster`;
57
+ if (this.config?.getAPI) {
58
+ this.getApi = this.config.getAPI;
59
+ }
60
+ if (this.config?.saveAPI) {
61
+ this.saveApi = this.config.saveAPI;
62
+ }
63
+ if (this.config?.sourceAPI) {
64
+ this.sourceApi = this.config.sourceAPI;
65
+ }
66
+ }
67
+ getPageData() {
68
+ new Promise((resolve) => {
69
+ zip(this.http.post(this.sourceApi, {
70
+ sourceId: this.config.sourceId,
71
+ sourceType: this.config.sourceType,
72
+ }), this.http.post(this.getApi, {
73
+ sourceId: this.config.sourceId,
74
+ sourceType: this.config.sourceType,
75
+ })).subscribe(([a, b]) => {
76
+ if (a.success && a.result && Array.isArray(a.result)) {
77
+ this.tableFieldData = a.result
78
+ .filter((item) => {
79
+ return item?.type == 'TEXT' || item?.type == 'REF';
80
+ })
81
+ .map((item) => {
82
+ return {
83
+ value: item.id,
84
+ label: item.tableName + ' - ' + item.name,
85
+ };
86
+ });
87
+ }
88
+ if (b.success && b.result) {
89
+ let arr = [];
90
+ b.result.forEach((item) => {
91
+ arr.push({ fieldId: item?.fieldId });
92
+ });
93
+ this.model['listEmpField'] = arr;
94
+ }
95
+ this.getFieldConfig();
96
+ this.loading = false;
97
+ }, () => { }, () => {
98
+ resolve();
99
+ });
100
+ });
101
+ }
102
+ getFieldConfig() {
103
+ let config = [
104
+ {
105
+ type: 'repeat',
106
+ key: 'listEmpField',
107
+ props: {},
108
+ fieldArray: {
109
+ fieldGroup: [
110
+ {
111
+ type: 'select',
112
+ key: 'fieldId',
113
+ props: {
114
+ label: '表字段',
115
+ options: this.tableFieldData,
116
+ },
117
+ },
118
+ ],
119
+ },
120
+ },
121
+ ];
122
+ this.fields = config;
123
+ }
124
+ btnSave() {
125
+ let arr = [];
126
+ if (this.model && this.model.listEmpField && Array.isArray(this.model.listEmpField)) {
127
+ this.model.listEmpField.forEach((item) => {
128
+ if (item?.fieldId) {
129
+ arr.push(item.fieldId);
130
+ }
131
+ });
132
+ }
133
+ this.loading = true;
134
+ this.http
135
+ .post(this.saveApi, {
136
+ sourceId: this.config.sourceId,
137
+ sourceType: this.config.sourceType,
138
+ listField: arr,
139
+ })
140
+ .subscribe((res) => {
141
+ if (res.success) {
142
+ this.msgSrv.success('保存成功!');
143
+ this.btnSaveAfter(this.model);
144
+ }
145
+ this.loading = false;
146
+ }, () => {
147
+ this.loading = false;
148
+ });
149
+ }
150
+ /**
151
+ * 取消-关闭
152
+ */
153
+ btnClose() {
154
+ this.btnCloseEvent.emit({
155
+ type: 'close',
156
+ data: null,
157
+ });
158
+ }
159
+ btnSaveAfter(e) {
160
+ this.btnSaveEvent.emit({
161
+ type: 'save',
162
+ data: e,
163
+ });
164
+ }
165
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, deps: [{ token: i1._HttpClient }, { token: i2.NzMessageService }], target: i0.ɵɵFactoryTarget.Directive });
166
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: BasicService, isStandalone: true, inputs: { config: "config" }, outputs: { btnCloseEvent: "btnCloseEvent", btnSaveEvent: "btnSaveEvent" }, ngImport: i0 });
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, decorators: [{
169
+ type: Directive
170
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }], propDecorators: { config: [{
171
+ type: Input
172
+ }], btnCloseEvent: [{
173
+ type: Output
174
+ }], btnSaveEvent: [{
175
+ type: Output
176
+ }] } });
177
+
178
+ class SourceFieldMapMainComponent extends BasicService {
179
+ http;
180
+ msgSrv;
181
+ drawerRef;
182
+ constructor(http, msgSrv, drawerRef) {
183
+ super(http, msgSrv);
184
+ this.http = http;
185
+ this.msgSrv = msgSrv;
186
+ this.drawerRef = drawerRef;
187
+ }
188
+ ngOnInit() { }
189
+ ngOnDestroy() { }
190
+ ngOnChanges(changes) { }
191
+ /**
192
+ * 保存
193
+ * @param e
194
+ */
195
+ btnSaveAfter(e) {
196
+ this.drawerRef.close({
197
+ type: 'save',
198
+ data: e,
199
+ });
200
+ }
201
+ /**
202
+ * 取消
203
+ */
204
+ btnClose() {
205
+ this.drawerRef.close({
206
+ type: 'close',
207
+ data: null,
208
+ });
209
+ }
210
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFieldMapMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzMessageService }, { token: i3.NzDrawerRef }], target: i0.ɵɵFactoryTarget.Component });
211
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: SourceFieldMapMainComponent, isStandalone: true, selector: "source-field-map", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSave()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length > 0; else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading !== true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-from{padding:5px 20px 15px!important}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep form .apiurl .ant-input{max-width:100%!important}:host ::ng-deep form .panel-group .ant-input{max-width:95%!important}:host ::ng-deep form .panel-group .ant-select{max-width:95%!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i6.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i7.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i8.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { 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"] }] });
212
+ }
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFieldMapMainComponent, decorators: [{
214
+ type: Component,
215
+ args: [{ selector: 'source-field-map', imports: [
216
+ CommonModule,
217
+ FormsModule,
218
+ ReactiveFormsModule,
219
+ FormlyModule,
220
+ NzSpinModule,
221
+ NzEmptyModule,
222
+ NzButtonModule
223
+ ], template: "<form [formGroup]=\"form\" (ngSubmit)=\"btnSave()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length > 0; else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading !== true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-from{padding:5px 20px 15px!important}:host ::ng-deep form{flex:1;overflow:auto}:host ::ng-deep form .apiurl .ant-input{max-width:100%!important}:host ::ng-deep form .panel-group .ant-input{max-width:95%!important}:host ::ng-deep form .panel-group .ant-select{max-width:95%!important}\n"] }]
224
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }, { type: i3.NzDrawerRef }] });
225
+
226
+ const components = [SourceFieldMapMainComponent];
227
+ class SourceFieldMapModule {
228
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFieldMapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
229
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: SourceFieldMapModule, imports: [SourceFieldMapMainComponent], exports: [SourceFieldMapMainComponent] });
230
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFieldMapModule, imports: [components] });
231
+ }
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFieldMapModule, decorators: [{
233
+ type: NgModule,
234
+ args: [{
235
+ imports: [...components],
236
+ exports: [...components]
237
+ }]
238
+ }] });
239
+
240
+ /**
241
+ * Generated bundle index. Do not edit.
242
+ */
243
+
244
+ export { SourceFieldMapMainComponent, SourceFieldMapModule };
245
+ //# sourceMappingURL=other.source.field-map.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other.source.field-map.mjs","sources":["../../../../packages/biz-comm/other/source/field-map/src/basic.ts","../../../../packages/biz-comm/other/source/field-map/src/default/index.ts","../../../../packages/biz-comm/other/source/field-map/src/default/index.html","../../../../packages/biz-comm/other/source/field-map/src/index.module.ts","../../../../packages/biz-comm/other/source/field-map/other.source.field-map.ts"],"sourcesContent":["import { Directive, Input, Output, EventEmitter } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormOptions, FormlyFieldConfig } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { zip, of } from 'rxjs';\r\n\r\n@Directive()\r\nexport abstract class BasicService {\r\n _config: any = null;\r\n loading: boolean = false;\r\n form = new FormGroup({});\r\n model: any = {};\r\n options: FormlyFormOptions = {};\r\n fields: FormlyFieldConfig[] = [];\r\n tableFieldData: any[] = [];\r\n\r\n /**\r\n * Api Address\r\n */\r\n getApi: any = null;\r\n saveApi: any = null;\r\n sourceApi: any = null;\r\n\r\n @Input()\r\n set config(value: any) {\r\n this._config = value;\r\n this.initParameter();\r\n this.getPageData();\r\n }\r\n get config() {\r\n return this._config;\r\n }\r\n\r\n @Output() btnCloseEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() btnSaveEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor(public http: _HttpClient, public msgSrv: NzMessageService) { }\r\n\r\n initParameter() {\r\n this.getApi = `${ModuleAPI.paas}/apaas/source/fieldMap/getDataInfo`;\r\n this.saveApi = `${ModuleAPI.paas}/apaas/source/fieldMap/saveData`;\r\n this.sourceApi = `${ModuleAPI.paas}/apaas/table/field/listBySourceMaster`;\r\n\r\n if (this.config?.getAPI!!) {\r\n this.getApi = this.config.getAPI;\r\n }\r\n if (this.config?.saveAPI!!) {\r\n this.saveApi = this.config.saveAPI;\r\n }\r\n if (this.config?.sourceAPI!!) {\r\n this.sourceApi = this.config.sourceAPI;\r\n }\r\n }\r\n\r\n getPageData() {\r\n new Promise((resolve: any) => {\r\n zip(\r\n this.http.post(this.sourceApi, {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n }),\r\n this.http.post(this.getApi, {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n }),\r\n ).subscribe(\r\n ([a, b]) => {\r\n if (a.success && a.result!! && Array.isArray(a.result)) {\r\n this.tableFieldData = a.result\r\n .filter((item: any) => {\r\n return item?.type == 'TEXT' || item?.type == 'REF';\r\n })\r\n .map((item: any) => {\r\n return {\r\n value: item.id,\r\n label: item.tableName + ' - ' + item.name,\r\n };\r\n });\r\n }\r\n if (b.success && b.result!!) {\r\n let arr: any = [];\r\n b.result.forEach((item: any) => {\r\n arr.push({ fieldId: item?.fieldId });\r\n });\r\n this.model['listEmpField'] = arr;\r\n }\r\n this.getFieldConfig();\r\n this.loading = false;\r\n },\r\n () => { },\r\n () => {\r\n resolve();\r\n },\r\n );\r\n });\r\n }\r\n\r\n getFieldConfig() {\r\n let config: FormlyFieldConfig[] = [\r\n {\r\n type: 'repeat',\r\n key: 'listEmpField',\r\n props: {},\r\n fieldArray: {\r\n fieldGroup: [\r\n {\r\n type: 'select',\r\n key: 'fieldId',\r\n props: {\r\n label: '表字段',\r\n options: this.tableFieldData,\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n ];\r\n this.fields = config;\r\n }\r\n\r\n btnSave() {\r\n let arr: any[] = [];\r\n if (this.model!! && this.model.listEmpField!! && Array.isArray(this.model.listEmpField)) {\r\n this.model.listEmpField.forEach((item: any) => {\r\n if (item?.fieldId!!) {\r\n arr.push(item.fieldId);\r\n }\r\n });\r\n }\r\n this.loading = true;\r\n this.http\r\n .post(this.saveApi, {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n listField: arr,\r\n })\r\n .subscribe(\r\n (res: any) => {\r\n if (res.success) {\r\n this.msgSrv.success('保存成功!');\r\n this.btnSaveAfter(this.model);\r\n }\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n btnClose() {\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSaveAfter(e: any) {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n}\r\n","import { Component, SimpleChanges } from '@angular/core';\r\nimport { CommonModule } from \"@angular/common\";\r\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule } from '@kre-form/core';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\n\r\nimport { BasicService } from '../basic';\r\n\r\n@Component({\r\n selector: 'source-field-map',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n FormlyModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n NzButtonModule\r\n ]\r\n})\r\nexport class SourceFieldMapMainComponent extends BasicService {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override msgSrv: NzMessageService,\r\n public drawerRef: NzDrawerRef<any>) {\r\n super(http, msgSrv);\r\n }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngOnDestroy() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n /**\r\n * 保存\r\n * @param e\r\n */\r\n override btnSaveAfter(e: any) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n\r\n /**\r\n * 取消\r\n */\r\n override btnClose() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"btnSave()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length > 0; else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading !== true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n </nz-spin>\r\n</form>","import { NgModule } from '@angular/core';\r\nimport { SourceFieldMapMainComponent } from './default/index';\r\nconst components: any[] = [SourceFieldMapMainComponent];\r\n\r\n@NgModule({\r\n imports: [...components],\r\n exports: [...components]\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,CAAA,EAAA;;;AExBH,MAAM,UAAU,GAAU,CAAC,2BAA2B,CAAC;MAM1C,oBAAoB,CAAA;wGAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAApB,oBAAoB,EAAA,OAAA,EAAA,CANN,2BAA2B,CAAA,EAAA,OAAA,EAAA,CAA3B,2BAA2B,CAAA,EAAA,CAAA;AAMzC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAHlB,UAAU,CAAA,EAAA,CAAA;;4FAGZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AACxB,iBAAA;;;ACPD;;AAEG;;;;"}
@@ -0,0 +1,295 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Directive, Component, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
+ import { FormlyModule } from '@kre-form/core';
6
+ import * as i4 from 'ng-zorro-antd/spin';
7
+ import { NzSpinModule } from 'ng-zorro-antd/spin';
8
+ import * as i5 from 'ng-zorro-antd/button';
9
+ import { NzButtonModule } from 'ng-zorro-antd/button';
10
+ import * as i8 from '@ebuilding/biz-comm/components/filter';
11
+ import { GramDeonFilterModule } from '@ebuilding/biz-comm/components/filter';
12
+ import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
13
+ import { zip } from 'rxjs';
14
+ import _ from 'lodash';
15
+ import * as i1 from '@delon/theme';
16
+ import * as i2 from 'ng-zorro-antd/message';
17
+ import * as i3 from '@ebuilding/base/components/drawer';
18
+ import * as i6 from 'ng-zorro-antd/core/transition-patch';
19
+ import * as i7 from 'ng-zorro-antd/core/wave';
20
+
21
+ class BasicService {
22
+ http;
23
+ msgSrv;
24
+ _config = null;
25
+ loading = false;
26
+ tableData = [];
27
+ filterData = [];
28
+ filterConfig = {};
29
+ /**
30
+ * 参数
31
+ */
32
+ paraGet = {};
33
+ paraSave = {};
34
+ /**
35
+ * Api Address
36
+ */
37
+ getApi = null;
38
+ saveApi = null;
39
+ sourceApi = null;
40
+ set config(value) {
41
+ this._config = value;
42
+ this.initParameter();
43
+ this.getPageData();
44
+ }
45
+ get config() {
46
+ return this._config;
47
+ }
48
+ btnCloseEvent = new EventEmitter();
49
+ btnSaveEvent = new EventEmitter();
50
+ constructor(http, msgSrv) {
51
+ this.http = http;
52
+ this.msgSrv = msgSrv;
53
+ }
54
+ ngOnInit() { }
55
+ ngOnDestroy() { }
56
+ /**
57
+ * 参数
58
+ */
59
+ initParameter() {
60
+ this.getApi = `${ModuleAPI.paas}/apaas/source/filter/getDataInfo`;
61
+ this.saveApi = `${ModuleAPI.paas}/apaas/source/filter/saveData`;
62
+ this.sourceApi = `${ModuleAPI.paas}/apaas/table/listBySource`;
63
+ this.paraGet = {
64
+ sourceId: this.config.sourceId,
65
+ sourceType: this.config.sourceType,
66
+ };
67
+ this.paraSave = {
68
+ sourceId: this.config.sourceId,
69
+ sourceType: this.config.sourceType,
70
+ listFilter: [],
71
+ };
72
+ if (this.config?.getAPI) {
73
+ this.getApi = this.config.getAPI;
74
+ }
75
+ if (this.config?.saveAPI) {
76
+ this.saveApi = this.config.saveAPI;
77
+ }
78
+ if (this.config?.sourceAPI) {
79
+ this.sourceApi = this.config.sourceAPI;
80
+ }
81
+ }
82
+ btnSave() {
83
+ if (this.filterData && this.filterData.length > 0) {
84
+ let isOk = true;
85
+ this.filterData.forEach((item) => {
86
+ if (item.cellOperation == undefined || item.cellOperation == null) {
87
+ this.msgSrv.warning('视图配置有误,请仔细检查');
88
+ isOk = false;
89
+ return;
90
+ }
91
+ });
92
+ if (!isOk) {
93
+ return;
94
+ }
95
+ }
96
+ this.loading = true;
97
+ let postData = _.cloneDeep(this.paraSave);
98
+ postData.listFilter = this.filterData;
99
+ this.http.post(this.saveApi, postData).subscribe((res) => {
100
+ if (res.success) {
101
+ this.msgSrv.success('保存成功!');
102
+ this.btnSaveAfter(this.filterData);
103
+ }
104
+ this.loading = false;
105
+ });
106
+ }
107
+ filterChange(e) {
108
+ this.filterData = e;
109
+ }
110
+ getPageData() {
111
+ new Promise((resolve) => {
112
+ zip(this.http.post(this.sourceApi, {
113
+ sourceId: this.config.sourceId,
114
+ sourceType: this.config.sourceType,
115
+ }), this.http.post(this.getApi, this.paraGet)).subscribe(([a, b]) => {
116
+ if (a.success && a.result && Array.isArray(a.result)) {
117
+ this.tableData = a.result;
118
+ }
119
+ if (b.success && b.result) {
120
+ this.filterData = b.result;
121
+ }
122
+ this.filterConfig = {
123
+ tableData: this.tableData,
124
+ filterData: this.filterData,
125
+ };
126
+ this.loading = false;
127
+ }, () => { }, () => {
128
+ resolve();
129
+ });
130
+ });
131
+ }
132
+ /**
133
+ * 取消-关闭
134
+ */
135
+ btnClose() {
136
+ this.btnCloseEvent.emit({
137
+ type: 'close',
138
+ data: null,
139
+ });
140
+ }
141
+ btnSaveAfter(e) {
142
+ this.btnSaveEvent.emit({
143
+ type: 'save',
144
+ data: e,
145
+ });
146
+ }
147
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, deps: [{ token: i1._HttpClient }, { token: i2.NzMessageService }], target: i0.ɵɵFactoryTarget.Directive });
148
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: BasicService, isStandalone: true, inputs: { config: "config" }, outputs: { btnCloseEvent: "btnCloseEvent", btnSaveEvent: "btnSaveEvent" }, ngImport: i0 });
149
+ }
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, decorators: [{
151
+ type: Directive
152
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }], propDecorators: { config: [{
153
+ type: Input
154
+ }], btnCloseEvent: [{
155
+ type: Output
156
+ }], btnSaveEvent: [{
157
+ type: Output
158
+ }] } });
159
+
160
+ class SourceFilterMainComponent extends BasicService {
161
+ http;
162
+ msgSrv;
163
+ drawerRef;
164
+ constructor(http, msgSrv, drawerRef) {
165
+ super(http, msgSrv);
166
+ this.http = http;
167
+ this.msgSrv = msgSrv;
168
+ this.drawerRef = drawerRef;
169
+ }
170
+ ngOnInit() { }
171
+ ngOnDestroy() { }
172
+ ngOnChanges(changes) { }
173
+ /**
174
+ * 保存
175
+ * @param e
176
+ */
177
+ btnSaveAfter(e) {
178
+ this.drawerRef.close({
179
+ type: 'save',
180
+ data: e,
181
+ });
182
+ }
183
+ /**
184
+ * 取消
185
+ */
186
+ btnClose() {
187
+ this.drawerRef.close({
188
+ type: 'close',
189
+ data: null,
190
+ });
191
+ }
192
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzMessageService }, { token: i3.NzDrawerRef }], target: i0.ɵɵFactoryTarget.Component });
193
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: SourceFilterMainComponent, isStandalone: true, selector: "source-filter", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <gram-filter title=\"\u6761\u4EF6\u914D\u7F6E\" [data]=\"filterConfig\" (dataChange)=\"filterChange($event)\"></gram-filter>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" type=\"button\" (click)=\"btnSave()\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-from{padding:15px 20px!important}:host ::ng-deep .repeat-table table thead th:nth-child(1){width:70px}:host ::ng-deep .repeat-table table thead th:nth-child(2){width:100px}:host ::ng-deep .repeat-table table thead th:nth-child(3){width:360px!important}:host ::ng-deep .repeat-table table thead th:nth-child(4){width:150px!important}:host ::ng-deep .repeat-table table thead th:nth-child(6),:host ::ng-deep .repeat-table table thead th:nth-child(7){width:100px}:host ::ng-deep form{display:flex;flex:1;flex-direction:column;overflow:auto}:host ::ng-deep form deon-field-nz-text .ant-input{max-width:100%!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i4.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i5.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i6.ɵ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: i7.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: GramDeonFilterModule }, { kind: "component", type: i8.GramDeonFilterComponent, selector: "gram-filter", inputs: ["title", "data"], outputs: ["dataChange"] }] });
194
+ }
195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterMainComponent, decorators: [{
196
+ type: Component,
197
+ args: [{ selector: 'source-filter', imports: [
198
+ CommonModule,
199
+ FormsModule,
200
+ ReactiveFormsModule,
201
+ FormlyModule,
202
+ NzSpinModule,
203
+ NzButtonModule,
204
+ GramDeonFilterModule
205
+ ], template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <gram-filter title=\"\u6761\u4EF6\u914D\u7F6E\" [data]=\"filterConfig\" (dataChange)=\"filterChange($event)\"></gram-filter>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" type=\"button\" (click)=\"btnSave()\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-from{padding:15px 20px!important}:host ::ng-deep .repeat-table table thead th:nth-child(1){width:70px}:host ::ng-deep .repeat-table table thead th:nth-child(2){width:100px}:host ::ng-deep .repeat-table table thead th:nth-child(3){width:360px!important}:host ::ng-deep .repeat-table table thead th:nth-child(4){width:150px!important}:host ::ng-deep .repeat-table table thead th:nth-child(6),:host ::ng-deep .repeat-table table thead th:nth-child(7){width:100px}:host ::ng-deep form{display:flex;flex:1;flex-direction:column;overflow:auto}:host ::ng-deep form deon-field-nz-text .ant-input{max-width:100%!important}\n"] }]
206
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }, { type: i3.NzDrawerRef }] });
207
+
208
+ class SourceFilterSecondComponent extends BasicService {
209
+ http;
210
+ msgSrv;
211
+ drawerRef;
212
+ constructor(http, msgSrv, drawerRef) {
213
+ super(http, msgSrv);
214
+ this.http = http;
215
+ this.msgSrv = msgSrv;
216
+ this.drawerRef = drawerRef;
217
+ }
218
+ ngOnInit() { }
219
+ ngOnDestroy() { }
220
+ ngOnChanges(changes) { }
221
+ /**
222
+ * 参数
223
+ */
224
+ initParameter() {
225
+ this.paraGet = {
226
+ sourceId: this.config.sourceId,
227
+ sourceType: this.config.sourceType,
228
+ secondId: this.config.secondId,
229
+ secondType: this.config.secondType
230
+ };
231
+ this.paraSave = {
232
+ sourceId: this.config.sourceId,
233
+ sourceType: this.config.sourceType,
234
+ secondId: this.config.secondId,
235
+ secondType: this.config.secondType,
236
+ listFilter: []
237
+ };
238
+ this.getApi = `${ModuleAPI.paas}/apaas/source/filter/getSecondData`;
239
+ this.saveApi = `${ModuleAPI.paas}/apaas/source/filter/saveSecondData`;
240
+ }
241
+ /**
242
+ * 保存
243
+ * @param e
244
+ */
245
+ btnSaveAfter(e) {
246
+ this.drawerRef.close({
247
+ type: 'save',
248
+ data: e,
249
+ });
250
+ }
251
+ /**
252
+ * 取消
253
+ */
254
+ btnClose() {
255
+ this.drawerRef.close({
256
+ type: 'close',
257
+ data: null,
258
+ });
259
+ }
260
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterSecondComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzMessageService }, { token: i3.NzDrawerRef }], target: i0.ɵɵFactoryTarget.Component });
261
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: SourceFilterSecondComponent, isStandalone: true, selector: "source-filter-second", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <gram-filter title=\"\u6761\u4EF6\u914D\u7F6E\" [data]=\"filterConfig\" (dataChange)=\"filterChange($event)\"></gram-filter>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" type=\"button\" (click)=\"btnSave()\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-from{padding:15px 20px!important}:host ::ng-deep .repeat-table table thead th:nth-child(1){width:70px}:host ::ng-deep .repeat-table table thead th:nth-child(2){width:100px}:host ::ng-deep .repeat-table table thead th:nth-child(3){width:360px!important}:host ::ng-deep .repeat-table table thead th:nth-child(4){width:150px!important}:host ::ng-deep .repeat-table table thead th:nth-child(6),:host ::ng-deep .repeat-table table thead th:nth-child(7){width:100px}:host ::ng-deep form{display:flex;flex:1;flex-direction:column;overflow:auto}:host ::ng-deep form deon-field-nz-text .ant-input{max-width:100%!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i4.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i5.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i6.ɵ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: i7.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: GramDeonFilterModule }, { kind: "component", type: i8.GramDeonFilterComponent, selector: "gram-filter", inputs: ["title", "data"], outputs: ["dataChange"] }] });
262
+ }
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterSecondComponent, decorators: [{
264
+ type: Component,
265
+ args: [{ selector: 'source-filter-second', imports: [
266
+ CommonModule,
267
+ FormsModule,
268
+ ReactiveFormsModule,
269
+ FormlyModule,
270
+ NzSpinModule,
271
+ NzButtonModule,
272
+ GramDeonFilterModule
273
+ ], template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <gram-filter title=\"\u6761\u4EF6\u914D\u7F6E\" [data]=\"filterConfig\" (dataChange)=\"filterChange($event)\"></gram-filter>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <button nz-button nzType=\"primary\" type=\"button\" (click)=\"btnSave()\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-from{padding:15px 20px!important}:host ::ng-deep .repeat-table table thead th:nth-child(1){width:70px}:host ::ng-deep .repeat-table table thead th:nth-child(2){width:100px}:host ::ng-deep .repeat-table table thead th:nth-child(3){width:360px!important}:host ::ng-deep .repeat-table table thead th:nth-child(4){width:150px!important}:host ::ng-deep .repeat-table table thead th:nth-child(6),:host ::ng-deep .repeat-table table thead th:nth-child(7){width:100px}:host ::ng-deep form{display:flex;flex:1;flex-direction:column;overflow:auto}:host ::ng-deep form deon-field-nz-text .ant-input{max-width:100%!important}\n"] }]
274
+ }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }, { type: i3.NzDrawerRef }] });
275
+
276
+ const components = [SourceFilterMainComponent, SourceFilterSecondComponent];
277
+ class SourceFilterModule {
278
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
279
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterModule, imports: [SourceFilterMainComponent, SourceFilterSecondComponent], exports: [SourceFilterMainComponent, SourceFilterSecondComponent] });
280
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterModule, imports: [components] });
281
+ }
282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceFilterModule, decorators: [{
283
+ type: NgModule,
284
+ args: [{
285
+ imports: [...components],
286
+ exports: [...components]
287
+ }]
288
+ }] });
289
+
290
+ /**
291
+ * Generated bundle index. Do not edit.
292
+ */
293
+
294
+ export { SourceFilterMainComponent, SourceFilterModule, SourceFilterSecondComponent };
295
+ //# sourceMappingURL=other.source.filter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other.source.filter.mjs","sources":["../../../../packages/biz-comm/other/source/filter/src/basic.ts","../../../../packages/biz-comm/other/source/filter/src/default/index.ts","../../../../packages/biz-comm/other/source/filter/src/default/index.html","../../../../packages/biz-comm/other/source/filter/src/second/index.ts","../../../../packages/biz-comm/other/source/filter/src/second/index.html","../../../../packages/biz-comm/other/source/filter/src/index.module.ts","../../../../packages/biz-comm/other/source/filter/other.source.filter.ts"],"sourcesContent":["import { Directive, Input, Output, EventEmitter } from '@angular/core';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { zip, of } from 'rxjs';\r\nimport _ from 'lodash';\r\n\r\n@Directive()\r\nexport abstract class BasicService {\r\n _config: any = null;\r\n loading: boolean = false;\r\n tableData: any[] = [];\r\n filterData: any[] = [];\r\n filterConfig: any = {};\r\n\r\n /**\r\n * 参数\r\n */\r\n paraGet: any = {};\r\n paraSave: any = {};\r\n\r\n /**\r\n * Api Address\r\n */\r\n getApi: any = null;\r\n saveApi: any = null;\r\n sourceApi: any = null;\r\n\r\n @Input()\r\n set config(value: any) {\r\n this._config = value;\r\n this.initParameter();\r\n this.getPageData();\r\n }\r\n get config() {\r\n return this._config;\r\n }\r\n\r\n @Output() btnCloseEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() btnSaveEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor(public http: _HttpClient, public msgSrv: NzMessageService) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngOnDestroy() { }\r\n\r\n /**\r\n * 参数\r\n */\r\n initParameter() {\r\n this.getApi = `${ModuleAPI.paas}/apaas/source/filter/getDataInfo`;\r\n this.saveApi = `${ModuleAPI.paas}/apaas/source/filter/saveData`;\r\n this.sourceApi = `${ModuleAPI.paas}/apaas/table/listBySource`;\r\n\r\n this.paraGet = {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n };\r\n\r\n this.paraSave = {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n listFilter: [],\r\n };\r\n\r\n if (this.config?.getAPI!!) {\r\n this.getApi = this.config.getAPI;\r\n }\r\n if (this.config?.saveAPI!!) {\r\n this.saveApi = this.config.saveAPI;\r\n }\r\n if (this.config?.sourceAPI!!) {\r\n this.sourceApi = this.config.sourceAPI;\r\n }\r\n }\r\n\r\n btnSave() {\r\n if (this.filterData!! && this.filterData.length > 0) {\r\n let isOk: boolean = true;\r\n this.filterData.forEach((item: any) => {\r\n if (item.cellOperation == undefined || item.cellOperation == null) {\r\n this.msgSrv.warning('视图配置有误,请仔细检查');\r\n isOk = false;\r\n return;\r\n }\r\n });\r\n if (!isOk) {\r\n return;\r\n }\r\n }\r\n this.loading = true;\r\n let postData: any = _.cloneDeep(this.paraSave);\r\n postData.listFilter = this.filterData;\r\n\r\n this.http.post(this.saveApi, postData).subscribe((res: any) => {\r\n if (res.success) {\r\n this.msgSrv.success('保存成功!');\r\n this.btnSaveAfter(this.filterData);\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n\r\n filterChange(e: any) {\r\n this.filterData = e;\r\n }\r\n\r\n getPageData() {\r\n new Promise((resolve: any) => {\r\n zip(\r\n this.http.post(this.sourceApi, {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n }),\r\n this.http.post(this.getApi, this.paraGet),\r\n ).subscribe(\r\n ([a, b]) => {\r\n if (a.success && a.result!! && Array.isArray(a.result)) {\r\n this.tableData = a.result;\r\n }\r\n if (b.success && b.result!!) {\r\n this.filterData = b.result;\r\n }\r\n this.filterConfig = {\r\n tableData: this.tableData,\r\n filterData: this.filterData,\r\n };\r\n this.loading = false;\r\n },\r\n () => { },\r\n () => {\r\n resolve();\r\n },\r\n );\r\n });\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n btnClose() {\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSaveAfter(e: any) {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n}\r\n","import { Component, SimpleChanges } from '@angular/core';\r\nimport { CommonModule } from \"@angular/common\";\r\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule } from '@kre-form/core';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonFilterModule } from '@ebuilding/biz-comm/components/filter';\r\n\r\nimport { BasicService } from \"../basic\";\r\n\r\n@Component({\r\n selector: 'source-filter',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n FormlyModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n GramDeonFilterModule\r\n ]\r\n})\r\nexport class SourceFilterMainComponent extends BasicService {\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public override msgSrv: NzMessageService,\r\n public drawerRef: NzDrawerRef<any>\r\n ) {\r\n super(http, msgSrv);\r\n }\r\n\r\n override ngOnInit(): void { }\r\n\r\n override ngOnDestroy() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n\r\n /**\r\n * 保存\r\n * @param e \r\n */\r\n override btnSaveAfter(e: any) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n\r\n /**\r\n * 取消\r\n */\r\n override btnClose() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n} ","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <gram-filter title=\"条件配置\" [data]=\"filterConfig\" (dataChange)=\"filterChange($event)\"></gram-filter>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" type=\"button\" (click)=\"btnSave()\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n</nz-spin>\r\n","import { Component, SimpleChanges } from '@angular/core';\r\nimport { CommonModule } from \"@angular/common\";\r\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule } from '@kre-form/core';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { GramDeonFilterModule } from '@ebuilding/biz-comm/components/filter';\r\n\r\nimport { BasicService } from \"../basic\";\r\n\r\n@Component({\r\n selector: 'source-filter-second',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n FormlyModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n GramDeonFilterModule\r\n ]\r\n})\r\nexport class SourceFilterSecondComponent extends BasicService {\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public override msgSrv: NzMessageService,\r\n public drawerRef: NzDrawerRef<any>) {\r\n super(http, msgSrv);\r\n }\r\n\r\n override ngOnInit(): void { }\r\n\r\n override ngOnDestroy() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): void { }\r\n\r\n /**\r\n * 参数\r\n */\r\n override initParameter() {\r\n this.paraGet = {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n secondId: this.config.secondId,\r\n secondType: this.config.secondType\r\n };\r\n\r\n this.paraSave = {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n secondId: this.config.secondId,\r\n secondType: this.config.secondType,\r\n listFilter: []\r\n };\r\n\r\n this.getApi = `${ModuleAPI.paas}/apaas/source/filter/getSecondData`;\r\n this.saveApi = `${ModuleAPI.paas}/apaas/source/filter/saveSecondData`;\r\n }\r\n\r\n /**\r\n * 保存\r\n * @param e \r\n */\r\n override btnSaveAfter(e: any) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n\r\n /**\r\n * 取消\r\n */\r\n override btnClose() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n} ","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <gram-filter title=\"条件配置\" [data]=\"filterConfig\" (dataChange)=\"filterChange($event)\"></gram-filter>\r\n </div>\r\n <div class=\"deon-button\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <button nz-button nzType=\"primary\" type=\"button\" (click)=\"btnSave()\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n</nz-spin>\r\n","import { NgModule } from '@angular/core';\r\nimport { SourceFilterMainComponent } from './default/index';\r\nimport { SourceFilterSecondComponent } from './second/index';\r\nconst components: any[] = [SourceFilterMainComponent, SourceFilterSecondComponent];\r\n\r\n@NgModule({\r\n imports: [...components],\r\n exports: [...components]\r\n})\r\nexport class SourceFilterModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;MAQsB,YAAY,CAAA;AAkCb,IAAA,IAAA;AAA0B,IAAA,MAAA;IAjC7C,OAAO,GAAQ,IAAI;IACnB,OAAO,GAAY,KAAK;IACxB,SAAS,GAAU,EAAE;IACrB,UAAU,GAAU,EAAE;IACtB,YAAY,GAAQ,EAAE;AAEtB;;AAEG;IACH,OAAO,GAAQ,EAAE;IACjB,QAAQ,GAAQ,EAAE;AAElB;;AAEG;IACH,MAAM,GAAQ,IAAI;IAClB,OAAO,GAAQ,IAAI;IACnB,SAAS,GAAQ,I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