ngx-formly-zorro-antd 17.4.2 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. package/button/button.type.d.ts +3 -0
  2. package/button-group/button-group.type.d.ts +3 -0
  3. package/card/card.type.d.ts +3 -0
  4. package/card-wrapper/card-wrapper.props.d.ts +3 -1
  5. package/card-wrapper/card.wrapper.d.ts +3 -0
  6. package/cascader/cascader.type.d.ts +4 -0
  7. package/datepicker/datepicker.type.d.ts +3 -0
  8. package/esm2022/button/button.module.mjs +4 -4
  9. package/esm2022/button/button.type.mjs +9 -6
  10. package/esm2022/button-group/button-group.module.mjs +4 -4
  11. package/esm2022/button-group/button-group.type.mjs +7 -4
  12. package/esm2022/card/card.module.mjs +4 -4
  13. package/esm2022/card/card.type.mjs +10 -5
  14. package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
  15. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  16. package/esm2022/card-wrapper/card.wrapper.mjs +10 -5
  17. package/esm2022/cascader/cascader.module.mjs +4 -4
  18. package/esm2022/cascader/cascader.type.mjs +8 -4
  19. package/esm2022/checkbox/checkbox.module.mjs +4 -4
  20. package/esm2022/checkbox/checkbox.type.mjs +6 -4
  21. package/esm2022/common/common.module.mjs +4 -4
  22. package/esm2022/common/formly-box-templates.directive.mjs +4 -4
  23. package/esm2022/common/formly-utils.mjs +1 -1
  24. package/esm2022/datepicker/datepicker.module.mjs +4 -4
  25. package/esm2022/datepicker/datepicker.type.mjs +20 -22
  26. package/esm2022/extension/value-changes-extension.mjs +1 -1
  27. package/esm2022/flex/flex.module.mjs +4 -4
  28. package/esm2022/flex/flex.type.mjs +9 -6
  29. package/esm2022/form-field/form-field.module.mjs +4 -4
  30. package/esm2022/form-field/form-field.props.mjs +1 -1
  31. package/esm2022/form-field/form-field.wrapper.mjs +10 -10
  32. package/esm2022/grid/grid.module.mjs +4 -4
  33. package/esm2022/grid/grid.props.mjs +1 -1
  34. package/esm2022/grid/grid.type.mjs +7 -4
  35. package/esm2022/input/input.module.mjs +4 -4
  36. package/esm2022/input/input.type.mjs +34 -31
  37. package/esm2022/input-group/input-group.module.mjs +4 -4
  38. package/esm2022/input-group/input-group.type.mjs +11 -8
  39. package/esm2022/input-number/input-number.module.mjs +4 -4
  40. package/esm2022/input-number/input-number.type.mjs +12 -10
  41. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +4 -4
  42. package/esm2022/radio/radio.module.mjs +4 -4
  43. package/esm2022/radio/radio.type.mjs +10 -10
  44. package/esm2022/rate/rate.module.mjs +4 -4
  45. package/esm2022/rate/rate.type.mjs +14 -14
  46. package/esm2022/ref-template/ref-template.module.mjs +4 -4
  47. package/esm2022/ref-template/ref-template.type.mjs +10 -8
  48. package/esm2022/select/select.module.mjs +4 -4
  49. package/esm2022/select/select.props.mjs +1 -1
  50. package/esm2022/select/select.type.mjs +24 -27
  51. package/esm2022/slider/slider.module.mjs +4 -4
  52. package/esm2022/slider/slider.type.mjs +18 -18
  53. package/esm2022/space/space.module.mjs +4 -4
  54. package/esm2022/space/space.type.mjs +8 -9
  55. package/esm2022/switch/switch.module.mjs +4 -4
  56. package/esm2022/switch/switch.type.mjs +10 -12
  57. package/esm2022/tabs/tabs.module.mjs +4 -4
  58. package/esm2022/tabs/tabs.wrapper.mjs +8 -6
  59. package/esm2022/text-value/text-value.module.mjs +4 -4
  60. package/esm2022/text-value/text-value.type.mjs +5 -4
  61. package/esm2022/textarea/textarea.module.mjs +4 -4
  62. package/esm2022/textarea/textarea.type.mjs +13 -12
  63. package/esm2022/timepicker/timepicker.module.mjs +4 -4
  64. package/esm2022/timepicker/timepicker.type.mjs +24 -24
  65. package/esm2022/transfer/transfer.component.mjs +5 -4
  66. package/esm2022/transfer/transfer.module.mjs +4 -4
  67. package/esm2022/transfer/transfer.type.mjs +8 -9
  68. package/esm2022/tree-select/tree-select.module.mjs +4 -4
  69. package/esm2022/tree-select/tree-select.type.mjs +36 -34
  70. package/esm2022/upload/upload.component.mjs +4 -4
  71. package/esm2022/upload/upload.module.mjs +4 -4
  72. package/esm2022/upload/upload.type.mjs +9 -8
  73. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +10 -7
  74. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  75. package/fesm2022/ngx-formly-zorro-antd-button.mjs +12 -9
  76. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  77. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +13 -8
  78. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  79. package/fesm2022/ngx-formly-zorro-antd-card.mjs +13 -8
  80. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  81. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +11 -7
  82. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  83. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +9 -7
  84. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  85. package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
  86. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  87. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +25 -26
  88. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  89. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  90. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +12 -9
  91. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
  92. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +13 -13
  93. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  94. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +10 -7
  95. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  96. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +14 -11
  97. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  98. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +17 -14
  99. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  100. package/fesm2022/ngx-formly-zorro-antd-input.mjs +37 -34
  101. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  102. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +15 -14
  103. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  104. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +19 -18
  105. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  106. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +14 -13
  107. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  108. package/fesm2022/ngx-formly-zorro-antd-select.mjs +29 -31
  109. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  110. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +23 -22
  111. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  112. package/fesm2022/ngx-formly-zorro-antd-space.mjs +11 -12
  113. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  114. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +15 -16
  115. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  116. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +11 -9
  117. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  118. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +8 -7
  119. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  120. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +16 -15
  121. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  122. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +29 -28
  123. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  124. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +16 -15
  125. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  126. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +41 -38
  127. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  128. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +15 -14
  129. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  130. package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
  131. package/flex/flex.type.d.ts +3 -0
  132. package/form-field/form-field.props.d.ts +5 -0
  133. package/grid/grid.props.d.ts +3 -0
  134. package/grid/grid.type.d.ts +3 -0
  135. package/input/input.type.d.ts +4 -1
  136. package/input-group/input-group.type.d.ts +3 -0
  137. package/input-number/input-number.type.d.ts +3 -0
  138. package/package.json +25 -25
  139. package/radio/radio.type.d.ts +3 -0
  140. package/rate/rate.type.d.ts +3 -0
  141. package/ref-template/ref-template.type.d.ts +1 -0
  142. package/select/select.props.d.ts +2 -4
  143. package/slider/slider.type.d.ts +3 -0
  144. package/space/space.type.d.ts +1 -0
  145. package/switch/switch.type.d.ts +1 -0
  146. package/tabs/tabs.wrapper.d.ts +2 -0
  147. package/text-value/text-value.type.d.ts +1 -0
  148. package/textarea/textarea.type.d.ts +1 -0
  149. package/timepicker/timepicker.type.d.ts +1 -0
  150. package/transfer/transfer.component.d.ts +1 -0
  151. package/transfer/transfer.type.d.ts +2 -0
  152. package/tree-select/tree-select.type.d.ts +1 -0
  153. package/upload/upload.type.d.ts +1 -0
@@ -1,18 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import * as i4 from '@angular/common';
3
+ import * as i3 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@angular/forms';
6
6
  import { ReactiveFormsModule } from '@angular/forms';
7
- import * as i3 from '@ngx-formly/core';
7
+ import * as i1$1 from '@ngx-formly/core';
8
8
  import { FieldType, FormlyModule } from '@ngx-formly/core';
9
- import * as i5 from '@ngx-formly/core/select';
9
+ import * as i4 from '@ngx-formly/core/select';
10
10
  import { FormlySelectModule } from '@ngx-formly/core/select';
11
11
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
12
12
  import * as i2 from 'ng-zorro-antd/radio';
13
13
  import { NzRadioModule } from 'ng-zorro-antd/radio';
14
14
  import { NzFormModule } from 'ng-zorro-antd/form';
15
15
 
16
+ /**
17
+ * @private
18
+ */
16
19
  class FormlyFieldRadio extends FieldType {
17
20
  constructor() {
18
21
  super(...arguments);
@@ -23,11 +26,10 @@ class FormlyFieldRadio extends FieldType {
23
26
  }
24
27
  };
25
28
  }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
27
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.7", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
28
31
  <nz-radio-group
29
32
  [formControl]="formControl"
30
- [formlyAttributes]="field"
31
33
  [nzName]="field.name ?? null"
32
34
  [nzSize]="props['size']!"
33
35
  [nzButtonStyle]="props['buttonStyle']!"
@@ -47,16 +49,15 @@ class FormlyFieldRadio extends FieldType {
47
49
  }
48
50
  }
49
51
  </nz-radio-group>
50
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i2.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
52
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i2.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
51
53
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldRadio, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldRadio, decorators: [{
53
55
  type: Component,
54
56
  args: [{
55
57
  selector: 'formly-field-radio',
56
58
  template: `
57
59
  <nz-radio-group
58
60
  [formControl]="formControl"
59
- [formlyAttributes]="field"
60
61
  [nzName]="field.name ?? null"
61
62
  [nzSize]="props['size']!"
62
63
  [nzButtonStyle]="props['buttonStyle']!"
@@ -82,14 +83,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
82
83
  }] });
83
84
 
84
85
  class FormlyNzRadioModule {
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
86
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
87
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
87
88
  ReactiveFormsModule,
88
89
  FormlyNzFormFieldModule,
89
90
  FormlySelectModule,
90
91
  NzFormModule,
91
- NzRadioModule, i3.FormlyModule] }); }
92
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
92
+ NzRadioModule, i1$1.FormlyModule] }); }
93
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
93
94
  ReactiveFormsModule,
94
95
  FormlyNzFormFieldModule,
95
96
  FormlySelectModule,
@@ -105,7 +106,7 @@ class FormlyNzRadioModule {
105
106
  ]
106
107
  })] }); }
107
108
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
109
110
  type: NgModule,
110
111
  args: [{
111
112
  declarations: [FormlyFieldRadio],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\n\n/**\n * @publicApi\n */\nexport interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\n type?: 'button';\n\n /**\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\n */\n name?: string | null;\n /**\n * 大小,只对按钮样式生效\n * @default default\n */\n size?: NzSizeLDSType;\n /**\n * RadioButton 的风格样式,目前有描边和填色两种风格\n * @default outline\n */\n buttonStyle?: NzRadioButtonStyle;\n\n /**\n * 数值改变时回调\n */\n modelChange?: FormlyAttributeEvent<boolean | null | undefined>;\n}\n\nexport interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-radio',\n template: `\n <nz-radio-group\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzName]=\"field.name ?? null\"\n [nzSize]=\"props['size']!\"\n [nzButtonStyle]=\"props['buttonStyle']!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n >\n @if (props.type !== 'button') {\n @for (option of props.options | formlySelectOptions: field | async; track option; let i = $index) {\n <label [id]=\"id + '_' + i\" [nzDisabled]=\"option.disabled === true\" [nzValue]=\"option.value\" nz-radio>\n {{ option.label }}\n </label>\n }\n } @else {\n @for (option of props.options | formlySelectOptions: field | async; track option; let i = $index) {\n <label [id]=\"id + '_' + i\" [nzDisabled]=\"option.disabled === true\" [nzValue]=\"option.value\" nz-radio-button>\n {{ option.label }}\n </label>\n }\n }\n </nz-radio-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttonStyle: 'outline' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n FormlySelectModule,\n NzFormModule,\n\n NzRadioModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAoEM,MAAO,gBAAiB,SAAQ,SAAsC,CA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CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAlB5B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB;YAClB,YAAY;YAEZ,aAAa;YACb,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,SAAS,EAAE,gBAAgB;wBAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBArB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY;wBAEZ,aAAa;wBACb,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\n\n/**\n * @publicApi\n */\nexport interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\n type?: 'button';\n\n /**\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\n */\n name?: string | null;\n /**\n * 大小,只对按钮样式生效\n * @default default\n */\n size?: NzSizeLDSType;\n /**\n * RadioButton 的风格样式,目前有描边和填色两种风格\n * @default outline\n */\n buttonStyle?: NzRadioButtonStyle;\n\n /**\n * 数值改变时回调\n */\n modelChange?: FormlyAttributeEvent<boolean | null | undefined>;\n}\n\nexport interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-radio',\n template: `\n <nz-radio-group\n [formControl]=\"formControl\"\n [nzName]=\"field.name ?? null\"\n [nzSize]=\"props['size']!\"\n [nzButtonStyle]=\"props['buttonStyle']!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n >\n @if (props.type !== 'button') {\n @for (option of props.options | formlySelectOptions: field | async; track option; let i = $index) {\n <label [id]=\"id + '_' + i\" [nzDisabled]=\"option.disabled === true\" [nzValue]=\"option.value\" nz-radio>\n {{ option.label }}\n </label>\n }\n } @else {\n @for (option of props.options | formlySelectOptions: field | async; track option; let i = $index) {\n <label [id]=\"id + '_' + i\" [nzDisabled]=\"option.disabled === true\" [nzValue]=\"option.value\" nz-radio-button>\n {{ option.label }}\n </label>\n }\n }\n </nz-radio-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttonStyle: 'outline' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n FormlySelectModule,\n NzFormModule,\n\n NzRadioModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAuCA;;AAEG;AA4BG,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AA3B5E,IAAA,WAAA,GAAA;;AA4BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,WAAW,EAAE,SAAkB;AAChC,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAzBjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;AAsBT,EA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AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
@@ -3,12 +3,15 @@ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i1 from '@angular/forms';
5
5
  import { ReactiveFormsModule } from '@angular/forms';
6
- import * as i3 from '@ngx-formly/core';
6
+ import * as i1$1 from '@ngx-formly/core';
7
7
  import { FieldType, FormlyModule } from '@ngx-formly/core';
8
8
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
9
9
  import * as i2 from 'ng-zorro-antd/rate';
10
10
  import { NzRateModule } from 'ng-zorro-antd/rate';
11
11
 
12
+ /**
13
+ * @private
14
+ */
12
15
  class FormlyFieldRate extends FieldType {
13
16
  constructor() {
14
17
  super(...arguments);
@@ -22,14 +25,13 @@ class FormlyFieldRate extends FieldType {
22
25
  }
23
26
  };
24
27
  }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldRate, selector: "formly-field-rate", usesInheritance: true, ngImport: i0, template: `
28
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
29
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: FormlyFieldRate, selector: "formly-field-rate", usesInheritance: true, ngImport: i0, template: `
27
30
  <nz-rate
28
31
  [formControl]="formControl"
29
- [formlyAttributes]="field"
30
- [nzAllowClear]="props['allowClear']!!"
31
- [nzAllowHalf]="props['allowHalf']!!"
32
- [nzAutoFocus]="props['autoFocus']!!"
32
+ [nzAllowClear]="!!props['allowClear']"
33
+ [nzAllowHalf]="!!props['allowHalf']"
34
+ [nzAutoFocus]="!!props['autoFocus']"
33
35
  [nzCharacter]="props['character']!"
34
36
  [nzCount]="props['count']"
35
37
  [nzTooltips]="props['tooltips']!"
@@ -39,19 +41,18 @@ class FormlyFieldRate extends FieldType {
39
41
  (nzOnHoverChange)="props['hoverChange']?.(field, $event)"
40
42
  (nzOnKeyDown)="props.keydown?.(field, $event)"
41
43
  ></nz-rate>
42
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzRateComponent, selector: "nz-rate", inputs: ["nzAllowClear", "nzAllowHalf", "nzDisabled", "nzAutoFocus", "nzCharacter", "nzCount", "nzTooltips"], outputs: ["nzOnBlur", "nzOnFocus", "nzOnHoverChange", "nzOnKeyDown"], exportAs: ["nzRate"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
44
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzRateComponent, selector: "nz-rate", inputs: ["nzAllowClear", "nzAllowHalf", "nzDisabled", "nzAutoFocus", "nzCharacter", "nzCount", "nzTooltips"], outputs: ["nzOnBlur", "nzOnFocus", "nzOnHoverChange", "nzOnKeyDown"], exportAs: ["nzRate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
43
45
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldRate, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldRate, decorators: [{
45
47
  type: Component,
46
48
  args: [{
47
49
  selector: 'formly-field-rate',
48
50
  template: `
49
51
  <nz-rate
50
52
  [formControl]="formControl"
51
- [formlyAttributes]="field"
52
- [nzAllowClear]="props['allowClear']!!"
53
- [nzAllowHalf]="props['allowHalf']!!"
54
- [nzAutoFocus]="props['autoFocus']!!"
53
+ [nzAllowClear]="!!props['allowClear']"
54
+ [nzAllowHalf]="!!props['allowHalf']"
55
+ [nzAutoFocus]="!!props['autoFocus']"
55
56
  [nzCharacter]="props['character']!"
56
57
  [nzCount]="props['count']"
57
58
  [nzTooltips]="props['tooltips']!"
@@ -67,12 +68,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
67
68
  }] });
68
69
 
69
70
  class FormlyNzRateModule {
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
71
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRateModule, declarations: [FormlyFieldRate], imports: [CommonModule,
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
72
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRateModule, declarations: [FormlyFieldRate], imports: [CommonModule,
72
73
  ReactiveFormsModule,
73
74
  FormlyNzFormFieldModule,
74
- NzRateModule, i3.FormlyModule] }); }
75
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRateModule, imports: [CommonModule,
75
+ NzRateModule, i1$1.FormlyModule] }); }
76
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRateModule, imports: [CommonModule,
76
77
  ReactiveFormsModule,
77
78
  FormlyNzFormFieldModule,
78
79
  NzRateModule,
@@ -86,7 +87,7 @@ class FormlyNzRateModule {
86
87
  ]
87
88
  })] }); }
88
89
  }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzRateModule, decorators: [{
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzRateModule, decorators: [{
90
91
  type: NgModule,
91
92
  args: [{
92
93
  declarations: [FormlyFieldRate],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-rate.mjs","sources":["../../../../packages/formlyantd/rate/src/rate.type.ts","../../../../packages/formlyantd/rate/src/rate.module.ts","../../../../packages/formlyantd/rate/src/ngx-formly-zorro-antd-rate.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\n/**\n * @publicApi\n */\nexport interface RateProps extends FormlyFieldProps {\n /**\n * 是否允许再次点击后清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否允许半选\n * @default false\n */\n allowHalf?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 自定义字符\n * @default <span nz-icon nzType=\"star\"></span>\n */\n character?: TemplateRef<{\n $implicit: number;\n }>;\n\n /**\n * star 总数\n * @default 5\n */\n count?: number;\n\n /**\n * 自定义每项的提示信息\n * @default []\n */\n tooltips?: string[];\n\n /**\n * 鼠标经过时数值变化的回调\n */\n hoverChange?: FormlyAttributeEvent<number | undefined>;\n}\n\nexport interface FormlyRateFieldConfig extends NzFormlyFieldConfig<RateProps> {\n type: 'rate' | Type<FormlyFieldRate>;\n}\n\n@Component({\n selector: 'formly-field-rate',\n template: `\n <nz-rate\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAllowHalf]=\"props['allowHalf']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzCharacter]=\"props['character']!\"\n [nzCount]=\"props['count']\"\n [nzTooltips]=\"props['tooltips']!\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzOnBlur)=\"props.blur?.(field, $event)\"\n (nzOnFocus)=\"props.focus?.(field, $event)\"\n (nzOnHoverChange)=\"props['hoverChange']?.(field, $event)\"\n (nzOnKeyDown)=\"props.keydown?.(field, $event)\"\n ></nz-rate>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {\n override defaultOptions = {\n props: {\n allowClear: true,\n allowHalf: false,\n autoFocus: false,\n count: 5,\n tooltips: []\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzRateModule } from 'ng-zorro-antd/rate';\n\nimport { FormlyFieldRate } from './rate.type';\n\n@NgModule({\n declarations: [FormlyFieldRate],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzRateModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'rate',\n component: FormlyFieldRate,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA8EM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AArB1E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,KAAK,EAAE,CAAC;AACR,gBAAA,QAAQ,EAAE,EAAE;AACb,aAAA;SACF,CAAC;AACH,KAAA;8GAVY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EAnBhB,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;AAgBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,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QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAhB3B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,eAAe;wBAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAnB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;oCAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-rate.mjs","sources":["../../../../packages/formlyantd/rate/src/rate.type.ts","../../../../packages/formlyantd/rate/src/rate.module.ts","../../../../packages/formlyantd/rate/src/ngx-formly-zorro-antd-rate.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\n/**\n * @publicApi\n */\nexport interface RateProps extends FormlyFieldProps {\n /**\n * 是否允许再次点击后清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否允许半选\n * @default false\n */\n allowHalf?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 自定义字符\n * @default <span nz-icon nzType=\"star\"></span>\n */\n character?: TemplateRef<{\n $implicit: number;\n }>;\n\n /**\n * star 总数\n * @default 5\n */\n count?: number;\n\n /**\n * 自定义每项的提示信息\n * @default []\n */\n tooltips?: string[];\n\n /**\n * 鼠标经过时数值变化的回调\n */\n hoverChange?: FormlyAttributeEvent<number | undefined>;\n}\n\nexport interface FormlyRateFieldConfig extends NzFormlyFieldConfig<RateProps> {\n type: 'rate' | Type<FormlyFieldRate>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-rate',\n template: `\n <nz-rate\n [formControl]=\"formControl\"\n [nzAllowClear]=\"!!props['allowClear']\"\n [nzAllowHalf]=\"!!props['allowHalf']\"\n [nzAutoFocus]=\"!!props['autoFocus']\"\n [nzCharacter]=\"props['character']!\"\n [nzCount]=\"props['count']\"\n [nzTooltips]=\"props['tooltips']!\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzOnBlur)=\"props.blur?.(field, $event)\"\n (nzOnFocus)=\"props.focus?.(field, $event)\"\n (nzOnHoverChange)=\"props['hoverChange']?.(field, $event)\"\n (nzOnKeyDown)=\"props.keydown?.(field, $event)\"\n ></nz-rate>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {\n override defaultOptions = {\n props: {\n allowClear: true,\n allowHalf: false,\n autoFocus: false,\n count: 5,\n tooltips: []\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzRateModule } from 'ng-zorro-antd/rate';\n\nimport { FormlyFieldRate } from './rate.type';\n\n@NgModule({\n declarations: [FormlyFieldRate],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzRateModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'rate',\n component: FormlyFieldRate,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAwDA;;AAEG;AAqBG,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AApB1E,IAAA,WAAA,GAAA;;AAqBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,KAAK,EAAE,CAAC;AACR,gBAAA,QAAQ,EAAE,EAAE;AACb,aAAA;SACF,CAAC;AACH,KAAA;8GAVY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EAlBhB,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;AAeT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,Q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QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAhB3B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,eAAe;wBAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAnB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;oCAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, Optional, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import * as i1$1 from '@ngx-formly/core';
4
+ import * as i3 from '@ngx-formly/core';
5
5
  import { FieldType, FormlyModule } from '@ngx-formly/core';
6
6
  import * as i2 from 'ng-zorro-antd/core/outlet';
7
7
  import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
8
- import * as i3 from '@pkt/ng.core';
8
+ import * as i4 from '@pkt/ng.core';
9
9
  import { TrustedHtmlPipe } from '@pkt/ng.core';
10
10
  import * as i1 from 'ngx-formly-zorro-antd/common';
11
11
  import { resolveTplName } from 'ngx-formly-zorro-antd/common';
@@ -61,6 +61,7 @@ import { resolveTplName } from 'ngx-formly-zorro-antd/common';
61
61
  * }
62
62
  * }
63
63
  * ```
64
+ * @private
64
65
  */
65
66
  class FormlyFieldRefTemplate extends FieldType {
66
67
  constructor(fieldTemplates) {
@@ -70,20 +71,20 @@ class FormlyFieldRefTemplate extends FieldType {
70
71
  get ref() {
71
72
  return resolveTplName(this.props, this.fieldTemplates, 'ref');
72
73
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldRefTemplate, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
74
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldRefTemplate, selector: "formly-ref-template", usesInheritance: true, ngImport: i0, template: `
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldRefTemplate, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
75
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: FormlyFieldRefTemplate, selector: "formly-ref-template", usesInheritance: true, ngImport: i0, template: `
75
76
  <ng-container *nzStringTemplateOutlet="ref; context: { $implicit: field, props: props }">
76
- <div [innerHTML]="$any(ref) | trustedHtml"></div>
77
+ <div [formlyAttributes]="field" [innerHTML]="$any(ref) | trustedHtml"></div>
77
78
  </ng-container>
78
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "pipe", type: i3.TrustedHtmlPipe, name: "trustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
79
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i4.TrustedHtmlPipe, name: "trustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
79
80
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldRefTemplate, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldRefTemplate, decorators: [{
81
82
  type: Component,
82
83
  args: [{
83
84
  selector: 'formly-ref-template',
84
85
  template: `
85
86
  <ng-container *nzStringTemplateOutlet="ref; context: { $implicit: field, props: props }">
86
- <div [innerHTML]="$any(ref) | trustedHtml"></div>
87
+ <div [formlyAttributes]="field" [innerHTML]="$any(ref) | trustedHtml"></div>
87
88
  </ng-container>
88
89
  `,
89
90
  changeDetection: ChangeDetectionStrategy.OnPush
@@ -93,11 +94,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
93
94
  }] }] });
94
95
 
95
96
  class FormlyRefTemplateModule {
96
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyRefTemplateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
97
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyRefTemplateModule, declarations: [FormlyFieldRefTemplate], imports: [CommonModule,
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyRefTemplateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
98
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyRefTemplateModule, declarations: [FormlyFieldRefTemplate], imports: [CommonModule,
98
99
  NzOutletModule,
99
- TrustedHtmlPipe, i1$1.FormlyModule] }); }
100
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyRefTemplateModule, imports: [CommonModule,
100
+ TrustedHtmlPipe, i3.FormlyModule] }); }
101
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyRefTemplateModule, imports: [CommonModule,
101
102
  NzOutletModule,
102
103
  FormlyModule.forChild({
103
104
  types: [
@@ -108,7 +109,7 @@ class FormlyRefTemplateModule {
108
109
  ]
109
110
  })] }); }
110
111
  }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyRefTemplateModule, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyRefTemplateModule, decorators: [{
112
113
  type: NgModule,
113
114
  args: [{
114
115
  declarations: [FormlyFieldRefTemplate],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-ref-template.mjs","sources":["../../../../packages/formlyantd/ref-template/src/ref-template.type.ts","../../../../packages/formlyantd/ref-template/src/ref-template.module.ts","../../../../packages/formlyantd/ref-template/src/ngx-formly-zorro-antd-ref-template.ts"],"sourcesContent":["import { Component, TemplateRef, Optional, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\n/**\n * @publicApi\n */\nexport interface RefTemplateProps extends FormlyFieldProps {\n ref?: string | TemplateRef<{ $implicit: FormlyRefTemplateFieldConfig; props: RefTemplateProps }>;\n refName?: string;\n}\n\n/**\n * RefTemplate 配置\n */\nexport interface FormlyRefTemplateFieldConfig extends NzFormlyFieldConfig<RefTemplateProps> {\n type: 'ref-template' | Type<FormlyFieldRefTemplate>;\n}\n\n/**\n * 引用模板,支持HTML,TemplateRef对象,或者NamedTemplate\n * @example\n *\n * 用法1: 使用NamedTemplate(推荐)\n *\n * html\n * ```html\n * <formly-form formly-box>\n * <ng-template named=\"test\"></ng-template>\n * </formly-form>\n * ```\n *\n * 配置\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * refName: 'test'\n * }\n * }\n * ```\n *\n * 用法2:TemplateRef对象\n * ```html\n * <ng-template #test2></ng-template>\n * ```\n *\n * 配置\n * @viewChild('test2') test2: TemplateRef<{}>;\n *\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * ref: this.test2\n * }\n * }\n * ```\n *\n * 用法3: 使用html\n *\n * 配置\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * ref: '<div>test text</div>'\n * }\n * }\n * ```\n */\n@Component({\n selector: 'formly-ref-template',\n template: `\n <ng-container *nzStringTemplateOutlet=\"ref; context: { $implicit: field, props: props }\">\n <div [innerHTML]=\"$any(ref) | trustedHtml\"></div>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRefTemplate extends FieldType<FieldTypeConfig<RefTemplateProps>> {\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get ref() {\n return resolveTplName(this.props, this.fieldTemplates, 'ref');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\nimport { TrustedHtmlPipe } from '@pkt/ng.core';\nimport { FormlyFieldRefTemplate } from './ref-template.type';\n\n@NgModule({\n declarations: [FormlyFieldRefTemplate],\n imports: [\n CommonModule,\n NzOutletModule,\n TrustedHtmlPipe,\n FormlyModule.forChild({\n types: [\n {\n name: 'ref-template',\n component: FormlyFieldRefTemplate\n }\n ]\n })\n ]\n})\nexport class FormlyRefTemplateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDG;AAUG,MAAO,sBAAuB,SAAQ,SAA4C,CAAA;AACtF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;KAEhE;AAED,IAAA,IAAI,GAAG,GAAA;AACL,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;KAC/D;8GAPU,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAPvB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,+BAAA,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A;;2FAGO,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAhBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,eAAe;wBACf,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-ref-template.mjs","sources":["../../../../packages/formlyantd/ref-template/src/ref-template.type.ts","../../../../packages/formlyantd/ref-template/src/ref-template.module.ts","../../../../packages/formlyantd/ref-template/src/ngx-formly-zorro-antd-ref-template.ts"],"sourcesContent":["import { Component, TemplateRef, Optional, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\n/**\n * @publicApi\n */\nexport interface RefTemplateProps extends FormlyFieldProps {\n ref?: string | TemplateRef<{ $implicit: FormlyRefTemplateFieldConfig; props: RefTemplateProps }>;\n refName?: string;\n}\n\n/**\n * RefTemplate 配置\n */\nexport interface FormlyRefTemplateFieldConfig extends NzFormlyFieldConfig<RefTemplateProps> {\n type: 'ref-template' | Type<FormlyFieldRefTemplate>;\n}\n\n/**\n * 引用模板,支持HTML,TemplateRef对象,或者NamedTemplate\n * @example\n *\n * 用法1: 使用NamedTemplate(推荐)\n *\n * html\n * ```html\n * <formly-form formly-box>\n * <ng-template named=\"test\"></ng-template>\n * </formly-form>\n * ```\n *\n * 配置\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * refName: 'test'\n * }\n * }\n * ```\n *\n * 用法2:TemplateRef对象\n * ```html\n * <ng-template #test2></ng-template>\n * ```\n *\n * 配置\n * @viewChild('test2') test2: TemplateRef<{}>;\n *\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * ref: this.test2\n * }\n * }\n * ```\n *\n * 用法3: 使用html\n *\n * 配置\n * ```js\n * {\n * type: 'ref-template',\n * props: {\n * ref: '<div>test text</div>'\n * }\n * }\n * ```\n * @private\n */\n@Component({\n selector: 'formly-ref-template',\n template: `\n <ng-container *nzStringTemplateOutlet=\"ref; context: { $implicit: field, props: props }\">\n <div [formlyAttributes]=\"field\" [innerHTML]=\"$any(ref) | trustedHtml\"></div>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRefTemplate extends FieldType<FieldTypeConfig<RefTemplateProps>> {\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get ref() {\n return resolveTplName(this.props, this.fieldTemplates, 'ref');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\nimport { TrustedHtmlPipe } from '@pkt/ng.core';\nimport { FormlyFieldRefTemplate } from './ref-template.type';\n\n@NgModule({\n declarations: [FormlyFieldRefTemplate],\n imports: [\n CommonModule,\n NzOutletModule,\n TrustedHtmlPipe,\n FormlyModule.forChild({\n types: [\n {\n name: 'ref-template',\n component: FormlyFieldRefTemplate\n }\n ]\n })\n ]\n})\nexport class FormlyRefTemplateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDG;AAUG,MAAO,sBAAuB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gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
@@ -4,9 +4,9 @@ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i2 from '@angular/forms';
6
6
  import { ReactiveFormsModule } from '@angular/forms';
7
- import * as i4 from '@ngx-formly/core';
7
+ import * as i1$1 from '@ngx-formly/core';
8
8
  import { FieldType, FormlyModule } from '@ngx-formly/core';
9
- import * as i5 from '@ngx-formly/core/select';
9
+ import * as i4 from '@ngx-formly/core/select';
10
10
  import { FormlySelectModule } from '@ngx-formly/core/select';
11
11
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
12
12
  import * as i3 from 'ng-zorro-antd/select';
@@ -43,8 +43,8 @@ class FormlyFieldSelect extends FieldType {
43
43
  this.select.nzFilterOption = this.props['filterOption'];
44
44
  }
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.7", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
48
48
  <nz-select
49
49
  #select
50
50
  [class.ng-dirty]="showError"
@@ -53,31 +53,30 @@ class FormlyFieldSelect extends FieldType {
53
53
  [nzId]="id"
54
54
  [nzPlaceHolder]="props.placeholder ?? null"
55
55
  [compareWith]="props['compareWith']!"
56
- [nzAllowClear]="props['allowClear']!!"
57
- [nzSelectOnTab]="props['selectOnTab']!!"
56
+ [nzAllowClear]="!!props['allowClear']"
57
+ [nzSelectOnTab]="!!props['selectOnTab']"
58
58
  [nzAutoClearSearchValue]="props['autoClearSearchValue']"
59
- [nzBackdrop]="props['backdrop']!!"
59
+ [nzBackdrop]="!!props['backdrop']"
60
60
  [nzBorderless]="props['borderless']"
61
- [nzOpen]="props['open']!!"
61
+ [nzOpen]="!!props['open']"
62
62
  [nzDropdownClassName]="props['dropdownClassName']"
63
- [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
63
+ [nzDropdownMatchSelectWidth]="!!props['dropdownMatchSelectWidth']"
64
64
  [nzDropdownStyle]="props['dropdownStyle'] ?? null"
65
65
  [nzCustomTemplate]="props['customTemplate'] ?? null"
66
- [nzServerSearch]="props['serverSearch']!!"
66
+ [nzServerSearch]="!!props['serverSearch']"
67
67
  [nzMaxMultipleCount]="props['maxMultipleCount']!"
68
68
  [nzMode]="props['mode']!"
69
- [nzShowSearch]="props['showSearch']!!"
69
+ [nzShowSearch]="!!props['showSearch']"
70
70
  [nzSize]="props['size']!"
71
71
  [nzStatus]="props['status']!"
72
- [nzLoading]="props['loading']!!"
72
+ [nzLoading]="!!props['loading']"
73
73
  [nzPlacement]="props['placement']"
74
- [nzShowArrow]="props['showArrow']!!"
74
+ [nzShowArrow]="!!props['showArrow']"
75
75
  [nzMaxTagCount]="props['maxTagCount']"
76
76
  [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
77
77
  [nzOptionHeightPx]="props['optionHeightPx']!"
78
78
  [nzOptionOverflowSize]="props['optionOverflowSize']!"
79
79
  [formControl]="formControl"
80
- [formlyAttributes]="field"
81
80
  (ngModelChange)="props['modelChange']?.(field, $event)"
82
81
  (nzBlur)="props.blur?.(field, $event)"
83
82
  (nzFocus)="props.focus?.(field, $event)"
@@ -97,9 +96,9 @@ class FormlyFieldSelect extends FieldType {
97
96
  }
98
97
  }
99
98
  </nz-select>
100
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
99
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
101
100
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldSelect, decorators: [{
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldSelect, decorators: [{
103
102
  type: Component,
104
103
  args: [{
105
104
  selector: 'formly-field-select',
@@ -112,31 +111,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
112
111
  [nzId]="id"
113
112
  [nzPlaceHolder]="props.placeholder ?? null"
114
113
  [compareWith]="props['compareWith']!"
115
- [nzAllowClear]="props['allowClear']!!"
116
- [nzSelectOnTab]="props['selectOnTab']!!"
114
+ [nzAllowClear]="!!props['allowClear']"
115
+ [nzSelectOnTab]="!!props['selectOnTab']"
117
116
  [nzAutoClearSearchValue]="props['autoClearSearchValue']"
118
- [nzBackdrop]="props['backdrop']!!"
117
+ [nzBackdrop]="!!props['backdrop']"
119
118
  [nzBorderless]="props['borderless']"
120
- [nzOpen]="props['open']!!"
119
+ [nzOpen]="!!props['open']"
121
120
  [nzDropdownClassName]="props['dropdownClassName']"
122
- [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
121
+ [nzDropdownMatchSelectWidth]="!!props['dropdownMatchSelectWidth']"
123
122
  [nzDropdownStyle]="props['dropdownStyle'] ?? null"
124
123
  [nzCustomTemplate]="props['customTemplate'] ?? null"
125
- [nzServerSearch]="props['serverSearch']!!"
124
+ [nzServerSearch]="!!props['serverSearch']"
126
125
  [nzMaxMultipleCount]="props['maxMultipleCount']!"
127
126
  [nzMode]="props['mode']!"
128
- [nzShowSearch]="props['showSearch']!!"
127
+ [nzShowSearch]="!!props['showSearch']"
129
128
  [nzSize]="props['size']!"
130
129
  [nzStatus]="props['status']!"
131
- [nzLoading]="props['loading']!!"
130
+ [nzLoading]="!!props['loading']"
132
131
  [nzPlacement]="props['placement']"
133
- [nzShowArrow]="props['showArrow']!!"
132
+ [nzShowArrow]="!!props['showArrow']"
134
133
  [nzMaxTagCount]="props['maxTagCount']"
135
134
  [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
136
135
  [nzOptionHeightPx]="props['optionHeightPx']!"
137
136
  [nzOptionOverflowSize]="props['optionOverflowSize']!"
138
137
  [formControl]="formControl"
139
- [formlyAttributes]="field"
140
138
  (ngModelChange)="props['modelChange']?.(field, $event)"
141
139
  (nzBlur)="props.blur?.(field, $event)"
142
140
  (nzFocus)="props.focus?.(field, $event)"
@@ -165,13 +163,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
165
163
  }] } });
166
164
 
167
165
  class FormlyNzSelectModule {
168
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
169
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
167
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
170
168
  ReactiveFormsModule,
171
169
  NzSelectModule,
172
170
  FormlyNzFormFieldModule,
173
- FormlySelectModule, i4.FormlyModule] }); }
174
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
171
+ FormlySelectModule, i1$1.FormlyModule] }); }
172
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
175
173
  ReactiveFormsModule,
176
174
  NzSelectModule,
177
175
  FormlyNzFormFieldModule,
@@ -187,7 +185,7 @@ class FormlyNzSelectModule {
187
185
  ]
188
186
  })] }); }
189
187
  }
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
191
189
  type: NgModule,
192
190
  args: [{
193
191
  declarations: [FormlyFieldSelect],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [ngStyle]=\"props['ngStyle']\"\n [ngClass]=\"props['ngClass']\"\n [nzId]=\"id\"\n [nzPlaceHolder]=\"props.placeholder ?? null\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzOpenChange)=\"props['openChange']?.(field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom']?.(field, $event)\"\n (nzOnSearch)=\"props['onSearch']?.(field, $event)\"\n >\n @for (item of to.options | formlySelectOptions: field | async; track item) {\n @if (item.group) {\n <nz-option-group [nzLabel]=\"item.label\">\n @for (child of item.group; track child) {\n <nz-option [nzValue]=\"child.value\" [nzDisabled]=\"child.disabled\" [nzLabel]=\"child.label\"> </nz-option>\n }\n </nz-option-group>\n } @else {\n <nz-option [nzValue]=\"item.value\" [nzDisabled]=\"item.disabled\" [nzLabel]=\"item.label\"></nz-option>\n }\n }\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n options: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAqEM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AA1DjE,IAAA,WAAA,GAAA;;AA2DW,QAAA,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ACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [ngStyle]=\"props['ngStyle']\"\n [ngClass]=\"props['ngClass']\"\n [nzId]=\"id\"\n [nzPlaceHolder]=\"props.placeholder ?? null\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"!!props['allowClear']\"\n [nzSelectOnTab]=\"!!props['selectOnTab']\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"!!props['backdrop']\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"!!props['open']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"!!props['dropdownMatchSelectWidth']\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"!!props['serverSearch']\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"!!props['showSearch']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"!!props['loading']\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"!!props['showArrow']\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzOpenChange)=\"props['openChange']?.(field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom']?.(field, $event)\"\n (nzOnSearch)=\"props['onSearch']?.(field, $event)\"\n >\n @for (item of to.options | formlySelectOptions: field | async; track item) {\n @if (item.group) {\n <nz-option-group [nzLabel]=\"item.label\">\n @for (child of item.group; track child) {\n <nz-option [nzValue]=\"child.value\" [nzDisabled]=\"child.disabled\" [nzLabel]=\"child.label\"> </nz-option>\n }\n </nz-option-group>\n } @else {\n <nz-option [nzValue]=\"item.value\" [nzDisabled]=\"item.disabled\" [nzLabel]=\"item.label\"></nz-option>\n }\n }\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n options: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAoEM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AAzDjE,IAAA,WAAA,GAAA;;AA0DW,QAAA,I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