@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,143 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule } 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 } from '@kre-form/core';
7
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
+ import { NzInputModule } from 'ng-zorro-antd/input';
9
+ import { NzButtonModule } from 'ng-zorro-antd/button';
10
+ import * as i2 from 'ng-zorro-antd/icon';
11
+ import { NzIconModule } from 'ng-zorro-antd/icon';
12
+ import * as i4 from 'ng-zorro-antd/dropdown';
13
+ import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
14
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
15
+ import * as i3 from 'ng-zorro-antd/menu';
16
+
17
+ class DeonNzFieldIcon extends FieldType {
18
+ defaultOptions = {
19
+ props: {},
20
+ };
21
+ get text() {
22
+ if (this.model && this.model.hasOwnProperty(this.field.key)) {
23
+ let str = this.field.key;
24
+ return this.model[str];
25
+ }
26
+ return '';
27
+ }
28
+ listIcon = [
29
+ 'icon-a001',
30
+ 'icon-a020',
31
+ 'icon-a078',
32
+ 'icon-a079',
33
+ 'icon-a07a',
34
+ 'icon-a07b', // 第一行
35
+ 'icon-a07c',
36
+ 'icon-a07d',
37
+ 'icon-a07e',
38
+ 'icon-a07f',
39
+ 'icon-a080',
40
+ 'icon-a082', // 第二行
41
+ 'icon-a083',
42
+ 'icon-a084',
43
+ 'icon-a085',
44
+ 'icon-a086',
45
+ 'icon-a088',
46
+ 'icon-a089', // 第三行
47
+ 'icon-a0db',
48
+ 'icon-a0dc',
49
+ 'icon-a0e4',
50
+ 'icon-a0f1',
51
+ 'icon-a0f2',
52
+ 'icon-a107',
53
+ ];
54
+ get curValue() {
55
+ let result = null;
56
+ if (this.model && this.model && this.model[this.key]) {
57
+ result = this.model[this.key];
58
+ }
59
+ return result;
60
+ }
61
+ get clickHide() {
62
+ if (this.field.editor == false) {
63
+ return false;
64
+ }
65
+ return true;
66
+ }
67
+ itemClick(item) {
68
+ if (this.model && this.model) {
69
+ this.model[this.key] = item;
70
+ this.formControl.patchValue(this.model[this.key]);
71
+ this.formControl.markAsTouched();
72
+ }
73
+ }
74
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldIcon, deps: null, target: i0.ɵɵFactoryTarget.Component });
75
+ 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: i2.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i3.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i3.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldIcon, decorators: [{
78
+ type: Component,
79
+ args: [{ selector: 'deon-nz-field-icon', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
80
+ CommonModule,
81
+ FormsModule, ReactiveFormsModule,
82
+ NzIconModule,
83
+ NzDropDownModule,
84
+ FormlyModule
85
+ ], 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"] }]
86
+ }] });
87
+
88
+ class DeonNzIconModule {
89
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
90
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, imports: [CommonModule,
91
+ ReactiveFormsModule,
92
+ DeonNzFormFieldModule,
93
+ NzIconModule,
94
+ NzInputModule,
95
+ NzButtonModule,
96
+ NzDropDownModule, i1$1.FormlyModule] });
97
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, imports: [CommonModule,
98
+ ReactiveFormsModule,
99
+ DeonNzFormFieldModule,
100
+ NzIconModule,
101
+ NzInputModule,
102
+ NzButtonModule,
103
+ NzDropDownModule,
104
+ FormlyModule.forChild({
105
+ types: [
106
+ {
107
+ name: 'icon',
108
+ component: DeonNzFieldIcon,
109
+ wrappers: ['formly-form-field'],
110
+ },
111
+ ],
112
+ })] });
113
+ }
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, decorators: [{
115
+ type: NgModule,
116
+ args: [{
117
+ imports: [
118
+ CommonModule,
119
+ ReactiveFormsModule,
120
+ DeonNzFormFieldModule,
121
+ NzIconModule,
122
+ NzInputModule,
123
+ NzButtonModule,
124
+ NzDropDownModule,
125
+ FormlyModule.forChild({
126
+ types: [
127
+ {
128
+ name: 'icon',
129
+ component: DeonNzFieldIcon,
130
+ wrappers: ['formly-form-field'],
131
+ },
132
+ ],
133
+ }),
134
+ ],
135
+ }]
136
+ }] });
137
+
138
+ /**
139
+ * Generated bundle index. Do not edit.
140
+ */
141
+
142
+ export { DeonNzFieldIcon, DeonNzIconModule };
143
+ //# sourceMappingURL=type.icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.icon.mjs","sources":["../../../../packages/form/icon/src/default/index.ts","../../../../packages/form/icon/src/default/index.html","../../../../packages/form/icon/src/index.module.ts","../../../../packages/form/icon/type.icon.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\n\nimport _ from 'lodash';\n@Component({\n selector: 'deon-nz-field-icon',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule, ReactiveFormsModule,\n NzIconModule,\n NzDropDownModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldIcon extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {},\n };\n override get text() {\n if (this.model!! && this.model.hasOwnProperty(this.field.key)) {\n\n let str: any = this.field.key;\n return this.model[str];\n\n }\n return '';\n }\n\n listIcon: any[] = [\n 'icon-a001',\n 'icon-a020',\n 'icon-a078',\n 'icon-a079',\n 'icon-a07a',\n 'icon-a07b', // 第一行\n 'icon-a07c',\n 'icon-a07d',\n 'icon-a07e',\n 'icon-a07f',\n 'icon-a080',\n 'icon-a082', // 第二行\n 'icon-a083',\n 'icon-a084',\n 'icon-a085',\n 'icon-a086',\n 'icon-a088',\n 'icon-a089', // 第三行\n 'icon-a0db',\n 'icon-a0dc',\n 'icon-a0e4',\n 'icon-a0f1',\n 'icon-a0f2',\n 'icon-a107',\n ];\n\n get curValue() {\n let result = null;\n if (this.model && this.model!! && this.model[this.key]) {\n result = this.model[this.key];\n }\n return result;\n }\n\n get clickHide() {\n if (this.field.editor == false) {\n return false;\n }\n return true;\n }\n\n itemClick(item: any) {\n if (this.model && this.model!!) {\n this.model[this.key] = item;\n this.formControl.patchValue(this.model[this.key]);\n this.formControl.markAsTouched();\n }\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { DeonNzFieldIcon } from './default/index';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DeonNzFormFieldModule,\n NzIconModule,\n NzInputModule,\n NzButtonModule,\n NzDropDownModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'icon',\n component: DeonNzFieldIcon,\n wrappers: ['formly-form-field'],\n },\n ],\n }),\n ],\n})\nexport class DeonNzIconModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAsBM,MA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mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAlBzB,YAAY;YACZ,mBAAmB;YACnB,qBAAqB;YACrB,YAAY;YACZ,aAAa;YACb,cAAc;YACd,gBAAgB;YAChB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,eAAe;wBAC1B,QAAQ,EAAE,CAAC,mBAAmB,CAAC;AAChC,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA;;4FAGO,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBApB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,qBAAqB;wBACrB,YAAY;wBACZ,aAAa;wBACb,cAAc;wBACd,gBAAgB;wBAChB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;oCAC1B,QAAQ,EAAE,CAAC,mBAAmB,CAAC;AAChC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC9BD;;AAEG;;;;"}
@@ -0,0 +1,71 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i1 from '@kre-form/core';
5
+ import { FieldType, FormlyModule } from '@kre-form/core';
6
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
8
+
9
+ class DeonNzFieldLabel extends FieldType {
10
+ defaultOptions = {
11
+ props: {},
12
+ };
13
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLabel, deps: null, target: i0.ɵɵFactoryTarget.Component });
14
+ 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 });
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLabel, decorators: [{
17
+ type: Component,
18
+ args: [{
19
+ selector: 'deon-nz-field-label',
20
+ template: ` {{ props.label }} `,
21
+ changeDetection: ChangeDetectionStrategy.OnPush,
22
+ imports: [
23
+ CommonModule,
24
+ FormsModule,
25
+ ReactiveFormsModule
26
+ ]
27
+ }]
28
+ }] });
29
+
30
+ class DeonNzLabelModule {
31
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, imports: [CommonModule,
33
+ ReactiveFormsModule,
34
+ DeonNzFormFieldModule, i1.FormlyModule] });
35
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, imports: [CommonModule,
36
+ ReactiveFormsModule,
37
+ DeonNzFormFieldModule,
38
+ FormlyModule.forChild({
39
+ types: [
40
+ {
41
+ name: 'label',
42
+ component: DeonNzFieldLabel,
43
+ },
44
+ ],
45
+ })] });
46
+ }
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLabelModule, decorators: [{
48
+ type: NgModule,
49
+ args: [{
50
+ imports: [
51
+ CommonModule,
52
+ ReactiveFormsModule,
53
+ DeonNzFormFieldModule,
54
+ FormlyModule.forChild({
55
+ types: [
56
+ {
57
+ name: 'label',
58
+ component: DeonNzFieldLabel,
59
+ },
60
+ ],
61
+ }),
62
+ ],
63
+ }]
64
+ }] });
65
+
66
+ /**
67
+ * Generated bundle index. Do not edit.
68
+ */
69
+
70
+ export { DeonNzFieldLabel, DeonNzLabelModule };
71
+ //# sourceMappingURL=type.label.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.label.mjs","sources":["../../../../packages/form/label/src/label.type.ts","../../../../packages/form/label/src/label.module.ts","../../../../packages/form/label/type.label.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FieldType } from '@kre-form/core';\n\n@Component({\n selector: 'deon-nz-field-label',\n template: ` {{ props.label }} `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule\n ]\n})\nexport class DeonNzFieldLabel extends FieldType {\n override defaultOptions = {\n props: {},\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldLabel } from './label.type';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'label',\n component: DeonNzFieldLabel,\n },\n ],\n }),\n ],\n})\nexport class DeonNzLabelModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeM,MAAO,gB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A;AAWZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAb1B,YAAY;YACZ,mBAAmB;YACnB,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,SAAS,EAAE,gBAAgB;AAC5B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA;;4FAGO,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;AAC5B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;ACvBD;;AAEG;;;;"}
@@ -0,0 +1,78 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i1$1 from '@kre-form/core';
5
+ import { FieldType, FormlyModule } from '@kre-form/core';
6
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import * as i1 from 'ng-zorro-antd/divider';
8
+ import { NzDividerModule } from 'ng-zorro-antd/divider';
9
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
10
+
11
+ class DeonNzFieldLine extends FieldType {
12
+ defaultOptions = {
13
+ props: { description: '' },
14
+ };
15
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLine, deps: null, target: i0.ɵɵFactoryTarget.Component });
16
+ 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.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzVariant", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
17
+ }
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldLine, decorators: [{
19
+ type: Component,
20
+ args: [{
21
+ selector: 'deon-nz-field-line',
22
+ template: ` <nz-divider nzPlain [nzText]="props.label" [nzOrientation]="props['orientation']"></nz-divider> `,
23
+ changeDetection: ChangeDetectionStrategy.OnPush,
24
+ imports: [
25
+ CommonModule,
26
+ FormsModule,
27
+ ReactiveFormsModule,
28
+ NzDividerModule,
29
+ FormlyModule
30
+ ]
31
+ }]
32
+ }] });
33
+
34
+ class DeonNzLineModule {
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, imports: [CommonModule,
37
+ ReactiveFormsModule,
38
+ NzDividerModule,
39
+ DeonNzFormFieldModule, i1$1.FormlyModule] });
40
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, imports: [CommonModule,
41
+ ReactiveFormsModule,
42
+ NzDividerModule,
43
+ DeonNzFormFieldModule,
44
+ FormlyModule.forChild({
45
+ types: [
46
+ {
47
+ name: 'line',
48
+ component: DeonNzFieldLine,
49
+ },
50
+ ],
51
+ })] });
52
+ }
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzLineModule, decorators: [{
54
+ type: NgModule,
55
+ args: [{
56
+ imports: [
57
+ CommonModule,
58
+ ReactiveFormsModule,
59
+ NzDividerModule,
60
+ DeonNzFormFieldModule,
61
+ FormlyModule.forChild({
62
+ types: [
63
+ {
64
+ name: 'line',
65
+ component: DeonNzFieldLine,
66
+ },
67
+ ],
68
+ }),
69
+ ],
70
+ }]
71
+ }] });
72
+
73
+ /**
74
+ * Generated bundle index. Do not edit.
75
+ */
76
+
77
+ export { DeonNzFieldLine, DeonNzLineModule };
78
+ //# sourceMappingURL=type.line.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.line.mjs","sources":["../../../../packages/form/line/src/line.type.ts","../../../../packages/form/line/src/line.module.ts","../../../../packages/form/line/type.line.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzDividerModule } from 'ng-zorro-antd/divider';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\n\n@Component({\n selector: 'deon-nz-field-line',\n template: ` <nz-divider nzPlain [nzText]=\"props.label\" [nzOrientation]=\"props['orientation']\"></nz-divider> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzDividerModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldLine extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: { description: '' },\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzDividerModule } from 'ng-zorro-antd/divider';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldLine } from './line.type';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzDividerModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'line',\n component: DeonNzFieldLine,\n },\n ],\n }),\n ],\n})\nexport class DeonNzLineModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAkBM,MAAO,eAAgB,SAAQ,SAA0B,CAAA;AACpD,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;KAC3B;wGAHU,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAVhB,CAAmG,iGAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAG3G,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACX,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,e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eAAe;AAC3B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA;;4FAGO,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAhB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;AAC3B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;ACxBD;;AAEG;;;;"}
@@ -0,0 +1,84 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i1 from '@kre-form/core';
5
+ import { FieldType, FormlyModule } from '@kre-form/core';
6
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import { NzGridModule } from 'ng-zorro-antd/grid';
8
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
9
+
10
+ class DeonNzFieldList extends FieldType {
11
+ defaultOptions = {
12
+ props: {},
13
+ };
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldList, deps: null, target: i0.ɵɵFactoryTarget.Component });
15
+ 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: `
16
+ <div nz-row>
17
+ <div nz-col nzSpan="12">col-12</div>
18
+ <div nz-col nzSpan="12">col-12</div>
19
+ </div>
20
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldList, decorators: [{
23
+ type: Component,
24
+ args: [{
25
+ selector: 'deon-nz-field-list',
26
+ template: `
27
+ <div nz-row>
28
+ <div nz-col nzSpan="12">col-12</div>
29
+ <div nz-col nzSpan="12">col-12</div>
30
+ </div>
31
+ `,
32
+ changeDetection: ChangeDetectionStrategy.OnPush,
33
+ imports: [
34
+ CommonModule,
35
+ FormsModule, ReactiveFormsModule
36
+ ]
37
+ }]
38
+ }] });
39
+
40
+ class DeonNzListModule {
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
42
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, imports: [CommonModule,
43
+ ReactiveFormsModule,
44
+ NzGridModule,
45
+ DeonNzFormFieldModule, i1.FormlyModule] });
46
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, imports: [CommonModule,
47
+ ReactiveFormsModule,
48
+ NzGridModule,
49
+ DeonNzFormFieldModule,
50
+ FormlyModule.forChild({
51
+ types: [
52
+ {
53
+ name: 'list',
54
+ component: DeonNzFieldList,
55
+ },
56
+ ],
57
+ })] });
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzListModule, decorators: [{
60
+ type: NgModule,
61
+ args: [{
62
+ imports: [
63
+ CommonModule,
64
+ ReactiveFormsModule,
65
+ NzGridModule,
66
+ DeonNzFormFieldModule,
67
+ FormlyModule.forChild({
68
+ types: [
69
+ {
70
+ name: 'list',
71
+ component: DeonNzFieldList,
72
+ },
73
+ ],
74
+ }),
75
+ ],
76
+ }]
77
+ }] });
78
+
79
+ /**
80
+ * Generated bundle index. Do not edit.
81
+ */
82
+
83
+ export { DeonNzFieldList, DeonNzListModule };
84
+ //# sourceMappingURL=type.list.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.list.mjs","sources":["../../../../packages/form/list/src/list.type.ts","../../../../packages/form/list/src/list.module.ts","../../../../packages/form/list/type.list.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FieldType } from '@kre-form/core';\n\n@Component({\n selector: 'deon-nz-field-list',\n template: `\n <div nz-row>\n <div nz-col nzSpan=\"12\">col-12</div>\n <div nz-col nzSpan=\"12\">col-12</div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule, ReactiveFormsModule\n ]\n})\nexport class DeonNzFieldList extends FieldType {\n override defaultOptions = {\n props: {},\n };\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { DeonNzFieldList } from './list.type';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzGridModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'list',\n component: DeonNzFieldList,\n },\n ],\n }),\n ],\n})\nexport class DeonNzListModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAmBM,MAAO,eAAgB,SAAQ,SAAS,CAAA;AACnC,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE;KACV;wGAHU,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CA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YAAA,CAAA,EAAA,CAAA;AAWZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAdzB,YAAY;YACZ,mBAAmB;YACnB,YAAY;YACZ,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,eAAe;AAC3B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA;;4FAGO,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAhB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;AAC3B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;ACvBD;;AAEG;;;;"}
@@ -0,0 +1,196 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i5 from '@kre-form/core';
6
+ import { FieldType, FormlyModule } from '@kre-form/core';
7
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
8
+ import * as i2 from '@angular/forms';
9
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
10
+ import * as i3 from 'ng-zorro-antd/input';
11
+ import { NzInputModule } from 'ng-zorro-antd/input';
12
+ import * as i4 from 'ng-zorro-antd/input-number';
13
+ import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
14
+ import * as i2$1 from 'ng-zorro-antd/rate';
15
+ import { NzRateModule } from 'ng-zorro-antd/rate';
16
+
17
+ class DeonNzFieldNumber extends FieldType {
18
+ get precision() {
19
+ if (this.props["precision"] && this.props["precision"] > 0) {
20
+ return this.props["precision"];
21
+ }
22
+ return 0;
23
+ }
24
+ get password() {
25
+ return this.props?.["password"] === true;
26
+ }
27
+ constructor() {
28
+ super();
29
+ }
30
+ ngOnInit() { }
31
+ /**
32
+ * 防止 nz-input-number 的 formatter 报错(如 toFixed 报错)
33
+ */
34
+ formatNumber = (value) => {
35
+ const val = Number(value);
36
+ return isNaN(val) ? '' : val.toFixed(this.precision);
37
+ };
38
+ /**
39
+ * 解析输入值为数字,NaN 返回 0
40
+ */
41
+ parseNumber = (value) => {
42
+ const parsed = parseFloat(value);
43
+ return isNaN(parsed) ? 0 : parsed;
44
+ };
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, deps: [], target: i0.ɵɵFactoryTarget.Component });
46
+ 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: `
47
+ <ng-container *ngIf="!password; else tmpPwd">
48
+ <ng-container *ngIf="props['unit']; else tmpNumber">
49
+ <nz-input-group [nzAddOnAfter]="props['unit']">
50
+ <nz-input-number
51
+ [formControl]="formControl"
52
+ [formlyAttributes]="field"
53
+ [nzDisabled]="!editor"
54
+ [nzPrecision]="precision"
55
+ [nzStep]="0"
56
+ [nzParser]="parseNumber"
57
+ ></nz-input-number>
58
+ </nz-input-group>
59
+ </ng-container>
60
+ <ng-template #tmpNumber>
61
+ <nz-input-number
62
+ [formControl]="formControl"
63
+ [formlyAttributes]="field"
64
+ [nzDisabled]="!editor"
65
+ [nzPrecision]="precision"
66
+ [nzStep]="precision == 0 ? 1 : 0.1"
67
+ [nzParser]="parseNumber"
68
+ ></nz-input-number>
69
+ </ng-template>
70
+ </ng-container>
71
+
72
+ <ng-template #tmpPwd> *** </ng-template>
73
+ `, 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.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.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: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
74
+ }
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumber, decorators: [{
76
+ type: Component,
77
+ args: [{
78
+ selector: 'deon-nz-field-number',
79
+ template: `
80
+ <ng-container *ngIf="!password; else tmpPwd">
81
+ <ng-container *ngIf="props['unit']; else tmpNumber">
82
+ <nz-input-group [nzAddOnAfter]="props['unit']">
83
+ <nz-input-number
84
+ [formControl]="formControl"
85
+ [formlyAttributes]="field"
86
+ [nzDisabled]="!editor"
87
+ [nzPrecision]="precision"
88
+ [nzStep]="0"
89
+ [nzParser]="parseNumber"
90
+ ></nz-input-number>
91
+ </nz-input-group>
92
+ </ng-container>
93
+ <ng-template #tmpNumber>
94
+ <nz-input-number
95
+ [formControl]="formControl"
96
+ [formlyAttributes]="field"
97
+ [nzDisabled]="!editor"
98
+ [nzPrecision]="precision"
99
+ [nzStep]="precision == 0 ? 1 : 0.1"
100
+ [nzParser]="parseNumber"
101
+ ></nz-input-number>
102
+ </ng-template>
103
+ </ng-container>
104
+
105
+ <ng-template #tmpPwd> *** </ng-template>
106
+ `,
107
+ changeDetection: ChangeDetectionStrategy.OnPush,
108
+ standalone: true,
109
+ imports: [
110
+ CommonModule,
111
+ FormsModule,
112
+ ReactiveFormsModule,
113
+ NzInputModule,
114
+ NzInputNumberModule,
115
+ FormlyModule
116
+ ]
117
+ }]
118
+ }], ctorParameters: () => [] });
119
+
120
+ class DeonNzFieldNumberRate extends FieldType {
121
+ constructor() {
122
+ super();
123
+ }
124
+ ngOnInit() { }
125
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumberRate, deps: [], target: i0.ɵɵFactoryTarget.Component });
126
+ 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$1.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: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
127
+ }
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldNumberRate, decorators: [{
129
+ type: Component,
130
+ args: [{
131
+ selector: 'deon-nz-field-number',
132
+ template: ` <nz-rate [formControl]="formControl" [formlyAttributes]="field" [nzDisabled]="!editor" [nzAllowClear]="to?.required==true?false:true"> </nz-rate> `,
133
+ changeDetection: ChangeDetectionStrategy.OnPush,
134
+ imports: [
135
+ ReactiveFormsModule,
136
+ NzRateModule,
137
+ FormlyModule
138
+ ]
139
+ }]
140
+ }], ctorParameters: () => [] });
141
+
142
+ class DeonNzNumberModule {
143
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
144
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, imports: [CommonModule,
145
+ DeonNzFormFieldModule, i5.FormlyModule] });
146
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, imports: [CommonModule,
147
+ DeonNzFormFieldModule,
148
+ FormlyModule.forChild({
149
+ types: [
150
+ {
151
+ name: 'number',
152
+ component: DeonNzFieldNumber,
153
+ wrappers: ['formly-form-field'],
154
+ },
155
+ { name: 'eval_number', extends: 'number' },
156
+ { name: 'finish_number', extends: 'number' },
157
+ {
158
+ name: 'rate_number',
159
+ component: DeonNzFieldNumberRate,
160
+ wrappers: ['formly-form-field'],
161
+ },
162
+ ],
163
+ })] });
164
+ }
165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzNumberModule, decorators: [{
166
+ type: NgModule,
167
+ args: [{
168
+ imports: [
169
+ CommonModule,
170
+ DeonNzFormFieldModule,
171
+ FormlyModule.forChild({
172
+ types: [
173
+ {
174
+ name: 'number',
175
+ component: DeonNzFieldNumber,
176
+ wrappers: ['formly-form-field'],
177
+ },
178
+ { name: 'eval_number', extends: 'number' },
179
+ { name: 'finish_number', extends: 'number' },
180
+ {
181
+ name: 'rate_number',
182
+ component: DeonNzFieldNumberRate,
183
+ wrappers: ['formly-form-field'],
184
+ },
185
+ ],
186
+ }),
187
+ ],
188
+ }]
189
+ }] });
190
+
191
+ /**
192
+ * Generated bundle index. Do not edit.
193
+ */
194
+
195
+ export { DeonNzFieldNumber, DeonNzFieldNumberRate, DeonNzNumberModule };
196
+ //# sourceMappingURL=type.number.mjs.map