@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,3337 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1$1 from '@kre-form/core';
6
+ import { FieldType, FormlyModule, FieldArrayType } from '@kre-form/core';
7
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
8
+ import * as i2 from '@angular/forms';
9
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
10
+ import * as i3 from 'ng-zorro-antd/checkbox';
11
+ import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
12
+ import { of } from 'rxjs';
13
+ import * as i3$1 from 'ng-zorro-antd/input';
14
+ import { NzInputModule } from 'ng-zorro-antd/input';
15
+ import * as i4 from 'ng-zorro-antd/date-picker';
16
+ import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
17
+ import * as i5 from 'ng-zorro-antd/time-picker';
18
+ import { NzTimePickerModule } from 'ng-zorro-antd/time-picker';
19
+ import * as i1$2 from 'ng-zorro-antd/i18n';
20
+ import { NZ_DATE_LOCALE } from 'ng-zorro-antd/i18n';
21
+ import moment from 'moment';
22
+ import { zhCN } from 'date-fns/locale';
23
+ import * as i1$3 from '@ebuilding/base/shared.pipe';
24
+ import { GramPipeModule } from '@ebuilding/base/shared.pipe';
25
+ import * as i5$1 from 'ng-zorro-antd/icon';
26
+ import { NzIconModule } from 'ng-zorro-antd/icon';
27
+ import * as i4$1 from 'ng-zorro-antd/button';
28
+ import { NzButtonModule } from 'ng-zorro-antd/button';
29
+ import { globalKey, ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
30
+ import * as i1$4 from '@ebuilding/base/shared.srv/global.event';
31
+ import * as i5$2 from 'ng-zorro-antd/core/transition-patch';
32
+ import * as i1$5 from 'ng-zorro-antd/modal';
33
+ import { NzModalModule } from 'ng-zorro-antd/modal';
34
+ import * as i2$1 from 'ng-zorro-antd/message';
35
+ import * as i8 from 'ng-zorro-antd/core/wave';
36
+ import * as i2$2 from 'ng-zorro-antd/grid';
37
+ import { NzGridModule } from 'ng-zorro-antd/grid';
38
+ import * as i4$2 from 'ng-zorro-antd/dropdown';
39
+ import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
40
+ import * as i3$2 from 'ng-zorro-antd/menu';
41
+ import * as i1$6 from 'ng-zorro-antd/divider';
42
+ import { NzDividerModule } from 'ng-zorro-antd/divider';
43
+ import * as i4$3 from 'ng-zorro-antd/input-number';
44
+ import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
45
+ import * as i2$3 from 'ng-zorro-antd/rate';
46
+ import { NzRateModule } from 'ng-zorro-antd/rate';
47
+ import * as i3$3 from 'ng-zorro-antd/select';
48
+ import { NzSelectModule } from 'ng-zorro-antd/select';
49
+ import _ from 'lodash';
50
+ import * as i4$4 from 'ng-zorro-antd/radio';
51
+ import { NzRadioModule } from 'ng-zorro-antd/radio';
52
+ import { NzEmptyModule } from 'ng-zorro-antd/empty';
53
+ import * as i6 from '@angular/cdk/drag-drop';
54
+ import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
55
+ import * as i3$4 from 'ng-zorro-antd/tooltip';
56
+ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
57
+ import { NzTableModule } from 'ng-zorro-antd/table';
58
+ import * as i9 from '@ebuilding/base/components/empty';
59
+ import { GramDeonEmptyModule } from '@ebuilding/base/components/empty';
60
+ import * as i2$4 from 'ng-zorro-antd/switch';
61
+ import { NzSwitchModule } from 'ng-zorro-antd/switch';
62
+ import * as i2$5 from 'ng-zorro-antd/tabs';
63
+ import { NzTabsModule } from 'ng-zorro-antd/tabs';
64
+ import * as i6$1 from 'ngx-quill';
65
+ import { QuillModule } from 'ngx-quill';
66
+ import * as i1$7 from '@delon/theme';
67
+
68
+ class DeonNzFieldCheckbox extends FieldType {
69
+ defaultOptions = {
70
+ props: {
71
+ indeterminate: true,
72
+ },
73
+ };
74
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
75
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldCheckbox, isStandalone: true, selector: "deon-nz-field-checkbox", usesInheritance: true, ngImport: i0, template: `
76
+ <label nz-checkbox [formControl]="formControl" [formlyAttributes]="field" [nzDisabled]="editor == false ? true : false">
77
+ <ng-container *ngIf="props?.['hideLabel'] == true && props?.['labelPosition'] == 'right'"> {{ props.label }} </ng-container>
78
+ </label>
79
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i3.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
80
+ }
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldCheckbox, decorators: [{
82
+ type: Component,
83
+ args: [{
84
+ selector: 'deon-nz-field-checkbox',
85
+ template: `
86
+ <label nz-checkbox [formControl]="formControl" [formlyAttributes]="field" [nzDisabled]="editor == false ? true : false">
87
+ <ng-container *ngIf="props?.['hideLabel'] == true && props?.['labelPosition'] == 'right'"> {{ props.label }} </ng-container>
88
+ </label>
89
+ `,
90
+ changeDetection: ChangeDetectionStrategy.OnPush,
91
+ imports: [
92
+ CommonModule,
93
+ ReactiveFormsModule,
94
+ NzCheckboxModule,
95
+ FormlyModule
96
+ ]
97
+ }]
98
+ }] });
99
+
100
+ class DeonNzCheckboxModule {
101
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
102
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxModule, imports: [CommonModule,
103
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
104
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxModule, imports: [CommonModule,
105
+ DeonNzFormFieldModule,
106
+ FormlyModule.forChild({
107
+ types: [
108
+ {
109
+ name: 'checkbox',
110
+ component: DeonNzFieldCheckbox,
111
+ wrappers: ['formly-form-field'],
112
+ },
113
+ {
114
+ name: 'boolean',
115
+ extends: 'checkbox',
116
+ },
117
+ ],
118
+ })] });
119
+ }
120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxModule, decorators: [{
121
+ type: NgModule,
122
+ args: [{
123
+ imports: [
124
+ CommonModule,
125
+ DeonNzFormFieldModule,
126
+ FormlyModule.forChild({
127
+ types: [
128
+ {
129
+ name: 'checkbox',
130
+ component: DeonNzFieldCheckbox,
131
+ wrappers: ['formly-form-field'],
132
+ },
133
+ {
134
+ name: 'boolean',
135
+ extends: 'checkbox',
136
+ },
137
+ ],
138
+ }),
139
+ ],
140
+ }]
141
+ }] });
142
+
143
+ class DeonNzFieldCheckboxGroup extends FieldType {
144
+ defaultOptions = {
145
+ props: {
146
+ options: [], // 默认值为空数组
147
+ formCheck: 'custom', // 默认的 formCheck 样式
148
+ },
149
+ };
150
+ // 将 options$ 定义为 Observable<any[]> 类型
151
+ options$;
152
+ constructor() {
153
+ super();
154
+ }
155
+ ngOnInit() {
156
+ const opts = this.props?.options;
157
+ this.options$ = Array.isArray(opts) ? of(opts) : opts ?? of([]);
158
+ }
159
+ onChange(value, checked) {
160
+ if (this.props.type === 'array') {
161
+ this.formControl.patchValue(checked ? [...(this.formControl.value || []), value] : [...(this.formControl.value || [])].filter((o) => o !== value));
162
+ }
163
+ else {
164
+ this.formControl.patchValue({
165
+ ...this.formControl.value,
166
+ [value]: checked,
167
+ });
168
+ }
169
+ this.formControl.markAsTouched();
170
+ }
171
+ isChecked(option) {
172
+ const value = this.formControl.value;
173
+ return value && (this.props.type === 'array' ? value.indexOf(option.value) !== -1 : value[option.value]);
174
+ }
175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldCheckboxGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
176
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldCheckboxGroup, isStandalone: true, selector: "deon-nz-field-checkboxgroup", usesInheritance: true, ngImport: i0, template: `
177
+ <div>
178
+ <!-- 使用 async 管道时,确保 props?.options 是 Observable 类型 -->
179
+ <div
180
+ *ngFor="let option of (options$ | async); let i = index"
181
+ [ngClass]="{
182
+ 'form-check': props?.['formCheck']?.indexOf('custom') === -1,
183
+ 'form-check-inline': props?.['formCheck'] === 'inline',
184
+ 'custom-control': props?.['formCheck']?.indexOf('custom') === 0,
185
+ 'custom-checkbox': props?.['formCheck'] === 'custom' || props?.['formCheck'] === 'custom-inline',
186
+ 'custom-control-inline': props?.['formCheck'] === 'custom-inline',
187
+ 'custom-switch': props?.['formCheck'] === 'custom-switch'
188
+ }"
189
+ >
190
+ <input
191
+ type="checkbox"
192
+ [id]="id + '_' + i"
193
+ [class.form-check-input]="props?.['formCheck']?.indexOf('custom') === -1"
194
+ [class.custom-control-input]="props?.['formCheck']?.indexOf('custom') === 0"
195
+ [value]="option.value"
196
+ [checked]="isChecked(option)"
197
+ [formlyAttributes]="field"
198
+ (change)="onChange(option.value, $event.target?.['checked'] ?? false)"
199
+ />
200
+ <label
201
+ [class.form-check-label]="props?.['formCheck']?.indexOf('custom') === -1"
202
+ [class.custom-control-label]="props?.['formCheck']?.indexOf('custom') === 0"
203
+ [for]="id + '_' + i"
204
+ >
205
+ {{ option.label }}
206
+ </label>
207
+ </div>
208
+ </div>
209
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
210
+ }
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldCheckboxGroup, decorators: [{
212
+ type: Component,
213
+ args: [{
214
+ selector: 'deon-nz-field-checkboxgroup',
215
+ template: `
216
+ <div>
217
+ <!-- 使用 async 管道时,确保 props?.options 是 Observable 类型 -->
218
+ <div
219
+ *ngFor="let option of (options$ | async); let i = index"
220
+ [ngClass]="{
221
+ 'form-check': props?.['formCheck']?.indexOf('custom') === -1,
222
+ 'form-check-inline': props?.['formCheck'] === 'inline',
223
+ 'custom-control': props?.['formCheck']?.indexOf('custom') === 0,
224
+ 'custom-checkbox': props?.['formCheck'] === 'custom' || props?.['formCheck'] === 'custom-inline',
225
+ 'custom-control-inline': props?.['formCheck'] === 'custom-inline',
226
+ 'custom-switch': props?.['formCheck'] === 'custom-switch'
227
+ }"
228
+ >
229
+ <input
230
+ type="checkbox"
231
+ [id]="id + '_' + i"
232
+ [class.form-check-input]="props?.['formCheck']?.indexOf('custom') === -1"
233
+ [class.custom-control-input]="props?.['formCheck']?.indexOf('custom') === 0"
234
+ [value]="option.value"
235
+ [checked]="isChecked(option)"
236
+ [formlyAttributes]="field"
237
+ (change)="onChange(option.value, $event.target?.['checked'] ?? false)"
238
+ />
239
+ <label
240
+ [class.form-check-label]="props?.['formCheck']?.indexOf('custom') === -1"
241
+ [class.custom-control-label]="props?.['formCheck']?.indexOf('custom') === 0"
242
+ [for]="id + '_' + i"
243
+ >
244
+ {{ option.label }}
245
+ </label>
246
+ </div>
247
+ </div>
248
+ `,
249
+ changeDetection: ChangeDetectionStrategy.OnPush,
250
+ imports: [
251
+ CommonModule,
252
+ ReactiveFormsModule,
253
+ NzCheckboxModule,
254
+ FormlyModule
255
+ ]
256
+ }]
257
+ }], ctorParameters: () => [] });
258
+
259
+ class DeonNzCheckboxGroupModule {
260
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
261
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxGroupModule, imports: [CommonModule,
262
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
263
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxGroupModule, imports: [CommonModule,
264
+ DeonNzFormFieldModule,
265
+ FormlyModule.forChild({
266
+ types: [
267
+ {
268
+ name: 'checkboxgroup',
269
+ component: DeonNzFieldCheckboxGroup,
270
+ wrappers: ['formly-form-field'],
271
+ },
272
+ ],
273
+ })] });
274
+ }
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzCheckboxGroupModule, decorators: [{
276
+ type: NgModule,
277
+ args: [{
278
+ imports: [
279
+ CommonModule,
280
+ DeonNzFormFieldModule,
281
+ FormlyModule.forChild({
282
+ types: [
283
+ {
284
+ name: 'checkboxgroup',
285
+ component: DeonNzFieldCheckboxGroup,
286
+ wrappers: ['formly-form-field'],
287
+ },
288
+ ],
289
+ }),
290
+ ],
291
+ }]
292
+ }] });
293
+
294
+ class DeonNzFieldColor extends FieldType {
295
+ defaultOptions = {
296
+ props: {},
297
+ defaultValue: '#262626',
298
+ };
299
+ get text() {
300
+ if (this.model && this.model.hasOwnProperty(this.field.key)) {
301
+ let key = this.field?.key;
302
+ return this.model?.[key];
303
+ }
304
+ return '';
305
+ }
306
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldColor, deps: null, target: i0.ɵɵFactoryTarget.Component });
307
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldColor, isStandalone: true, selector: "deon-nz-field-color", usesInheritance: true, ngImport: i0, template: "<div class=\"field-color deon-color deon-color-default\" *ngIf=\"editor == false; else tmpField\">\n <div class=\"color-control\">\n <div [style.background]=\"text\"></div>\n </div>\n</div>\n<ng-template #tmpField>\n <input nz-input [formControl]=\"formControl\" [type]=\"'color'\" [formlyAttributes]=\"field\" />\n</ng-template>", styles: [":host ::ng-deep .color-control{height:32px;border:1px solid #eaeaea;width:60px;background-color:#fff;padding:8px 13px}:host ::ng-deep .color-control div{width:100%;height:15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
308
+ }
309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldColor, decorators: [{
310
+ type: Component,
311
+ args: [{ selector: 'deon-nz-field-color', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
312
+ CommonModule,
313
+ ReactiveFormsModule,
314
+ NzInputModule,
315
+ FormlyModule
316
+ ], template: "<div class=\"field-color deon-color deon-color-default\" *ngIf=\"editor == false; else tmpField\">\n <div class=\"color-control\">\n <div [style.background]=\"text\"></div>\n </div>\n</div>\n<ng-template #tmpField>\n <input nz-input [formControl]=\"formControl\" [type]=\"'color'\" [formlyAttributes]=\"field\" />\n</ng-template>", styles: [":host ::ng-deep .color-control{height:32px;border:1px solid #eaeaea;width:60px;background-color:#fff;padding:8px 13px}:host ::ng-deep .color-control div{width:100%;height:15px}\n"] }]
317
+ }] });
318
+
319
+ class DeonNzColorModule {
320
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzColorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
321
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzColorModule, imports: [CommonModule, i1$1.FormlyModule] });
322
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzColorModule, imports: [CommonModule,
323
+ FormlyModule.forChild({
324
+ types: [
325
+ {
326
+ name: 'color',
327
+ component: DeonNzFieldColor,
328
+ wrappers: ['formly-form-field'],
329
+ },
330
+ ],
331
+ })] });
332
+ }
333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzColorModule, decorators: [{
334
+ type: NgModule,
335
+ args: [{
336
+ imports: [
337
+ CommonModule,
338
+ FormlyModule.forChild({
339
+ types: [
340
+ {
341
+ name: 'color',
342
+ component: DeonNzFieldColor,
343
+ wrappers: ['formly-form-field'],
344
+ },
345
+ ],
346
+ }),
347
+ ],
348
+ }]
349
+ }] });
350
+
351
+ class DeonNzFieldDatetime extends FieldType {
352
+ i18n;
353
+ constructor(i18n) {
354
+ super();
355
+ this.i18n = i18n;
356
+ this.i18n.setDateLocale(zhCN);
357
+ }
358
+ disabledDate = (endValue) => {
359
+ let minDate = null;
360
+ let maxDate = null;
361
+ let currentDate = null;
362
+ if (endValue) {
363
+ currentDate = new Date(moment(endValue).format('YYYY-MM-DD')).getTime();
364
+ }
365
+ if (currentDate && this.props && this.props["minDate"]) {
366
+ minDate = new Date(moment(this && this.props["minDate"]).format('YYYY-MM-DD')).getTime();
367
+ return currentDate < minDate;
368
+ }
369
+ if (currentDate && this.props && this.props["maxDate"]) {
370
+ maxDate = new Date(moment(this.props["maxDate"]).format('YYYY-MM-DD')).getTime();
371
+ return currentDate > maxDate;
372
+ }
373
+ return false;
374
+ };
375
+ defaultOptions = {
376
+ props: { options: [] },
377
+ };
378
+ get showType() {
379
+ let result = 'datetime';
380
+ if (this.props['type'] != undefined && this.props['type'] != null && this.props['type'] != '') {
381
+ result = this.props['type'].toLowerCase();
382
+ }
383
+ return result;
384
+ }
385
+ get format() {
386
+ let result = 'HH:mm:ss';
387
+ if (this.props['format'] != undefined && this.props['format'] != null && this.props['format'] != '') {
388
+ result = this.props['format'];
389
+ }
390
+ return result;
391
+ }
392
+ get dateText() {
393
+ let result = null;
394
+ if (this.text) {
395
+ switch (this.showType) {
396
+ case 'yyyy':
397
+ result = moment(this.dateText).format('YYYY').toString();
398
+ break;
399
+ case 'mm':
400
+ result = moment(this.dateText).format('MM').toString();
401
+ break;
402
+ case 'yyyymm':
403
+ result = moment(this.text).format('YYYY-MM').toString();
404
+ break;
405
+ case 'yyyymmdd':
406
+ result = moment(this.text).format('YYYY-MM-DD').toString();
407
+ break;
408
+ case 'yyyymmddhh':
409
+ result = moment(this.text).format('YYYY-MM-DD HH').toString();
410
+ break;
411
+ case 'yyyymmddhhmm':
412
+ result = moment(this.text).format('YYYY-MM-DD HH:mm').toString();
413
+ break;
414
+ case 'yyyymmddhhmmss':
415
+ result = moment(this.text).format('YYYY-MM-DD HH:mm:ss').toString();
416
+ break;
417
+ case 'hhmm':
418
+ result = moment(this.text).format('HH:mm').toString();
419
+ break;
420
+ case 'hhmmss':
421
+ result = moment(this.text).format('HH:mm:ss').toString();
422
+ break;
423
+ case 'datetime':
424
+ result = moment(this.text).format('YYYY-MM-DD HH:mm:ss').toString();
425
+ break;
426
+ case 'date':
427
+ result = moment(this.text).format('YYYY-MM-DD').toString();
428
+ break;
429
+ case 'year':
430
+ result = moment(this.text).format('YYYY').toString();
431
+ break;
432
+ case 'month':
433
+ result = moment(this.text).format('YYYY-MM').toString();
434
+ break;
435
+ case 'time':
436
+ result = moment(this.text).format(this.format).toString();
437
+ break;
438
+ default:
439
+ break;
440
+ }
441
+ }
442
+ return result;
443
+ }
444
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDatetime, deps: [{ token: i1$2.NzI18nService }], target: i0.ɵɵFactoryTarget.Component });
445
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDatetime, isStandalone: true, selector: "deon-nz-field-datetime", providers: [{ provide: NZ_DATE_LOCALE, useValue: zhCN }], usesInheritance: true, ngImport: i0, template: `
446
+ <div class="field-text deon-text deon-text-datetime" *ngIf="editor == false; else tmpField">
447
+ {{ dateText }}
448
+ </div>
449
+ <ng-template #tmpField>
450
+ <ng-container [ngSwitch]="showType">
451
+ <ng-container *ngSwitchCase="'yyyy'">
452
+ <nz-year-picker [formControl]="formControl" [formlyAttributes]="field"></nz-year-picker>
453
+ </ng-container>
454
+ <ng-container *ngSwitchCase="'mm'">
455
+ <nz-month-picker [formControl]="formControl" [formlyAttributes]="field"></nz-month-picker>
456
+ </ng-container>
457
+ <ng-container *ngSwitchCase="'mmdd'">
458
+ <nz-date-picker nzFormat="MM-dd" [formControl]="formControl" [formlyAttributes]="field"></nz-date-picker>
459
+ </ng-container>
460
+ <ng-container *ngSwitchCase="'yyyymm'">
461
+ <nz-month-picker [formControl]="formControl" [formlyAttributes]="field"></nz-month-picker>
462
+ </ng-container>
463
+ <ng-container *ngSwitchCase="'yyyymmdd'">
464
+ <nz-date-picker [formControl]="formControl" [formlyAttributes]="field" [nzDisabledDate]="disabledDate"></nz-date-picker>
465
+ </ng-container>
466
+ <ng-container *ngSwitchCase="'yyyymmddhh'">
467
+ <nz-date-picker
468
+ nzFormat="yyyy-MM-dd HH"
469
+ [nzShowTime]="{ nzFormat: 'HH' }"
470
+ [formControl]="formControl"
471
+ [formlyAttributes]="field"
472
+ ></nz-date-picker>
473
+ </ng-container>
474
+ <ng-container *ngSwitchCase="'yyyymmddhhmm'">
475
+ <nz-date-picker
476
+ nzFormat="yyyy-MM-dd HH:mm"
477
+ [nzShowTime]="{ nzFormat: 'HH:mm' }"
478
+ [formControl]="formControl"
479
+ [formlyAttributes]="field"
480
+ ></nz-date-picker>
481
+ </ng-container>
482
+ <ng-container *ngSwitchCase="'yyyymmddhhmmss'">
483
+ <nz-date-picker
484
+ nzFormat="yyyy-MM-dd HH:mm:ss"
485
+ [nzShowTime]="{ nzFormat: 'HH:mm:ss' }"
486
+ [formControl]="formControl"
487
+ [formlyAttributes]="field"
488
+ ></nz-date-picker>
489
+ </ng-container>
490
+ <ng-container *ngSwitchCase="'hhmm'">
491
+ <nz-time-picker nzFormat="HH:mm" [formControl]="formControl" [formlyAttributes]="field"></nz-time-picker>
492
+ </ng-container>
493
+ <ng-container *ngSwitchCase="'hhmmss'">
494
+ <nz-time-picker nzFormat="HH:mm:ss" [formControl]="formControl" [formlyAttributes]="field"></nz-time-picker>
495
+ </ng-container>
496
+
497
+ <ng-container *ngSwitchCase="'datetime'">
498
+ <nz-date-picker nzFormat="yyyy-MM-dd HH:mm:ss" [formControl]="formControl" [formlyAttributes]="field"></nz-date-picker>
499
+ </ng-container>
500
+ <ng-container *ngSwitchCase="'date'">
501
+ <nz-date-picker [formControl]="formControl" [formlyAttributes]="field" [nzDisabledDate]="disabledDate"></nz-date-picker>
502
+ </ng-container>
503
+ <ng-container *ngSwitchCase="'year'">
504
+ <nz-year-picker [formControl]="formControl" [formlyAttributes]="field"></nz-year-picker>
505
+ </ng-container>
506
+ <ng-container *ngSwitchCase="'month'">
507
+ <nz-month-picker [formControl]="formControl" [formlyAttributes]="field"></nz-month-picker>
508
+ </ng-container>
509
+ <ng-container *ngSwitchCase="'time'">
510
+ <nz-time-picker [formControl]="formControl" [nzFormat]="format" [formlyAttributes]="field"></nz-time-picker>
511
+ </ng-container>
512
+ <ng-container *ngSwitchDefault></ng-container>
513
+ </ng-container>
514
+ </ng-template>
515
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i4.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i4.NzMonthPickerComponent, selector: "nz-month-picker", exportAs: ["nzMonthPicker"] }, { kind: "directive", type: i4.NzYearPickerComponent, selector: "nz-year-picker", exportAs: ["nzYearPicker"] }, { kind: "ngmodule", type: NzTimePickerModule }, { kind: "component", type: i5.NzTimePickerComponent, selector: "nz-time-picker", inputs: ["nzId", "nzSize", "nzStatus", "nzHourStep", "nzMinuteStep", "nzSecondStep", "nzClearText", "nzNowText", "nzOkText", "nzPopupClassName", "nzPlaceHolder", "nzAddOn", "nzDefaultOpenValue", "nzDisabledHours", "nzDisabledMinutes", "nzDisabledSeconds", "nzFormat", "nzOpen", "nzUse12Hours", "nzSuffixIcon", "nzHideDisabledOptions", "nzAllowEmpty", "nzDisabled", "nzAutoFocus", "nzBackdrop", "nzBorderless", "nzInputReadOnly"], outputs: ["nzOpenChange"], exportAs: ["nzTimePicker"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
516
+ }
517
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDatetime, decorators: [{
518
+ type: Component,
519
+ args: [{
520
+ selector: 'deon-nz-field-datetime',
521
+ template: `
522
+ <div class="field-text deon-text deon-text-datetime" *ngIf="editor == false; else tmpField">
523
+ {{ dateText }}
524
+ </div>
525
+ <ng-template #tmpField>
526
+ <ng-container [ngSwitch]="showType">
527
+ <ng-container *ngSwitchCase="'yyyy'">
528
+ <nz-year-picker [formControl]="formControl" [formlyAttributes]="field"></nz-year-picker>
529
+ </ng-container>
530
+ <ng-container *ngSwitchCase="'mm'">
531
+ <nz-month-picker [formControl]="formControl" [formlyAttributes]="field"></nz-month-picker>
532
+ </ng-container>
533
+ <ng-container *ngSwitchCase="'mmdd'">
534
+ <nz-date-picker nzFormat="MM-dd" [formControl]="formControl" [formlyAttributes]="field"></nz-date-picker>
535
+ </ng-container>
536
+ <ng-container *ngSwitchCase="'yyyymm'">
537
+ <nz-month-picker [formControl]="formControl" [formlyAttributes]="field"></nz-month-picker>
538
+ </ng-container>
539
+ <ng-container *ngSwitchCase="'yyyymmdd'">
540
+ <nz-date-picker [formControl]="formControl" [formlyAttributes]="field" [nzDisabledDate]="disabledDate"></nz-date-picker>
541
+ </ng-container>
542
+ <ng-container *ngSwitchCase="'yyyymmddhh'">
543
+ <nz-date-picker
544
+ nzFormat="yyyy-MM-dd HH"
545
+ [nzShowTime]="{ nzFormat: 'HH' }"
546
+ [formControl]="formControl"
547
+ [formlyAttributes]="field"
548
+ ></nz-date-picker>
549
+ </ng-container>
550
+ <ng-container *ngSwitchCase="'yyyymmddhhmm'">
551
+ <nz-date-picker
552
+ nzFormat="yyyy-MM-dd HH:mm"
553
+ [nzShowTime]="{ nzFormat: 'HH:mm' }"
554
+ [formControl]="formControl"
555
+ [formlyAttributes]="field"
556
+ ></nz-date-picker>
557
+ </ng-container>
558
+ <ng-container *ngSwitchCase="'yyyymmddhhmmss'">
559
+ <nz-date-picker
560
+ nzFormat="yyyy-MM-dd HH:mm:ss"
561
+ [nzShowTime]="{ nzFormat: 'HH:mm:ss' }"
562
+ [formControl]="formControl"
563
+ [formlyAttributes]="field"
564
+ ></nz-date-picker>
565
+ </ng-container>
566
+ <ng-container *ngSwitchCase="'hhmm'">
567
+ <nz-time-picker nzFormat="HH:mm" [formControl]="formControl" [formlyAttributes]="field"></nz-time-picker>
568
+ </ng-container>
569
+ <ng-container *ngSwitchCase="'hhmmss'">
570
+ <nz-time-picker nzFormat="HH:mm:ss" [formControl]="formControl" [formlyAttributes]="field"></nz-time-picker>
571
+ </ng-container>
572
+
573
+ <ng-container *ngSwitchCase="'datetime'">
574
+ <nz-date-picker nzFormat="yyyy-MM-dd HH:mm:ss" [formControl]="formControl" [formlyAttributes]="field"></nz-date-picker>
575
+ </ng-container>
576
+ <ng-container *ngSwitchCase="'date'">
577
+ <nz-date-picker [formControl]="formControl" [formlyAttributes]="field" [nzDisabledDate]="disabledDate"></nz-date-picker>
578
+ </ng-container>
579
+ <ng-container *ngSwitchCase="'year'">
580
+ <nz-year-picker [formControl]="formControl" [formlyAttributes]="field"></nz-year-picker>
581
+ </ng-container>
582
+ <ng-container *ngSwitchCase="'month'">
583
+ <nz-month-picker [formControl]="formControl" [formlyAttributes]="field"></nz-month-picker>
584
+ </ng-container>
585
+ <ng-container *ngSwitchCase="'time'">
586
+ <nz-time-picker [formControl]="formControl" [nzFormat]="format" [formlyAttributes]="field"></nz-time-picker>
587
+ </ng-container>
588
+ <ng-container *ngSwitchDefault></ng-container>
589
+ </ng-container>
590
+ </ng-template>
591
+ `,
592
+ changeDetection: ChangeDetectionStrategy.OnPush,
593
+ providers: [{ provide: NZ_DATE_LOCALE, useValue: zhCN }],
594
+ imports: [
595
+ CommonModule,
596
+ ReactiveFormsModule,
597
+ NzDatePickerModule,
598
+ NzTimePickerModule,
599
+ FormlyModule
600
+ ]
601
+ }]
602
+ }], ctorParameters: () => [{ type: i1$2.NzI18nService }] });
603
+
604
+ class DeonNzDateTimeModule {
605
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
606
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDateTimeModule, imports: [CommonModule,
607
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
608
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDateTimeModule, imports: [CommonModule,
609
+ DeonNzFormFieldModule,
610
+ FormlyModule.forChild({
611
+ types: [
612
+ {
613
+ name: 'datetime',
614
+ component: DeonNzFieldDatetime,
615
+ wrappers: ['formly-form-field'],
616
+ },
617
+ ],
618
+ })] });
619
+ }
620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDateTimeModule, decorators: [{
621
+ type: NgModule,
622
+ args: [{
623
+ imports: [
624
+ CommonModule,
625
+ DeonNzFormFieldModule,
626
+ FormlyModule.forChild({
627
+ types: [
628
+ {
629
+ name: 'datetime',
630
+ component: DeonNzFieldDatetime,
631
+ wrappers: ['formly-form-field'],
632
+ },
633
+ ],
634
+ }),
635
+ ],
636
+ }]
637
+ }] });
638
+
639
+ class DeonNzFieldDesc extends FieldType {
640
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDesc, deps: null, target: i0.ɵɵFactoryTarget.Component });
641
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldDesc, isStandalone: true, selector: "deon-field-nz-desc", usesInheritance: true, ngImport: i0, template: `<div [innerHtml]="props?.label | safeHtml"></div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i1$3.SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
642
+ }
643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDesc, decorators: [{
644
+ type: Component,
645
+ args: [{
646
+ selector: 'deon-field-nz-desc',
647
+ template: `<div [innerHtml]="props?.label | safeHtml"></div>`,
648
+ changeDetection: ChangeDetectionStrategy.OnPush,
649
+ imports: [
650
+ CommonModule,
651
+ ReactiveFormsModule,
652
+ GramPipeModule
653
+ ]
654
+ }]
655
+ }] });
656
+
657
+ class DeonNzDescModule {
658
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDescModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
659
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDescModule, imports: [CommonModule,
660
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
661
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDescModule, imports: [CommonModule,
662
+ DeonNzFormFieldModule,
663
+ FormlyModule.forChild({
664
+ types: [
665
+ {
666
+ name: 'desc',
667
+ component: DeonNzFieldDesc,
668
+ },
669
+ ],
670
+ })] });
671
+ }
672
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDescModule, decorators: [{
673
+ type: NgModule,
674
+ args: [{
675
+ imports: [
676
+ CommonModule,
677
+ DeonNzFormFieldModule,
678
+ FormlyModule.forChild({
679
+ types: [
680
+ {
681
+ name: 'desc',
682
+ component: DeonNzFieldDesc,
683
+ },
684
+ ],
685
+ }),
686
+ ]
687
+ }]
688
+ }] });
689
+
690
+ class DeonNzFieldDim extends FieldType {
691
+ globalSrv;
692
+ defaultOptions = {
693
+ props: {},
694
+ };
695
+ constructor(globalSrv) {
696
+ super();
697
+ this.globalSrv = globalSrv;
698
+ }
699
+ btnAdd() {
700
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
701
+ field: this.field,
702
+ type: 'ADD',
703
+ });
704
+ }
705
+ btnRef() {
706
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
707
+ field: this.field,
708
+ type: 'REF',
709
+ });
710
+ }
711
+ btnKeyResult() {
712
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
713
+ field: this.field,
714
+ type: 'KEYRESULT',
715
+ });
716
+ }
717
+ btnTask() {
718
+ this.globalSrv.notifyDataChanged(globalKey.kpi_dim_button, {
719
+ field: this.field,
720
+ type: 'TASK',
721
+ });
722
+ }
723
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDim, deps: [{ token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
724
+ 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i5$2.ɵ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: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
725
+ }
726
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDim, decorators: [{
727
+ type: Component,
728
+ args: [{ selector: 'deon-nz-field-dim', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
729
+ CommonModule,
730
+ ReactiveFormsModule,
731
+ NzIconModule,
732
+ NzButtonModule,
733
+ FormlyModule
734
+ ], 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"] }]
735
+ }], ctorParameters: () => [{ type: i1$4.GramGlobalService }] });
736
+
737
+ class DeonNzDimModule {
738
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
739
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, imports: [CommonModule,
740
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
741
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, imports: [CommonModule,
742
+ DeonNzFormFieldModule,
743
+ FormlyModule.forChild({
744
+ types: [
745
+ {
746
+ name: 'dim',
747
+ component: DeonNzFieldDim,
748
+ },
749
+ ],
750
+ })] });
751
+ }
752
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimModule, decorators: [{
753
+ type: NgModule,
754
+ args: [{
755
+ imports: [
756
+ CommonModule,
757
+ DeonNzFormFieldModule,
758
+ FormlyModule.forChild({
759
+ types: [
760
+ {
761
+ name: 'dim',
762
+ component: DeonNzFieldDim,
763
+ },
764
+ ],
765
+ }),
766
+ ],
767
+ }]
768
+ }] });
769
+
770
+ class DeonNzFieldDimIndicator extends FieldType {
771
+ modal;
772
+ msg;
773
+ globalSrv;
774
+ defaultOptions = {
775
+ props: {},
776
+ };
777
+ constructor(modal, msg, globalSrv) {
778
+ super();
779
+ this.modal = modal;
780
+ this.msg = msg;
781
+ this.globalSrv = globalSrv;
782
+ }
783
+ btnUp() {
784
+ this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {
785
+ field: this.field,
786
+ type: 'UP',
787
+ });
788
+ }
789
+ btnDown() {
790
+ this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {
791
+ field: this.field,
792
+ type: 'DOWN',
793
+ });
794
+ }
795
+ btnDelete() {
796
+ this.modal.confirm({
797
+ nzTitle: '提示',
798
+ nzContent: `您确定需要删除该指标吗?`,
799
+ nzOnOk: () => {
800
+ this.globalSrv.notifyDataChanged(globalKey.kpi_ind_button, {
801
+ field: this.field,
802
+ type: 'DELETE',
803
+ });
804
+ },
805
+ });
806
+ }
807
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicator, deps: [{ token: i1$5.NzModalService }, { token: i2$1.NzMessageService }, { token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
808
+ 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i4$1.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5$2.ɵ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: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
809
+ }
810
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicator, decorators: [{
811
+ type: Component,
812
+ args: [{ selector: 'deon-nz-field-indicator', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
813
+ CommonModule,
814
+ ReactiveFormsModule,
815
+ NzIconModule,
816
+ NzButtonModule,
817
+ FormlyModule
818
+ ], 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"] }]
819
+ }], ctorParameters: () => [{ type: i1$5.NzModalService }, { type: i2$1.NzMessageService }, { type: i1$4.GramGlobalService }] });
820
+
821
+ class DeonNzFieldDimIndicatorFinish extends FieldType {
822
+ modal;
823
+ msg;
824
+ globalSrv;
825
+ defaultOptions = {
826
+ props: {},
827
+ };
828
+ constructor(modal, msg, globalSrv) {
829
+ super();
830
+ this.modal = modal;
831
+ this.msg = msg;
832
+ this.globalSrv = globalSrv;
833
+ }
834
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorFinish, deps: [{ token: i1$5.NzModalService }, { token: i2$1.NzMessageService }, { token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
835
+ 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.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: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
836
+ }
837
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorFinish, decorators: [{
838
+ type: Component,
839
+ args: [{ selector: 'deon-nz-field-indicator-finish', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
840
+ CommonModule,
841
+ ReactiveFormsModule,
842
+ NzIconModule,
843
+ NzButtonModule,
844
+ FormlyModule
845
+ ], 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"] }]
846
+ }], ctorParameters: () => [{ type: i1$5.NzModalService }, { type: i2$1.NzMessageService }, { type: i1$4.GramGlobalService }] });
847
+
848
+ class DeonNzFieldDimIndicatorAssess extends FieldType {
849
+ modal;
850
+ msg;
851
+ globalSrv;
852
+ defaultOptions = {
853
+ props: {},
854
+ };
855
+ constructor(modal, msg, globalSrv) {
856
+ super();
857
+ this.modal = modal;
858
+ this.msg = msg;
859
+ this.globalSrv = globalSrv;
860
+ }
861
+ get totalRenderedColumns() {
862
+ const baseLength = this.field?.fieldGroup?.length ?? 0;
863
+ const expandCount = this.field?.fieldGroup?.filter(f => f?.key === 'indScoreSelect' || f?.key === 'indScoreEnter').length;
864
+ if (expandCount > 0) {
865
+ const expandInfoLength = Array.isArray(this.props?.["expandInfo"]) ? this.props?.["expandInfo"].length : 0;
866
+ return baseLength + expandInfoLength;
867
+ }
868
+ else {
869
+ return baseLength;
870
+ }
871
+ }
872
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorAssess, deps: [{ token: i1$5.NzModalService }, { token: i2$1.NzMessageService }, { token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
873
+ 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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i5$2.ɵ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: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
874
+ }
875
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldDimIndicatorAssess, decorators: [{
876
+ type: Component,
877
+ args: [{ selector: 'deon-nz-field-indicator-assess', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
878
+ CommonModule,
879
+ ReactiveFormsModule,
880
+ NzIconModule,
881
+ NzButtonModule,
882
+ FormlyModule
883
+ ], 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"] }]
884
+ }], ctorParameters: () => [{ type: i1$5.NzModalService }, { type: i2$1.NzMessageService }, { type: i1$4.GramGlobalService }] });
885
+
886
+ class DeonNzDimIndicatorModule {
887
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
888
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, imports: [DeonNzFormFieldModule, i1$1.FormlyModule] });
889
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, imports: [DeonNzFormFieldModule,
890
+ FormlyModule.forChild({
891
+ types: [
892
+ {
893
+ name: 'indicator',
894
+ component: DeonNzFieldDimIndicator,
895
+ },
896
+ {
897
+ name: 'indicator_finish',
898
+ component: DeonNzFieldDimIndicatorFinish,
899
+ },
900
+ {
901
+ name: 'indicator_assess',
902
+ component: DeonNzFieldDimIndicatorAssess,
903
+ },
904
+ ],
905
+ })] });
906
+ }
907
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzDimIndicatorModule, decorators: [{
908
+ type: NgModule,
909
+ args: [{
910
+ imports: [
911
+ DeonNzFormFieldModule,
912
+ FormlyModule.forChild({
913
+ types: [
914
+ {
915
+ name: 'indicator',
916
+ component: DeonNzFieldDimIndicator,
917
+ },
918
+ {
919
+ name: 'indicator_finish',
920
+ component: DeonNzFieldDimIndicatorFinish,
921
+ },
922
+ {
923
+ name: 'indicator_assess',
924
+ component: DeonNzFieldDimIndicatorAssess,
925
+ },
926
+ ],
927
+ }),
928
+ ],
929
+ }]
930
+ }] });
931
+
932
+ class DeonNzFieldGrid extends FieldType {
933
+ defaultOptions = {
934
+ props: { description: '' },
935
+ };
936
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component });
937
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldGrid, isStandalone: true, selector: "deon-nz-field-grid", host: { properties: { "class": "props && props['className'] ? props['className']:''" } }, usesInheritance: true, ngImport: i0, template: `
938
+ <ng-container *ngIf="props!! && props.label!!">
939
+ <div class="grid-label" [ngClass]="{ required: props?.required }">
940
+ {{ props.label }}
941
+ </div>
942
+ </ng-container>
943
+ <div nz-row>
944
+ <ng-container *ngFor="let grid of field.fieldGroup">
945
+ <div nz-col [nzSpan]="grid.props.cols">
946
+ <ng-container *ngIf="grid.props?.label!!">
947
+ <div class="list-label" [ngClass]="{ required: grid.props?.required }">
948
+ {{ grid.props?.label }}
949
+ </div>
950
+ </ng-container>
951
+ <div class="list-box" [ngClass]="grid.props['className']">
952
+ <div class="list-content" *ngFor="let item of grid?.fieldGroup">
953
+ <formly-field [field]="item"></formly-field>
954
+ <ng-content></ng-content>
955
+ </div>
956
+ </div>
957
+ </div>
958
+ </ng-container>
959
+ </div>
960
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "directive", type: i2$2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2$2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
961
+ }
962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldGrid, decorators: [{
963
+ type: Component,
964
+ args: [{
965
+ selector: 'deon-nz-field-grid',
966
+ template: `
967
+ <ng-container *ngIf="props!! && props.label!!">
968
+ <div class="grid-label" [ngClass]="{ required: props?.required }">
969
+ {{ props.label }}
970
+ </div>
971
+ </ng-container>
972
+ <div nz-row>
973
+ <ng-container *ngFor="let grid of field.fieldGroup">
974
+ <div nz-col [nzSpan]="grid.props.cols">
975
+ <ng-container *ngIf="grid.props?.label!!">
976
+ <div class="list-label" [ngClass]="{ required: grid.props?.required }">
977
+ {{ grid.props?.label }}
978
+ </div>
979
+ </ng-container>
980
+ <div class="list-box" [ngClass]="grid.props['className']">
981
+ <div class="list-content" *ngFor="let item of grid?.fieldGroup">
982
+ <formly-field [field]="item"></formly-field>
983
+ <ng-content></ng-content>
984
+ </div>
985
+ </div>
986
+ </div>
987
+ </ng-container>
988
+ </div>
989
+ `,
990
+ host: {
991
+ '[class]': "props && props['className'] ? props['className']:''",
992
+ },
993
+ changeDetection: ChangeDetectionStrategy.OnPush,
994
+ imports: [
995
+ CommonModule,
996
+ NzGridModule,
997
+ FormlyModule
998
+ ]
999
+ }]
1000
+ }] });
1001
+
1002
+ class DeonNzGridModule {
1003
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1004
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGridModule, imports: [CommonModule,
1005
+ ReactiveFormsModule,
1006
+ NzGridModule,
1007
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
1008
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGridModule, imports: [CommonModule,
1009
+ ReactiveFormsModule,
1010
+ NzGridModule,
1011
+ DeonNzFormFieldModule,
1012
+ FormlyModule.forChild({
1013
+ types: [
1014
+ {
1015
+ name: 'grid',
1016
+ component: DeonNzFieldGrid,
1017
+ },
1018
+ ],
1019
+ })] });
1020
+ }
1021
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGridModule, decorators: [{
1022
+ type: NgModule,
1023
+ args: [{
1024
+ imports: [
1025
+ CommonModule,
1026
+ ReactiveFormsModule,
1027
+ NzGridModule,
1028
+ DeonNzFormFieldModule,
1029
+ FormlyModule.forChild({
1030
+ types: [
1031
+ {
1032
+ name: 'grid',
1033
+ component: DeonNzFieldGrid,
1034
+ },
1035
+ ],
1036
+ }),
1037
+ ],
1038
+ }]
1039
+ }] });
1040
+
1041
+ class DeonNzFieldGroup extends FieldType {
1042
+ defaultOptions = {
1043
+ props: { description: '' },
1044
+ };
1045
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
1046
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldGroup, isStandalone: true, selector: "deon-nz-field-group", host: { properties: { "class": "props && props?.className?'gutter-row ant-row '+props.className:'gutter-row ant-row'" } }, usesInheritance: true, ngImport: i0, template: `
1047
+ <formly-field
1048
+ *ngFor="let f of field.fieldGroup"
1049
+ [field]="f"
1050
+ [ngClass]="[
1051
+ 'gutter-row',
1052
+ 'ant-col',
1053
+ f.props.cols
1054
+ ? 'ant-col-' + f.props.cols
1055
+ : 'ant-col-24'
1056
+ ]"
1057
+ ></formly-field>
1058
+ <ng-content></ng-content>
1059
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1060
+ }
1061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldGroup, decorators: [{
1062
+ type: Component,
1063
+ args: [{
1064
+ selector: 'deon-nz-field-group',
1065
+ template: `
1066
+ <formly-field
1067
+ *ngFor="let f of field.fieldGroup"
1068
+ [field]="f"
1069
+ [ngClass]="[
1070
+ 'gutter-row',
1071
+ 'ant-col',
1072
+ f.props.cols
1073
+ ? 'ant-col-' + f.props.cols
1074
+ : 'ant-col-24'
1075
+ ]"
1076
+ ></formly-field>
1077
+ <ng-content></ng-content>
1078
+ `,
1079
+ host: {
1080
+ '[class]': "props && props?.className?'gutter-row ant-row '+props.className:'gutter-row ant-row'",
1081
+ },
1082
+ changeDetection: ChangeDetectionStrategy.OnPush,
1083
+ imports: [
1084
+ CommonModule,
1085
+ FormsModule, ReactiveFormsModule,
1086
+ FormlyModule
1087
+ ]
1088
+ }]
1089
+ }] });
1090
+
1091
+ class DeonNzGroupModule {
1092
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1093
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGroupModule, imports: [CommonModule,
1094
+ ReactiveFormsModule,
1095
+ NzGridModule,
1096
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
1097
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGroupModule, imports: [CommonModule,
1098
+ ReactiveFormsModule,
1099
+ NzGridModule,
1100
+ DeonNzFormFieldModule,
1101
+ FormlyModule.forChild({
1102
+ types: [
1103
+ {
1104
+ name: 'group',
1105
+ component: DeonNzFieldGroup,
1106
+ },
1107
+ {
1108
+ name: 'delon-group',
1109
+ component: DeonNzFieldGroup,
1110
+ },
1111
+ ],
1112
+ })] });
1113
+ }
1114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGroupModule, decorators: [{
1115
+ type: NgModule,
1116
+ args: [{
1117
+ imports: [
1118
+ CommonModule,
1119
+ ReactiveFormsModule,
1120
+ NzGridModule,
1121
+ DeonNzFormFieldModule,
1122
+ FormlyModule.forChild({
1123
+ types: [
1124
+ {
1125
+ name: 'group',
1126
+ component: DeonNzFieldGroup,
1127
+ },
1128
+ {
1129
+ name: 'delon-group',
1130
+ component: DeonNzFieldGroup,
1131
+ },
1132
+ ],
1133
+ }),
1134
+ ],
1135
+ }]
1136
+ }] });
1137
+
1138
+ class DeonNzFieldHtml extends FieldType {
1139
+ defaultOptions = {
1140
+ props: { description: '' },
1141
+ };
1142
+ get text() {
1143
+ if (this.model && this.model.hasOwnProperty(this.field.key)) {
1144
+ let str = this.field.key;
1145
+ let value = this.model[str];
1146
+ if (value == undefined || value == null) {
1147
+ value = '';
1148
+ }
1149
+ return value;
1150
+ }
1151
+ return '';
1152
+ }
1153
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldHtml, deps: null, target: i0.ɵɵFactoryTarget.Component });
1154
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldHtml, isStandalone: true, selector: "deon-nz-field-html", usesInheritance: true, ngImport: i0, template: `
1155
+ <div [innerHtml]="text | safeHtml" style="padding:8px 11px"></div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i1$3.SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1156
+ }
1157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldHtml, decorators: [{
1158
+ type: Component,
1159
+ args: [{
1160
+ selector: 'deon-nz-field-html',
1161
+ template: `
1162
+ <div [innerHtml]="text | safeHtml" style="padding:8px 11px"></div>`,
1163
+ changeDetection: ChangeDetectionStrategy.OnPush,
1164
+ imports: [
1165
+ CommonModule,
1166
+ FormsModule, ReactiveFormsModule,
1167
+ GramPipeModule
1168
+ ]
1169
+ }]
1170
+ }] });
1171
+
1172
+ class DeonNzHtmlModule {
1173
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1174
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, imports: [CommonModule,
1175
+ ReactiveFormsModule,
1176
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
1177
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, imports: [CommonModule,
1178
+ ReactiveFormsModule,
1179
+ DeonNzFormFieldModule,
1180
+ FormlyModule.forChild({
1181
+ types: [
1182
+ {
1183
+ name: 'html',
1184
+ component: DeonNzFieldHtml,
1185
+ wrappers: ['formly-form-field'],
1186
+ },
1187
+ ],
1188
+ })] });
1189
+ }
1190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, decorators: [{
1191
+ type: NgModule,
1192
+ args: [{
1193
+ imports: [
1194
+ CommonModule,
1195
+ ReactiveFormsModule,
1196
+ DeonNzFormFieldModule,
1197
+ FormlyModule.forChild({
1198
+ types: [
1199
+ {
1200
+ name: 'html',
1201
+ component: DeonNzFieldHtml,
1202
+ wrappers: ['formly-form-field'],
1203
+ },
1204
+ ],
1205
+ }),
1206
+ ],
1207
+ }]
1208
+ }] });
1209
+
1210
+ class DeonNzFieldIcon extends FieldType {
1211
+ defaultOptions = {
1212
+ props: {},
1213
+ };
1214
+ get text() {
1215
+ if (this.model && this.model.hasOwnProperty(this.field.key)) {
1216
+ let str = this.field.key;
1217
+ return this.model[str];
1218
+ }
1219
+ return '';
1220
+ }
1221
+ listIcon = [
1222
+ 'icon-a001',
1223
+ 'icon-a020',
1224
+ 'icon-a078',
1225
+ 'icon-a079',
1226
+ 'icon-a07a',
1227
+ 'icon-a07b', // 第一行
1228
+ 'icon-a07c',
1229
+ 'icon-a07d',
1230
+ 'icon-a07e',
1231
+ 'icon-a07f',
1232
+ 'icon-a080',
1233
+ 'icon-a082', // 第二行
1234
+ 'icon-a083',
1235
+ 'icon-a084',
1236
+ 'icon-a085',
1237
+ 'icon-a086',
1238
+ 'icon-a088',
1239
+ 'icon-a089', // 第三行
1240
+ 'icon-a0db',
1241
+ 'icon-a0dc',
1242
+ 'icon-a0e4',
1243
+ 'icon-a0f1',
1244
+ 'icon-a0f2',
1245
+ 'icon-a107',
1246
+ ];
1247
+ get curValue() {
1248
+ let result = null;
1249
+ if (this.model && this.model && this.model[this.key]) {
1250
+ result = this.model[this.key];
1251
+ }
1252
+ return result;
1253
+ }
1254
+ get clickHide() {
1255
+ if (this.field.editor == false) {
1256
+ return false;
1257
+ }
1258
+ return true;
1259
+ }
1260
+ itemClick(item) {
1261
+ if (this.model && this.model) {
1262
+ this.model[this.key] = item;
1263
+ this.formControl.patchValue(this.model[this.key]);
1264
+ this.formControl.markAsTouched();
1265
+ }
1266
+ }
1267
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldIcon, deps: null, target: i0.ɵɵFactoryTarget.Component });
1268
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldIcon, isStandalone: true, selector: "deon-nz-field-icon", usesInheritance: true, ngImport: i0, template: "<div nz-dropdown [nzDropdownMenu]=\"menu\" class=\"icon-box\" [nzOverlayClassName]=\"'icon-component'\" [nzTrigger]=\"'click'\">\n <span class=\"icon-span\" *ngIf=\"curValue != null && curValue!!; else empty\" [ngClass]=\"curValue\"> </span>\n <span class=\"icon-down\"><i nz-icon nzType=\"down\"></i></span>\n</div>\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item *ngFor=\"let item of listIcon\" (click)=\"itemClick(item)\">\n <div [ngClass]=\"item\"></div>\n </li>\n </ul>\n</nz-dropdown-menu>\n<ng-template #empty>\n <span class=\"icon-span\"> </span>\n</ng-template>\n", styles: [":host ::ng-deep .icon-box{display:flex;align-items:center;width:60px;height:30px;padding:5px 11px;font-size:12px;line-height:30px;border:1px solid #eaeaea;border-radius:2px;cursor:pointer;background-color:#fff}:host ::ng-deep .icon-span{display:inline-block;font-size:16px;flex:1}:host ::ng-deep .icon-down{margin-left:6px}:host ::ng-deep .color-control{height:32px;border:1px solid #eaeaea;width:60px;background-color:#fff;padding:8px 13px}:host ::ng-deep .color-control div{width:100%;height:15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i3$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i3$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i4$2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1269
+ }
1270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldIcon, decorators: [{
1271
+ type: Component,
1272
+ args: [{ selector: 'deon-nz-field-icon', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
1273
+ CommonModule,
1274
+ FormsModule, ReactiveFormsModule,
1275
+ NzIconModule,
1276
+ NzDropDownModule,
1277
+ FormlyModule
1278
+ ], template: "<div nz-dropdown [nzDropdownMenu]=\"menu\" class=\"icon-box\" [nzOverlayClassName]=\"'icon-component'\" [nzTrigger]=\"'click'\">\n <span class=\"icon-span\" *ngIf=\"curValue != null && curValue!!; else empty\" [ngClass]=\"curValue\"> </span>\n <span class=\"icon-down\"><i nz-icon nzType=\"down\"></i></span>\n</div>\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item *ngFor=\"let item of listIcon\" (click)=\"itemClick(item)\">\n <div [ngClass]=\"item\"></div>\n </li>\n </ul>\n</nz-dropdown-menu>\n<ng-template #empty>\n <span class=\"icon-span\"> </span>\n</ng-template>\n", styles: [":host ::ng-deep .icon-box{display:flex;align-items:center;width:60px;height:30px;padding:5px 11px;font-size:12px;line-height:30px;border:1px solid #eaeaea;border-radius:2px;cursor:pointer;background-color:#fff}:host ::ng-deep .icon-span{display:inline-block;font-size:16px;flex:1}:host ::ng-deep .icon-down{margin-left:6px}:host ::ng-deep .color-control{height:32px;border:1px solid #eaeaea;width:60px;background-color:#fff;padding:8px 13px}:host ::ng-deep .color-control div{width:100%;height:15px}\n"] }]
1279
+ }] });
1280
+
1281
+ class DeonNzIconModule {
1282
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1283
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, imports: [CommonModule,
1284
+ ReactiveFormsModule,
1285
+ DeonNzFormFieldModule,
1286
+ NzIconModule,
1287
+ NzInputModule,
1288
+ NzButtonModule,
1289
+ NzDropDownModule, i1$1.FormlyModule] });
1290
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, imports: [CommonModule,
1291
+ ReactiveFormsModule,
1292
+ DeonNzFormFieldModule,
1293
+ NzIconModule,
1294
+ NzInputModule,
1295
+ NzButtonModule,
1296
+ NzDropDownModule,
1297
+ FormlyModule.forChild({
1298
+ types: [
1299
+ {
1300
+ name: 'icon',
1301
+ component: DeonNzFieldIcon,
1302
+ wrappers: ['formly-form-field'],
1303
+ },
1304
+ ],
1305
+ })] });
1306
+ }
1307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, decorators: [{
1308
+ type: NgModule,
1309
+ args: [{
1310
+ imports: [
1311
+ CommonModule,
1312
+ ReactiveFormsModule,
1313
+ DeonNzFormFieldModule,
1314
+ NzIconModule,
1315
+ NzInputModule,
1316
+ NzButtonModule,
1317
+ NzDropDownModule,
1318
+ FormlyModule.forChild({
1319
+ types: [
1320
+ {
1321
+ name: 'icon',
1322
+ component: DeonNzFieldIcon,
1323
+ wrappers: ['formly-form-field'],
1324
+ },
1325
+ ],
1326
+ }),
1327
+ ],
1328
+ }]
1329
+ }] });
1330
+
1331
+ class DeonNzFieldLabel extends FieldType {
1332
+ defaultOptions = {
1333
+ props: {},
1334
+ };
1335
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLabel, deps: null, target: i0.ɵɵFactoryTarget.Component });
1336
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldLabel, isStandalone: true, selector: "deon-nz-field-label", usesInheritance: true, ngImport: i0, template: ` {{ props.label }} `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1337
+ }
1338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLabel, decorators: [{
1339
+ type: Component,
1340
+ args: [{
1341
+ selector: 'deon-nz-field-label',
1342
+ template: ` {{ props.label }} `,
1343
+ changeDetection: ChangeDetectionStrategy.OnPush,
1344
+ imports: [
1345
+ CommonModule,
1346
+ FormsModule,
1347
+ ReactiveFormsModule
1348
+ ]
1349
+ }]
1350
+ }] });
1351
+
1352
+ class DeonNzLabelModule {
1353
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1354
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, imports: [CommonModule,
1355
+ ReactiveFormsModule,
1356
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
1357
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, imports: [CommonModule,
1358
+ ReactiveFormsModule,
1359
+ DeonNzFormFieldModule,
1360
+ FormlyModule.forChild({
1361
+ types: [
1362
+ {
1363
+ name: 'label',
1364
+ component: DeonNzFieldLabel,
1365
+ },
1366
+ ],
1367
+ })] });
1368
+ }
1369
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, decorators: [{
1370
+ type: NgModule,
1371
+ args: [{
1372
+ imports: [
1373
+ CommonModule,
1374
+ ReactiveFormsModule,
1375
+ DeonNzFormFieldModule,
1376
+ FormlyModule.forChild({
1377
+ types: [
1378
+ {
1379
+ name: 'label',
1380
+ component: DeonNzFieldLabel,
1381
+ },
1382
+ ],
1383
+ }),
1384
+ ],
1385
+ }]
1386
+ }] });
1387
+
1388
+ class DeonNzFieldLine extends FieldType {
1389
+ defaultOptions = {
1390
+ props: { description: '' },
1391
+ };
1392
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLine, deps: null, target: i0.ɵɵFactoryTarget.Component });
1393
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldLine, isStandalone: true, selector: "deon-nz-field-line", usesInheritance: true, ngImport: i0, template: ` <nz-divider nzPlain [nzText]="props.label" [nzOrientation]="props['orientation']"></nz-divider> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzDividerModule }, { kind: "component", type: i1$6.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzVariant", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1394
+ }
1395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLine, decorators: [{
1396
+ type: Component,
1397
+ args: [{
1398
+ selector: 'deon-nz-field-line',
1399
+ template: ` <nz-divider nzPlain [nzText]="props.label" [nzOrientation]="props['orientation']"></nz-divider> `,
1400
+ changeDetection: ChangeDetectionStrategy.OnPush,
1401
+ imports: [
1402
+ CommonModule,
1403
+ FormsModule,
1404
+ ReactiveFormsModule,
1405
+ NzDividerModule,
1406
+ FormlyModule
1407
+ ]
1408
+ }]
1409
+ }] });
1410
+
1411
+ class DeonNzLineModule {
1412
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1413
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, imports: [CommonModule,
1414
+ ReactiveFormsModule,
1415
+ NzDividerModule,
1416
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
1417
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, imports: [CommonModule,
1418
+ ReactiveFormsModule,
1419
+ NzDividerModule,
1420
+ DeonNzFormFieldModule,
1421
+ FormlyModule.forChild({
1422
+ types: [
1423
+ {
1424
+ name: 'line',
1425
+ component: DeonNzFieldLine,
1426
+ },
1427
+ ],
1428
+ })] });
1429
+ }
1430
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, decorators: [{
1431
+ type: NgModule,
1432
+ args: [{
1433
+ imports: [
1434
+ CommonModule,
1435
+ ReactiveFormsModule,
1436
+ NzDividerModule,
1437
+ DeonNzFormFieldModule,
1438
+ FormlyModule.forChild({
1439
+ types: [
1440
+ {
1441
+ name: 'line',
1442
+ component: DeonNzFieldLine,
1443
+ },
1444
+ ],
1445
+ }),
1446
+ ],
1447
+ }]
1448
+ }] });
1449
+
1450
+ class DeonNzFieldList extends FieldType {
1451
+ defaultOptions = {
1452
+ props: {},
1453
+ };
1454
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldList, deps: null, target: i0.ɵɵFactoryTarget.Component });
1455
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldList, isStandalone: true, selector: "deon-nz-field-list", usesInheritance: true, ngImport: i0, template: `
1456
+ <div nz-row>
1457
+ <div nz-col nzSpan="12">col-12</div>
1458
+ <div nz-col nzSpan="12">col-12</div>
1459
+ </div>
1460
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1461
+ }
1462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldList, decorators: [{
1463
+ type: Component,
1464
+ args: [{
1465
+ selector: 'deon-nz-field-list',
1466
+ template: `
1467
+ <div nz-row>
1468
+ <div nz-col nzSpan="12">col-12</div>
1469
+ <div nz-col nzSpan="12">col-12</div>
1470
+ </div>
1471
+ `,
1472
+ changeDetection: ChangeDetectionStrategy.OnPush,
1473
+ imports: [
1474
+ CommonModule,
1475
+ FormsModule, ReactiveFormsModule
1476
+ ]
1477
+ }]
1478
+ }] });
1479
+
1480
+ class DeonNzListModule {
1481
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1482
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, imports: [CommonModule,
1483
+ ReactiveFormsModule,
1484
+ NzGridModule,
1485
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
1486
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, imports: [CommonModule,
1487
+ ReactiveFormsModule,
1488
+ NzGridModule,
1489
+ DeonNzFormFieldModule,
1490
+ FormlyModule.forChild({
1491
+ types: [
1492
+ {
1493
+ name: 'list',
1494
+ component: DeonNzFieldList,
1495
+ },
1496
+ ],
1497
+ })] });
1498
+ }
1499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, decorators: [{
1500
+ type: NgModule,
1501
+ args: [{
1502
+ imports: [
1503
+ CommonModule,
1504
+ ReactiveFormsModule,
1505
+ NzGridModule,
1506
+ DeonNzFormFieldModule,
1507
+ FormlyModule.forChild({
1508
+ types: [
1509
+ {
1510
+ name: 'list',
1511
+ component: DeonNzFieldList,
1512
+ },
1513
+ ],
1514
+ }),
1515
+ ],
1516
+ }]
1517
+ }] });
1518
+
1519
+ class DeonNzFieldNumber extends FieldType {
1520
+ get precision() {
1521
+ if (this.props["precision"] && this.props["precision"] > 0) {
1522
+ return this.props["precision"];
1523
+ }
1524
+ return 0;
1525
+ }
1526
+ get password() {
1527
+ return this.props?.["password"] === true;
1528
+ }
1529
+ constructor() {
1530
+ super();
1531
+ }
1532
+ ngOnInit() { }
1533
+ /**
1534
+ * 防止 nz-input-number 的 formatter 报错(如 toFixed 报错)
1535
+ */
1536
+ formatNumber = (value) => {
1537
+ const val = Number(value);
1538
+ return isNaN(val) ? '' : val.toFixed(this.precision);
1539
+ };
1540
+ /**
1541
+ * 解析输入值为数字,NaN 返回 0
1542
+ */
1543
+ parseNumber = (value) => {
1544
+ const parsed = parseFloat(value);
1545
+ return isNaN(parsed) ? 0 : parsed;
1546
+ };
1547
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, deps: [], target: i0.ɵɵFactoryTarget.Component });
1548
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldNumber, isStandalone: true, selector: "deon-nz-field-number", usesInheritance: true, ngImport: i0, template: `
1549
+ <ng-container *ngIf="!password; else tmpPwd">
1550
+ <ng-container *ngIf="props['unit']; else tmpNumber">
1551
+ <nz-input-group [nzAddOnAfter]="props['unit']">
1552
+ <nz-input-number
1553
+ [formControl]="formControl"
1554
+ [formlyAttributes]="field"
1555
+ [nzDisabled]="!editor"
1556
+ [nzPrecision]="precision"
1557
+ [nzStep]="0"
1558
+ [nzParser]="parseNumber"
1559
+ ></nz-input-number>
1560
+ </nz-input-group>
1561
+ </ng-container>
1562
+ <ng-template #tmpNumber>
1563
+ <nz-input-number
1564
+ [formControl]="formControl"
1565
+ [formlyAttributes]="field"
1566
+ [nzDisabled]="!editor"
1567
+ [nzPrecision]="precision"
1568
+ [nzStep]="precision == 0 ? 1 : 0.1"
1569
+ [nzParser]="parseNumber"
1570
+ ></nz-input-number>
1571
+ </ng-template>
1572
+ </ng-container>
1573
+
1574
+ <ng-template #tmpPwd> *** </ng-template>
1575
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "component", type: i3$1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i4$3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1576
+ }
1577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, decorators: [{
1578
+ type: Component,
1579
+ args: [{
1580
+ selector: 'deon-nz-field-number',
1581
+ template: `
1582
+ <ng-container *ngIf="!password; else tmpPwd">
1583
+ <ng-container *ngIf="props['unit']; else tmpNumber">
1584
+ <nz-input-group [nzAddOnAfter]="props['unit']">
1585
+ <nz-input-number
1586
+ [formControl]="formControl"
1587
+ [formlyAttributes]="field"
1588
+ [nzDisabled]="!editor"
1589
+ [nzPrecision]="precision"
1590
+ [nzStep]="0"
1591
+ [nzParser]="parseNumber"
1592
+ ></nz-input-number>
1593
+ </nz-input-group>
1594
+ </ng-container>
1595
+ <ng-template #tmpNumber>
1596
+ <nz-input-number
1597
+ [formControl]="formControl"
1598
+ [formlyAttributes]="field"
1599
+ [nzDisabled]="!editor"
1600
+ [nzPrecision]="precision"
1601
+ [nzStep]="precision == 0 ? 1 : 0.1"
1602
+ [nzParser]="parseNumber"
1603
+ ></nz-input-number>
1604
+ </ng-template>
1605
+ </ng-container>
1606
+
1607
+ <ng-template #tmpPwd> *** </ng-template>
1608
+ `,
1609
+ changeDetection: ChangeDetectionStrategy.OnPush,
1610
+ standalone: true,
1611
+ imports: [
1612
+ CommonModule,
1613
+ FormsModule,
1614
+ ReactiveFormsModule,
1615
+ NzInputModule,
1616
+ NzInputNumberModule,
1617
+ FormlyModule
1618
+ ]
1619
+ }]
1620
+ }], ctorParameters: () => [] });
1621
+
1622
+ class DeonNzFieldNumberRate extends FieldType {
1623
+ constructor() {
1624
+ super();
1625
+ }
1626
+ ngOnInit() { }
1627
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumberRate, deps: [], target: i0.ɵɵFactoryTarget.Component });
1628
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldNumberRate, isStandalone: true, selector: "deon-nz-field-number", usesInheritance: true, ngImport: i0, template: ` <nz-rate [formControl]="formControl" [formlyAttributes]="field" [nzDisabled]="!editor" [nzAllowClear]="to?.required==true?false:true"> </nz-rate> `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzRateModule }, { kind: "component", type: i2$3.NzRateComponent, selector: "nz-rate", inputs: ["nzAllowClear", "nzAllowHalf", "nzDisabled", "nzAutoFocus", "nzCharacter", "nzCount", "nzTooltips"], outputs: ["nzOnBlur", "nzOnFocus", "nzOnHoverChange", "nzOnKeyDown"], exportAs: ["nzRate"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1629
+ }
1630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumberRate, decorators: [{
1631
+ type: Component,
1632
+ args: [{
1633
+ selector: 'deon-nz-field-number',
1634
+ template: ` <nz-rate [formControl]="formControl" [formlyAttributes]="field" [nzDisabled]="!editor" [nzAllowClear]="to?.required==true?false:true"> </nz-rate> `,
1635
+ changeDetection: ChangeDetectionStrategy.OnPush,
1636
+ imports: [
1637
+ ReactiveFormsModule,
1638
+ NzRateModule,
1639
+ FormlyModule
1640
+ ]
1641
+ }]
1642
+ }], ctorParameters: () => [] });
1643
+
1644
+ class DeonNzNumberModule {
1645
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1646
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, imports: [CommonModule,
1647
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
1648
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, imports: [CommonModule,
1649
+ DeonNzFormFieldModule,
1650
+ FormlyModule.forChild({
1651
+ types: [
1652
+ {
1653
+ name: 'number',
1654
+ component: DeonNzFieldNumber,
1655
+ wrappers: ['formly-form-field'],
1656
+ },
1657
+ { name: 'eval_number', extends: 'number' },
1658
+ { name: 'finish_number', extends: 'number' },
1659
+ {
1660
+ name: 'rate_number',
1661
+ component: DeonNzFieldNumberRate,
1662
+ wrappers: ['formly-form-field'],
1663
+ },
1664
+ ],
1665
+ })] });
1666
+ }
1667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, decorators: [{
1668
+ type: NgModule,
1669
+ args: [{
1670
+ imports: [
1671
+ CommonModule,
1672
+ DeonNzFormFieldModule,
1673
+ FormlyModule.forChild({
1674
+ types: [
1675
+ {
1676
+ name: 'number',
1677
+ component: DeonNzFieldNumber,
1678
+ wrappers: ['formly-form-field'],
1679
+ },
1680
+ { name: 'eval_number', extends: 'number' },
1681
+ { name: 'finish_number', extends: 'number' },
1682
+ {
1683
+ name: 'rate_number',
1684
+ component: DeonNzFieldNumberRate,
1685
+ wrappers: ['formly-form-field'],
1686
+ },
1687
+ ],
1688
+ }),
1689
+ ],
1690
+ }]
1691
+ }] });
1692
+
1693
+ class DeonNzFieldOverTime extends FieldType {
1694
+ defaultOptions = {
1695
+ props: {},
1696
+ };
1697
+ /**
1698
+ * 总值
1699
+ */
1700
+ _pageValue = null;
1701
+ _itemValue = null;
1702
+ _happenValue = null;
1703
+ _beginValue = null;
1704
+ _endValue = null;
1705
+ _numValue = null;
1706
+ _shiftValue = null;
1707
+ _shiftPeriodValue = null;
1708
+ _listChildValue = null;
1709
+ /**
1710
+ * 对比值
1711
+ */
1712
+ happenValueOld = null;
1713
+ beginValueOld = null;
1714
+ endValueOld = null;
1715
+ listChildValueOld = null;
1716
+ get pageEditor() {
1717
+ if (this.editor) {
1718
+ return true;
1719
+ }
1720
+ return false;
1721
+ }
1722
+ get pageValue() {
1723
+ let result = null;
1724
+ if (this?.model && this.model[this.key]) {
1725
+ result = this.model[this.key];
1726
+ }
1727
+ return result;
1728
+ }
1729
+ /**
1730
+ * 加班项目
1731
+ */
1732
+ get itemValue() {
1733
+ if (this._itemValue) {
1734
+ return this._itemValue;
1735
+ }
1736
+ if (this.pageValue && this.pageValue?.itemId) {
1737
+ return this.pageValue.itemId;
1738
+ }
1739
+ return null;
1740
+ }
1741
+ set itemValue(value) {
1742
+ this._itemValue = value;
1743
+ }
1744
+ /**
1745
+ * 加班日期
1746
+ */
1747
+ get happenValue() {
1748
+ if (this._happenValue) {
1749
+ return this._happenValue;
1750
+ }
1751
+ if (this.pageValue && this.pageValue?.happenDate) {
1752
+ return this.pageValue.happenDate;
1753
+ }
1754
+ return null;
1755
+ }
1756
+ set happenValue(value) {
1757
+ this._happenValue = value;
1758
+ }
1759
+ /**
1760
+ * 加班开始时间
1761
+ */
1762
+ get beginValue() {
1763
+ if (this._beginValue) {
1764
+ return this._beginValue;
1765
+ }
1766
+ if (this.pageValue && this.pageValue?.beginDate) {
1767
+ return this.pageValue.beginDate;
1768
+ }
1769
+ return null;
1770
+ }
1771
+ set beginValue(value) {
1772
+ this._beginValue = value;
1773
+ }
1774
+ /**
1775
+ * 加班结束时间
1776
+ */
1777
+ get endValue() {
1778
+ if (this._endValue) {
1779
+ return this._endValue;
1780
+ }
1781
+ if (this.pageValue && this.pageValue?.endDate) {
1782
+ return this.pageValue.endDate;
1783
+ }
1784
+ return null;
1785
+ }
1786
+ set endValue(value) {
1787
+ this._endValue = value;
1788
+ }
1789
+ /**
1790
+ * 加班时长
1791
+ */
1792
+ get numValue() {
1793
+ if (this._numValue) {
1794
+ return this._numValue;
1795
+ }
1796
+ if (this.pageValue && this.pageValue?.numValue) {
1797
+ return this.pageValue.numValue;
1798
+ }
1799
+ return null;
1800
+ }
1801
+ set numValue(value) {
1802
+ this._numValue = value;
1803
+ }
1804
+ /**
1805
+ * 班次
1806
+ */
1807
+ get shiftValue() {
1808
+ if (this._shiftValue) {
1809
+ return this._shiftValue;
1810
+ }
1811
+ if (this.pageValue && this.pageValue?.shiftId) {
1812
+ return this.pageValue.shiftId;
1813
+ }
1814
+ return null;
1815
+ }
1816
+ set shiftValue(value) {
1817
+ this._shiftValue = value;
1818
+ }
1819
+ /**
1820
+ * 班次周期
1821
+ */
1822
+ get shiftPeriodValue() {
1823
+ if (this._shiftPeriodValue) {
1824
+ return this._shiftPeriodValue;
1825
+ }
1826
+ if (this.pageValue && this.pageValue?.shiftPeriod) {
1827
+ return this.pageValue.shiftPeriod;
1828
+ }
1829
+ return null;
1830
+ }
1831
+ set shiftPeriodValue(value) {
1832
+ this._shiftPeriodValue = value;
1833
+ }
1834
+ /**
1835
+ * listChild
1836
+ */
1837
+ get listChildValue() {
1838
+ if (this._listChildValue) {
1839
+ return this._listChildValue;
1840
+ }
1841
+ if (this.pageValue && this.pageValue?.listChild) {
1842
+ return this.pageValue.listChild;
1843
+ }
1844
+ return null;
1845
+ }
1846
+ set listChildValue(value) {
1847
+ this._listChildValue = value;
1848
+ }
1849
+ ngDoCheck() {
1850
+ if (this.happenValueOld != this.happenValue) {
1851
+ this.happenValueOld = this.happenValue;
1852
+ this.dateChange("happenDate", this.happenValue);
1853
+ }
1854
+ else if (this.beginValueOld != this.beginValue) {
1855
+ this.beginValueOld = this.beginValue;
1856
+ this.dateChange("beginDate", this.beginValue);
1857
+ }
1858
+ else if (this.endValueOld != this.endValue) {
1859
+ this.endValueOld = this.endValue;
1860
+ this.dateChange("endDate", this.endValue);
1861
+ }
1862
+ else if (JSON.stringify(this.listChildValueOld) != JSON.stringify(this.listChildValue)) {
1863
+ this.listChildValueOld = this.listChildValue;
1864
+ this.dateChange("listChild", this.listChildValue);
1865
+ }
1866
+ }
1867
+ dateChange(key, itemValue) {
1868
+ if (this.model && this.model) {
1869
+ this.valueChange(key, itemValue);
1870
+ }
1871
+ }
1872
+ itemChange(e) {
1873
+ if (this.model && this.model) {
1874
+ this.valueChange("itemId", this.itemValue);
1875
+ }
1876
+ }
1877
+ shiftChange(e) {
1878
+ if (this.model && this.model) {
1879
+ this.valueChange("shiftId", this.shiftValue);
1880
+ }
1881
+ }
1882
+ shiftPeriodChange(e) {
1883
+ if (this.model && this.model) {
1884
+ this.valueChange("shiftPeriod", this.shiftPeriodValue);
1885
+ }
1886
+ }
1887
+ valueChange(key, itemValue) {
1888
+ if (this.model && this.model) {
1889
+ let value = null;
1890
+ if (this.model[this.key] == undefined || this.model[this.key] == null) {
1891
+ value = {};
1892
+ }
1893
+ else {
1894
+ value = _.cloneDeep(this.model[this.key]);
1895
+ }
1896
+ value[key] = itemValue;
1897
+ if (JSON.stringify(this.model[this.key]) != JSON.stringify(value)) {
1898
+ this.model[this.key] = value;
1899
+ this.formControl.patchValue(this.model[this.key]);
1900
+ this.formControl.markAsTouched();
1901
+ }
1902
+ }
1903
+ }
1904
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldOverTime, deps: null, target: i0.ɵɵFactoryTarget.Component });
1905
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldOverTime, isStandalone: true, selector: "deon-nz-field-overtime", usesInheritance: true, ngImport: i0, template: "<ul class=\"first-box\">\n <li>\n <label>\u52A0\u73ED\u65E5\u671F</label>\n <nz-date-picker [(ngModel)]=\"happenValue\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u5F00\u59CB\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"beginValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u7ED3\u675F\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"endValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u9879\u76EE</label>\n <nz-select [(ngModel)]=\"itemValue\" (ngModelChange)=\"itemChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['itemId']\">\n <ng-container *ngFor=\"let item of props['overtime']['itemId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </ng-container>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u65F6\u957F</label>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"numValue\" />\n </ng-container>\n </li>\n</ul>\n\n<ul class=\"second-box\" *ngIf=\"props['shiftShow'] && !props['zeroSplit']\">\n <li>\n <label>\u73ED\u6B21</label>\n <nz-select [(ngModel)]=\"shiftValue\" (ngModelChange)=\"shiftChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftId']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li>\n <label>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</label>\n <nz-select [(ngModel)]=\"shiftPeriodValue\" (ngModelChange)=\"shiftPeriodChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftPeriod']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftPeriod']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li></li>\n <li></li>\n <li></li>\n</ul>\n\n<div class=\"three-box\" *ngIf=\"props['zeroSplit'] === true\">\n <label class=\"title\">\u96F6\u70B9\u62C6\u5206\u8BE6\u60C5</label>\n <table>\n <thead>\n <tr>\n <th style=\"width: 60px;\">\u5E8F\u53F7</th>\n <th>\u52A0\u73ED\u65E5\u671F</th>\n <th>\u73ED\u6B21</th>\n <th>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</th>\n <th>\u52A0\u73ED\u9879\u76EE</th>\n <th>\u5F00\u59CB\u65F6\u95F4</th>\n <th>\u7ED3\u675F\u65F6\u95F4</th>\n <th>\u52A0\u73ED\u65F6\u957F</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"listChildValue && listChildValue.length > 0; else trEmpty\">\n <tr *ngFor=\"let item of listChildValue; let index = index\">\n <td>{{ index + 1 }}</td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.happenData\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftPeriod\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftPeriod']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftPeriod']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.itemId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['itemId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['itemId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.beginDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.endDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"item.numValue\" />\n </td>\n </tr>\n </ng-container>\n\n <ng-template #trEmpty>\n <tr>\n <td colspan=\"8\" style=\"text-align: center; padding: 5px;\">\u6682\u65E0\u6570\u636E</td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>", styles: [":host ::ng-deep .first-box,:host ::ng-deep .second-box{display:flex;flex-direction:row;margin:0;padding:0;list-style:none}:host ::ng-deep .first-box li,:host ::ng-deep .second-box li{display:flex;flex:1;flex-direction:column}:host ::ng-deep .first-box li+li,:host ::ng-deep .second-box li+li{margin-left:15px}:host ::ng-deep .second-box{margin-top:15px}:host ::ng-deep .three-box{margin-top:15px}:host ::ng-deep .three-box .title{display:flex;margin-bottom:5px}:host ::ng-deep .three-box table{width:100%;border-top:1px solid #eaeaea;border-right:1px solid #eaeaea}:host ::ng-deep .three-box table tr th{padding:8px;font-weight:400;background:#edeff3;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table tr td{padding:6px 8px;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table nz-input-number{width:150px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i3$3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3$3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i4.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1906
+ }
1907
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldOverTime, decorators: [{
1908
+ type: Component,
1909
+ args: [{ selector: 'deon-nz-field-overtime', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
1910
+ CommonModule,
1911
+ FormsModule,
1912
+ ReactiveFormsModule,
1913
+ NzInputModule,
1914
+ NzSelectModule,
1915
+ NzDatePickerModule,
1916
+ FormlyModule
1917
+ ], template: "<ul class=\"first-box\">\n <li>\n <label>\u52A0\u73ED\u65E5\u671F</label>\n <nz-date-picker [(ngModel)]=\"happenValue\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u5F00\u59CB\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"beginValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u7ED3\u675F\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"endValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u9879\u76EE</label>\n <nz-select [(ngModel)]=\"itemValue\" (ngModelChange)=\"itemChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['itemId']\">\n <ng-container *ngFor=\"let item of props['overtime']['itemId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </ng-container>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u65F6\u957F</label>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"numValue\" />\n </ng-container>\n </li>\n</ul>\n\n<ul class=\"second-box\" *ngIf=\"props['shiftShow'] && !props['zeroSplit']\">\n <li>\n <label>\u73ED\u6B21</label>\n <nz-select [(ngModel)]=\"shiftValue\" (ngModelChange)=\"shiftChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftId']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li>\n <label>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</label>\n <nz-select [(ngModel)]=\"shiftPeriodValue\" (ngModelChange)=\"shiftPeriodChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftPeriod']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftPeriod']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li></li>\n <li></li>\n <li></li>\n</ul>\n\n<div class=\"three-box\" *ngIf=\"props['zeroSplit'] === true\">\n <label class=\"title\">\u96F6\u70B9\u62C6\u5206\u8BE6\u60C5</label>\n <table>\n <thead>\n <tr>\n <th style=\"width: 60px;\">\u5E8F\u53F7</th>\n <th>\u52A0\u73ED\u65E5\u671F</th>\n <th>\u73ED\u6B21</th>\n <th>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</th>\n <th>\u52A0\u73ED\u9879\u76EE</th>\n <th>\u5F00\u59CB\u65F6\u95F4</th>\n <th>\u7ED3\u675F\u65F6\u95F4</th>\n <th>\u52A0\u73ED\u65F6\u957F</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"listChildValue && listChildValue.length > 0; else trEmpty\">\n <tr *ngFor=\"let item of listChildValue; let index = index\">\n <td>{{ index + 1 }}</td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.happenData\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftPeriod\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftPeriod']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftPeriod']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.itemId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['itemId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['itemId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.beginDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.endDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"item.numValue\" />\n </td>\n </tr>\n </ng-container>\n\n <ng-template #trEmpty>\n <tr>\n <td colspan=\"8\" style=\"text-align: center; padding: 5px;\">\u6682\u65E0\u6570\u636E</td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>", styles: [":host ::ng-deep .first-box,:host ::ng-deep .second-box{display:flex;flex-direction:row;margin:0;padding:0;list-style:none}:host ::ng-deep .first-box li,:host ::ng-deep .second-box li{display:flex;flex:1;flex-direction:column}:host ::ng-deep .first-box li+li,:host ::ng-deep .second-box li+li{margin-left:15px}:host ::ng-deep .second-box{margin-top:15px}:host ::ng-deep .three-box{margin-top:15px}:host ::ng-deep .three-box .title{display:flex;margin-bottom:5px}:host ::ng-deep .three-box table{width:100%;border-top:1px solid #eaeaea;border-right:1px solid #eaeaea}:host ::ng-deep .three-box table tr th{padding:8px;font-weight:400;background:#edeff3;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table tr td{padding:6px 8px;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table nz-input-number{width:150px}\n"] }]
1918
+ }] });
1919
+
1920
+ class DeonNzOverTimeModule {
1921
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1922
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, imports: [CommonModule,
1923
+ FormsModule,
1924
+ ReactiveFormsModule,
1925
+ DeonNzFormFieldModule,
1926
+ NzInputModule,
1927
+ NzSelectModule,
1928
+ NzDatePickerModule, i1$1.FormlyModule] });
1929
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, imports: [CommonModule,
1930
+ FormsModule,
1931
+ ReactiveFormsModule,
1932
+ DeonNzFormFieldModule,
1933
+ NzInputModule,
1934
+ NzSelectModule,
1935
+ NzDatePickerModule,
1936
+ FormlyModule.forChild({
1937
+ types: [
1938
+ {
1939
+ name: 'overtime',
1940
+ component: DeonNzFieldOverTime,
1941
+ wrappers: ['formly-form-field'],
1942
+ },
1943
+ ],
1944
+ })] });
1945
+ }
1946
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, decorators: [{
1947
+ type: NgModule,
1948
+ args: [{
1949
+ imports: [
1950
+ CommonModule,
1951
+ FormsModule,
1952
+ ReactiveFormsModule,
1953
+ DeonNzFormFieldModule,
1954
+ NzInputModule,
1955
+ NzSelectModule,
1956
+ NzDatePickerModule,
1957
+ FormlyModule.forChild({
1958
+ types: [
1959
+ {
1960
+ name: 'overtime',
1961
+ component: DeonNzFieldOverTime,
1962
+ wrappers: ['formly-form-field'],
1963
+ },
1964
+ ],
1965
+ }),
1966
+ ],
1967
+ schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA],
1968
+ }]
1969
+ }] });
1970
+
1971
+ class DeonNzFieldPanel extends FieldType {
1972
+ defaultOptions = {
1973
+ props: { description: '' },
1974
+ };
1975
+ renderClass(e) {
1976
+ if (e.active != undefined && e.active == true) {
1977
+ return `field-${e.type} active`;
1978
+ }
1979
+ return `field-${e.type}`;
1980
+ }
1981
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldPanel, deps: null, target: i0.ɵɵFactoryTarget.Component });
1982
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldPanel, isStandalone: true, selector: "deon-nz-field-panel", usesInheritance: true, ngImport: i0, template: `
1983
+ <div class="field-panel-label">
1984
+ <ng-container *ngIf="field.props && field.props['hideLabel'] !== true">
1985
+ {{ field.props.label }}
1986
+ </ng-container>
1987
+ </div>
1988
+ <div class="list-box field-panel-box" [id]="field.key">
1989
+ <ng-container *ngIf="field.fieldGroup && field.fieldGroup.length > 0; else tmpPanel">
1990
+ <ng-container *ngFor="let item of field.fieldGroup">
1991
+ <formly-field [field]="item"></formly-field>
1992
+ <ng-content></ng-content>
1993
+ </ng-container>
1994
+ </ng-container>
1995
+ <ng-template #tmpPanel>
1996
+ <div class="field-box ">暂无字段</div>
1997
+ </ng-template>
1998
+ </div>
1999
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2000
+ }
2001
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldPanel, decorators: [{
2002
+ type: Component,
2003
+ args: [{
2004
+ selector: 'deon-nz-field-panel',
2005
+ template: `
2006
+ <div class="field-panel-label">
2007
+ <ng-container *ngIf="field.props && field.props['hideLabel'] !== true">
2008
+ {{ field.props.label }}
2009
+ </ng-container>
2010
+ </div>
2011
+ <div class="list-box field-panel-box" [id]="field.key">
2012
+ <ng-container *ngIf="field.fieldGroup && field.fieldGroup.length > 0; else tmpPanel">
2013
+ <ng-container *ngFor="let item of field.fieldGroup">
2014
+ <formly-field [field]="item"></formly-field>
2015
+ <ng-content></ng-content>
2016
+ </ng-container>
2017
+ </ng-container>
2018
+ <ng-template #tmpPanel>
2019
+ <div class="field-box ">暂无字段</div>
2020
+ </ng-template>
2021
+ </div>
2022
+ `,
2023
+ changeDetection: ChangeDetectionStrategy.OnPush,
2024
+ imports: [
2025
+ CommonModule,
2026
+ FormsModule,
2027
+ ReactiveFormsModule,
2028
+ FormlyModule
2029
+ ]
2030
+ }]
2031
+ }] });
2032
+
2033
+ class DeonNzPanelModule {
2034
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2035
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, imports: [CommonModule,
2036
+ ReactiveFormsModule,
2037
+ NzGridModule,
2038
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
2039
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, imports: [CommonModule,
2040
+ ReactiveFormsModule,
2041
+ NzGridModule,
2042
+ DeonNzFormFieldModule,
2043
+ FormlyModule.forChild({
2044
+ types: [
2045
+ {
2046
+ name: 'panel',
2047
+ component: DeonNzFieldPanel,
2048
+ },
2049
+ ],
2050
+ })] });
2051
+ }
2052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, decorators: [{
2053
+ type: NgModule,
2054
+ args: [{
2055
+ imports: [
2056
+ CommonModule,
2057
+ ReactiveFormsModule,
2058
+ NzGridModule,
2059
+ DeonNzFormFieldModule,
2060
+ FormlyModule.forChild({
2061
+ types: [
2062
+ {
2063
+ name: 'panel',
2064
+ component: DeonNzFieldPanel,
2065
+ },
2066
+ ],
2067
+ }),
2068
+ ],
2069
+ }]
2070
+ }] });
2071
+
2072
+ class DeonNzFieldRadio extends FieldType {
2073
+ defaultOptions = {
2074
+ props: { options: [] },
2075
+ };
2076
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
2077
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRadio, isStandalone: true, selector: "deon-nz-field-radio", usesInheritance: true, ngImport: i0, template: ` <label nz-radio [formControl]="formControl" [formlyAttributes]="field"></label> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i4$4.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2078
+ }
2079
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, decorators: [{
2080
+ type: Component,
2081
+ args: [{
2082
+ selector: 'deon-nz-field-radio',
2083
+ template: ` <label nz-radio [formControl]="formControl" [formlyAttributes]="field"></label> `,
2084
+ changeDetection: ChangeDetectionStrategy.OnPush,
2085
+ imports: [
2086
+ CommonModule,
2087
+ FormsModule,
2088
+ ReactiveFormsModule,
2089
+ NzRadioModule,
2090
+ FormlyModule
2091
+ ]
2092
+ }]
2093
+ }] });
2094
+
2095
+ class DeonNzRadioModule {
2096
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2097
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, imports: [CommonModule, i1$1.FormlyModule] });
2098
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, imports: [CommonModule,
2099
+ FormlyModule.forChild({
2100
+ types: [
2101
+ {
2102
+ name: 'radio',
2103
+ component: DeonNzFieldRadio,
2104
+ wrappers: ['formly-form-field'],
2105
+ },
2106
+ ],
2107
+ })] });
2108
+ }
2109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, decorators: [{
2110
+ type: NgModule,
2111
+ args: [{
2112
+ imports: [
2113
+ CommonModule,
2114
+ FormlyModule.forChild({
2115
+ types: [
2116
+ {
2117
+ name: 'radio',
2118
+ component: DeonNzFieldRadio,
2119
+ wrappers: ['formly-form-field'],
2120
+ },
2121
+ ],
2122
+ }),
2123
+ ],
2124
+ }]
2125
+ }] });
2126
+
2127
+ class DeonNzFieldRadioGroup extends FieldType {
2128
+ globalSrv;
2129
+ defaultOptions = {
2130
+ props: { options: [] },
2131
+ };
2132
+ get radioText() {
2133
+ let result = null;
2134
+ if (this.props && this.props.options && Array.isArray(this.props.options)) {
2135
+ this.props.options.forEach((e) => {
2136
+ if (e && e.value == this.model[this.key]) {
2137
+ result = e.label;
2138
+ }
2139
+ });
2140
+ }
2141
+ return result;
2142
+ }
2143
+ getOptions() {
2144
+ if (this.props['options'] instanceof Array) {
2145
+ return this.props['options'];
2146
+ }
2147
+ else {
2148
+ return [];
2149
+ }
2150
+ }
2151
+ constructor(globalSrv) {
2152
+ super();
2153
+ this.globalSrv = globalSrv;
2154
+ }
2155
+ modelChange(e) {
2156
+ this.globalSrv.notifyDataChanged('deon-field-radiogroup', {
2157
+ field: this.field,
2158
+ data: e,
2159
+ type: 'click',
2160
+ });
2161
+ }
2162
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadioGroup, deps: [{ token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
2163
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRadioGroup, isStandalone: true, selector: "deon-nz-field-radiogroup", usesInheritance: true, ngImport: i0, template: `
2164
+ <nz-radio-group [formControl]="formControl" (ngModelChange)="modelChange($event)" [nzDisabled]="editor == false">
2165
+ <ng-container *ngIf="props && props.type && props.type == 'button'; else tmpOther">
2166
+ <ng-container *ngFor="let option of getOptions()">
2167
+ <label nz-radio-button [nzValue]="option.value" [nzDisabled]="option?.disabled == true ? true : false">
2168
+ {{ option.label }}
2169
+ </label>
2170
+ </ng-container>
2171
+ </ng-container>
2172
+ <ng-template #tmpOther>
2173
+ <ng-container *ngFor="let option of getOptions()">
2174
+ <label nz-radio [nzValue]="option.value" [nzDisabled]="option?.disabled == true ? true : false">
2175
+ {{ option.label }}
2176
+ </label>
2177
+ </ng-container>
2178
+ </ng-template>
2179
+ </nz-radio-group>
2180
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i4$4.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i4$4.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2181
+ }
2182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadioGroup, decorators: [{
2183
+ type: Component,
2184
+ args: [{
2185
+ selector: 'deon-nz-field-radiogroup',
2186
+ template: `
2187
+ <nz-radio-group [formControl]="formControl" (ngModelChange)="modelChange($event)" [nzDisabled]="editor == false">
2188
+ <ng-container *ngIf="props && props.type && props.type == 'button'; else tmpOther">
2189
+ <ng-container *ngFor="let option of getOptions()">
2190
+ <label nz-radio-button [nzValue]="option.value" [nzDisabled]="option?.disabled == true ? true : false">
2191
+ {{ option.label }}
2192
+ </label>
2193
+ </ng-container>
2194
+ </ng-container>
2195
+ <ng-template #tmpOther>
2196
+ <ng-container *ngFor="let option of getOptions()">
2197
+ <label nz-radio [nzValue]="option.value" [nzDisabled]="option?.disabled == true ? true : false">
2198
+ {{ option.label }}
2199
+ </label>
2200
+ </ng-container>
2201
+ </ng-template>
2202
+ </nz-radio-group>
2203
+ `,
2204
+ changeDetection: ChangeDetectionStrategy.OnPush,
2205
+ imports: [
2206
+ CommonModule,
2207
+ FormsModule,
2208
+ ReactiveFormsModule,
2209
+ NzRadioModule,
2210
+ FormlyModule
2211
+ ]
2212
+ }]
2213
+ }], ctorParameters: () => [{ type: i1$4.GramGlobalService }] });
2214
+
2215
+ class DeonNzRadioGroupModule {
2216
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2217
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioGroupModule, imports: [CommonModule, i1$1.FormlyModule] });
2218
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioGroupModule, imports: [CommonModule,
2219
+ FormlyModule.forChild({
2220
+ types: [
2221
+ {
2222
+ name: 'radiogroup',
2223
+ component: DeonNzFieldRadioGroup,
2224
+ wrappers: ['formly-form-field'],
2225
+ },
2226
+ ],
2227
+ })] });
2228
+ }
2229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioGroupModule, decorators: [{
2230
+ type: NgModule,
2231
+ args: [{
2232
+ imports: [
2233
+ CommonModule,
2234
+ FormlyModule.forChild({
2235
+ types: [
2236
+ {
2237
+ name: 'radiogroup',
2238
+ component: DeonNzFieldRadioGroup,
2239
+ wrappers: ['formly-form-field'],
2240
+ },
2241
+ ],
2242
+ }),
2243
+ ],
2244
+ }]
2245
+ }] });
2246
+
2247
+ class DeonNzFieldReform extends FieldType {
2248
+ defaultOptions = {
2249
+ props: { description: '' },
2250
+ };
2251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldReform, deps: null, target: i0.ɵɵFactoryTarget.Component });
2252
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldReform, isStandalone: true, selector: "deon-nz-field-reform", usesInheritance: true, ngImport: i0, template: `
2253
+ <ng-container *ngIf="field.fieldGroup!! && field.fieldGroup.length > 0">
2254
+ <ng-container *ngFor="let item of field.fieldGroup">
2255
+ <formly-field [field]="item"></formly-field>
2256
+ <ng-content></ng-content>
2257
+ </ng-container>
2258
+ </ng-container>
2259
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2260
+ }
2261
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldReform, decorators: [{
2262
+ type: Component,
2263
+ args: [{
2264
+ selector: 'deon-nz-field-reform',
2265
+ template: `
2266
+ <ng-container *ngIf="field.fieldGroup!! && field.fieldGroup.length > 0">
2267
+ <ng-container *ngFor="let item of field.fieldGroup">
2268
+ <formly-field [field]="item"></formly-field>
2269
+ <ng-content></ng-content>
2270
+ </ng-container>
2271
+ </ng-container>
2272
+ `,
2273
+ changeDetection: ChangeDetectionStrategy.OnPush,
2274
+ imports: [
2275
+ CommonModule,
2276
+ FormsModule,
2277
+ ReactiveFormsModule,
2278
+ FormlyModule
2279
+ ]
2280
+ }]
2281
+ }] });
2282
+
2283
+ class DeonNzReformModule {
2284
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzReformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2285
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzReformModule, imports: [CommonModule,
2286
+ ReactiveFormsModule,
2287
+ NzGridModule,
2288
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
2289
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzReformModule, imports: [CommonModule,
2290
+ ReactiveFormsModule,
2291
+ NzGridModule,
2292
+ DeonNzFormFieldModule,
2293
+ FormlyModule.forChild({
2294
+ types: [
2295
+ {
2296
+ name: 'reform',
2297
+ component: DeonNzFieldReform,
2298
+ },
2299
+ ],
2300
+ })] });
2301
+ }
2302
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzReformModule, decorators: [{
2303
+ type: NgModule,
2304
+ args: [{
2305
+ imports: [
2306
+ CommonModule,
2307
+ ReactiveFormsModule,
2308
+ NzGridModule,
2309
+ DeonNzFormFieldModule,
2310
+ FormlyModule.forChild({
2311
+ types: [
2312
+ {
2313
+ name: 'reform',
2314
+ component: DeonNzFieldReform,
2315
+ },
2316
+ ],
2317
+ }),
2318
+ ],
2319
+ }]
2320
+ }] });
2321
+
2322
+ class DeonNzFieldRepeat extends FieldArrayType {
2323
+ globalSrv;
2324
+ /**
2325
+ * 合并列
2326
+ */
2327
+ get colSpan() {
2328
+ let res = 0;
2329
+ if (this.field.fieldArray["fieldGroup"]) {
2330
+ res = this.field.fieldArray["fieldGroup"].length + 2;
2331
+ }
2332
+ return res;
2333
+ }
2334
+ get dragDisabled() {
2335
+ let result = true;
2336
+ if (this.editor != false && _.get(this.props, 'drag') == true) {
2337
+ result = false;
2338
+ }
2339
+ return result;
2340
+ }
2341
+ get clasName() {
2342
+ if (this.props && this.props["className"]) {
2343
+ return this.props["className"];
2344
+ }
2345
+ return null;
2346
+ }
2347
+ get operationShow() {
2348
+ if (this.props && this.props["operationShow"] != undefined && this.props["operationShow"] != null) {
2349
+ return this.props["operationShow"];
2350
+ }
2351
+ return false;
2352
+ }
2353
+ drop(event) {
2354
+ moveItemInArray(this.field.fieldGroup, event.previousIndex, event.currentIndex);
2355
+ moveItemInArray(this.model, event.previousIndex, event.currentIndex);
2356
+ }
2357
+ constructor(globalSrv) {
2358
+ super();
2359
+ this.globalSrv = globalSrv;
2360
+ }
2361
+ ngOnInit() { }
2362
+ ngOnDestroy() { }
2363
+ ngAfterViewInit() { }
2364
+ ngOnChanges(change) {
2365
+ // this.resize();
2366
+ }
2367
+ fieldEditor(f, i, m) {
2368
+ if (f && f?.props && f?.props?.builtin && f?.props?.builtin == true) {
2369
+ return true;
2370
+ }
2371
+ if (f && f.key == 'code' && m && m[i]['id']) {
2372
+ return false;
2373
+ }
2374
+ if (this.editor == false) {
2375
+ return false;
2376
+ }
2377
+ else {
2378
+ if (m && m[i] && m[i]?.builtin && m[i]?.builtin == true) {
2379
+ return false;
2380
+ }
2381
+ return true;
2382
+ }
2383
+ }
2384
+ addData() {
2385
+ this.add();
2386
+ this.globalSrv.notifyDataChanged('deon-field-repeat', {
2387
+ field: this.field,
2388
+ data: null,
2389
+ type: 'add',
2390
+ });
2391
+ }
2392
+ rowDelete(e) {
2393
+ this.remove(e);
2394
+ this.globalSrv.notifyDataChanged('deon-field-repeat', {
2395
+ field: this.field,
2396
+ data: e,
2397
+ type: 'delete',
2398
+ });
2399
+ }
2400
+ rowOperation(button, e) {
2401
+ this.globalSrv.notifyDataChanged('deon-field-repeat', {
2402
+ field: this.field,
2403
+ data: e,
2404
+ type: button?.type,
2405
+ });
2406
+ }
2407
+ checkDelete(index) {
2408
+ if (this.props["hideDelete"] && Array.isArray(this.props["hideDelete"])) {
2409
+ if (this.props["hideDelete"].some((item) => {
2410
+ return item == index;
2411
+ })) {
2412
+ return false;
2413
+ }
2414
+ }
2415
+ return true;
2416
+ }
2417
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRepeat, deps: [{ token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
2418
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRepeat, isStandalone: true, selector: "deon-nz-field-repeat", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"repeat-label\" *ngIf=\"props && props['hideLabel']!=false && props?.label\">{{props?.label}}</div>\n<div class=\"repeat-table\" [ngClass]=\"clasName\">\n <table>\n <thead>\n <tr>\n <th style=\"width: 50px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let headerField of field?.fieldArray['fieldGroup']\">\n <ng-container *ngIf=\"headerField?.type=='deon-group' && headerField?.hide!=true;else tmpField\">\n <ng-container *ngFor=\"let item of headerField.fieldGroup\">\n <th *ngIf=\"item?.hide!=true\">\n <ng-container *ngIf=\"item && item?.props!==undefined && item?.props!==null\">\n <span style=\"color: red\" *ngIf=\"item?.props?.required\" class=\"required\"></span>\n {{item.props.label }}\n </ng-container>\n </th>\n </ng-container>\n </ng-container>\n <ng-template #tmpField>\n <th *ngIf=\"headerField?.hide!=true &&(headerField?.type!=='line' && headerField?.type!=='htmlcontent')\">\n <ng-container *ngIf=\"headerField && headerField?.props!==undefined && headerField?.props!==null\">\n <span style=\"color: red\" *ngIf=\"headerField?.props?.required\" class=\"required\"></span>\n {{ headerField.props.label }}\n </ng-container>\n </th>\n </ng-template>\n </ng-container>\n <th style=\"width: 60px\" *ngIf=\"isRemove || operationShow\">\n <span class=\"\">\u64CD\u4F5C</span>\n </th>\n </tr>\n </thead>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngIf=\"field?.fieldGroup!==undefined && field?.fieldGroup!==null && (field?.fieldGroup?.length ?? 0) > 0;else cardEmpty\">\n <tr *ngFor=\"let fields of field.fieldGroup; let i = index\" cdkDrag [cdkDragDisabled]=\"dragDisabled\">\n <td>\n <span class=\"serial\">{{ i + 1 }}</span>\n </td>\n <ng-container *ngFor=\"let f of fields.fieldGroup\">\n <ng-container *ngIf=\"f?.type=='deon-group' && f?.hide!=true;else tmpTd\">\n <ng-container *ngFor=\"let item of f.fieldGroup\">\n <td *ngIf=\"item?.hide!=true\">\n <formly-field [field]=\"item\" [hideLabel]=\"true\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-container>\n </ng-container>\n <ng-template #tmpTd>\n <td\n *ngIf=\"f && f?.type!==undefined && f?.type!==null && f?.hide!=true &&(f?.type!=='line' && f?.type!=='htmlcontent')\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\" [editor]=\"fieldEditor(f,i,model)\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-template>\n </ng-container>\n <td style=\"text-align: center\" *ngIf=\"isRemove || operationShow\">\n <ng-container *ngIf=\"props && props['operation'] && props['operation'].length>0\">\n <ng-container *ngFor=\"let o of props['operation']\">\n <a nz-tooltip [nzTooltipTitle]=\"o.label\" (click)=\"rowOperation(o,i)\"><i nz-icon\n [nzType]=\"o.icon\"></i></a>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isRemove && (model==null || model[i]?.builtin!=true)\">\n <a nz-tooltip nzTooltipTitle=\"\u5220\u9664\" *ngIf=\"checkDelete(i)\" (click)=\"rowDelete(i)\"><i nz-icon\n nzType=\"delete\"></i></a>\n </ng-container>\n </td>\n </tr>\n <tr *ngIf=\"(isAdd==true || props['add']==true) || props['viewRange']==true\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <ng-container *ngIf=\"isAdd==true && (props['add']==undefined || props['add']==null || props['add']==true)\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </ng-container>\n </td>\n </tr>\n </ng-container>\n <ng-template #cardEmpty>\n <tr>\n <td [attr.colspan]=\"colSpan\" style=\"text-align: center\">\n <gram-empty></gram-empty>\n </td>\n </tr>\n <tr *ngIf=\"isAdd && (props['add']==undefined || props['add']==null || props['add']==true)\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i3$4.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i4$1.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5$2.ɵ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: DragDropModule }, { kind: "directive", type: i6.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i6.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }, { kind: "ngmodule", type: GramDeonEmptyModule }, { kind: "component", type: i9.BaseEmptyComponent, selector: "gram-empty", inputs: ["desc", "state"], outputs: ["emptyClick"] }] });
2419
+ }
2420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRepeat, decorators: [{
2421
+ type: Component,
2422
+ args: [{ selector: 'deon-nz-field-repeat', imports: [
2423
+ CommonModule,
2424
+ FormsModule,
2425
+ ReactiveFormsModule,
2426
+ NzToolTipModule,
2427
+ NzButtonModule,
2428
+ DragDropModule,
2429
+ NzIconModule,
2430
+ FormlyModule,
2431
+ GramDeonEmptyModule
2432
+ ], template: "<div class=\"repeat-label\" *ngIf=\"props && props['hideLabel']!=false && props?.label\">{{props?.label}}</div>\n<div class=\"repeat-table\" [ngClass]=\"clasName\">\n <table>\n <thead>\n <tr>\n <th style=\"width: 50px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let headerField of field?.fieldArray['fieldGroup']\">\n <ng-container *ngIf=\"headerField?.type=='deon-group' && headerField?.hide!=true;else tmpField\">\n <ng-container *ngFor=\"let item of headerField.fieldGroup\">\n <th *ngIf=\"item?.hide!=true\">\n <ng-container *ngIf=\"item && item?.props!==undefined && item?.props!==null\">\n <span style=\"color: red\" *ngIf=\"item?.props?.required\" class=\"required\"></span>\n {{item.props.label }}\n </ng-container>\n </th>\n </ng-container>\n </ng-container>\n <ng-template #tmpField>\n <th *ngIf=\"headerField?.hide!=true &&(headerField?.type!=='line' && headerField?.type!=='htmlcontent')\">\n <ng-container *ngIf=\"headerField && headerField?.props!==undefined && headerField?.props!==null\">\n <span style=\"color: red\" *ngIf=\"headerField?.props?.required\" class=\"required\"></span>\n {{ headerField.props.label }}\n </ng-container>\n </th>\n </ng-template>\n </ng-container>\n <th style=\"width: 60px\" *ngIf=\"isRemove || operationShow\">\n <span class=\"\">\u64CD\u4F5C</span>\n </th>\n </tr>\n </thead>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngIf=\"field?.fieldGroup!==undefined && field?.fieldGroup!==null && (field?.fieldGroup?.length ?? 0) > 0;else cardEmpty\">\n <tr *ngFor=\"let fields of field.fieldGroup; let i = index\" cdkDrag [cdkDragDisabled]=\"dragDisabled\">\n <td>\n <span class=\"serial\">{{ i + 1 }}</span>\n </td>\n <ng-container *ngFor=\"let f of fields.fieldGroup\">\n <ng-container *ngIf=\"f?.type=='deon-group' && f?.hide!=true;else tmpTd\">\n <ng-container *ngFor=\"let item of f.fieldGroup\">\n <td *ngIf=\"item?.hide!=true\">\n <formly-field [field]=\"item\" [hideLabel]=\"true\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-container>\n </ng-container>\n <ng-template #tmpTd>\n <td\n *ngIf=\"f && f?.type!==undefined && f?.type!==null && f?.hide!=true &&(f?.type!=='line' && f?.type!=='htmlcontent')\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\" [editor]=\"fieldEditor(f,i,model)\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-template>\n </ng-container>\n <td style=\"text-align: center\" *ngIf=\"isRemove || operationShow\">\n <ng-container *ngIf=\"props && props['operation'] && props['operation'].length>0\">\n <ng-container *ngFor=\"let o of props['operation']\">\n <a nz-tooltip [nzTooltipTitle]=\"o.label\" (click)=\"rowOperation(o,i)\"><i nz-icon\n [nzType]=\"o.icon\"></i></a>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isRemove && (model==null || model[i]?.builtin!=true)\">\n <a nz-tooltip nzTooltipTitle=\"\u5220\u9664\" *ngIf=\"checkDelete(i)\" (click)=\"rowDelete(i)\"><i nz-icon\n nzType=\"delete\"></i></a>\n </ng-container>\n </td>\n </tr>\n <tr *ngIf=\"(isAdd==true || props['add']==true) || props['viewRange']==true\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <ng-container *ngIf=\"isAdd==true && (props['add']==undefined || props['add']==null || props['add']==true)\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </ng-container>\n </td>\n </tr>\n </ng-container>\n <ng-template #cardEmpty>\n <tr>\n <td [attr.colspan]=\"colSpan\" style=\"text-align: center\">\n <gram-empty></gram-empty>\n </td>\n </tr>\n <tr *ngIf=\"isAdd && (props['add']==undefined || props['add']==null || props['add']==true)\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>" }]
2433
+ }], ctorParameters: () => [{ type: i1$4.GramGlobalService }] });
2434
+
2435
+ class DeonNzRepeatModule {
2436
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2437
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, imports: [CommonModule,
2438
+ ReactiveFormsModule,
2439
+ NzEmptyModule,
2440
+ NzTableModule,
2441
+ NzButtonModule,
2442
+ NzIconModule,
2443
+ NzModalModule,
2444
+ NzToolTipModule,
2445
+ DeonNzFormFieldModule,
2446
+ DragDropModule, i1$1.FormlyModule] });
2447
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, imports: [CommonModule,
2448
+ ReactiveFormsModule,
2449
+ NzEmptyModule,
2450
+ NzTableModule,
2451
+ NzButtonModule,
2452
+ NzIconModule,
2453
+ NzModalModule,
2454
+ NzToolTipModule,
2455
+ DeonNzFormFieldModule,
2456
+ DragDropModule,
2457
+ FormlyModule.forChild({
2458
+ types: [
2459
+ {
2460
+ name: 'repeat',
2461
+ component: DeonNzFieldRepeat,
2462
+ },
2463
+ {
2464
+ name: 'children',
2465
+ component: DeonNzFieldRepeat,
2466
+ },
2467
+ ],
2468
+ })] });
2469
+ }
2470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, decorators: [{
2471
+ type: NgModule,
2472
+ args: [{
2473
+ imports: [
2474
+ CommonModule,
2475
+ ReactiveFormsModule,
2476
+ NzEmptyModule,
2477
+ NzTableModule,
2478
+ NzButtonModule,
2479
+ NzIconModule,
2480
+ NzModalModule,
2481
+ NzToolTipModule,
2482
+ DeonNzFormFieldModule,
2483
+ DragDropModule,
2484
+ FormlyModule.forChild({
2485
+ types: [
2486
+ {
2487
+ name: 'repeat',
2488
+ component: DeonNzFieldRepeat,
2489
+ },
2490
+ {
2491
+ name: 'children',
2492
+ component: DeonNzFieldRepeat,
2493
+ },
2494
+ ],
2495
+ }),
2496
+ ],
2497
+ }]
2498
+ }] });
2499
+
2500
+ class DeonNzFieldRepeatCard extends FieldArrayType {
2501
+ globalSrv;
2502
+ /**
2503
+ * 合并列
2504
+ */
2505
+ get colSpan() {
2506
+ let res = 0;
2507
+ if (this.field?.fieldArray["fieldGroup"]) {
2508
+ res = this.field.fieldArray["fieldGroup"].length + 2;
2509
+ }
2510
+ return res;
2511
+ }
2512
+ get dragDisabled() {
2513
+ let result = true;
2514
+ if (this.editor != false && _.get(this.props, 'drag') == true) {
2515
+ result = false;
2516
+ }
2517
+ return result;
2518
+ }
2519
+ get clasName() {
2520
+ if (this.props && this.props["className"]) {
2521
+ return this.props["className"];
2522
+ }
2523
+ return null;
2524
+ }
2525
+ get operationShow() {
2526
+ if (this.props && this.props["operationShow"] != undefined && this.props["operationShow"] != null) {
2527
+ return this.props["operationShow"];
2528
+ }
2529
+ return false;
2530
+ }
2531
+ drop(event) {
2532
+ moveItemInArray(this.field.fieldGroup, event.previousIndex, event.currentIndex);
2533
+ moveItemInArray(this.model, event.previousIndex, event.currentIndex);
2534
+ }
2535
+ constructor(globalSrv) {
2536
+ super();
2537
+ this.globalSrv = globalSrv;
2538
+ }
2539
+ ngOnInit() { }
2540
+ ngOnDestroy() { }
2541
+ ngAfterViewInit() { }
2542
+ ngOnChanges(change) {
2543
+ // this.resize();
2544
+ }
2545
+ fieldEditor(f, i, m) {
2546
+ if (f && f.props && f.props.builtin && f.props.builtin == true) {
2547
+ return true;
2548
+ }
2549
+ if (f && f.key == 'code' && m && m[i]['id']) {
2550
+ return false;
2551
+ }
2552
+ if (this.editor == false) {
2553
+ return false;
2554
+ }
2555
+ else {
2556
+ if (m && m[i]['builtin'] && m[i]['builtin'] == true) {
2557
+ return false;
2558
+ }
2559
+ return true;
2560
+ }
2561
+ }
2562
+ addData() {
2563
+ this.add();
2564
+ this.globalSrv.notifyDataChanged('deon-field-repeat-card', {
2565
+ field: this.field,
2566
+ data: null,
2567
+ type: 'add',
2568
+ });
2569
+ }
2570
+ rowDelete(e) {
2571
+ this.remove(e);
2572
+ this.globalSrv.notifyDataChanged('deon-field-repeat-card', {
2573
+ field: this.field,
2574
+ data: e,
2575
+ type: 'delete',
2576
+ });
2577
+ }
2578
+ rowOperation(button, e) {
2579
+ this.globalSrv.notifyDataChanged('deon-field-repeat-card', {
2580
+ field: this.field,
2581
+ data: e,
2582
+ type: button?.type,
2583
+ });
2584
+ }
2585
+ checkDelete(index) {
2586
+ if (this.props["hideDelete"] && Array.isArray(this.props["hideDelete"])) {
2587
+ if (this.props["hideDelete"].some((item) => {
2588
+ return item == index;
2589
+ })) {
2590
+ return false;
2591
+ }
2592
+ }
2593
+ return true;
2594
+ }
2595
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRepeatCard, deps: [{ token: i1$4.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
2596
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRepeatCard, isStandalone: true, selector: "deon-nz-field-repeat-card", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"repeat-card\" [ngClass]=\"clasName\">\n <ng-container *ngIf=\"props && props.label\">\n <div class=\"card-label\">{{props.label}}</div>\n </ng-container>\n <ng-container\n *ngIf=\"field.fieldGroup!==undefined && field.fieldGroup!==null && field.fieldGroup.length>0;else cardEmpty\">\n <ng-container *ngFor=\"let fields of field.fieldGroup; let i = index\">\n <div class=\"card-header\">\n <div class=\"serial\">\u5E8F\u53F7\uFF1A{{ i + 1 }}</div>\n <div calss=\"delete\">\n <ng-container *ngIf=\"editor!=false\">\n <a nz-tooltip nzTooltipTitle=\"\u5220\u9664\" *ngIf=\"checkDelete(i)\" (click)=\"rowDelete(i)\"><i nz-icon\n nzType=\"delete\"></i></a>\n </ng-container>\n </div>\n </div>\n <div class=\"card-body\">\n <ng-container *ngFor=\"let item of fields.fieldGroup\">\n <formly-field [field]=\"item\"></formly-field>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #cardEmpty>\n <gram-empty></gram-empty>\n <ng-container *ngIf=\"editor!=false\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </ng-container>\n </ng-template>\n\n <ng-container *ngIf=\"editor!=false\">\n <div class=\"card-bottom\"\n *ngIf=\"field.fieldGroup!==undefined && field.fieldGroup!==null && field.fieldGroup.length>0\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"addData()\">+\u6DFB\u52A0</button>\n </div>\n </ng-container>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i3$4.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i4$1.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5$2.ɵ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: DragDropModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }, { kind: "ngmodule", type: GramDeonEmptyModule }, { kind: "component", type: i9.BaseEmptyComponent, selector: "gram-empty", inputs: ["desc", "state"], outputs: ["emptyClick"] }] });
2597
+ }
2598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRepeatCard, decorators: [{
2599
+ type: Component,
2600
+ args: [{ selector: 'deon-nz-field-repeat-card', imports: [
2601
+ CommonModule,
2602
+ FormsModule,
2603
+ ReactiveFormsModule,
2604
+ NzToolTipModule,
2605
+ NzButtonModule,
2606
+ DragDropModule,
2607
+ NzIconModule,
2608
+ FormlyModule,
2609
+ GramDeonEmptyModule
2610
+ ], template: "<div class=\"repeat-card\" [ngClass]=\"clasName\">\n <ng-container *ngIf=\"props && props.label\">\n <div class=\"card-label\">{{props.label}}</div>\n </ng-container>\n <ng-container\n *ngIf=\"field.fieldGroup!==undefined && field.fieldGroup!==null && field.fieldGroup.length>0;else cardEmpty\">\n <ng-container *ngFor=\"let fields of field.fieldGroup; let i = index\">\n <div class=\"card-header\">\n <div class=\"serial\">\u5E8F\u53F7\uFF1A{{ i + 1 }}</div>\n <div calss=\"delete\">\n <ng-container *ngIf=\"editor!=false\">\n <a nz-tooltip nzTooltipTitle=\"\u5220\u9664\" *ngIf=\"checkDelete(i)\" (click)=\"rowDelete(i)\"><i nz-icon\n nzType=\"delete\"></i></a>\n </ng-container>\n </div>\n </div>\n <div class=\"card-body\">\n <ng-container *ngFor=\"let item of fields.fieldGroup\">\n <formly-field [field]=\"item\"></formly-field>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #cardEmpty>\n <gram-empty></gram-empty>\n <ng-container *ngIf=\"editor!=false\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </ng-container>\n </ng-template>\n\n <ng-container *ngIf=\"editor!=false\">\n <div class=\"card-bottom\"\n *ngIf=\"field.fieldGroup!==undefined && field.fieldGroup!==null && field.fieldGroup.length>0\">\n <button nz-button nzType=\"default\" type=\"button\" (click)=\"addData()\">+\u6DFB\u52A0</button>\n </div>\n </ng-container>\n</div>" }]
2611
+ }], ctorParameters: () => [{ type: i1$4.GramGlobalService }] });
2612
+
2613
+ class DeonNzRepeatCardModule {
2614
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2615
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatCardModule, imports: [CommonModule,
2616
+ ReactiveFormsModule,
2617
+ NzEmptyModule,
2618
+ NzTableModule,
2619
+ NzButtonModule,
2620
+ NzIconModule,
2621
+ NzModalModule,
2622
+ NzToolTipModule,
2623
+ DeonNzFormFieldModule,
2624
+ DragDropModule,
2625
+ GramDeonEmptyModule, i1$1.FormlyModule] });
2626
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatCardModule, imports: [CommonModule,
2627
+ ReactiveFormsModule,
2628
+ NzEmptyModule,
2629
+ NzTableModule,
2630
+ NzButtonModule,
2631
+ NzIconModule,
2632
+ NzModalModule,
2633
+ NzToolTipModule,
2634
+ DeonNzFormFieldModule,
2635
+ DragDropModule,
2636
+ GramDeonEmptyModule,
2637
+ FormlyModule.forChild({
2638
+ types: [
2639
+ {
2640
+ name: 'repeat-card',
2641
+ component: DeonNzFieldRepeatCard,
2642
+ },
2643
+ ],
2644
+ })] });
2645
+ }
2646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatCardModule, decorators: [{
2647
+ type: NgModule,
2648
+ args: [{
2649
+ imports: [
2650
+ CommonModule,
2651
+ ReactiveFormsModule,
2652
+ NzEmptyModule,
2653
+ NzTableModule,
2654
+ NzButtonModule,
2655
+ NzIconModule,
2656
+ NzModalModule,
2657
+ NzToolTipModule,
2658
+ DeonNzFormFieldModule,
2659
+ DragDropModule,
2660
+ GramDeonEmptyModule,
2661
+ FormlyModule.forChild({
2662
+ types: [
2663
+ {
2664
+ name: 'repeat-card',
2665
+ component: DeonNzFieldRepeatCard,
2666
+ },
2667
+ ],
2668
+ }),
2669
+ ],
2670
+ }]
2671
+ }] });
2672
+
2673
+ class DeonNzFieldSelect extends FieldType {
2674
+ defaultOptions = {
2675
+ props: { options: null },
2676
+ };
2677
+ _defaultValue = '';
2678
+ _defaultValues = [];
2679
+ selectType = 'default';
2680
+ listOfSelectedValue;
2681
+ getOptions() {
2682
+ if (this.props['options'] instanceof Array) {
2683
+ return this.props['options'];
2684
+ }
2685
+ else {
2686
+ return [];
2687
+ }
2688
+ }
2689
+ get password() {
2690
+ if (this.props && this.props["password"] == true) {
2691
+ return true;
2692
+ }
2693
+ return false;
2694
+ }
2695
+ get getModelValue() {
2696
+ if (this.props.selectType === 'multiple') {
2697
+ return this.defaultValues;
2698
+ }
2699
+ else {
2700
+ return this.defaultValue;
2701
+ }
2702
+ }
2703
+ set getModelValue(value) { }
2704
+ get defaultValue() {
2705
+ if (this.model && this.model[this.key]) {
2706
+ this._defaultValue = this.model[this.key];
2707
+ }
2708
+ else {
2709
+ return null;
2710
+ }
2711
+ return this._defaultValue;
2712
+ }
2713
+ get defaultValues() {
2714
+ if (this.model && this.model[this.key] && Array.isArray(this.model[this.key])) {
2715
+ this._defaultValues.length = 0;
2716
+ this.model[this.key].forEach((item) => {
2717
+ this._defaultValues.push(item?.value);
2718
+ });
2719
+ }
2720
+ else {
2721
+ return null;
2722
+ }
2723
+ return this._defaultValues;
2724
+ }
2725
+ get getModelText() {
2726
+ let result = '';
2727
+ if (this.model && this.model[this.key]) {
2728
+ if (this.props.selectType === 'multiple') {
2729
+ if (Array.isArray(this.model[this.key])) {
2730
+ this.model[this.key].forEach((item, index) => {
2731
+ if (index > 0) {
2732
+ result = `${result},${item?.label}`;
2733
+ }
2734
+ else {
2735
+ result = item?.label;
2736
+ }
2737
+ });
2738
+ }
2739
+ }
2740
+ else {
2741
+ result = this.model[this.key];
2742
+ }
2743
+ }
2744
+ return result;
2745
+ }
2746
+ selectedChange(e) {
2747
+ if (this.props.selectType && this.props.selectType == 'multiple') {
2748
+ let values = [];
2749
+ if (e && Array.isArray(e)) {
2750
+ e.forEach((item) => {
2751
+ if (this.props.options && Array.isArray(this.props.options)) {
2752
+ this.props.options.forEach((options) => {
2753
+ if (options.value == item) {
2754
+ values.push(options);
2755
+ }
2756
+ });
2757
+ }
2758
+ });
2759
+ }
2760
+ this.formControl.patchValue(values);
2761
+ this.formControl.markAsTouched();
2762
+ }
2763
+ else {
2764
+ let value = null;
2765
+ if (this.props.options && Array.isArray(this.props.options)) {
2766
+ this.props.options.forEach((options) => {
2767
+ if (options.value == e) {
2768
+ // value = {};
2769
+ // value['value'] = options?.value;
2770
+ // value['label'] = options?.label;
2771
+ value = options.value;
2772
+ }
2773
+ });
2774
+ }
2775
+ this.formControl.patchValue(value);
2776
+ this.formControl.markAsTouched();
2777
+ }
2778
+ }
2779
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
2780
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldSelect, isStandalone: true, selector: "deon-nz-field-select", usesInheritance: true, ngImport: i0, template: `
2781
+ <nz-select
2782
+ [nzDisabled]="editor == false"
2783
+ [class.ng-dirty]="showError"
2784
+ [nzPlaceHolder]="props.placeholder ? props.placeholder : '---请选择---'"
2785
+ [formlyAttributes]="field"
2786
+ nzAllowClear
2787
+ nzShowSearch
2788
+ [nzMode]="props.selectType === 'multiple' ? 'multiple' : 'default'"
2789
+ (ngModelChange)="selectedChange($event)"
2790
+ [(ngModel)]="getModelValue"
2791
+ >
2792
+ <ng-container *ngFor="let item of getOptions()">
2793
+ <nz-option-group *ngIf="item.group" [nzLabel]="item.label">
2794
+ <nz-option *ngFor="let child of item.group" [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label">
2795
+ </nz-option>
2796
+ </nz-option-group>
2797
+ <nz-option *ngIf="!item.group" [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
2798
+ </ng-container>
2799
+ </nz-select>
2800
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i3$3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3$3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3$3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2801
+ }
2802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSelect, decorators: [{
2803
+ type: Component,
2804
+ args: [{
2805
+ selector: 'deon-nz-field-select',
2806
+ template: `
2807
+ <nz-select
2808
+ [nzDisabled]="editor == false"
2809
+ [class.ng-dirty]="showError"
2810
+ [nzPlaceHolder]="props.placeholder ? props.placeholder : '---请选择---'"
2811
+ [formlyAttributes]="field"
2812
+ nzAllowClear
2813
+ nzShowSearch
2814
+ [nzMode]="props.selectType === 'multiple' ? 'multiple' : 'default'"
2815
+ (ngModelChange)="selectedChange($event)"
2816
+ [(ngModel)]="getModelValue"
2817
+ >
2818
+ <ng-container *ngFor="let item of getOptions()">
2819
+ <nz-option-group *ngIf="item.group" [nzLabel]="item.label">
2820
+ <nz-option *ngFor="let child of item.group" [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label">
2821
+ </nz-option>
2822
+ </nz-option-group>
2823
+ <nz-option *ngIf="!item.group" [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
2824
+ </ng-container>
2825
+ </nz-select>
2826
+ `,
2827
+ changeDetection: ChangeDetectionStrategy.OnPush,
2828
+ imports: [
2829
+ CommonModule,
2830
+ FormsModule,
2831
+ ReactiveFormsModule,
2832
+ NzSelectModule,
2833
+ FormlyModule
2834
+ ]
2835
+ }]
2836
+ }] });
2837
+
2838
+ class DeonNzSelectModule {
2839
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2840
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, imports: [CommonModule,
2841
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
2842
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, imports: [CommonModule,
2843
+ DeonNzFormFieldModule,
2844
+ FormlyModule.forChild({
2845
+ types: [
2846
+ {
2847
+ name: 'select',
2848
+ component: DeonNzFieldSelect,
2849
+ wrappers: ['formly-form-field'],
2850
+ },
2851
+ { name: 'enum', extends: 'select' },
2852
+ { name: 'eval_select', extends: 'select' },
2853
+ { name: 'lookup_select', extends: 'select' },
2854
+ ],
2855
+ })] });
2856
+ }
2857
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, decorators: [{
2858
+ type: NgModule,
2859
+ args: [{
2860
+ imports: [
2861
+ CommonModule,
2862
+ DeonNzFormFieldModule,
2863
+ FormlyModule.forChild({
2864
+ types: [
2865
+ {
2866
+ name: 'select',
2867
+ component: DeonNzFieldSelect,
2868
+ wrappers: ['formly-form-field'],
2869
+ },
2870
+ { name: 'enum', extends: 'select' },
2871
+ { name: 'eval_select', extends: 'select' },
2872
+ { name: 'lookup_select', extends: 'select' },
2873
+ ],
2874
+ }),
2875
+ ],
2876
+ }]
2877
+ }] });
2878
+
2879
+ class DeonNzFieldSwitch extends FieldType {
2880
+ defaultOptions = {
2881
+ props: {
2882
+ type: '',
2883
+ },
2884
+ };
2885
+ switchValue = false;
2886
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component });
2887
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldSwitch, isStandalone: true, selector: "deon-nz-field-switch", usesInheritance: true, ngImport: i0, template: "<nz-switch [formControl]=\"formControl\" [formlyAttributes]=\"field\" [nzDisabled]=\"!editor\"></nz-switch>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i2$4.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2888
+ }
2889
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSwitch, decorators: [{
2890
+ type: Component,
2891
+ args: [{ selector: 'deon-nz-field-switch', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
2892
+ CommonModule,
2893
+ FormsModule,
2894
+ ReactiveFormsModule,
2895
+ NzSwitchModule,
2896
+ FormlyModule
2897
+ ], template: "<nz-switch [formControl]=\"formControl\" [formlyAttributes]=\"field\" [nzDisabled]=\"!editor\"></nz-switch>" }]
2898
+ }] });
2899
+
2900
+ class DeonNzSwitchModule {
2901
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2902
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, imports: [CommonModule,
2903
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
2904
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, imports: [CommonModule,
2905
+ DeonNzFormFieldModule,
2906
+ FormlyModule.forChild({
2907
+ types: [
2908
+ {
2909
+ name: 'switch',
2910
+ component: DeonNzFieldSwitch,
2911
+ wrappers: ['formly-form-field'],
2912
+ },
2913
+ ],
2914
+ })] });
2915
+ }
2916
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, decorators: [{
2917
+ type: NgModule,
2918
+ args: [{
2919
+ imports: [
2920
+ CommonModule,
2921
+ DeonNzFormFieldModule,
2922
+ FormlyModule.forChild({
2923
+ types: [
2924
+ {
2925
+ name: 'switch',
2926
+ component: DeonNzFieldSwitch,
2927
+ wrappers: ['formly-form-field'],
2928
+ },
2929
+ ],
2930
+ }),
2931
+ ],
2932
+ }]
2933
+ }] });
2934
+
2935
+ class DeonNzFieldTabs extends FieldType {
2936
+ defaultOptions = {
2937
+ props: {
2938
+ type: '',
2939
+ },
2940
+ };
2941
+ get clasName() {
2942
+ if (this.props && this.props["className"]) {
2943
+ return this.props["className"];
2944
+ }
2945
+ return null;
2946
+ }
2947
+ selectChange(e) {
2948
+ //(<any>this.options)._buildForm(true);
2949
+ }
2950
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTabs, deps: null, target: i0.ɵɵFactoryTarget.Component });
2951
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldTabs, isStandalone: true, selector: "deon-nz-field-tabs", usesInheritance: true, ngImport: i0, template: "<nz-tabset (nzSelectChange)=\"selectChange([$event])\" [ngClass]=\"clasName\">\n <ng-container *ngFor=\"let tab of field.fieldGroup; let i = index\">\n <nz-tab [nzTitle]=\"tab.props.label\">\n <formly-field [field]=\"tab\"></formly-field>\n </nz-tab>\n </ng-container>\n</nz-tabset>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i2$5.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i2$5.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2952
+ }
2953
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTabs, decorators: [{
2954
+ type: Component,
2955
+ args: [{ selector: 'deon-nz-field-tabs', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
2956
+ CommonModule,
2957
+ FormsModule,
2958
+ ReactiveFormsModule,
2959
+ DeonNzFormFieldModule,
2960
+ NzTabsModule,
2961
+ NzGridModule,
2962
+ FormlyModule
2963
+ ], template: "<nz-tabset (nzSelectChange)=\"selectChange([$event])\" [ngClass]=\"clasName\">\n <ng-container *ngFor=\"let tab of field.fieldGroup; let i = index\">\n <nz-tab [nzTitle]=\"tab.props.label\">\n <formly-field [field]=\"tab\"></formly-field>\n </nz-tab>\n </ng-container>\n</nz-tabset>" }]
2964
+ }] });
2965
+
2966
+ class DeonNzFieldTab extends FieldType {
2967
+ defaultOptions = {
2968
+ props: {
2969
+ type: '',
2970
+ },
2971
+ };
2972
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTab, deps: null, target: i0.ɵɵFactoryTarget.Component });
2973
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldTab, isStandalone: true, selector: "deon-nz-field-tab", usesInheritance: true, ngImport: i0, template: "<ng-container *ngFor=\"let item of field.fieldGroup\">\n <formly-field [field]=\"item\"></formly-field>\n</ng-container>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: NzTabsModule }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i1$1.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2974
+ }
2975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTab, decorators: [{
2976
+ type: Component,
2977
+ args: [{ selector: 'deon-nz-field-tab', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
2978
+ CommonModule,
2979
+ FormsModule,
2980
+ ReactiveFormsModule,
2981
+ DeonNzFormFieldModule,
2982
+ NzTabsModule,
2983
+ NzGridModule,
2984
+ FormlyModule
2985
+ ], template: "<ng-container *ngFor=\"let item of field.fieldGroup\">\n <formly-field [field]=\"item\"></formly-field>\n</ng-container>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column}\n"] }]
2986
+ }] });
2987
+
2988
+ class DeonNzTabsModule {
2989
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2990
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTabsModule, imports: [i1$1.FormlyModule] });
2991
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTabsModule, imports: [FormlyModule.forChild({
2992
+ types: [
2993
+ {
2994
+ name: 'tabs',
2995
+ component: DeonNzFieldTabs,
2996
+ },
2997
+ {
2998
+ name: 'tab',
2999
+ component: DeonNzFieldTab,
3000
+ },
3001
+ ],
3002
+ })] });
3003
+ }
3004
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTabsModule, decorators: [{
3005
+ type: NgModule,
3006
+ args: [{
3007
+ imports: [
3008
+ FormlyModule.forChild({
3009
+ types: [
3010
+ {
3011
+ name: 'tabs',
3012
+ component: DeonNzFieldTabs,
3013
+ },
3014
+ {
3015
+ name: 'tab',
3016
+ component: DeonNzFieldTab,
3017
+ },
3018
+ ],
3019
+ }),
3020
+ ],
3021
+ }]
3022
+ }] });
3023
+
3024
+ class DeonNzFieldText extends FieldType {
3025
+ get text() {
3026
+ if (this.model && this.model.hasOwnProperty(this.field.key)) {
3027
+ return this.model[this.field.key.toString()];
3028
+ }
3029
+ return '';
3030
+ }
3031
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldText, deps: null, target: i0.ɵɵFactoryTarget.Component });
3032
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldText, isStandalone: true, selector: "deon-field-nz-text", usesInheritance: true, ngImport: i0, template: `
3033
+ <div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
3034
+ {{ text }}
3035
+ </div>
3036
+ <ng-template #tmpField> <input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" /> </ng-template>
3037
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3038
+ }
3039
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldText, decorators: [{
3040
+ type: Component,
3041
+ args: [{
3042
+ selector: 'deon-field-nz-text',
3043
+ template: `
3044
+ <div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
3045
+ {{ text }}
3046
+ </div>
3047
+ <ng-template #tmpField> <input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" /> </ng-template>
3048
+ `,
3049
+ changeDetection: ChangeDetectionStrategy.OnPush,
3050
+ imports: [
3051
+ CommonModule,
3052
+ FormsModule,
3053
+ ReactiveFormsModule,
3054
+ NzInputModule,
3055
+ NzInputNumberModule,
3056
+ DeonNzFormFieldModule,
3057
+ FormlyModule
3058
+ ]
3059
+ }]
3060
+ }] });
3061
+
3062
+ class DeonNzTextModule {
3063
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3064
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextModule, imports: [CommonModule, i1$1.FormlyModule] });
3065
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextModule, imports: [CommonModule,
3066
+ FormlyModule.forChild({
3067
+ types: [
3068
+ {
3069
+ name: 'text',
3070
+ component: DeonNzFieldText,
3071
+ wrappers: ['formly-form-field'],
3072
+ },
3073
+ ],
3074
+ })] });
3075
+ }
3076
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextModule, decorators: [{
3077
+ type: NgModule,
3078
+ args: [{
3079
+ imports: [
3080
+ CommonModule,
3081
+ FormlyModule.forChild({
3082
+ types: [
3083
+ {
3084
+ name: 'text',
3085
+ component: DeonNzFieldText,
3086
+ wrappers: ['formly-form-field'],
3087
+ },
3088
+ ],
3089
+ }),
3090
+ ],
3091
+ }]
3092
+ }] });
3093
+
3094
+ class DeonNzFieldTextArea extends FieldType {
3095
+ get text() {
3096
+ if (!this.editor && this.model && this.field?.key) {
3097
+ let value = this.model[this.field.key.toString()] || '';
3098
+ return value.replace(/\n/g, '<br>').replace(/ /g, '&nbsp;');
3099
+ }
3100
+ return this.formControl?.value || '';
3101
+ }
3102
+ replaceAll(str, find, replace) {
3103
+ return str.replace(new RegExp(find, 'g'), replace);
3104
+ }
3105
+ onQuillTextChange(event) {
3106
+ // if (event.text) {
3107
+ // this.formControl.patchValue(event.editor.root.innerHTML, { emitEvent: false });
3108
+ // this.formControl.markAsTouched();
3109
+ // }
3110
+ this.formControl.patchValue(event.editor.root.innerHTML, { emitEvent: false });
3111
+ this.formControl.markAsTouched();
3112
+ }
3113
+ onContentChanged(event) {
3114
+ console.log("onContentChanged", event);
3115
+ if (event.text) {
3116
+ this.formControl.patchValue(event.editor.root.innerHTML, { emitEvent: false });
3117
+ }
3118
+ }
3119
+ onSelectionChanged(event) {
3120
+ console.log("onSelectionChanged");
3121
+ }
3122
+ onFocus(event) {
3123
+ console.log("onFocus");
3124
+ }
3125
+ onBlur(event) {
3126
+ console.log("onBlur");
3127
+ }
3128
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component });
3129
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldTextArea, isStandalone: true, selector: "deon-nz-field-textarea", usesInheritance: true, ngImport: i0, template: `
3130
+ <div
3131
+ class="field-text deon-text deon-text-textarea"
3132
+ [ngStyle]="{ 'min-height': props.rows != undefined ? 26 * props.rows + 'px' : 26 + 'px' }"
3133
+ *ngIf="editor == false; else tmpField"
3134
+ [innerHtml]="text | safeHtml"
3135
+ >
3136
+ {{ text }}
3137
+ </div>
3138
+ <ng-template #tmpField>
3139
+ <ng-container *ngIf="props!! && props.type == 'richtext'; else tmpTextare">
3140
+ <quill-editor [formControl]="formControl" [formlyAttributes]="field"
3141
+ ></quill-editor>
3142
+ </ng-container>
3143
+
3144
+ <ng-template #tmpTextare>
3145
+ <textarea
3146
+ nz-input
3147
+ [formControl]="formControl"
3148
+ [formlyAttributes]="field"
3149
+ [rows]="props.rows ? props.rows : 1"
3150
+ style="resize:none"
3151
+ ></textarea>
3152
+ </ng-template>
3153
+ </ng-template>
3154
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i1$3.SafeHtmlPipe, name: "safeHtml" }, { kind: "ngmodule", type: QuillModule }, { kind: "component", type: i6$1.QuillEditorComponent, selector: "quill-editor" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3155
+ }
3156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTextArea, decorators: [{
3157
+ type: Component,
3158
+ args: [{
3159
+ selector: 'deon-nz-field-textarea',
3160
+ template: `
3161
+ <div
3162
+ class="field-text deon-text deon-text-textarea"
3163
+ [ngStyle]="{ 'min-height': props.rows != undefined ? 26 * props.rows + 'px' : 26 + 'px' }"
3164
+ *ngIf="editor == false; else tmpField"
3165
+ [innerHtml]="text | safeHtml"
3166
+ >
3167
+ {{ text }}
3168
+ </div>
3169
+ <ng-template #tmpField>
3170
+ <ng-container *ngIf="props!! && props.type == 'richtext'; else tmpTextare">
3171
+ <quill-editor [formControl]="formControl" [formlyAttributes]="field"
3172
+ ></quill-editor>
3173
+ </ng-container>
3174
+
3175
+ <ng-template #tmpTextare>
3176
+ <textarea
3177
+ nz-input
3178
+ [formControl]="formControl"
3179
+ [formlyAttributes]="field"
3180
+ [rows]="props.rows ? props.rows : 1"
3181
+ style="resize:none"
3182
+ ></textarea>
3183
+ </ng-template>
3184
+ </ng-template>
3185
+ `,
3186
+ changeDetection: ChangeDetectionStrategy.OnPush,
3187
+ imports: [
3188
+ CommonModule,
3189
+ FormsModule,
3190
+ ReactiveFormsModule,
3191
+ NzInputModule,
3192
+ DeonNzFormFieldModule,
3193
+ FormlyModule,
3194
+ GramPipeModule,
3195
+ QuillModule
3196
+ ]
3197
+ }]
3198
+ }] });
3199
+
3200
+ class DeonNzTextAreaModule {
3201
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3202
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextAreaModule, imports: [i1$1.FormlyModule] });
3203
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextAreaModule, imports: [FormlyModule.forChild({
3204
+ types: [
3205
+ {
3206
+ name: 'textarea',
3207
+ component: DeonNzFieldTextArea,
3208
+ wrappers: ['formly-form-field'],
3209
+ },
3210
+ ],
3211
+ })] });
3212
+ }
3213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextAreaModule, decorators: [{
3214
+ type: NgModule,
3215
+ args: [{
3216
+ imports: [
3217
+ FormlyModule.forChild({
3218
+ types: [
3219
+ {
3220
+ name: 'textarea',
3221
+ component: DeonNzFieldTextArea,
3222
+ wrappers: ['formly-form-field'],
3223
+ },
3224
+ ],
3225
+ }),
3226
+ ],
3227
+ }]
3228
+ }] });
3229
+
3230
+ class DeonNzFieldTextCode extends FieldType {
3231
+ http;
3232
+ cdr;
3233
+ loading = false;
3234
+ constructor(http, cdr) {
3235
+ super();
3236
+ this.http = http;
3237
+ this.cdr = cdr;
3238
+ }
3239
+ get text() {
3240
+ if (this.model && this.model.hasOwnProperty(this.field.key)) {
3241
+ return this.model[this.field.key.toString()];
3242
+ }
3243
+ return '';
3244
+ }
3245
+ /**
3246
+ * 刷新
3247
+ */
3248
+ btnRefresh() {
3249
+ this.loading = true;
3250
+ this.http.post(`${ModuleAPI.paas}/apaas/codeRule/getNextCode/${this.key}`).subscribe((res) => {
3251
+ if (res.success && res.result) {
3252
+ this.formControl.patchValue(res.result);
3253
+ this.formControl.markAsTouched();
3254
+ }
3255
+ setTimeout(() => {
3256
+ this.loading = false;
3257
+ this.cdr.detectChanges();
3258
+ }, 500);
3259
+ });
3260
+ }
3261
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTextCode, deps: [{ token: i1$7._HttpClient }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3262
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldTextCode, isStandalone: true, selector: "deon-field-nz-textcode", usesInheritance: true, ngImport: i0, template: `
3263
+ <div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
3264
+ {{ text }}
3265
+ </div>
3266
+ <ng-template #tmpField>
3267
+ <div class="textcode-box">
3268
+ <input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" readonly/>
3269
+ <button nz-button nzType="default" type="button" [nzLoading]="loading" (click)="btnRefresh()">刷新</button>
3270
+ </div>
3271
+ </ng-template>
3272
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i4$1.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5$2.ɵ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: DeonNzFormFieldModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i1$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3273
+ }
3274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTextCode, decorators: [{
3275
+ type: Component,
3276
+ args: [{
3277
+ selector: 'deon-field-nz-textcode',
3278
+ template: `
3279
+ <div class="field-text deon-text deon-text-default" *ngIf="editor == false; else tmpField">
3280
+ {{ text }}
3281
+ </div>
3282
+ <ng-template #tmpField>
3283
+ <div class="textcode-box">
3284
+ <input nz-input [formControl]="formControl" [type]="'text'" [formlyAttributes]="field" readonly/>
3285
+ <button nz-button nzType="default" type="button" [nzLoading]="loading" (click)="btnRefresh()">刷新</button>
3286
+ </div>
3287
+ </ng-template>
3288
+ `,
3289
+ changeDetection: ChangeDetectionStrategy.OnPush,
3290
+ imports: [
3291
+ CommonModule,
3292
+ FormsModule,
3293
+ ReactiveFormsModule,
3294
+ NzInputModule,
3295
+ NzButtonModule,
3296
+ DeonNzFormFieldModule,
3297
+ FormlyModule
3298
+ ]
3299
+ }]
3300
+ }], ctorParameters: () => [{ type: i1$7._HttpClient }, { type: i0.ChangeDetectorRef }] });
3301
+
3302
+ class DeonNzTextCodeModule {
3303
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3304
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, imports: [i1$1.FormlyModule] });
3305
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, imports: [FormlyModule.forChild({
3306
+ types: [
3307
+ {
3308
+ name: 'textcode',
3309
+ component: DeonNzFieldTextCode,
3310
+ wrappers: ['formly-form-field'],
3311
+ },
3312
+ ],
3313
+ })] });
3314
+ }
3315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, decorators: [{
3316
+ type: NgModule,
3317
+ args: [{
3318
+ imports: [
3319
+ FormlyModule.forChild({
3320
+ types: [
3321
+ {
3322
+ name: 'textcode',
3323
+ component: DeonNzFieldTextCode,
3324
+ wrappers: ['formly-form-field'],
3325
+ },
3326
+ ],
3327
+ }),
3328
+ ],
3329
+ }]
3330
+ }] });
3331
+
3332
+ /**
3333
+ * Generated bundle index. Do not edit.
3334
+ */
3335
+
3336
+ export { DeonNzCheckboxGroupModule, DeonNzCheckboxModule, DeonNzColorModule, DeonNzDateTimeModule, DeonNzDescModule, DeonNzDimIndicatorModule, DeonNzDimModule, DeonNzGridModule, DeonNzGroupModule, DeonNzHtmlModule, DeonNzIconModule, DeonNzLabelModule, DeonNzLineModule, DeonNzListModule, DeonNzNumberModule, DeonNzOverTimeModule, DeonNzPanelModule, DeonNzRadioGroupModule, DeonNzRadioModule, DeonNzReformModule, DeonNzRepeatCardModule, DeonNzRepeatModule, DeonNzSelectModule, DeonNzSwitchModule, DeonNzTabsModule, DeonNzTextAreaModule, DeonNzTextCodeModule, DeonNzTextModule };
3337
+ //# sourceMappingURL=ebuilding-form.mjs.map