@ebuilding/form 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 (184) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/checkbox/index.d.ts +1 -0
  4. package/checkbox/src/checkbox.module.d.ts +9 -0
  5. package/checkbox/src/checkbox.type.d.ts +11 -0
  6. package/checkbox/src/public_api.d.ts +2 -0
  7. package/checkboxgroup/index.d.ts +1 -0
  8. package/checkboxgroup/src/checkboxgroup.module.d.ts +9 -0
  9. package/checkboxgroup/src/checkboxgroup.type.d.ts +19 -0
  10. package/checkboxgroup/src/public_api.d.ts +2 -0
  11. package/colors/index.d.ts +1 -0
  12. package/colors/src/default/index.d.ts +11 -0
  13. package/colors/src/index.module.d.ts +8 -0
  14. package/colors/src/public_api.d.ts +2 -0
  15. package/datetime/index.d.ts +1 -0
  16. package/datetime/src/datetime.module.d.ts +9 -0
  17. package/datetime/src/datetime.type.d.ts +18 -0
  18. package/datetime/src/public_api.d.ts +2 -0
  19. package/desc/index.d.ts +1 -0
  20. package/desc/src/desc.module.d.ts +9 -0
  21. package/desc/src/desc.type.d.ts +6 -0
  22. package/desc/src/public_api.d.ts +2 -0
  23. package/dim/index.d.ts +1 -0
  24. package/dim/src/default/index.d.ts +16 -0
  25. package/dim/src/dim.module.d.ts +9 -0
  26. package/dim/src/public_api.d.ts +2 -0
  27. package/dim-indicator/index.d.ts +1 -0
  28. package/dim-indicator/src/assess/index.d.ts +17 -0
  29. package/dim-indicator/src/default/index.d.ts +19 -0
  30. package/dim-indicator/src/finish/index.d.ts +16 -0
  31. package/dim-indicator/src/indicator.module.d.ts +8 -0
  32. package/dim-indicator/src/public_api.d.ts +2 -0
  33. package/fesm2022/ebuilding-form.mjs +3337 -0
  34. package/fesm2022/ebuilding-form.mjs.map +1 -0
  35. package/fesm2022/type.checkbox.mjs +93 -0
  36. package/fesm2022/type.checkbox.mjs.map +1 -0
  37. package/fesm2022/type.checkboxgroup.mjs +168 -0
  38. package/fesm2022/type.checkboxgroup.mjs.map +1 -0
  39. package/fesm2022/type.colors.mjs +74 -0
  40. package/fesm2022/type.colors.mjs.map +1 -0
  41. package/fesm2022/type.datetime.mjs +312 -0
  42. package/fesm2022/type.datetime.mjs.map +1 -0
  43. package/fesm2022/type.desc.mjs +67 -0
  44. package/fesm2022/type.desc.mjs.map +1 -0
  45. package/fesm2022/type.dim-indicator.mjs +187 -0
  46. package/fesm2022/type.dim-indicator.mjs.map +1 -0
  47. package/fesm2022/type.dim.mjs +101 -0
  48. package/fesm2022/type.dim.mjs.map +1 -0
  49. package/fesm2022/type.form-field.mjs +147 -0
  50. package/fesm2022/type.form-field.mjs.map +1 -0
  51. package/fesm2022/type.grid.mjs +126 -0
  52. package/fesm2022/type.grid.mjs.map +1 -0
  53. package/fesm2022/type.group.mjs +113 -0
  54. package/fesm2022/type.group.mjs.map +1 -0
  55. package/fesm2022/type.html.mjs +88 -0
  56. package/fesm2022/type.html.mjs.map +1 -0
  57. package/fesm2022/type.icon.mjs +143 -0
  58. package/fesm2022/type.icon.mjs.map +1 -0
  59. package/fesm2022/type.label.mjs +71 -0
  60. package/fesm2022/type.label.mjs.map +1 -0
  61. package/fesm2022/type.line.mjs +78 -0
  62. package/fesm2022/type.line.mjs.map +1 -0
  63. package/fesm2022/type.list.mjs +84 -0
  64. package/fesm2022/type.list.mjs.map +1 -0
  65. package/fesm2022/type.number.mjs +196 -0
  66. package/fesm2022/type.number.mjs.map +1 -0
  67. package/fesm2022/type.overtime.mjs +301 -0
  68. package/fesm2022/type.overtime.mjs.map +1 -0
  69. package/fesm2022/type.panel.mjs +117 -0
  70. package/fesm2022/type.panel.mjs.map +1 -0
  71. package/fesm2022/type.radio.mjs +71 -0
  72. package/fesm2022/type.radio.mjs.map +1 -0
  73. package/fesm2022/type.radiogroup.mjs +138 -0
  74. package/fesm2022/type.radiogroup.mjs.map +1 -0
  75. package/fesm2022/type.reform.mjs +91 -0
  76. package/fesm2022/type.reform.mjs.map +1 -0
  77. package/fesm2022/type.repeat-card.mjs +204 -0
  78. package/fesm2022/type.repeat-card.mjs.map +1 -0
  79. package/fesm2022/type.repeat.mjs +209 -0
  80. package/fesm2022/type.repeat.mjs.map +1 -0
  81. package/fesm2022/type.select.mjs +224 -0
  82. package/fesm2022/type.select.mjs.map +1 -0
  83. package/fesm2022/type.switch.mjs +73 -0
  84. package/fesm2022/type.switch.mjs.map +1 -0
  85. package/fesm2022/type.tabs.mjs +107 -0
  86. package/fesm2022/type.tabs.mjs.map +1 -0
  87. package/fesm2022/type.text.mjs +89 -0
  88. package/fesm2022/type.text.mjs.map +1 -0
  89. package/fesm2022/type.textarea.mjs +158 -0
  90. package/fesm2022/type.textarea.mjs.map +1 -0
  91. package/fesm2022/type.textcode.mjs +126 -0
  92. package/fesm2022/type.textcode.mjs.map +1 -0
  93. package/form-field/index.d.ts +1 -0
  94. package/form-field/src/form-field.module.d.ts +10 -0
  95. package/form-field/src/form-field.wrapper.d.ts +9 -0
  96. package/form-field/src/public_api.d.ts +2 -0
  97. package/grid/index.d.ts +1 -0
  98. package/grid/src/grid.module.d.ts +11 -0
  99. package/grid/src/grid.type.d.ts +11 -0
  100. package/grid/src/public_api.d.ts +2 -0
  101. package/group/index.d.ts +1 -0
  102. package/group/src/group.module.d.ts +11 -0
  103. package/group/src/group.type.d.ts +11 -0
  104. package/group/src/public_api.d.ts +2 -0
  105. package/html/index.d.ts +1 -0
  106. package/html/src/html.module.d.ts +10 -0
  107. package/html/src/html.type.d.ts +12 -0
  108. package/html/src/public_api.d.ts +2 -0
  109. package/icon/index.d.ts +1 -0
  110. package/icon/src/default/index.d.ts +14 -0
  111. package/icon/src/index.module.d.ts +14 -0
  112. package/icon/src/public_api.d.ts +2 -0
  113. package/index.d.ts +28 -0
  114. package/label/index.d.ts +1 -0
  115. package/label/src/label.module.d.ts +10 -0
  116. package/label/src/label.type.d.ts +9 -0
  117. package/label/src/public_api.d.ts +2 -0
  118. package/line/index.d.ts +1 -0
  119. package/line/src/line.module.d.ts +11 -0
  120. package/line/src/line.type.d.ts +11 -0
  121. package/line/src/public_api.d.ts +2 -0
  122. package/list/index.d.ts +1 -0
  123. package/list/src/list.module.d.ts +11 -0
  124. package/list/src/list.type.d.ts +9 -0
  125. package/list/src/public_api.d.ts +2 -0
  126. package/number/index.d.ts +1 -0
  127. package/number/src/number.module.d.ts +9 -0
  128. package/number/src/number.type.d.ts +19 -0
  129. package/number/src/number_rate.type.d.ts +9 -0
  130. package/number/src/public_api.d.ts +3 -0
  131. package/overtime/index.d.ts +1 -0
  132. package/overtime/src/default/index.d.ts +77 -0
  133. package/overtime/src/index.module.d.ts +13 -0
  134. package/overtime/src/public_api.d.ts +2 -0
  135. package/package.json +136 -0
  136. package/panel/index.d.ts +1 -0
  137. package/panel/src/panel.module.d.ts +11 -0
  138. package/panel/src/panel.type.d.ts +12 -0
  139. package/panel/src/public_api.d.ts +2 -0
  140. package/radio/index.d.ts +1 -0
  141. package/radio/src/public_api.d.ts +2 -0
  142. package/radio/src/radio.module.d.ts +8 -0
  143. package/radio/src/radio.type.d.ts +11 -0
  144. package/radiogroup/index.d.ts +1 -0
  145. package/radiogroup/src/public_api.d.ts +2 -0
  146. package/radiogroup/src/radiogroup.module.d.ts +8 -0
  147. package/radiogroup/src/radiogroup.type.d.ts +17 -0
  148. package/reform/index.d.ts +1 -0
  149. package/reform/src/public_api.d.ts +2 -0
  150. package/reform/src/reform.module.d.ts +11 -0
  151. package/reform/src/reform.type.d.ts +11 -0
  152. package/repeat/index.d.ts +1 -0
  153. package/repeat/src/default/index.d.ts +28 -0
  154. package/repeat/src/index.module.d.ts +17 -0
  155. package/repeat/src/public_api.d.ts +2 -0
  156. package/repeat-card/index.d.ts +1 -0
  157. package/repeat-card/src/default/index.d.ts +28 -0
  158. package/repeat-card/src/index.module.d.ts +18 -0
  159. package/repeat-card/src/public_api.d.ts +2 -0
  160. package/select/index.d.ts +1 -0
  161. package/select/src/public_api.d.ts +2 -0
  162. package/select/src/select.module.d.ts +9 -0
  163. package/select/src/select.type.d.ts +23 -0
  164. package/switch/index.d.ts +1 -0
  165. package/switch/src/default/index.d.ts +12 -0
  166. package/switch/src/index.module.d.ts +9 -0
  167. package/switch/src/public_api.d.ts +2 -0
  168. package/tabs/index.d.ts +1 -0
  169. package/tabs/src/default/index.d.ts +13 -0
  170. package/tabs/src/index.module.d.ts +7 -0
  171. package/tabs/src/public_api.d.ts +3 -0
  172. package/tabs/src/tab/index.d.ts +11 -0
  173. package/text/index.d.ts +1 -0
  174. package/text/src/public_api.d.ts +2 -0
  175. package/text/src/text.module.d.ts +8 -0
  176. package/text/src/text.type.d.ts +7 -0
  177. package/textarea/index.d.ts +1 -0
  178. package/textarea/src/public_api.d.ts +2 -0
  179. package/textarea/src/textarea.module.d.ts +7 -0
  180. package/textarea/src/textarea.type.d.ts +13 -0
  181. package/textcode/index.d.ts +1 -0
  182. package/textcode/src/public_api.d.ts +2 -0
  183. package/textcode/src/text.module.d.ts +7 -0
  184. package/textcode/src/text.type.d.ts +17 -0
@@ -0,0 +1,187 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import * as i9 from '@kre-form/core';
4
+ import { FieldType, FormlyModule } from '@kre-form/core';
5
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
6
+ import * as i4 from '@angular/common';
7
+ import { CommonModule } from '@angular/common';
8
+ import { ReactiveFormsModule } from '@angular/forms';
9
+ import * as i5 from 'ng-zorro-antd/icon';
10
+ import { NzIconModule } from 'ng-zorro-antd/icon';
11
+ import * as i6 from 'ng-zorro-antd/button';
12
+ import { NzButtonModule } from 'ng-zorro-antd/button';
13
+ import { globalKey } from '@ebuilding/base/shared.var/shared.constant';
14
+ import * as i1 from 'ng-zorro-antd/modal';
15
+ import * as i2 from 'ng-zorro-antd/message';
16
+ import * as i3 from '@ebuilding/base/shared.srv/global.event';
17
+ import * as i7 from 'ng-zorro-antd/core/transition-patch';
18
+ import * as i8 from 'ng-zorro-antd/core/wave';
19
+
20
+ class DeonNzFieldDimIndicator extends FieldType {
21
+ modal;
22
+ msg;
23
+ globalSrv;
24
+ defaultOptions = {
25
+ props: {},
26
+ };
27
+ constructor(modal, msg, globalSrv) {
28
+ super();
29
+ this.modal = modal;
30
+ this.msg = msg;
31
+ this.globalSrv = globalSrv;
32
+ }
33
+ btnUp() {
34
+ this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {
35
+ field: this.field,
36
+ type: 'UP',
37
+ });
38
+ }
39
+ btnDown() {
40
+ this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {
41
+ field: this.field,
42
+ type: 'DOWN',
43
+ });
44
+ }
45
+ btnDelete() {
46
+ this.modal.confirm({
47
+ nzTitle: '提示',
48
+ nzContent: `您确定需要删除该指标吗?`,
49
+ nzOnOk: () => {
50
+ this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {
51
+ field: this.field,
52
+ type: 'DELETE',
53
+ });
54
+ },
55
+ });
56
+ }
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicator, deps: [{ token: i1.NzModalService }, { token: i2.NzMessageService }, { token: i3.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicator, isStandalone: true, selector: "deon-nz-field-indicator", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index;\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props['tableConfig'][index].widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][index]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n </div>\n <div class=\"ind-operate\" *ngIf=\"field?.editor == true\">\n <a (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\n </a>\n <a (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\n </a>\n <a (click)=\"btnDelete()\" *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\n </a>\n </div>\n </div>\n</ng-container>\n<ng-template #tmpDefault>\n <div class=\"ind-button\" *ngIf=\"field?.editor == true\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\u4E0A\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\u4E0B\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDelete()\"\n *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\u5220\u9664\n </button>\n </div>\n\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td>\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n<ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-button{text-align:right;padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i6.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i7.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i8.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i9.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicator, decorators: [{
61
+ type: Component,
62
+ args: [{ selector: 'deon-nz-field-indicator', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
63
+ CommonModule,
64
+ ReactiveFormsModule,
65
+ NzIconModule,
66
+ NzButtonModule,
67
+ FormlyModule
68
+ ], template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index;\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props['tableConfig'][index].widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][index]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n </div>\n <div class=\"ind-operate\" *ngIf=\"field?.editor == true\">\n <a (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\n </a>\n <a (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\n </a>\n <a (click)=\"btnDelete()\" *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\n </a>\n </div>\n </div>\n</ng-container>\n<ng-template #tmpDefault>\n <div class=\"ind-button\" *ngIf=\"field?.editor == true\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\u4E0A\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\u4E0B\u79FB\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDelete()\"\n *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\u5220\u9664\n </button>\n </div>\n\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td>\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n<ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-button{text-align:right;padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"] }]
69
+ }], ctorParameters: () => [{ type: i1.NzModalService }, { type: i2.NzMessageService }, { type: i3.GramGlobalService }] });
70
+
71
+ class DeonNzFieldDimIndicatorFinish extends FieldType {
72
+ modal;
73
+ msg;
74
+ globalSrv;
75
+ defaultOptions = {
76
+ props: {},
77
+ };
78
+ constructor(modal, msg, globalSrv) {
79
+ super();
80
+ this.modal = modal;
81
+ this.msg = msg;
82
+ this.globalSrv = globalSrv;
83
+ }
84
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorFinish, deps: [{ token: i1.NzModalService }, { token: i2.NzMessageService }, { token: i3.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
85
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicatorFinish, isStandalone: true, selector: "deon-nz-field-indicator-finish", usesInheritance: true, ngImport: i0, template: "<div class=\"ind-finish\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'finishValue'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n</div>\n\n<div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"f?.key == 'name' ? '300px' : f?.key == 'desc' ? '' : '130px'\"\n *ngIf=\"f?.key != 'finishValue'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'finishValue'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'finishValue'\"></formly-field>\n </ng-container>\n </ng-template>\n </ng-container>\n</div>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i9.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
86
+ }
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorFinish, decorators: [{
88
+ type: Component,
89
+ args: [{ selector: 'deon-nz-field-indicator-finish', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
90
+ CommonModule,
91
+ ReactiveFormsModule,
92
+ NzIconModule,
93
+ NzButtonModule,
94
+ FormlyModule
95
+ ], template: "<div class=\"ind-finish\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'finishValue'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n</div>\n\n<div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"f?.key == 'name' ? '300px' : f?.key == 'desc' ? '' : '130px'\"\n *ngIf=\"f?.key != 'finishValue'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'finishValue'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'finishValue'\"></formly-field>\n </ng-container>\n </ng-template>\n </ng-container>\n</div>", styles: [":host ::ng-deep{width:100%;border:1px solid #eaeaea;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .table-box{padding:0 0 15px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}\n"] }]
96
+ }], ctorParameters: () => [{ type: i1.NzModalService }, { type: i2.NzMessageService }, { type: i3.GramGlobalService }] });
97
+
98
+ class DeonNzFieldDimIndicatorAssess extends FieldType {
99
+ modal;
100
+ msg;
101
+ globalSrv;
102
+ defaultOptions = {
103
+ props: {},
104
+ };
105
+ constructor(modal, msg, globalSrv) {
106
+ super();
107
+ this.modal = modal;
108
+ this.msg = msg;
109
+ this.globalSrv = globalSrv;
110
+ }
111
+ get totalRenderedColumns() {
112
+ const baseLength = this.field?.fieldGroup?.length ?? 0;
113
+ const expandCount = this.field?.fieldGroup?.filter(f => f?.key === 'indScoreSelect' || f?.key === 'indScoreEnter').length;
114
+ if (expandCount > 0) {
115
+ const expandInfoLength = Array.isArray(this.props?.["expandInfo"]) ? this.props?.["expandInfo"].length : 0;
116
+ return baseLength + expandInfoLength;
117
+ }
118
+ else {
119
+ return baseLength;
120
+ }
121
+ }
122
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorAssess, deps: [{ token: i1.NzModalService }, { token: i2.NzMessageService }, { token: i3.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
123
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDimIndicatorAssess, isStandalone: true, selector: "deon-nz-field-indicator-assess", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:0;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .ind-assess{padding:0 15px 0 0;display:flex;flex-direction:column}:host ::ng-deep .ind-assess .assess-nodes{display:flex;flex-direction:row;align-items:center;padding:0;margin:0}:host ::ng-deep .ind-assess .assess-nodes .node-title{display:flex;flex-direction:row;align-items:center;padding:0 20px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-title label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box{display:flex;flex-direction:row;align-items:center;padding:0 15px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-box label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box .title:after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .ind-assess .assess-nodes .node-box .value{font-size:14px;font-weight:600}:host ::ng-deep .ind-assess .assess-info{display:flex;padding:0}:host ::ng-deep .ind-assess .assess-info nz-form-label{width:auto!important;max-width:none!important;padding:0 15px 0 0!important}:host ::ng-deep .ind-assess .assess-info nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-assess .assess-info nz-input-number{max-width:150px;height:26px;min-height:26px}:host ::ng-deep .ind-assess .assess-info nz-input-number .ant-input-number-input{height:24px;line-height:24px}:host ::ng-deep .ind-assess .assess-nodes+.assess-info{padding:8px 0 0}:host ::ng-deep .table-box{padding:0 0 20px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}:host ::ng-deep .card-ind{padding:10px 15px;border:1px solid #eaeaea;border-radius:4px;margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i7.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i9.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
124
+ }
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorAssess, decorators: [{
126
+ type: Component,
127
+ args: [{ selector: 'deon-nz-field-indicator-assess', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
128
+ CommonModule,
129
+ ReactiveFormsModule,
130
+ NzIconModule,
131
+ NzButtonModule,
132
+ FormlyModule
133
+ ], template: "<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>\u8BC4\u4F30\u8BB0\u5F55</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host ::ng-deep{width:100%;border:0;border-radius:4px;padding:0;display:flex;flex-direction:column}:host ::ng-deep .ind-finish{padding:8px 15px 6px;border-bottom:1px solid #eaeaea}:host ::ng-deep .ind-finish nz-form-label{width:auto!important;max-width:none!important}:host ::ng-deep .ind-finish nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-finish nz-input-number{max-width:150px}:host ::ng-deep .ind-content{flex:1;padding:15px 15px 0}:host ::ng-deep .ind-assess{padding:0 15px 0 0;display:flex;flex-direction:column}:host ::ng-deep .ind-assess .assess-nodes{display:flex;flex-direction:row;align-items:center;padding:0;margin:0}:host ::ng-deep .ind-assess .assess-nodes .node-title{display:flex;flex-direction:row;align-items:center;padding:0 20px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-title label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box{display:flex;flex-direction:row;align-items:center;padding:0 15px 0 0}:host ::ng-deep .ind-assess .assess-nodes .node-box label{line-height:normal}:host ::ng-deep .ind-assess .assess-nodes .node-box .title:after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .ind-assess .assess-nodes .node-box .value{font-size:14px;font-weight:600}:host ::ng-deep .ind-assess .assess-info{display:flex;padding:0}:host ::ng-deep .ind-assess .assess-info nz-form-label{width:auto!important;max-width:none!important;padding:0 15px 0 0!important}:host ::ng-deep .ind-assess .assess-info nz-form-item{margin-bottom:0!important}:host ::ng-deep .ind-assess .assess-info nz-input-number{max-width:150px;height:26px;min-height:26px}:host ::ng-deep .ind-assess .assess-info nz-input-number .ant-input-number-input{height:24px;line-height:24px}:host ::ng-deep .ind-assess .assess-nodes+.assess-info{padding:8px 0 0}:host ::ng-deep .table-box{padding:0 0 20px}:host ::ng-deep .table-box table tr th{padding:0 8px}:host ::ng-deep .table-box table tr td{padding:10px 8px;vertical-align:top}:host ::ng-deep .table-box .ant-form-item{margin-bottom:0}:host ::ng-deep .table-box .label-required{color:red;margin-right:2px}:host ::ng-deep .card-ind{padding:10px 15px;border:1px solid #eaeaea;border-radius:4px;margin-bottom:15px}\n"] }]
134
+ }], ctorParameters: () => [{ type: i1.NzModalService }, { type: i2.NzMessageService }, { type: i3.GramGlobalService }] });
135
+
136
+ class DeonNzDimIndicatorModule {
137
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
138
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, imports: [DeonNzFormFieldModule, i9.FormlyModule] });
139
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, imports: [DeonNzFormFieldModule,
140
+ FormlyModule.forChild({
141
+ types: [
142
+ {
143
+ name: 'indicator',
144
+ component: DeonNzFieldDimIndicator,
145
+ },
146
+ {
147
+ name: 'indicator_finish',
148
+ component: DeonNzFieldDimIndicatorFinish,
149
+ },
150
+ {
151
+ name: 'indicator_assess',
152
+ component: DeonNzFieldDimIndicatorAssess,
153
+ },
154
+ ],
155
+ })] });
156
+ }
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, decorators: [{
158
+ type: NgModule,
159
+ args: [{
160
+ imports: [
161
+ DeonNzFormFieldModule,
162
+ FormlyModule.forChild({
163
+ types: [
164
+ {
165
+ name: 'indicator',
166
+ component: DeonNzFieldDimIndicator,
167
+ },
168
+ {
169
+ name: 'indicator_finish',
170
+ component: DeonNzFieldDimIndicatorFinish,
171
+ },
172
+ {
173
+ name: 'indicator_assess',
174
+ component: DeonNzFieldDimIndicatorAssess,
175
+ },
176
+ ],
177
+ }),
178
+ ],
179
+ }]
180
+ }] });
181
+
182
+ /**
183
+ * Generated bundle index. Do not edit.
184
+ */
185
+
186
+ export { DeonNzDimIndicatorModule, DeonNzFieldDimIndicator };
187
+ //# sourceMappingURL=type.dim-indicator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.dim-indicator.mjs","sources":["../../../../packages/form/dim-indicator/src/default/index.ts","../../../../packages/form/dim-indicator/src/default/index.html","../../../../packages/form/dim-indicator/src/finish/index.ts","../../../../packages/form/dim-indicator/src/finish/index.html","../../../../packages/form/dim-indicator/src/assess/index.ts","../../../../packages/form/dim-indicator/src/assess/index.html","../../../../packages/form/dim-indicator/src/indicator.module.ts","../../../../packages/form/dim-indicator/type.dim-indicator.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { globalKey } from '@ebuilding/base/shared.var/shared.constant';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicator extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n\n btnUp() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'UP',\n });\n }\n\n btnDown() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'DOWN',\n });\n }\n\n btnDelete() {\n this.modal.confirm({\n nzTitle: '提示',\n nzContent: `您确定需要删除该指标吗?`,\n nzOnOk: () => {\n this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {\n field: this.field,\n type: 'DELETE',\n });\n },\n });\n }\n}\n","<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index;\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props['tableConfig'][index].widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][index]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n </div>\n <div class=\"ind-operate\" *ngIf=\"field?.editor == true\">\n <a (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>\n </a>\n <a (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>\n </a>\n <a (click)=\"btnDelete()\" *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>\n </a>\n </div>\n </div>\n</ng-container>\n<ng-template #tmpDefault>\n <div class=\"ind-button\" *ngIf=\"field?.editor == true\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnUp()\">\n <i nz-icon nzType=\"arrow-up\"></i>上移\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDown()\">\n <i nz-icon nzType=\"arrow-down\"></i>下移\n </button>\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"btnDelete()\"\n *ngIf=\"props?.['indConfig']?.['izAllowDel'] == true\">\n <i nz-icon nzType=\"delete\"></i>删除\n </button>\n </div>\n\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td>\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n<ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n</ng-template>","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator-finish',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicatorFinish extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n}\n","<div class=\"ind-finish\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'finishValue'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n</div>\n\n<div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"f?.key == 'name' ? '300px' : f?.key == 'desc' ? '' : '130px'\"\n *ngIf=\"f?.key != 'finishValue'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'finishValue'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n\n <ng-template #tmpDefault>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'finishValue'\"></formly-field>\n </ng-container>\n </ng-template>\n </ng-container>\n</div>","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { NzMessageService } from 'ng-zorro-antd/message';\nimport { NzModalService } from 'ng-zorro-antd/modal';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { FormlyModule, FieldType } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-indicator-assess',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDimIndicatorAssess extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public modal: NzModalService, public msg: NzMessageService, public globalSrv: GramGlobalService) {\n super();\n }\n\n get totalRenderedColumns(): number {\n const baseLength = this.field?.fieldGroup?.length ?? 0;\n const expandCount: any = this.field?.fieldGroup?.filter(f =>\n f?.key === 'indScoreSelect' || f?.key === 'indScoreEnter'\n ).length;\n if (expandCount > 0) {\n const expandInfoLength = Array.isArray(this.props?.[\"expandInfo\"]) ? this.props?.[\"expandInfo\"].length : 0;\n return baseLength + expandInfoLength;\n } else {\n return baseLength;\n }\n }\n}\n","<ng-container *ngIf=\"props && props['isTable']==true;else tmpDefault\">\n <div class=\"ind-list\">\n <div class=\"ind-item\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let i=index;\">\n\n\n <ng-container *ngIf=\"f?.key!='indScoreSelect' && f?.key!='indScoreEnter';else tmpScore\">\n <div style=\"padding: 0 8px;\"\n [ngStyle]=\"props?.['tableConfig']?.[i]?.widthAuto ? {'flex': '1'} : {'width': props['tableConfig'][i]?.width+'px'}\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-container>\n\n <ng-template #tmpScore>\n <ng-container *ngIf=\"props?.['expandInfo'] && props?.['expandInfo']?.length>0\">\n <ng-container *ngFor=\"let item of props?.['expandInfo']\">\n <div style=\"padding: 0 8px; width: 150px;\">{{item?.nodeData}}</div>\n </ng-container>\n </ng-container>\n <div style=\"padding: 0 8px; width: 150px;\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </div>\n </ng-template>\n\n\n </ng-container>\n <ng-container *ngIf=\"props['tableConfig'].length > totalRenderedColumns\">\n <ng-container *ngFor=\"let f of props['tableConfig'].slice(totalRenderedColumns);let j=index;\">\n <div style=\"padding: 0 8px; width: 150px;\">\n <ng-container\n *ngIf=\"totalRenderedColumns==(field?.fieldGroup?.length ?? 0) &&props?.['expandInfo'] && props?.['expandInfo']?.length>j;else tmpEmptyData\">\n {{props?.[\"expandInfo\"]?.[j]?.nodeData}}\n </ng-container>\n <ng-template #tmpEmptyData>---</ng-template>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #tmpDefault>\n <div class=\"ind-content\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0\">\n <div class=\"table-box\" *ngIf=\"props?.['indConfig']?.['izIndTable'] == true; else tmpDefault\">\n <table>\n <thead>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <th [attr.width]=\"\n f?.key == 'name'\n ? '300px'\n : f?.key == 'desc'\n ? ''\n : '130px'\n \" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <ng-container *ngIf=\"f?.props?.required == true\">\n <label class=\"label-required\">*</label>\n </ng-container>\n {{ f.props?.label }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr>\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <td *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\"></formly-field>\n </td>\n </ng-container>\n </tr>\n <tr>\n <td [attr.colspan]=\"(field?.fieldGroup?.length ?? 0)\">\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] &&\n props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>评估记录</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"\n f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\n \">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tmpCard>\n <div class=\"card-ind\">\n <div class=\"ind-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\" *ngIf=\"f?.key != 'indScoreEnter' && f?.key != 'indScoreSelect'\"></formly-field>\n </ng-container>\n </div>\n <div class=\"ind-assess\">\n <div class=\"assess-nodes\" *ngIf=\"\n props?.['expandInfo'] && props?.['expandInfo']?.length > 0\n \">\n <div class=\"node-title\">\n <label><span nz-icon nzType=\"bars\"></span>评估记录</label>\n </div>\n <div class=\"node-box\" *ngFor=\"let item of props?.['expandInfo']\">\n <label class=\"title\">{{ item?.nodeName }}</label>\n <label class=\"value\">{{ item?.nodeData }}</label>\n </div>\n </div>\n <div class=\"assess-info\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <ng-container *ngIf=\"f?.key == 'indScoreEnter' || f?.key == 'indScoreSelect'\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>","import { NgModule } from '@angular/core';\n\nimport { FormlyModule } from '@kre-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldDimIndicator } from './default';\nimport { DeonNzFieldDimIndicatorFinish } from './finish';\nimport { DeonNzFieldDimIndicatorAssess } from './assess';\n\n@NgModule({\n imports: [\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'indicator',\n component: DeonNzFieldDimIndicator,\n },\n {\n name: 'indicator_finish',\n component: DeonNzFieldDimIndicatorFinish,\n },\n {\n name: 'indicator_assess',\n component: DeonNzFieldDimIndicatorAssess,\n },\n ],\n }),\n ],\n})\nexport class DeonNzDimIndicatorModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i5","i6","i7","i1"],"mappings":";;;;;;;;;;;;;;;;;;;AA2BM,MAAO,uBAAwB,SAAQ,SAAS,CAAA;AAKjC,IAAA,KAAA;AAA8B,IAAA,GAAA;AAA8B,IAAA,SAAA;AAJtE,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE;KACV;AAED,IAAA,WAAA,CAAmB,KAAqB,EAAS,GAAqB,EAAS,SAA4B,EAAA;AACzG,QAAA,KAAK,EAAE;QADU,IAAK,CAAA,KAAA,GAAL,KAAK;QAAyB,IAAG,CAAA,GAAA,GAAH,GAAG;QAA2B,IAAS,CAAA,SAAA,GAAT,SAAS;;IAIxF,KAAK,GAAA;QACH,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,YAAA,IAAI,EAAE,IAAI;AACX,SAAA,CAAC;;IAGJ,OAAO,GAAA;QACL,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,YAAA,IAAI,EAAE,MAAM;AACb,SAAA,CAAC;;IAGJ,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;AACjB,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,SAAS,EAAE,CAAc,YAAA,CAAA;YACzB,MAAM,EAAE,MAAK;gBACX,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;oBACzD,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA,CAAC;aACH;AACF,SAAA,CAAC;;wGAjCO,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EA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;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,WAAW;AACjB,oCAAA,SAAS,EAAE,uBAAuB;AACnC,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,kBAAkB;AACxB,oCAAA,SAAS,EAAE,6BAA6B;AACzC,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,kBAAkB;AACxB,oCAAA,SAAS,EAAE,6BAA6B;AACzC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
@@ -0,0 +1,101 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i5 from '@kre-form/core';
6
+ import { FieldType, FormlyModule } from '@kre-form/core';
7
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
8
+ import { ReactiveFormsModule } from '@angular/forms';
9
+ import * as i3 from 'ng-zorro-antd/icon';
10
+ import { NzIconModule } from 'ng-zorro-antd/icon';
11
+ import { NzButtonModule } from 'ng-zorro-antd/button';
12
+ import { globalKey } from '@ebuilding/base/shared.var/shared.constant';
13
+ import * as i1 from '@ebuilding/base/shared.srv/global.event';
14
+ import * as i4 from 'ng-zorro-antd/core/transition-patch';
15
+
16
+ class DeonNzFieldDim extends FieldType {
17
+ globalSrv;
18
+ defaultOptions = {
19
+ props: {},
20
+ };
21
+ constructor(globalSrv) {
22
+ super();
23
+ this.globalSrv = globalSrv;
24
+ }
25
+ btnAdd() {
26
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
27
+ field: this.field,
28
+ type: 'ADD',
29
+ });
30
+ }
31
+ btnRef() {
32
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
33
+ field: this.field,
34
+ type: 'REF',
35
+ });
36
+ }
37
+ btnKeyResult() {
38
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
39
+ field: this.field,
40
+ type: 'KEYRESULT',
41
+ });
42
+ }
43
+ btnTask() {
44
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
45
+ field: this.field,
46
+ type: 'TASK',
47
+ });
48
+ }
49
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDim, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
50
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDim, isStandalone: true, selector: "deon-nz-field-dim", usesInheritance: true, ngImport: i0, template: "<div class=\"dim-title\">\n <ul>\n <li>\n <i nz-icon nzType=\"tags\"></i>\n <span>{{ props?.label }}</span>\n </li>\n <li\n *ngIf=\"props && props['dimConfig'] && (props['dimConfig']['dimWeightType'] === 'FIX' || props['dimConfig']['dimWeightType'] === 'SUM')\">\n <label>\u7EF4\u5EA6\u6743\u91CD</label>\n <label>{{ props['dimConfig']['dimWeight'] }}%</label>\n </li>\n <li class=\"dim-button\" *ngIf=\"props && props['dimConfig'] && \n (props['dimConfig']['izAdd'] || \n props['dimConfig']['izRef'] || \n props['dimConfig']['izKey'] || \n props['dimConfig']['izTask'])\">\n <div class=\"empty\"></div>\n <div class=\"button\">\n <a (click)=\"btnAdd()\" *ngIf=\"props['dimConfig']['izAdd']\">\n <i nz-icon nzType=\"plus-circle\"></i>\u65B0\u589E\u6307\u6807\n </a>\n <a (click)=\"btnRef()\" *ngIf=\"props['dimConfig']['izRef']\">\n <i nz-icon nzType=\"table\"></i>\u5F15\u7528\u6307\u6807\n </a>\n <a (click)=\"btnKeyResult()\" *ngIf=\"props['dimConfig']['izKey']\">\n <i nz-icon nzType=\"api\"></i>\u5F15\u7528\u5173\u952E\u7ED3\u679C\n </a>\n <a (click)=\"btnTask()\" *ngIf=\"props['dimConfig']['izTask']\">\n <i nz-icon nzType=\"book\"></i>\u5F15\u7528\u5DE5\u4F5C\u4EFB\u52A1\n </a>\n </div>\n </li>\n </ul>\n</div>\n<div class=\"dim-content\">\n\n <ng-container *ngIf=\"props && props['dimConfig'] && props['dimConfig']['showTable']==true;else tmpDefault\">\n <div class=\"dim-table\">\n <div class=\"dim-table-header\">\n <div class=\"no\" *ngIf=\"props['dimConfig']['showSn']\">\u5E8F\u53F7</div>\n <ng-container *ngIf=\"props['dimConfig']['tableRows']\">\n <ng-container *ngFor=\"let item of props['dimConfig']['tableRows']\">\n <div [ngStyle]=\"item?.widthAuto ? {'flex': '1'} : {'width': item?.width+'px'}\">{{item?.name}}</div>\n </ng-container>\n </ng-container>\n <div class=\"operate\" *ngIf=\"field?.editor==true\">\u64CD\u4F5C</div>\n </div>\n <div class=\"dim-table-body\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index\">\n <div class=\"rows\">\n <div class=\"row-no\" *ngIf=\"props['dimConfig']['showSn']\">{{index+1}}</div>\n <div class=\"row-content\">\n <formly-field [field]=\"f\" [isTable]=\"true\" [dimConfig]=\"props['dimConfig']\"\n [tableConfig]=\"props['dimConfig']['tableRows']\"></formly-field>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </ng-container>\n\n <ng-template #tmpDefault>\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #tmpEmpty>\n <div class=\"empty-box\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <span>\u6682\u65E0\u6570\u636E</span>\n </div>\n </div>\n </ng-template>\n\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep{width:100%;margin-bottom:5px}:host ::ng-deep .dim-title ul{padding:0;margin:0;list-style:none;display:flex;flex-direction:row;align-items:center;font-size:14px}:host ::ng-deep .dim-title ul li{padding:0 20px 0 0;margin:0}:host ::ng-deep .dim-title ul li i{margin-right:3px}:host ::ng-deep .dim-title ul li label:nth-child(1):after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .dim-title ul .dim-button{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-title ul .dim-button .empty{flex:1}:host ::ng-deep .dim-title ul .dim-button a+a{margin-left:15px}:host ::ng-deep .dim-content{width:100%}:host ::ng-deep .empty-box{display:flex;flex-direction:column;align-items:center}:host ::ng-deep .empty-box img{width:105px}:host ::ng-deep .dim-table{width:100%;border:1px solid #eaeaea}:host ::ng-deep .dim-table-header{display:flex;flex-direction:row}:host ::ng-deep .dim-table-header div{border-left:1px solid #eaeaea;padding:0 0 0 8px;background:#f5f7fa}:host ::ng-deep .dim-table-header div:nth-child(1){border-left:0}:host ::ng-deep .dim-table-header .no{width:60px;flex:none}:host ::ng-deep .dim-table-header .operate{width:120px;flex:none}:host ::ng-deep .dim-table-body{display:flex;flex-direction:column}:host ::ng-deep .dim-table-body .rows{display:flex;flex-direction:row;padding:8px 0 0;border-bottom:1px solid #eaeaea}:host ::ng-deep .dim-table-body .rows .row-no{width:60px;padding:0 0 0 8px}:host ::ng-deep .dim-table-body .rows .row-content{flex:1}:host ::ng-deep .dim-table-body .rows .ind-list{display:flex;flex-direction:row;flex:1}:host ::ng-deep .dim-table-body .rows .ind-list .ind-item{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate{width:120px;padding:0 0 0 8px;text-align:center;align-self:center}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate a{margin:0 8px 0 0}:host ::ng-deep .dim-table-body .rows:nth-last-child(1){border-bottom:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator{border:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator .ind-list{display:flex;flex-direction:row}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i5.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
51
+ }
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDim, decorators: [{
53
+ type: Component,
54
+ args: [{ selector: 'deon-nz-field-dim', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
55
+ CommonModule,
56
+ ReactiveFormsModule,
57
+ NzIconModule,
58
+ NzButtonModule,
59
+ FormlyModule
60
+ ], template: "<div class=\"dim-title\">\n <ul>\n <li>\n <i nz-icon nzType=\"tags\"></i>\n <span>{{ props?.label }}</span>\n </li>\n <li\n *ngIf=\"props && props['dimConfig'] && (props['dimConfig']['dimWeightType'] === 'FIX' || props['dimConfig']['dimWeightType'] === 'SUM')\">\n <label>\u7EF4\u5EA6\u6743\u91CD</label>\n <label>{{ props['dimConfig']['dimWeight'] }}%</label>\n </li>\n <li class=\"dim-button\" *ngIf=\"props && props['dimConfig'] && \n (props['dimConfig']['izAdd'] || \n props['dimConfig']['izRef'] || \n props['dimConfig']['izKey'] || \n props['dimConfig']['izTask'])\">\n <div class=\"empty\"></div>\n <div class=\"button\">\n <a (click)=\"btnAdd()\" *ngIf=\"props['dimConfig']['izAdd']\">\n <i nz-icon nzType=\"plus-circle\"></i>\u65B0\u589E\u6307\u6807\n </a>\n <a (click)=\"btnRef()\" *ngIf=\"props['dimConfig']['izRef']\">\n <i nz-icon nzType=\"table\"></i>\u5F15\u7528\u6307\u6807\n </a>\n <a (click)=\"btnKeyResult()\" *ngIf=\"props['dimConfig']['izKey']\">\n <i nz-icon nzType=\"api\"></i>\u5F15\u7528\u5173\u952E\u7ED3\u679C\n </a>\n <a (click)=\"btnTask()\" *ngIf=\"props['dimConfig']['izTask']\">\n <i nz-icon nzType=\"book\"></i>\u5F15\u7528\u5DE5\u4F5C\u4EFB\u52A1\n </a>\n </div>\n </li>\n </ul>\n</div>\n<div class=\"dim-content\">\n\n <ng-container *ngIf=\"props && props['dimConfig'] && props['dimConfig']['showTable']==true;else tmpDefault\">\n <div class=\"dim-table\">\n <div class=\"dim-table-header\">\n <div class=\"no\" *ngIf=\"props['dimConfig']['showSn']\">\u5E8F\u53F7</div>\n <ng-container *ngIf=\"props['dimConfig']['tableRows']\">\n <ng-container *ngFor=\"let item of props['dimConfig']['tableRows']\">\n <div [ngStyle]=\"item?.widthAuto ? {'flex': '1'} : {'width': item?.width+'px'}\">{{item?.name}}</div>\n </ng-container>\n </ng-container>\n <div class=\"operate\" *ngIf=\"field?.editor==true\">\u64CD\u4F5C</div>\n </div>\n <div class=\"dim-table-body\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index\">\n <div class=\"rows\">\n <div class=\"row-no\" *ngIf=\"props['dimConfig']['showSn']\">{{index+1}}</div>\n <div class=\"row-content\">\n <formly-field [field]=\"f\" [isTable]=\"true\" [dimConfig]=\"props['dimConfig']\"\n [tableConfig]=\"props['dimConfig']['tableRows']\"></formly-field>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </ng-container>\n\n <ng-template #tmpDefault>\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #tmpEmpty>\n <div class=\"empty-box\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <span>\u6682\u65E0\u6570\u636E</span>\n </div>\n </div>\n </ng-template>\n\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep{width:100%;margin-bottom:5px}:host ::ng-deep .dim-title ul{padding:0;margin:0;list-style:none;display:flex;flex-direction:row;align-items:center;font-size:14px}:host ::ng-deep .dim-title ul li{padding:0 20px 0 0;margin:0}:host ::ng-deep .dim-title ul li i{margin-right:3px}:host ::ng-deep .dim-title ul li label:nth-child(1):after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .dim-title ul .dim-button{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-title ul .dim-button .empty{flex:1}:host ::ng-deep .dim-title ul .dim-button a+a{margin-left:15px}:host ::ng-deep .dim-content{width:100%}:host ::ng-deep .empty-box{display:flex;flex-direction:column;align-items:center}:host ::ng-deep .empty-box img{width:105px}:host ::ng-deep .dim-table{width:100%;border:1px solid #eaeaea}:host ::ng-deep .dim-table-header{display:flex;flex-direction:row}:host ::ng-deep .dim-table-header div{border-left:1px solid #eaeaea;padding:0 0 0 8px;background:#f5f7fa}:host ::ng-deep .dim-table-header div:nth-child(1){border-left:0}:host ::ng-deep .dim-table-header .no{width:60px;flex:none}:host ::ng-deep .dim-table-header .operate{width:120px;flex:none}:host ::ng-deep .dim-table-body{display:flex;flex-direction:column}:host ::ng-deep .dim-table-body .rows{display:flex;flex-direction:row;padding:8px 0 0;border-bottom:1px solid #eaeaea}:host ::ng-deep .dim-table-body .rows .row-no{width:60px;padding:0 0 0 8px}:host ::ng-deep .dim-table-body .rows .row-content{flex:1}:host ::ng-deep .dim-table-body .rows .ind-list{display:flex;flex-direction:row;flex:1}:host ::ng-deep .dim-table-body .rows .ind-list .ind-item{flex:1;display:flex;flex-direction:row}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate{width:120px;padding:0 0 0 8px;text-align:center;align-self:center}:host ::ng-deep .dim-table-body .rows .ind-list .ind-operate a{margin:0 8px 0 0}:host ::ng-deep .dim-table-body .rows:nth-last-child(1){border-bottom:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator{border:0}:host ::ng-deep .dim-table-body deon-nz-field-indicator .ind-list{display:flex;flex-direction:row}\n"] }]
61
+ }], ctorParameters: () => [{ type: i1.GramGlobalService }] });
62
+
63
+ class DeonNzDimModule {
64
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
65
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, imports: [CommonModule,
66
+ DeonNzFormFieldModule, i5.FormlyModule] });
67
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, imports: [CommonModule,
68
+ DeonNzFormFieldModule,
69
+ FormlyModule.forChild({
70
+ types: [
71
+ {
72
+ name: 'dim',
73
+ component: DeonNzFieldDim,
74
+ },
75
+ ],
76
+ })] });
77
+ }
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, decorators: [{
79
+ type: NgModule,
80
+ args: [{
81
+ imports: [
82
+ CommonModule,
83
+ DeonNzFormFieldModule,
84
+ FormlyModule.forChild({
85
+ types: [
86
+ {
87
+ name: 'dim',
88
+ component: DeonNzFieldDim,
89
+ },
90
+ ],
91
+ }),
92
+ ],
93
+ }]
94
+ }] });
95
+
96
+ /**
97
+ * Generated bundle index. Do not edit.
98
+ */
99
+
100
+ export { DeonNzDimModule, DeonNzFieldDim };
101
+ //# sourceMappingURL=type.dim.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.dim.mjs","sources":["../../../../packages/form/dim/src/default/index.ts","../../../../packages/form/dim/src/default/index.html","../../../../packages/form/dim/src/dim.module.ts","../../../../packages/form/dim/type.dim.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\nimport { globalKey } from '@ebuilding/base/shared.var/shared.constant';\n\nimport _ from 'lodash';\n@Component({\n selector: 'deon-nz-field-dim',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzIconModule,\n NzButtonModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldDim extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {},\n };\n\n constructor(public globalSrv: GramGlobalService) {\n super();\n }\n\n btnAdd() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'ADD',\n });\n }\n\n btnRef() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'REF',\n });\n }\n\n btnKeyResult() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'KEYRESULT',\n });\n }\n\n btnTask() {\n this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {\n field: this.field,\n type: 'TASK',\n });\n }\n}\n","<div class=\"dim-title\">\n <ul>\n <li>\n <i nz-icon nzType=\"tags\"></i>\n <span>{{ props?.label }}</span>\n </li>\n <li\n *ngIf=\"props && props['dimConfig'] && (props['dimConfig']['dimWeightType'] === 'FIX' || props['dimConfig']['dimWeightType'] === 'SUM')\">\n <label>维度权重</label>\n <label>{{ props['dimConfig']['dimWeight'] }}%</label>\n </li>\n <li class=\"dim-button\" *ngIf=\"props && props['dimConfig'] && \n (props['dimConfig']['izAdd'] || \n props['dimConfig']['izRef'] || \n props['dimConfig']['izKey'] || \n props['dimConfig']['izTask'])\">\n <div class=\"empty\"></div>\n <div class=\"button\">\n <a (click)=\"btnAdd()\" *ngIf=\"props['dimConfig']['izAdd']\">\n <i nz-icon nzType=\"plus-circle\"></i>新增指标\n </a>\n <a (click)=\"btnRef()\" *ngIf=\"props['dimConfig']['izRef']\">\n <i nz-icon nzType=\"table\"></i>引用指标\n </a>\n <a (click)=\"btnKeyResult()\" *ngIf=\"props['dimConfig']['izKey']\">\n <i nz-icon nzType=\"api\"></i>引用关键结果\n </a>\n <a (click)=\"btnTask()\" *ngIf=\"props['dimConfig']['izTask']\">\n <i nz-icon nzType=\"book\"></i>引用工作任务\n </a>\n </div>\n </li>\n </ul>\n</div>\n<div class=\"dim-content\">\n\n <ng-container *ngIf=\"props && props['dimConfig'] && props['dimConfig']['showTable']==true;else tmpDefault\">\n <div class=\"dim-table\">\n <div class=\"dim-table-header\">\n <div class=\"no\" *ngIf=\"props['dimConfig']['showSn']\">序号</div>\n <ng-container *ngIf=\"props['dimConfig']['tableRows']\">\n <ng-container *ngFor=\"let item of props['dimConfig']['tableRows']\">\n <div [ngStyle]=\"item?.widthAuto ? {'flex': '1'} : {'width': item?.width+'px'}\">{{item?.name}}</div>\n </ng-container>\n </ng-container>\n <div class=\"operate\" *ngIf=\"field?.editor==true\">操作</div>\n </div>\n <div class=\"dim-table-body\">\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup;let index=index\">\n <div class=\"rows\">\n <div class=\"row-no\" *ngIf=\"props['dimConfig']['showSn']\">{{index+1}}</div>\n <div class=\"row-content\">\n <formly-field [field]=\"f\" [isTable]=\"true\" [dimConfig]=\"props['dimConfig']\"\n [tableConfig]=\"props['dimConfig']['tableRows']\"></formly-field>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </ng-container>\n\n <ng-template #tmpDefault>\n <ng-container *ngIf=\"field?.fieldGroup && (field?.fieldGroup?.length ?? 0) > 0; else tmpEmpty\">\n <ng-container *ngFor=\"let f of field.fieldGroup\">\n <formly-field [field]=\"f\"></formly-field>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #tmpEmpty>\n <div class=\"empty-box\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <span>暂无数据</span>\n </div>\n </div>\n </ng-template>\n\n <ng-content></ng-content>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldDim } from './default';\n\n@NgModule({\n imports: [\n CommonModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'dim',\n component: DeonNzFieldDim,\n },\n ],\n }),\n ],\n})\nexport class DeonNzDimModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAwBM,MAAO,cAAe,SAAQ,SAA0B,CAAA;AAKzC,IAAA,SAAA;AAJV,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE;KACV;AAED,IAAA,WAAA,CA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