ngx-formly-zorro-antd 17.0.4 → 17.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/button/button.type.d.ts +4 -0
  2. package/card-wrapper/card-wrapper.props.d.ts +4 -0
  3. package/esm2022/button/button.module.mjs +4 -4
  4. package/esm2022/button/button.type.mjs +8 -8
  5. package/esm2022/button-group/button-group.module.mjs +4 -4
  6. package/esm2022/button-group/button-group.type.mjs +3 -3
  7. package/esm2022/card/card.module.mjs +4 -4
  8. package/esm2022/card/card.type.mjs +11 -8
  9. package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
  10. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  11. package/esm2022/card-wrapper/card.wrapper.mjs +10 -7
  12. package/esm2022/cascader/cascader.module.mjs +4 -4
  13. package/esm2022/cascader/cascader.type.mjs +3 -3
  14. package/esm2022/checkbox/checkbox.module.mjs +4 -4
  15. package/esm2022/checkbox/checkbox.type.mjs +3 -3
  16. package/esm2022/common/common.module.mjs +4 -4
  17. package/esm2022/common/formly-box-templates.directive.mjs +3 -3
  18. package/esm2022/datepicker/datepicker.module.mjs +4 -4
  19. package/esm2022/datepicker/datepicker.type.mjs +3 -3
  20. package/esm2022/form-field/form-field.module.mjs +4 -4
  21. package/esm2022/form-field/form-field.props.mjs +1 -1
  22. package/esm2022/form-field/form-field.wrapper.mjs +56 -56
  23. package/esm2022/grid/grid.module.mjs +4 -4
  24. package/esm2022/grid/grid.props.mjs +1 -1
  25. package/esm2022/grid/grid.type.mjs +28 -28
  26. package/esm2022/input/input.module.mjs +4 -4
  27. package/esm2022/input/input.type.mjs +3 -3
  28. package/esm2022/input-group/input-group.module.mjs +4 -4
  29. package/esm2022/input-group/input-group.type.mjs +3 -3
  30. package/esm2022/input-number/input-number.module.mjs +4 -4
  31. package/esm2022/input-number/input-number.type.mjs +3 -3
  32. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +36 -62
  33. package/esm2022/radio/radio.module.mjs +4 -4
  34. package/esm2022/radio/radio.type.mjs +3 -3
  35. package/esm2022/rate/rate.module.mjs +4 -4
  36. package/esm2022/rate/rate.type.mjs +3 -3
  37. package/esm2022/ref-template/ref-template.module.mjs +4 -4
  38. package/esm2022/ref-template/ref-template.type.mjs +3 -3
  39. package/esm2022/select/select.module.mjs +4 -4
  40. package/esm2022/select/select.type.mjs +3 -3
  41. package/esm2022/slider/slider.module.mjs +4 -4
  42. package/esm2022/slider/slider.type.mjs +3 -3
  43. package/esm2022/space/space.module.mjs +4 -4
  44. package/esm2022/space/space.type.mjs +6 -6
  45. package/esm2022/switch/switch.module.mjs +4 -4
  46. package/esm2022/switch/switch.type.mjs +3 -3
  47. package/esm2022/tabs/tabs.module.mjs +4 -4
  48. package/esm2022/tabs/tabs.wrapper.mjs +3 -3
  49. package/esm2022/textarea/textarea.module.mjs +4 -4
  50. package/esm2022/textarea/textarea.type.mjs +3 -3
  51. package/esm2022/timepicker/timepicker.module.mjs +4 -4
  52. package/esm2022/timepicker/timepicker.type.mjs +3 -3
  53. package/esm2022/transfer/transfer.component.mjs +3 -3
  54. package/esm2022/transfer/transfer.module.mjs +4 -4
  55. package/esm2022/transfer/transfer.type.mjs +3 -3
  56. package/esm2022/tree-select/tree-select.module.mjs +4 -4
  57. package/esm2022/tree-select/tree-select.type.mjs +3 -3
  58. package/esm2022/upload/upload.component.mjs +3 -3
  59. package/esm2022/upload/upload.module.mjs +4 -4
  60. package/esm2022/upload/upload.type.mjs +3 -3
  61. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +7 -7
  62. package/fesm2022/ngx-formly-zorro-antd-button.mjs +11 -11
  63. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  64. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +14 -11
  65. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  66. package/fesm2022/ngx-formly-zorro-antd-card.mjs +15 -12
  67. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  68. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
  69. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
  70. package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
  71. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
  72. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +59 -59
  73. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  74. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +31 -31
  75. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  76. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
  77. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
  78. package/fesm2022/ngx-formly-zorro-antd-input.mjs +7 -7
  79. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
  80. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
  81. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
  82. package/fesm2022/ngx-formly-zorro-antd-select.mjs +7 -7
  83. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
  84. package/fesm2022/ngx-formly-zorro-antd-space.mjs +9 -9
  85. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  86. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
  87. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
  88. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
  89. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
  90. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
  91. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
  92. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
  93. package/fesm2022/ngx-formly-zorro-antd.mjs +35 -61
  94. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  95. package/form-field/form-field.props.d.ts +50 -52
  96. package/grid/grid.props.d.ts +14 -14
  97. package/lib/ui-ng-zorro-antd.module.d.ts +1 -1
  98. package/package.json +13 -13
  99. package/space/space.type.d.ts +2 -1
@@ -17,8 +17,8 @@ export class FormlyFieldTextarea extends FieldType {
17
17
  }
18
18
  };
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.3", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
22
22
  @switch (props.type) {
23
23
  @case ('count') {
24
24
  <nz-textarea-count [nzMaxCharacterCount]="props['maxCharacterCount'] || 0">
@@ -74,7 +74,7 @@ export class FormlyFieldTextarea extends FieldType {
74
74
  </ng-template>
75
75
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
76
76
  }
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
78
78
  type: Component,
79
79
  args: [{
80
80
  selector: 'formly-field-textarea',
@@ -8,12 +8,12 @@ import { FormlyFieldTimepicker } from './timepicker.type';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@ngx-formly/core";
10
10
  export class FormlyNzTimepickerModule {
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTimepickerModule, declarations: [FormlyFieldTimepicker], imports: [CommonModule,
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTimepickerModule, declarations: [FormlyFieldTimepicker], imports: [CommonModule,
13
13
  ReactiveFormsModule,
14
14
  FormlyNzFormFieldModule,
15
15
  NzTimePickerModule, i1.FormlyModule] }); }
16
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTimepickerModule, imports: [CommonModule,
16
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTimepickerModule, imports: [CommonModule,
17
17
  ReactiveFormsModule,
18
18
  FormlyNzFormFieldModule,
19
19
  NzTimePickerModule,
@@ -27,7 +27,7 @@ export class FormlyNzTimepickerModule {
27
27
  ]
28
28
  })] }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTimepickerModule, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTimepickerModule, decorators: [{
31
31
  type: NgModule,
32
32
  args: [{
33
33
  declarations: [FormlyFieldTimepicker],
@@ -22,8 +22,8 @@ export class FormlyFieldTimepicker extends FieldType {
22
22
  }
23
23
  };
24
24
  }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTimepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: FormlyFieldTimepicker, selector: "formly-field-timepicker", usesInheritance: true, ngImport: i0, template: `<nz-time-picker
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTimepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldTimepicker, selector: "formly-field-timepicker", usesInheritance: true, ngImport: i0, template: `<nz-time-picker
27
27
  #time
28
28
  [formControl]="formControl"
29
29
  [formlyAttributes]="field"
@@ -55,7 +55,7 @@ export class FormlyFieldTimepicker extends FieldType {
55
55
  (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
56
56
  ></nz-time-picker>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NzTimePickerComponent, selector: "nz-time-picker", inputs: ["nzId", "nzSize", "nzStatus", "nzHourStep", "nzMinuteStep", "nzSecondStep", "nzClearText", "nzNowText", "nzOkText", "nzPopupClassName", "nzPlaceHolder", "nzAddOn", "nzDefaultOpenValue", "nzDisabledHours", "nzDisabledMinutes", "nzDisabledSeconds", "nzFormat", "nzOpen", "nzUse12Hours", "nzSuffixIcon", "nzHideDisabledOptions", "nzAllowEmpty", "nzDisabled", "nzAutoFocus", "nzBackdrop", "nzBorderless", "nzInputReadOnly"], outputs: ["nzOpenChange"], exportAs: ["nzTimePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
57
57
  }
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTimepicker, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTimepicker, decorators: [{
59
59
  type: Component,
60
60
  args: [{
61
61
  selector: 'formly-field-timepicker',
@@ -47,8 +47,8 @@ export class TransferComponent extends NzTransferComponent {
47
47
  searchChange(value) {
48
48
  this.nzSearchChange.emit(value);
49
49
  }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
51
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
50
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
51
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
52
52
  {
53
53
  provide: NG_VALUE_ACCESSOR,
54
54
  useExisting: TransferComponent,
@@ -80,7 +80,7 @@ export class TransferComponent extends NzTransferComponent {
80
80
  ></nz-transfer>
81
81
  `, isInline: true, dependencies: [{ kind: "component", type: i1.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
82
82
  }
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: TransferComponent, decorators: [{
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: TransferComponent, decorators: [{
84
84
  type: Component,
85
85
  args: [{
86
86
  selector: 'formly-transfer',
@@ -9,12 +9,12 @@ import { TransferComponent } from './transfer.component';
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "@ngx-formly/core";
11
11
  export class FormlyNzTransferModule {
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
13
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
13
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
14
14
  ReactiveFormsModule,
15
15
  FormlyNzFormFieldModule,
16
16
  NzTransferModule, i1.FormlyModule] }); }
17
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
17
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
18
18
  ReactiveFormsModule,
19
19
  FormlyNzFormFieldModule,
20
20
  NzTransferModule,
@@ -28,7 +28,7 @@ export class FormlyNzTransferModule {
28
28
  ]
29
29
  })] }); }
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
32
32
  type: NgModule,
33
33
  args: [{
34
34
  declarations: [FormlyFieldTransfer, TransferComponent],
@@ -24,8 +24,8 @@ export class FormlyFieldTransfer extends FieldType {
24
24
  this.transfer.nzCanMove = canMove;
25
25
  }
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
29
29
  #transfer
30
30
  [formControl]="formControl"
31
31
  [formlyAttributes]="field"
@@ -50,7 +50,7 @@ export class FormlyFieldTransfer extends FieldType {
50
50
  (nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
51
51
  ></formly-transfer>`, 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: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i3.TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
52
52
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
54
54
  type: Component,
55
55
  args: [{
56
56
  selector: 'formly-field-transfer',
@@ -8,12 +8,12 @@ import { FormlyFieldTreeSelect } from './tree-select.type';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@ngx-formly/core";
10
10
  export class FormlyNzTreeSelectModule {
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
12
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
13
13
  ReactiveFormsModule,
14
14
  FormlyNzFormFieldModule,
15
15
  NzTreeSelectModule, i1.FormlyModule] }); }
16
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
16
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
17
17
  ReactiveFormsModule,
18
18
  FormlyNzFormFieldModule,
19
19
  NzTreeSelectModule,
@@ -27,7 +27,7 @@ export class FormlyNzTreeSelectModule {
27
27
  ]
28
28
  })] }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
31
31
  type: NgModule,
32
32
  args: [{
33
33
  declarations: [FormlyFieldTreeSelect],
@@ -33,8 +33,8 @@ export class FormlyFieldTreeSelect extends FieldType {
33
33
  get nzTreeTemplate() {
34
34
  return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');
35
35
  }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTreeSelect, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTreeSelect, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
38
38
  [formControl]="formControl"
39
39
  [formlyAttributes]="field"
40
40
  [nzPlaceHolder]="props.placeholder ?? ''"
@@ -70,7 +70,7 @@ export class FormlyFieldTreeSelect extends FieldType {
70
70
  (nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
71
71
  ></nz-tree-select>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
72
72
  }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
74
74
  type: Component,
75
75
  args: [{
76
76
  selector: 'formly-field-treeselect',
@@ -45,8 +45,8 @@ export class UploadNzComponent extends NzUploadComponent {
45
45
  }
46
46
  }
47
47
  }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
49
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.3", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: "nzeShowUploadButton", nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
49
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: "nzeShowUploadButton", nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
50
50
  {
51
51
  provide: NG_VALUE_ACCESSOR,
52
52
  useExisting: forwardRef(() => UploadNzComponent),
@@ -125,7 +125,7 @@ export class UploadNzComponent extends NzUploadComponent {
125
125
  </nz-upload>
126
126
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
127
127
  }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: UploadNzComponent, decorators: [{
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UploadNzComponent, decorators: [{
129
129
  type: Component,
130
130
  args: [{
131
131
  selector: 'formly-nz-upload',
@@ -11,14 +11,14 @@ import { UploadNzComponent } from './upload.component';
11
11
  import * as i0 from "@angular/core";
12
12
  import * as i1 from "@ngx-formly/core";
13
13
  export class FormlyNzUploadModule {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
16
16
  ReactiveFormsModule,
17
17
  FormlyNzFormFieldModule,
18
18
  NzUploadModule,
19
19
  NzButtonModule,
20
20
  NzIconModule, i1.FormlyModule] }); }
21
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
21
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
22
22
  ReactiveFormsModule,
23
23
  FormlyNzFormFieldModule,
24
24
  NzUploadModule,
@@ -34,7 +34,7 @@ export class FormlyNzUploadModule {
34
34
  ]
35
35
  })] }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
38
38
  type: NgModule,
39
39
  args: [{
40
40
  declarations: [FormlyFieldUpload, UploadNzComponent],
@@ -39,8 +39,8 @@ export class FormlyFieldUpload extends FieldType {
39
39
  get nzFileListRender() {
40
40
  return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
41
41
  }
42
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
43
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
42
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
43
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
44
44
  #upload
45
45
  [formControl]="formControl"
46
46
  [formlyAttributes]="field"
@@ -83,7 +83,7 @@ export class FormlyFieldUpload extends FieldType {
83
83
  >
84
84
  </formly-nz-upload>`, isInline: true, dependencies: [{ 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: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i4.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
85
85
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldUpload, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, decorators: [{
87
87
  type: Component,
88
88
  args: [{
89
89
  selector: 'formly-field-upload',
@@ -30,8 +30,8 @@ class FormlyFieldButtonGroup extends FieldType {
30
30
  ngOnDestroy() {
31
31
  this.subjectDestroy();
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.3", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
35
35
  <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
36
36
  @for (item of props.buttons; track item.id) {
37
37
  <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
@@ -65,7 +65,7 @@ class FormlyFieldButtonGroup extends FieldType {
65
65
  </ng-template>
66
66
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
69
69
  type: Component,
70
70
  args: [{
71
71
  selector: 'formly-field-button-group',
@@ -107,11 +107,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
107
107
  }], ctorParameters: () => [] });
108
108
 
109
109
  class FormlyNzButtonGroupModule {
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
111
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonGroupModule, declarations: [FormlyFieldButtonGroup], imports: [CommonModule,
110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
111
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, declarations: [FormlyFieldButtonGroup], imports: [CommonModule,
112
112
  NzButtonModule,
113
113
  NzIconModule, i6.FormlyModule] }); }
114
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonGroupModule, imports: [CommonModule,
114
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, imports: [CommonModule,
115
115
  NzButtonModule,
116
116
  NzIconModule,
117
117
  FormlyModule.forChild({
@@ -123,7 +123,7 @@ class FormlyNzButtonGroupModule {
123
123
  ]
124
124
  })] }); }
125
125
  }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonGroupModule, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, decorators: [{
127
127
  type: NgModule,
128
128
  args: [{
129
129
  declarations: [FormlyFieldButtonGroup],
@@ -35,8 +35,8 @@ class FormlyFieldButton extends FieldType {
35
35
  get text() {
36
36
  return resolveTplName(this.props, this.fieldTemplates, 'text');
37
37
  }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldButton, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.3", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
40
40
  @if (props.type === 'a') {
41
41
  <a
42
42
  nz-button
@@ -66,8 +66,9 @@ class FormlyFieldButton extends FieldType {
66
66
  </a>
67
67
  } @else {
68
68
  <button
69
- [attr.type]="field.type"
70
69
  [formlyAttributes]="field"
70
+ [attr.type]="field.type"
71
+ [attr.form]="props['formName']"
71
72
  [disabled]="props['disabled']!!"
72
73
  [nzGhost]="props['ghost']!!"
73
74
  [nzLoading]="props['loading']!!"
@@ -89,7 +90,6 @@ class FormlyFieldButton extends FieldType {
89
90
  {{ text }}
90
91
  </ng-container>
91
92
  }
92
- <!-- {{ props.label }} -->
93
93
  @if (props['afterIcon']) {
94
94
  <span nz-icon [nzType]="props['afterIcon']"></span>
95
95
  }
@@ -97,7 +97,7 @@ class FormlyFieldButton extends FieldType {
97
97
  }
98
98
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
99
99
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldButton, decorators: [{
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, decorators: [{
101
101
  type: Component,
102
102
  args: [{
103
103
  selector: 'formly-field-button',
@@ -131,8 +131,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
131
131
  </a>
132
132
  } @else {
133
133
  <button
134
- [attr.type]="field.type"
135
134
  [formlyAttributes]="field"
135
+ [attr.type]="field.type"
136
+ [attr.form]="props['formName']"
136
137
  [disabled]="props['disabled']!!"
137
138
  [nzGhost]="props['ghost']!!"
138
139
  [nzLoading]="props['loading']!!"
@@ -154,7 +155,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
154
155
  {{ text }}
155
156
  </ng-container>
156
157
  }
157
- <!-- {{ props.label }} -->
158
158
  @if (props['afterIcon']) {
159
159
  <span nz-icon [nzType]="props['afterIcon']"></span>
160
160
  }
@@ -168,12 +168,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
168
168
  }] }] });
169
169
 
170
170
  class FormlyNzButtonModule {
171
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
172
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
172
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
173
173
  NzOutletModule,
174
174
  NzButtonModule,
175
175
  NzIconModule, i8.FormlyModule] }); }
176
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
176
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
177
177
  NzOutletModule,
178
178
  NzButtonModule,
179
179
  NzIconModule,
@@ -194,7 +194,7 @@ class FormlyNzButtonModule {
194
194
  ]
195
195
  })] }); }
196
196
  }
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
198
198
  type: NgModule,
199
199
  args: [{
200
200
  declarations: [FormlyFieldButton],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport {\n NzFormlyFieldConfig,\n FormlyBoxTemplates,\n hasTplNameValue,\n resolveTplName\n} from 'ngx-formly-zorro-antd/common';\n\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface ButtonProps extends FormlyFieldProps {\n type?: 'a' | 'button';\n\n /**\n * 按钮内容文本\n */\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\n textName?: string;\n\n /**\n * 幽灵属性,使按钮背景透明\n * @default false\n */\n ghost?: boolean;\n\n /**\n * 设置按钮载入状态\n * @default false\n */\n loading?: boolean;\n\n /**\n * 设置按钮形状\n */\n shape?: NzButtonShape;\n\n /**\n * 设置按钮大小\n * @default default\n */\n size?: NzButtonSize;\n\n /**\n * 设置按钮类型\n */\n nzType?: NzButtonType;\n\n /**\n * 将按钮宽度调整为其父宽度的选项\n * @default false\n */\n block?: boolean;\n\n /**\n * 设置危险按钮\n * @default false\n */\n danger?: boolean;\n\n /**\n * 文字前面的图标\n */\n beforeIcon?: string;\n\n /**\n * 文字后面面的图标\n */\n afterIcon?: string;\n}\n\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\n}\n\n@Component({\n selector: 'formly-field-button',\n template: `\n @if (props.type === 'a') {\n <a\n nz-button\n [formlyAttributes]=\"field\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? 'link'\"\n [ngClass]=\"props['className']\"\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </a>\n } @else {\n <button\n [attr.type]=\"field.type\"\n [formlyAttributes]=\"field\"\n [disabled]=\"props['disabled']!!\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? null\"\n [ngClass]=\"props['className']\"\n nz-button\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n <!-- {{ props.label }} -->\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\n override defaultOptions = {\n props: {\n ghost: false,\n loading: false,\n block: false,\n size: 'default' as const,\n danger: false\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get hasText() {\n return hasTplNameValue(this.props, 'text');\n }\n\n get text() {\n return resolveTplName(this.props, this.fieldTemplates, 'text');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButton } from './button.type';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButton],\n imports: [\n CommonModule,\n NzOutletModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button',\n component: FormlyFieldButton\n },\n {\n name: 'submit',\n extends: 'button'\n },\n {\n name: 'reset',\n extends: 'button'\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AA6IM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAW5E,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAVxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAA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CAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport {\n NzFormlyFieldConfig,\n FormlyBoxTemplates,\n hasTplNameValue,\n resolveTplName\n} from 'ngx-formly-zorro-antd/common';\n\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface ButtonProps extends FormlyFieldProps {\n type?: 'a' | 'button';\n\n /**\n * form 名称\n */\n formName?: string;\n\n /**\n * 按钮内容文本\n */\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\n textName?: string;\n\n /**\n * 幽灵属性,使按钮背景透明\n * @default false\n */\n ghost?: boolean;\n\n /**\n * 设置按钮载入状态\n * @default false\n */\n loading?: boolean;\n\n /**\n * 设置按钮形状\n */\n shape?: NzButtonShape;\n\n /**\n * 设置按钮大小\n * @default default\n */\n size?: NzButtonSize;\n\n /**\n * 设置按钮类型\n */\n nzType?: NzButtonType;\n\n /**\n * 将按钮宽度调整为其父宽度的选项\n * @default false\n */\n block?: boolean;\n\n /**\n * 设置危险按钮\n * @default false\n */\n danger?: boolean;\n\n /**\n * 文字前面的图标\n */\n beforeIcon?: string;\n\n /**\n * 文字后面面的图标\n */\n afterIcon?: string;\n}\n\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\n}\n\n@Component({\n selector: 'formly-field-button',\n template: `\n @if (props.type === 'a') {\n <a\n nz-button\n [formlyAttributes]=\"field\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? 'link'\"\n [ngClass]=\"props['className']\"\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </a>\n } @else {\n <button\n [formlyAttributes]=\"field\"\n [attr.type]=\"field.type\"\n [attr.form]=\"props['formName']\"\n [disabled]=\"props['disabled']!!\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? null\"\n [ngClass]=\"props['className']\"\n nz-button\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\n override defaultOptions = {\n props: {\n ghost: false,\n loading: false,\n block: false,\n size: 'default' as const,\n danger: false\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get hasText() {\n return hasTplNameValue(this.props, 'text');\n }\n\n get text() {\n return resolveTplName(this.props, this.fieldTemplates, 'text');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButton } from './button.type';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButton],\n imports: [\n CommonModule,\n NzOutletModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button',\n component: FormlyFieldButton\n },\n {\n name: 'submit',\n extends: 'button'\n },\n {\n name: 'reset',\n extends: 'button'\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAkJM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAW5E,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAVxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE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AAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
@@ -1,11 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, Optional, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
3
4
  import { CommonModule } from '@angular/common';
4
- import * as i3 from '@ngx-formly/core';
5
+ import * as i4 from '@ngx-formly/core';
5
6
  import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
6
7
  import * as i1 from 'ngx-formly-zorro-antd/common';
7
8
  import { resolveTplName, resolveTplNameArray } from 'ngx-formly-zorro-antd/common';
8
- import * as i2 from 'ng-zorro-antd/card';
9
+ import * as i3 from 'ng-zorro-antd/card';
9
10
  import { NzCardModule } from 'ng-zorro-antd/card';
10
11
 
11
12
  class FormlyWrapperCard extends FieldWrapper {
@@ -30,11 +31,12 @@ class FormlyWrapperCard extends FieldWrapper {
30
31
  get nzActions() {
31
32
  return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
32
33
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyWrapperCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
35
36
  <nz-card
36
37
  [nzActions]="nzActions"
37
38
  [formlyAttributes]="field"
39
+ [ngClass]="props['className']"
38
40
  [nzBodyStyle]="props['bodyStyle'] ?? null"
39
41
  [nzSize]="props['size']!"
40
42
  [nzBorderless]="props['borderless']!!"
@@ -48,9 +50,9 @@ class FormlyWrapperCard extends FieldWrapper {
48
50
  >
49
51
  <ng-container #fieldComponent></ng-container>
50
52
  </nz-card>
51
- `, isInline: true, dependencies: [{ kind: "component", type: i2.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
53
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
52
54
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyWrapperCard, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperCard, decorators: [{
54
56
  type: Component,
55
57
  args: [{
56
58
  selector: 'formly-wrapper-card',
@@ -58,6 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
58
60
  <nz-card
59
61
  [nzActions]="nzActions"
60
62
  [formlyAttributes]="field"
63
+ [ngClass]="props['className']"
61
64
  [nzBodyStyle]="props['bodyStyle'] ?? null"
62
65
  [nzSize]="props['size']!"
63
66
  [nzBorderless]="props['borderless']!!"
@@ -79,10 +82,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
79
82
  }] }] });
80
83
 
81
84
  class FormlyNzCardWrapperModule {
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
83
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
84
- NzCardModule, i3.FormlyModule] }); }
85
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
86
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
87
+ NzCardModule, i4.FormlyModule] }); }
88
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
86
89
  NzCardModule,
87
90
  FormlyModule.forChild({
88
91
  wrappers: [
@@ -93,7 +96,7 @@ class FormlyNzCardWrapperModule {
93
96
  ]
94
97
  })] }); }
95
98
  }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
97
100
  type: NgModule,
98
101
  args: [{
99
102
  declarations: [FormlyWrapperCard],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-card-wrapper.mjs","sources":["../../../../packages/formlyantd/card-wrapper/src/card.wrapper.ts","../../../../packages/formlyantd/card-wrapper/src/card-wrapper.module.ts","../../../../packages/formlyantd/card-wrapper/src/ngx-formly-zorro-antd-card-wrapper.ts"],"sourcesContent":["import { Component, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from './card-wrapper.props';\n\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\n override defaultOptions = {\n props: {\n bordered: true\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperCard } from './card.wrapper';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\n@NgModule({\n declarations: [FormlyWrapperCard],\n imports: [\n CommonModule,\n NzCardModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'card-wrapper',\n component: FormlyWrapperCard\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAoCM,MAAO,iBAAkB,SAAQ,YAAmD,CAAA;AAOxF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AANxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,E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Q;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-card-wrapper.mjs","sources":["../../../../packages/formlyantd/card-wrapper/src/card.wrapper.ts","../../../../packages/formlyantd/card-wrapper/src/card-wrapper.module.ts","../../../../packages/formlyantd/card-wrapper/src/ngx-formly-zorro-antd-card-wrapper.ts"],"sourcesContent":["import { Component, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from './card-wrapper.props';\n\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\n override defaultOptions = {\n props: {\n bordered: true\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperCard } from './card.wrapper';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\n@NgModule({\n declarations: [FormlyWrapperCard],\n imports: [\n CommonModule,\n NzCardModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'card-wrapper',\n component: FormlyWrapperCard\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAqCM,MAAO,iBAAkB,SAAQ,YAAmD,CAAA;AAOxF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AANxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,I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