@ebuilding/form 2.1.14 → 2.2.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 (183) hide show
  1. package/checkbox/src/app.config.d.ts +2 -0
  2. package/checkbox/src/checkbox.module.d.ts +1 -1
  3. package/checkbox/src/checkbox.type.d.ts +1 -1
  4. package/checkbox/src/public_api.d.ts +1 -0
  5. package/checkboxgroup/src/app.config.d.ts +2 -0
  6. package/checkboxgroup/src/checkboxgroup.module.d.ts +1 -1
  7. package/checkboxgroup/src/checkboxgroup.type.d.ts +1 -1
  8. package/checkboxgroup/src/public_api.d.ts +1 -0
  9. package/colors/src/app.config.d.ts +2 -0
  10. package/colors/src/default/index.d.ts +1 -1
  11. package/colors/src/index.module.d.ts +3 -2
  12. package/colors/src/public_api.d.ts +1 -0
  13. package/datetime/src/app.config.d.ts +2 -0
  14. package/datetime/src/datetime.module.d.ts +1 -1
  15. package/datetime/src/datetime.type.d.ts +1 -1
  16. package/datetime/src/public_api.d.ts +1 -0
  17. package/desc/src/app.config.d.ts +2 -0
  18. package/desc/src/desc.module.d.ts +1 -1
  19. package/desc/src/desc.type.d.ts +1 -1
  20. package/desc/src/public_api.d.ts +1 -0
  21. package/dim/src/app.config.d.ts +2 -0
  22. package/dim/src/default/index.d.ts +1 -1
  23. package/dim/src/dim.module.d.ts +1 -1
  24. package/dim/src/public_api.d.ts +1 -0
  25. package/dim-indicator/src/app.config.d.ts +2 -0
  26. package/dim-indicator/src/assess/index.d.ts +1 -1
  27. package/dim-indicator/src/default/index.d.ts +1 -1
  28. package/dim-indicator/src/finish/index.d.ts +1 -1
  29. package/dim-indicator/src/indicator.module.d.ts +1 -1
  30. package/dim-indicator/src/public_api.d.ts +1 -0
  31. package/fesm2022/ebuilding-form.mjs +472 -604
  32. package/fesm2022/ebuilding-form.mjs.map +1 -1
  33. package/fesm2022/type.checkbox.mjs +22 -30
  34. package/fesm2022/type.checkbox.mjs.map +1 -1
  35. package/fesm2022/type.checkboxgroup.mjs +18 -22
  36. package/fesm2022/type.checkboxgroup.mjs.map +1 -1
  37. package/fesm2022/type.colors.mjs +23 -23
  38. package/fesm2022/type.colors.mjs.map +1 -1
  39. package/fesm2022/type.datetime.mjs +18 -22
  40. package/fesm2022/type.datetime.mjs.map +1 -1
  41. package/fesm2022/type.desc.mjs +16 -19
  42. package/fesm2022/type.desc.mjs.map +1 -1
  43. package/fesm2022/type.dim-indicator.mjs +27 -38
  44. package/fesm2022/type.dim-indicator.mjs.map +1 -1
  45. package/fesm2022/type.dim.mjs +17 -20
  46. package/fesm2022/type.dim.mjs.map +1 -1
  47. package/fesm2022/type.form-field.mjs +17 -20
  48. package/fesm2022/type.form-field.mjs.map +1 -1
  49. package/fesm2022/type.grid.mjs +17 -20
  50. package/fesm2022/type.grid.mjs.map +1 -1
  51. package/fesm2022/type.group.mjs +21 -28
  52. package/fesm2022/type.group.mjs.map +1 -1
  53. package/fesm2022/type.html.mjs +17 -21
  54. package/fesm2022/type.html.mjs.map +1 -1
  55. package/fesm2022/type.icon.mjs +17 -21
  56. package/fesm2022/type.icon.mjs.map +1 -1
  57. package/fesm2022/type.label.mjs +16 -19
  58. package/fesm2022/type.label.mjs.map +1 -1
  59. package/fesm2022/type.line.mjs +16 -19
  60. package/fesm2022/type.line.mjs.map +1 -1
  61. package/fesm2022/type.list.mjs +16 -19
  62. package/fesm2022/type.list.mjs.map +1 -1
  63. package/fesm2022/type.number.mjs +26 -37
  64. package/fesm2022/type.number.mjs.map +1 -1
  65. package/fesm2022/type.overtime.mjs +17 -21
  66. package/fesm2022/type.overtime.mjs.map +1 -1
  67. package/fesm2022/type.panel.mjs +17 -20
  68. package/fesm2022/type.panel.mjs.map +1 -1
  69. package/fesm2022/type.radio.mjs +18 -22
  70. package/fesm2022/type.radio.mjs.map +1 -1
  71. package/fesm2022/type.radiogroup.mjs +17 -21
  72. package/fesm2022/type.radiogroup.mjs.map +1 -1
  73. package/fesm2022/type.reform.mjs +17 -20
  74. package/fesm2022/type.reform.mjs.map +1 -1
  75. package/fesm2022/type.repeat-card.mjs +17 -20
  76. package/fesm2022/type.repeat-card.mjs.map +1 -1
  77. package/fesm2022/type.repeat.mjs +21 -28
  78. package/fesm2022/type.repeat.mjs.map +1 -1
  79. package/fesm2022/type.select.mjs +21 -28
  80. package/fesm2022/type.select.mjs.map +1 -1
  81. package/fesm2022/type.switch.mjs +18 -22
  82. package/fesm2022/type.switch.mjs.map +1 -1
  83. package/fesm2022/type.tabs.mjs +42 -49
  84. package/fesm2022/type.tabs.mjs.map +1 -1
  85. package/fesm2022/type.text.mjs +29 -35
  86. package/fesm2022/type.text.mjs.map +1 -1
  87. package/fesm2022/type.textarea.mjs +18 -22
  88. package/fesm2022/type.textarea.mjs.map +1 -1
  89. package/fesm2022/type.textcode.mjs +18 -22
  90. package/fesm2022/type.textcode.mjs.map +1 -1
  91. package/form-field/src/form-field.config.d.ts +2 -0
  92. package/form-field/src/form-field.module.d.ts +1 -1
  93. package/form-field/src/form-field.wrapper.d.ts +1 -1
  94. package/form-field/src/public_api.d.ts +1 -0
  95. package/grid/src/app.config.d.ts +2 -0
  96. package/grid/src/grid.module.d.ts +1 -1
  97. package/grid/src/grid.type.d.ts +1 -1
  98. package/grid/src/public_api.d.ts +1 -0
  99. package/group/src/app.config.d.ts +2 -0
  100. package/group/src/group.module.d.ts +1 -1
  101. package/group/src/group.type.d.ts +1 -1
  102. package/group/src/public_api.d.ts +1 -0
  103. package/html/src/app.config.d.ts +2 -0
  104. package/html/src/html.module.d.ts +1 -1
  105. package/html/src/html.type.d.ts +1 -1
  106. package/html/src/public_api.d.ts +1 -0
  107. package/icon/src/app.config.d.ts +2 -0
  108. package/icon/src/default/index.d.ts +1 -1
  109. package/icon/src/index.module.d.ts +1 -1
  110. package/icon/src/public_api.d.ts +1 -0
  111. package/index.d.ts +28 -28
  112. package/label/src/app.config.d.ts +2 -0
  113. package/label/src/label.module.d.ts +1 -1
  114. package/label/src/label.type.d.ts +1 -1
  115. package/label/src/public_api.d.ts +1 -0
  116. package/line/src/app.config.d.ts +2 -0
  117. package/line/src/line.module.d.ts +1 -1
  118. package/line/src/line.type.d.ts +1 -1
  119. package/line/src/public_api.d.ts +1 -0
  120. package/list/src/app.config.d.ts +2 -0
  121. package/list/src/list.module.d.ts +1 -1
  122. package/list/src/list.type.d.ts +1 -1
  123. package/list/src/public_api.d.ts +1 -0
  124. package/number/src/app.config.d.ts +2 -0
  125. package/number/src/number.module.d.ts +1 -1
  126. package/number/src/number.type.d.ts +1 -1
  127. package/number/src/number_rate.type.d.ts +1 -1
  128. package/number/src/public_api.d.ts +1 -0
  129. package/overtime/src/app.config.d.ts +2 -0
  130. package/overtime/src/default/index.d.ts +1 -1
  131. package/overtime/src/index.module.d.ts +1 -1
  132. package/overtime/src/public_api.d.ts +1 -0
  133. package/package.json +38 -38
  134. package/panel/src/app.config.d.ts +2 -0
  135. package/panel/src/panel.module.d.ts +1 -1
  136. package/panel/src/panel.type.d.ts +1 -1
  137. package/panel/src/public_api.d.ts +1 -0
  138. package/radio/src/app.config.d.ts +2 -0
  139. package/radio/src/public_api.d.ts +1 -0
  140. package/radio/src/radio.module.d.ts +1 -1
  141. package/radio/src/radio.type.d.ts +1 -1
  142. package/radiogroup/src/app.config.d.ts +2 -0
  143. package/radiogroup/src/public_api.d.ts +1 -0
  144. package/radiogroup/src/radiogroup.module.d.ts +1 -1
  145. package/radiogroup/src/radiogroup.type.d.ts +1 -1
  146. package/reform/src/app.config.d.ts +2 -0
  147. package/reform/src/public_api.d.ts +1 -0
  148. package/reform/src/reform.module.d.ts +1 -1
  149. package/reform/src/reform.type.d.ts +1 -1
  150. package/repeat/src/app.config.d.ts +2 -0
  151. package/repeat/src/default/index.d.ts +1 -1
  152. package/repeat/src/index.module.d.ts +1 -1
  153. package/repeat/src/public_api.d.ts +1 -0
  154. package/repeat-card/src/app.config.d.ts +2 -0
  155. package/repeat-card/src/default/index.d.ts +1 -1
  156. package/repeat-card/src/index.module.d.ts +1 -1
  157. package/repeat-card/src/public_api.d.ts +1 -0
  158. package/select/src/app.config.d.ts +2 -0
  159. package/select/src/public_api.d.ts +1 -0
  160. package/select/src/select.module.d.ts +1 -1
  161. package/select/src/select.type.d.ts +1 -1
  162. package/switch/src/app.config.d.ts +2 -0
  163. package/switch/src/default/index.d.ts +1 -1
  164. package/switch/src/index.module.d.ts +1 -1
  165. package/switch/src/public_api.d.ts +1 -0
  166. package/tabs/src/app.config.d.ts +2 -0
  167. package/tabs/src/default/index.d.ts +1 -1
  168. package/tabs/src/index.module.d.ts +1 -1
  169. package/tabs/src/public_api.d.ts +1 -0
  170. package/tabs/src/tab/index.d.ts +1 -1
  171. package/text/src/public_api.d.ts +1 -0
  172. package/text/src/text.config.d.ts +2 -0
  173. package/text/src/text.module.d.ts +3 -2
  174. package/text/src/text.type.d.ts +1 -1
  175. package/text/src/text_ind.type.d.ts +1 -1
  176. package/textarea/src/app.config.d.ts +2 -0
  177. package/textarea/src/public_api.d.ts +1 -0
  178. package/textarea/src/textarea.module.d.ts +1 -1
  179. package/textarea/src/textarea.type.d.ts +1 -1
  180. package/textcode/src/app.config.d.ts +2 -0
  181. package/textcode/src/public_api.d.ts +1 -0
  182. package/textcode/src/text.module.d.ts +1 -1
  183. package/textcode/src/text.type.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
- import * as i8 from '@kre-form/core';
4
- import { FieldType, FormlyModule } from '@kre-form/core';
3
+ import * as i8 from '@ebuilding-form/core';
4
+ import { FieldType, FormlyModule } from '@ebuilding-form/core';
5
5
  import * as i2 from '@angular/common';
6
6
  import { CommonModule } from '@angular/common';
7
7
  import * as i3 from '@angular/forms';
@@ -58,7 +58,7 @@ class DeonNzFieldTextCode extends FieldType {
58
58
  <button nz-button nzType="default" type="button" [nzLoading]="loading" (click)="btnRefresh()">刷新</button>
59
59
  </div>
60
60
  </ng-template>
61
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i4.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i5.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i6.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i7.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i4.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i5.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i6.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i7.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: DeonNzFormFieldModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i8.LegacyFormlyAttributes, selector: "[formlyAttributes]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
62
  }
63
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldTextCode, decorators: [{
64
64
  type: Component,
@@ -88,32 +88,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
88
88
  }]
89
89
  }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i0.ChangeDetectorRef }] });
90
90
 
91
+ function withFormlyFieldTextCode() {
92
+ return {
93
+ types: [
94
+ {
95
+ name: 'textcode',
96
+ component: DeonNzFieldTextCode,
97
+ wrappers: ['formly-form-field'],
98
+ }
99
+ ]
100
+ };
101
+ }
102
+
91
103
  class DeonNzTextCodeModule {
92
104
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
93
105
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, imports: [i8.FormlyModule] });
94
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, imports: [FormlyModule.forChild({
95
- types: [
96
- {
97
- name: 'textcode',
98
- component: DeonNzFieldTextCode,
99
- wrappers: ['formly-form-field'],
100
- },
101
- ],
102
- })] });
106
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, imports: [FormlyModule.forChild(withFormlyFieldTextCode())] });
103
107
  }
104
108
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzTextCodeModule, decorators: [{
105
109
  type: NgModule,
106
110
  args: [{
107
111
  imports: [
108
- FormlyModule.forChild({
109
- types: [
110
- {
111
- name: 'textcode',
112
- component: DeonNzFieldTextCode,
113
- wrappers: ['formly-form-field'],
114
- },
115
- ],
116
- }),
112
+ FormlyModule.forChild(withFormlyFieldTextCode()),
117
113
  ],
118
114
  }]
119
115
  }] });
@@ -122,5 +118,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
122
118
  * Generated bundle index. Do not edit.
123
119
  */
124
120
 
125
- export { DeonNzFieldTextCode, DeonNzTextCodeModule };
121
+ export { DeonNzFieldTextCode, DeonNzTextCodeModule, withFormlyFieldTextCode };
126
122
  //# sourceMappingURL=type.textcode.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.textcode.mjs","sources":["../../../../packages/form/textcode/src/text.type.ts","../../../../packages/form/textcode/src/text.module.ts","../../../../packages/form/textcode/type.textcode.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { _HttpClient } from '@delon/theme';\r\n\r\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant'; \r\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\r\n\r\n@Component({\r\n selector: 'deon-field-nz-textcode',\r\n template: `\r\n <div class=\"field-text deon-text deon-text-default\" *ngIf=\"editor == false; else tmpField\">\r\n {{ text }}\r\n </div>\r\n <ng-template #tmpField> \r\n <div class=\"textcode-box\">\r\n <input nz-input [formControl]=\"formControl\" [type]=\"'text'\" [formlyAttributes]=\"field\" readonly/> \r\n <button nz-button nzType=\"default\" type=\"button\" [nzLoading]=\"loading\" (click)=\"btnRefresh()\">刷新</button> \r\n </div>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzInputModule,\r\n NzButtonModule,\r\n DeonNzFormFieldModule,\r\n FormlyModule\r\n ]\r\n})\r\nexport class DeonNzFieldTextCode extends FieldType<FieldTypeConfig> {\r\n\r\n loading: boolean = false;\r\n constructor(public http: _HttpClient, public cdr: ChangeDetectorRef) {\r\n super();\r\n }\r\n\r\n override get text() {\r\n if (this.model!! && this.model.hasOwnProperty(this.field.key)) {\r\n return this.model[this.field.key.toString()];\r\n }\r\n return '';\r\n }\r\n\r\n /**\r\n * 刷新\r\n */\r\n btnRefresh() {\r\n this.loading = true;\r\n this.http.post(`${ModuleAPI.paas}/apaas/codeRule/getNextCode/${this.key}`).subscribe((res: any) => {\r\n if (res.success && res.result!!) {\r\n this.formControl.patchValue(res.result);\r\n this.formControl.markAsTouched();\r\n }\r\n setTimeout(() => {\r\n this.loading = false;\r\n this.cdr.detectChanges();\r\n }, 500);\r\n });\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { FormlyModule } from '@kre-form/core';\r\nimport { DeonNzFieldTextCode } from './text.type';\r\n\r\n@NgModule({\r\n imports: [\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'textcode',\r\n component: DeonNzFieldTextCode,\r\n wrappers: ['formly-form-field'],\r\n },\r\n ],\r\n }),\r\n ],\r\n})\r\nexport class DeonNzTextCodeModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;AAoCM,MAAO,mBAAoB,SAAQ,SAA0B,CAAA;AAG9C,IAAA,IAAA;AAA0B,IAAA,GAAA;IAD7C,OAAO,GAAY,KAAK;IACxB,WAAmB,CAAA,IAAiB,EAAS,GAAsB,EAAA;AACjE,QAAA,KAAK,EAAE;QADU,IAAI,CAAA,IAAA,GAAJ,IAAI;QAAsB,IAAG,CAAA,GAAA,GAAH,GAAG;;AAIhD,IAAA,IAAa,IAAI,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,KAAO,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,G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,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAApB,oBAAoB,EAAA,OAAA,EAAA,CAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EAX7B,OAAA,EAAA,CAAA,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,mBAAmB,CAAC;AAChC,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA;;4FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,mBAAmB,CAAC;AAChC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AChBD;;AAEG;;;;"}
1
+ {"version":3,"file":"type.textcode.mjs","sources":["../../../../packages/form/textcode/src/text.type.ts","../../../../packages/form/textcode/src/app.config.ts","../../../../packages/form/textcode/src/text.module.ts","../../../../packages/form/textcode/type.textcode.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { _HttpClient } from '@delon/theme';\r\n\r\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@ebuilding-form/core';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\r\n\r\n@Component({\r\n selector: 'deon-field-nz-textcode',\r\n template: `\r\n <div class=\"field-text deon-text deon-text-default\" *ngIf=\"editor == false; else tmpField\">\r\n {{ text }}\r\n </div>\r\n <ng-template #tmpField> \r\n <div class=\"textcode-box\">\r\n <input nz-input [formControl]=\"formControl\" [type]=\"'text'\" [formlyAttributes]=\"field\" readonly/> \r\n <button nz-button nzType=\"default\" type=\"button\" [nzLoading]=\"loading\" (click)=\"btnRefresh()\">刷新</button> \r\n </div>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzInputModule,\r\n NzButtonModule,\r\n DeonNzFormFieldModule,\r\n FormlyModule\r\n ]\r\n})\r\nexport class DeonNzFieldTextCode extends FieldType<FieldTypeConfig> {\r\n\r\n loading: boolean = false;\r\n constructor(public http: _HttpClient, public cdr: ChangeDetectorRef) {\r\n super();\r\n }\r\n\r\n override get text() {\r\n if (this.model!! && this.model.hasOwnProperty(this.field.key)) {\r\n return this.model[this.field.key.toString()];\r\n }\r\n return '';\r\n }\r\n\r\n /**\r\n * 刷新\r\n */\r\n btnRefresh() {\r\n this.loading = true;\r\n this.http.post(`${ModuleAPI.paas}/apaas/codeRule/getNextCode/${this.key}`).subscribe((res: any) => {\r\n if (res.success && res.result!!) {\r\n this.formControl.patchValue(res.result);\r\n this.formControl.markAsTouched();\r\n }\r\n setTimeout(() => {\r\n this.loading = false;\r\n this.cdr.detectChanges();\r\n }, 500);\r\n });\r\n }\r\n}\r\n","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldTextCode } from './text.type';\n\nexport function withFormlyFieldTextCode(): ConfigOption {\n return {\n types: [\n {\n name: 'textcode',\n component: DeonNzFieldTextCode,\n wrappers: ['formly-form-field'],\n }\n ]\n };\n}\n","import { NgModule } from '@angular/core';\r\nimport { FormlyModule } from '@ebuilding-form/core';\r\nimport { withFormlyFieldTextCode } from './app.config';\r\n\r\n\r\n@NgModule({\r\n imports: [\r\n FormlyModule.forChild(withFormlyFieldTextCode()),\r\n\r\n ],\r\n})\r\nexport class DeonNzTextCodeModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;AAoCM,MAAO,mBAAoB,SAAQ,SAA0B,CAAA;AAG9C,IAAA,IAAA;AAA0B,IAAA,GAAA;IAD7C,OAAO,GAAY,KAAK;IACxB,WAAmB,CAAA,IAAiB,EAAS,GAAsB,EAAA;AACjE,QAAA,KAAK,EAAE;QADU,IAAI,CAAA,IAAA,GAAJ,IAAI;QAAsB,IAAG,CAAA,GAAA,GAAH,GAAG;;AAIhD,IAAA,IAAa,IAAI,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,KAAO,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;AAC7D,YAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;;AAE9C,QAAA,OAAO,EAAE;;AAGX;;AAEG;IACH,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;QACnB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAG,EAAA,SAAS,CAAC,IAAI,CAAA,4BAAA,EAA+B,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,GAAQ,KAAI;YAChG,IAAI,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,MAAQ,EAAE;gBAC/B,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,GA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A;;4FAIvC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC;AAEjD,qBAAA;AACF,iBAAA;;;ACVD;;AAEG;;;;"}
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFormField(): ConfigOption;
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "ng-zorro-antd/form";
5
- import * as i4 from "@kre-form/core";
5
+ import * as i4 from "@ebuilding-form/core";
6
6
  export declare class DeonNzFormFieldModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzFormFieldModule, never>;
8
8
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzFormFieldModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.NzFormModule, typeof i4.FormlyModule], never>;
@@ -1,4 +1,4 @@
1
- import { FieldWrapper } from '@kre-form/core';
1
+ import { FieldWrapper } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonWrapperFormField extends FieldWrapper {
4
4
  get errorState(): "error" | "";
@@ -1,2 +1,3 @@
1
1
  export { DeonNzFormFieldModule } from './form-field.module';
2
2
  export { DeonWrapperFormField } from './form-field.wrapper';
3
+ export { withFormlyFormField } from './form-field.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldGrid(): ConfigOption;
@@ -3,7 +3,7 @@ import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "ng-zorro-antd/grid";
5
5
  import * as i4 from "@ebuilding/form/form-field";
6
- import * as i5 from "@kre-form/core";
6
+ import * as i5 from "@ebuilding-form/core";
7
7
  export declare class DeonNzGridModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzGridModule, never>;
9
9
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzGridModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.NzGridModule, typeof i4.DeonNzFormFieldModule, typeof i5.FormlyModule], never>;
@@ -1,4 +1,4 @@
1
- import { FieldType } from '@kre-form/core';
1
+ import { FieldType } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonNzFieldGrid extends FieldType {
4
4
  defaultOptions: {
@@ -1,2 +1,3 @@
1
1
  export { DeonNzGridModule } from './grid.module';
2
2
  export { DeonNzFieldGrid } from './grid.type';
3
+ export { withFormlyFieldGrid } from './app.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldGroup(): ConfigOption;
@@ -3,7 +3,7 @@ import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "ng-zorro-antd/grid";
5
5
  import * as i4 from "@ebuilding/form/form-field";
6
- import * as i5 from "@kre-form/core";
6
+ import * as i5 from "@ebuilding-form/core";
7
7
  export declare class DeonNzGroupModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzGroupModule, never>;
9
9
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzGroupModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.NzGridModule, typeof i4.DeonNzFormFieldModule, typeof i5.FormlyModule], never>;
@@ -1,4 +1,4 @@
1
- import { FieldType, FieldTypeConfig } from '@kre-form/core';
1
+ import { FieldType, FieldTypeConfig } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonNzFieldGroup extends FieldType<FieldTypeConfig> {
4
4
  defaultOptions: {
@@ -1,2 +1,3 @@
1
1
  export { DeonNzGroupModule } from './group.module';
2
2
  export { DeonNzFieldGroup } from './group.type';
3
+ export { withFormlyFieldGroup } from './app.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldHtml(): ConfigOption;
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "@ebuilding/form/form-field";
5
- import * as i4 from "@kre-form/core";
5
+ import * as i4 from "@ebuilding-form/core";
6
6
  export declare class DeonNzHtmlModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzHtmlModule, never>;
8
8
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzHtmlModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.DeonNzFormFieldModule, typeof i4.FormlyModule], never>;
@@ -1,4 +1,4 @@
1
- import { FieldType } from '@kre-form/core';
1
+ import { FieldType } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonNzFieldHtml extends FieldType {
4
4
  defaultOptions: {
@@ -1,2 +1,3 @@
1
1
  export { DeonNzHtmlModule } from './html.module';
2
2
  export { DeonNzFieldHtml } from './html.type';
3
+ export { withFormlyFieldHtml } from './app.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldIcon(): ConfigOption;
@@ -1,4 +1,4 @@
1
- import { FieldType, FieldTypeConfig } from '@kre-form/core';
1
+ import { FieldType, FieldTypeConfig } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonNzFieldIcon extends FieldType<FieldTypeConfig> {
4
4
  defaultOptions: {
@@ -6,7 +6,7 @@ import * as i4 from "ng-zorro-antd/icon";
6
6
  import * as i5 from "ng-zorro-antd/input";
7
7
  import * as i6 from "ng-zorro-antd/button";
8
8
  import * as i7 from "ng-zorro-antd/dropdown";
9
- import * as i8 from "@kre-form/core";
9
+ import * as i8 from "@ebuilding-form/core";
10
10
  export declare class DeonNzIconModule {
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzIconModule, never>;
12
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzIconModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.DeonNzFormFieldModule, typeof i4.NzIconModule, typeof i5.NzInputModule, typeof i6.NzButtonModule, typeof i7.NzDropDownModule, typeof i8.FormlyModule], never>;
@@ -1,2 +1,3 @@
1
1
  export { DeonNzIconModule } from './index.module';
2
2
  export { DeonNzFieldIcon } from './default/index';
3
+ export { withFormlyFieldIcon } from './app.config';
package/index.d.ts CHANGED
@@ -1,28 +1,28 @@
1
- export { DeonNzCheckboxModule } from './checkbox';
2
- export { DeonNzCheckboxGroupModule } from './checkboxgroup';
3
- export { DeonNzColorModule } from './colors';
4
- export { DeonNzDateTimeModule } from './datetime';
5
- export { DeonNzDescModule } from './desc';
6
- export { DeonNzDimModule } from './dim';
7
- export { DeonNzDimIndicatorModule } from './dim-indicator';
8
- export { DeonNzGridModule } from './grid';
9
- export { DeonNzGroupModule } from './group';
10
- export { DeonNzHtmlModule } from './html';
11
- export { DeonNzIconModule } from './icon';
12
- export { DeonNzLabelModule } from './label';
13
- export { DeonNzLineModule } from './line';
14
- export { DeonNzListModule } from './list';
15
- export { DeonNzNumberModule } from './number';
16
- export { DeonNzOverTimeModule } from './overtime';
17
- export { DeonNzPanelModule } from './panel';
18
- export { DeonNzRadioModule } from './radio';
19
- export { DeonNzRadioGroupModule } from './radiogroup';
20
- export { DeonNzReformModule } from './reform';
21
- export { DeonNzRepeatModule } from './repeat';
22
- export { DeonNzRepeatCardModule } from './repeat-card';
23
- export { DeonNzSelectModule } from './select';
24
- export { DeonNzSwitchModule } from './switch';
25
- export { DeonNzTabsModule } from './tabs';
26
- export { DeonNzTextModule } from './text';
27
- export { DeonNzTextAreaModule } from './textarea';
28
- export { DeonNzTextCodeModule } from './textcode';
1
+ export { DeonNzCheckboxModule, withFormlyFieldCheckbox } from './checkbox';
2
+ export { DeonNzCheckboxGroupModule, withFormlyFieldCheckboxGroup } from './checkboxgroup';
3
+ export { DeonNzColorModule, withFormlyFieldColor } from './colors';
4
+ export { DeonNzDateTimeModule, withFormlyFieldDateTime } from './datetime';
5
+ export { DeonNzDescModule, withFormlyFieldDesc } from './desc';
6
+ export { DeonNzDimModule, withFormlyFieldDim } from './dim';
7
+ export { DeonNzDimIndicatorModule, withFormlyFieldIndicator } from './dim-indicator';
8
+ export { DeonNzGridModule, withFormlyFieldGrid } from './grid';
9
+ export { DeonNzGroupModule, withFormlyFieldGroup } from './group';
10
+ export { DeonNzHtmlModule, withFormlyFieldHtml } from './html';
11
+ export { DeonNzIconModule, withFormlyFieldIcon } from './icon';
12
+ export { DeonNzLabelModule, withFormlyFieldLabel } from './label';
13
+ export { DeonNzLineModule, withFormlyFieldLine } from './line';
14
+ export { DeonNzListModule, withFormlyFieldList } from './list';
15
+ export { DeonNzNumberModule, withFormlyFieldNumber } from './number';
16
+ export { DeonNzOverTimeModule, withFormlyFieldOverTime } from './overtime';
17
+ export { DeonNzPanelModule, withFormlyFieldPanel } from './panel';
18
+ export { DeonNzRadioModule, withFormlyFieldRadio } from './radio';
19
+ export { DeonNzRadioGroupModule, withFormlyFieldRadioGroup } from './radiogroup';
20
+ export { DeonNzReformModule, withFormlyFieldReform } from './reform';
21
+ export { DeonNzRepeatModule, withFormlyFieldRepeat } from './repeat';
22
+ export { DeonNzRepeatCardModule, withFormlyFieldRepeatCard } from './repeat-card';
23
+ export { DeonNzSelectModule, withFormlyFieldSelect } from './select';
24
+ export { DeonNzSwitchModule, withFormlyFieldSwitch } from './switch';
25
+ export { DeonNzTabsModule, withFormlyFieldTab } from './tabs';
26
+ export { DeonNzTextModule, withFormlyFieldText } from './text';
27
+ export { DeonNzTextAreaModule, withFormlyFieldTextArea } from './textarea';
28
+ export { DeonNzTextCodeModule, withFormlyFieldTextCode } from './textcode';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldLabel(): ConfigOption;
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "@ebuilding/form/form-field";
5
- import * as i4 from "@kre-form/core";
5
+ import * as i4 from "@ebuilding-form/core";
6
6
  export declare class DeonNzLabelModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzLabelModule, never>;
8
8
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzLabelModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.DeonNzFormFieldModule, typeof i4.FormlyModule], never>;
@@ -1,4 +1,4 @@
1
- import { FieldType } from '@kre-form/core';
1
+ import { FieldType } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonNzFieldLabel extends FieldType {
4
4
  defaultOptions: {
@@ -1,2 +1,3 @@
1
1
  export { DeonNzLabelModule } from './label.module';
2
2
  export { DeonNzFieldLabel } from './label.type';
3
+ export { withFormlyFieldLabel } from './app.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldLine(): ConfigOption;
@@ -3,7 +3,7 @@ import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "ng-zorro-antd/divider";
5
5
  import * as i4 from "@ebuilding/form/form-field";
6
- import * as i5 from "@kre-form/core";
6
+ import * as i5 from "@ebuilding-form/core";
7
7
  export declare class DeonNzLineModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzLineModule, never>;
9
9
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzLineModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.NzDividerModule, typeof i4.DeonNzFormFieldModule, typeof i5.FormlyModule], never>;
@@ -1,4 +1,4 @@
1
- import { FieldType, FieldTypeConfig } from '@kre-form/core';
1
+ import { FieldType, FieldTypeConfig } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonNzFieldLine extends FieldType<FieldTypeConfig> {
4
4
  defaultOptions: {
@@ -1,2 +1,3 @@
1
1
  export { DeonNzLineModule } from './line.module';
2
2
  export { DeonNzFieldLine } from './line.type';
3
+ export { withFormlyFieldLine } from './app.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldList(): ConfigOption;
@@ -3,7 +3,7 @@ import * as i1 from "@angular/common";
3
3
  import * as i2 from "@angular/forms";
4
4
  import * as i3 from "ng-zorro-antd/grid";
5
5
  import * as i4 from "@ebuilding/form/form-field";
6
- import * as i5 from "@kre-form/core";
6
+ import * as i5 from "@ebuilding-form/core";
7
7
  export declare class DeonNzListModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzListModule, never>;
9
9
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzListModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.NzGridModule, typeof i4.DeonNzFormFieldModule, typeof i5.FormlyModule], never>;
@@ -1,4 +1,4 @@
1
- import { FieldType } from '@kre-form/core';
1
+ import { FieldType } from '@ebuilding-form/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DeonNzFieldList extends FieldType {
4
4
  defaultOptions: {
@@ -1,2 +1,3 @@
1
1
  export { DeonNzListModule } from './list.module';
2
2
  export { DeonNzFieldList } from './list.type';
3
+ export { withFormlyFieldList } from './app.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldNumber(): ConfigOption;
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/common";
3
3
  import * as i2 from "@ebuilding/form/form-field";
4
- import * as i3 from "@kre-form/core";
4
+ import * as i3 from "@ebuilding-form/core";
5
5
  export declare class DeonNzNumberModule {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzNumberModule, never>;
7
7
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzNumberModule, never, [typeof i1.CommonModule, typeof i2.DeonNzFormFieldModule, typeof i3.FormlyModule], never>;
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FieldType, FieldTypeConfig } from '@kre-form/core';
2
+ import { FieldType, FieldTypeConfig } from '@ebuilding-form/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DeonNzFieldNumber extends FieldType<FieldTypeConfig> implements OnInit {
5
5
  get precision(): any;
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FieldType, FieldTypeConfig } from '@kre-form/core';
2
+ import { FieldType, FieldTypeConfig } from '@ebuilding-form/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DeonNzFieldNumberRate extends FieldType<FieldTypeConfig> implements OnInit {
5
5
  constructor();
@@ -1,3 +1,4 @@
1
1
  export { DeonNzNumberModule } from './number.module';
2
2
  export { DeonNzFieldNumber } from './number.type';
3
3
  export { DeonNzFieldNumberRate } from './number_rate.type';
4
+ export { withFormlyFieldNumber } from './app.config';
@@ -0,0 +1,2 @@
1
+ import { ConfigOption } from '@ebuilding-form/core';
2
+ export declare function withFormlyFieldOverTime(): ConfigOption;
@@ -1,5 +1,5 @@
1
1
  import { DoCheck } from '@angular/core';
2
- import { FieldType, FieldTypeConfig } from '@kre-form/core';
2
+ import { FieldType, FieldTypeConfig } from '@ebuilding-form/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DeonNzFieldOverTime extends FieldType<FieldTypeConfig> implements DoCheck {
5
5
  defaultOptions: {
@@ -5,7 +5,7 @@ import * as i3 from "@ebuilding/form/form-field";
5
5
  import * as i4 from "ng-zorro-antd/input";
6
6
  import * as i5 from "ng-zorro-antd/select";
7
7
  import * as i6 from "ng-zorro-antd/date-picker";
8
- import * as i7 from "@kre-form/core";
8
+ import * as i7 from "@ebuilding-form/core";
9
9
  export declare class DeonNzOverTimeModule {
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DeonNzOverTimeModule, never>;
11
11
  static ɵmod: i0.ɵɵNgModuleDeclaration<DeonNzOverTimeModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.DeonNzFormFieldModule, typeof i4.NzInputModule, typeof i5.NzSelectModule, typeof i6.NzDatePickerModule, typeof i7.FormlyModule], never>;
@@ -1,2 +1,3 @@
1
1
  export { DeonNzOverTimeModule } from './index.module';
2
2
  export { DeonNzFieldOverTime } from './default';
3
+ export { withFormlyFieldOverTime } from './app.config';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebuilding/form",
3
- "version": "2.1.14",
3
+ "version": "2.2.0",
4
4
  "dependencies": {
5
5
  "extend": "undefined",
6
6
  "tslib": "^2.3.0"
@@ -23,22 +23,18 @@
23
23
  "types": "./checkboxgroup/index.d.ts",
24
24
  "default": "./fesm2022/type.checkboxgroup.mjs"
25
25
  },
26
- "./datetime": {
27
- "types": "./datetime/index.d.ts",
28
- "default": "./fesm2022/type.datetime.mjs"
29
- },
30
26
  "./colors": {
31
27
  "types": "./colors/index.d.ts",
32
28
  "default": "./fesm2022/type.colors.mjs"
33
29
  },
30
+ "./datetime": {
31
+ "types": "./datetime/index.d.ts",
32
+ "default": "./fesm2022/type.datetime.mjs"
33
+ },
34
34
  "./desc": {
35
35
  "types": "./desc/index.d.ts",
36
36
  "default": "./fesm2022/type.desc.mjs"
37
37
  },
38
- "./dim": {
39
- "types": "./dim/index.d.ts",
40
- "default": "./fesm2022/type.dim.mjs"
41
- },
42
38
  "./dim-indicator": {
43
39
  "types": "./dim-indicator/index.d.ts",
44
40
  "default": "./fesm2022/type.dim-indicator.mjs"
@@ -51,26 +47,22 @@
51
47
  "types": "./grid/index.d.ts",
52
48
  "default": "./fesm2022/type.grid.mjs"
53
49
  },
54
- "./html": {
55
- "types": "./html/index.d.ts",
56
- "default": "./fesm2022/type.html.mjs"
50
+ "./dim": {
51
+ "types": "./dim/index.d.ts",
52
+ "default": "./fesm2022/type.dim.mjs"
57
53
  },
58
54
  "./group": {
59
55
  "types": "./group/index.d.ts",
60
56
  "default": "./fesm2022/type.group.mjs"
61
57
  },
58
+ "./html": {
59
+ "types": "./html/index.d.ts",
60
+ "default": "./fesm2022/type.html.mjs"
61
+ },
62
62
  "./icon": {
63
63
  "types": "./icon/index.d.ts",
64
64
  "default": "./fesm2022/type.icon.mjs"
65
65
  },
66
- "./line": {
67
- "types": "./line/index.d.ts",
68
- "default": "./fesm2022/type.line.mjs"
69
- },
70
- "./number": {
71
- "types": "./number/index.d.ts",
72
- "default": "./fesm2022/type.number.mjs"
73
- },
74
66
  "./label": {
75
67
  "types": "./label/index.d.ts",
76
68
  "default": "./fesm2022/type.label.mjs"
@@ -79,42 +71,50 @@
79
71
  "types": "./list/index.d.ts",
80
72
  "default": "./fesm2022/type.list.mjs"
81
73
  },
82
- "./panel": {
83
- "types": "./panel/index.d.ts",
84
- "default": "./fesm2022/type.panel.mjs"
74
+ "./number": {
75
+ "types": "./number/index.d.ts",
76
+ "default": "./fesm2022/type.number.mjs"
85
77
  },
86
78
  "./overtime": {
87
79
  "types": "./overtime/index.d.ts",
88
80
  "default": "./fesm2022/type.overtime.mjs"
89
81
  },
90
- "./radiogroup": {
91
- "types": "./radiogroup/index.d.ts",
92
- "default": "./fesm2022/type.radiogroup.mjs"
82
+ "./panel": {
83
+ "types": "./panel/index.d.ts",
84
+ "default": "./fesm2022/type.panel.mjs"
85
+ },
86
+ "./line": {
87
+ "types": "./line/index.d.ts",
88
+ "default": "./fesm2022/type.line.mjs"
93
89
  },
94
90
  "./radio": {
95
91
  "types": "./radio/index.d.ts",
96
92
  "default": "./fesm2022/type.radio.mjs"
97
93
  },
94
+ "./radiogroup": {
95
+ "types": "./radiogroup/index.d.ts",
96
+ "default": "./fesm2022/type.radiogroup.mjs"
97
+ },
98
98
  "./reform": {
99
99
  "types": "./reform/index.d.ts",
100
100
  "default": "./fesm2022/type.reform.mjs"
101
101
  },
102
- "./repeat": {
103
- "types": "./repeat/index.d.ts",
104
- "default": "./fesm2022/type.repeat.mjs"
105
- },
106
- "./select": {
107
- "types": "./select/index.d.ts",
108
- "default": "./fesm2022/type.select.mjs"
109
- },
110
102
  "./repeat-card": {
111
103
  "types": "./repeat-card/index.d.ts",
112
104
  "default": "./fesm2022/type.repeat-card.mjs"
113
105
  },
106
+ "./repeat": {
107
+ "types": "./repeat/index.d.ts",
108
+ "default": "./fesm2022/type.repeat.mjs"
109
+ },
114
110
  "./switch": {
115
111
  "types": "./switch/index.d.ts",
116
112
  "default": "./fesm2022/type.switch.mjs"
117
113
  },
114
+ "./select": {
115
+ "types": "./select/index.d.ts",
116
+ "default": "./fesm2022/type.select.mjs"
117
+ },
118
118
  "./tabs": {
119
119
  "types": "./tabs/index.d.ts",
120
120
  "default": "./fesm2022/type.tabs.mjs"
@@ -123,13 +123,13 @@
123
123
  "types": "./text/index.d.ts",
124
124
  "default": "./fesm2022/type.text.mjs"
125
125
  },
126
- "./textarea": {
127
- "types": "./textarea/index.d.ts",
128
- "default": "./fesm2022/type.textarea.mjs"
129
- },
130
126
  "./textcode": {
131
127
  "types": "./textcode/index.d.ts",
132
128
  "default": "./fesm2022/type.textcode.mjs"
129
+ },
130
+ "./textarea": {
131
+ "types": "./textarea/index.d.ts",
132
+ "default": "./fesm2022/type.textarea.mjs"
133
133
  }
134
134
  },
135
135
  "sideEffects": false