ngx-formly-zorro-antd 16.0.0 → 16.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/card/card.module.d.ts +4 -3
  2. package/card/card.type.d.ts +36 -0
  3. package/card/public_api.d.ts +1 -1
  4. package/card-wrapper/card-wrapper.module.d.ts +11 -0
  5. package/{card/card.wrapper.d.ts → card-wrapper/card-wrapper.props.d.ts} +10 -12
  6. package/card-wrapper/card.wrapper.d.ts +23 -0
  7. package/card-wrapper/index.d.ts +5 -0
  8. package/card-wrapper/public_api.d.ts +3 -0
  9. package/common/common.module.d.ts +9 -0
  10. package/common/formly-box-templates.directive.d.ts +46 -0
  11. package/common/formly-utils.d.ts +24 -0
  12. package/common/index.d.ts +5 -0
  13. package/common/public_api.d.ts +3 -0
  14. package/esm2022/button/button.module.mjs +6 -7
  15. package/esm2022/button/button.type.mjs +5 -6
  16. package/esm2022/card/card.module.mjs +20 -17
  17. package/esm2022/card/card.type.mjs +93 -0
  18. package/esm2022/card/public_api.mjs +2 -2
  19. package/esm2022/card-wrapper/card-wrapper.module.mjs +45 -0
  20. package/esm2022/card-wrapper/card-wrapper.props.mjs +2 -0
  21. package/esm2022/card-wrapper/card.wrapper.mjs +77 -0
  22. package/esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs +5 -0
  23. package/esm2022/card-wrapper/public_api.mjs +3 -0
  24. package/esm2022/cascader/cascader.module.mjs +6 -7
  25. package/esm2022/cascader/cascader.type.mjs +5 -8
  26. package/esm2022/checkbox/checkbox.module.mjs +6 -7
  27. package/esm2022/checkbox/checkbox.type.mjs +5 -6
  28. package/esm2022/common/common.module.mjs +19 -0
  29. package/esm2022/common/formly-box-templates.directive.mjs +106 -0
  30. package/esm2022/common/formly-utils.mjs +46 -0
  31. package/esm2022/common/ngx-formly-zorro-antd-common.mjs +5 -0
  32. package/esm2022/common/public_api.mjs +4 -0
  33. package/esm2022/datepicker/datepicker.module.mjs +6 -7
  34. package/esm2022/datepicker/datepicker.type.mjs +5 -6
  35. package/esm2022/extension/ngx-formly-zorro-antd-extension.mjs +5 -0
  36. package/esm2022/extension/public_api.mjs +2 -0
  37. package/esm2022/extension/value-changes-extension.mjs +31 -0
  38. package/esm2022/form-field/form-field.module.mjs +6 -7
  39. package/esm2022/form-field/form-field.props.mjs +1 -1
  40. package/esm2022/form-field/form-field.wrapper.mjs +10 -7
  41. package/esm2022/grid/grid.module.mjs +6 -7
  42. package/esm2022/grid/grid.props.mjs +1 -1
  43. package/esm2022/grid/grid.type.mjs +5 -6
  44. package/esm2022/input/input.module.mjs +6 -7
  45. package/esm2022/input/input.type.mjs +7 -8
  46. package/esm2022/input-group/input-group.module.mjs +6 -7
  47. package/esm2022/input-group/input-group.type.mjs +5 -6
  48. package/esm2022/input-number/input-number.module.mjs +6 -7
  49. package/esm2022/input-number/input-number.type.mjs +5 -6
  50. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +21 -10
  51. package/esm2022/radio/radio.module.mjs +6 -7
  52. package/esm2022/radio/radio.type.mjs +5 -6
  53. package/esm2022/rate/rate.module.mjs +6 -7
  54. package/esm2022/rate/rate.type.mjs +5 -6
  55. package/esm2022/select/select.module.mjs +6 -7
  56. package/esm2022/select/select.type.mjs +11 -12
  57. package/esm2022/slider/slider.module.mjs +6 -7
  58. package/esm2022/slider/slider.type.mjs +5 -6
  59. package/esm2022/space/ngx-formly-zorro-antd-space.mjs +5 -0
  60. package/esm2022/space/public_api.mjs +3 -0
  61. package/esm2022/space/space.module.mjs +45 -0
  62. package/esm2022/space/space.type.mjs +63 -0
  63. package/esm2022/switch/switch.module.mjs +6 -7
  64. package/esm2022/switch/switch.type.mjs +5 -6
  65. package/esm2022/tabs/tabs.module.mjs +6 -7
  66. package/esm2022/tabs/tabs.wrapper.mjs +5 -6
  67. package/esm2022/textarea/textarea.module.mjs +6 -7
  68. package/esm2022/textarea/textarea.type.mjs +5 -6
  69. package/esm2022/timepicker/timepicker.module.mjs +6 -7
  70. package/esm2022/timepicker/timepicker.type.mjs +5 -6
  71. package/esm2022/transfer/transfer.component.mjs +5 -6
  72. package/esm2022/transfer/transfer.module.mjs +6 -7
  73. package/esm2022/transfer/transfer.type.mjs +5 -6
  74. package/esm2022/tree-select/tree-select.module.mjs +6 -7
  75. package/esm2022/tree-select/tree-select.type.mjs +5 -6
  76. package/esm2022/upload/upload.component.mjs +5 -6
  77. package/esm2022/upload/upload.module.mjs +10 -7
  78. package/esm2022/upload/upload.props.mjs +1 -1
  79. package/esm2022/upload/upload.type.mjs +28 -18
  80. package/extension/index.d.ts +5 -0
  81. package/extension/public_api.d.ts +1 -0
  82. package/extension/value-changes-extension.d.ts +23 -0
  83. package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
  84. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  85. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +123 -0
  86. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -0
  87. package/fesm2022/ngx-formly-zorro-antd-card.mjs +84 -35
  88. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  89. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -9
  90. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  91. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
  92. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  93. package/fesm2022/ngx-formly-zorro-antd-common.mjs +174 -0
  94. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -0
  95. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
  96. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  97. package/fesm2022/ngx-formly-zorro-antd-extension.mjs +37 -0
  98. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -0
  99. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +12 -8
  100. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  101. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
  102. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  103. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
  104. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  105. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
  106. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  107. package/fesm2022/ngx-formly-zorro-antd-input.mjs +9 -9
  108. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  109. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
  110. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  111. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
  112. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  113. package/fesm2022/ngx-formly-zorro-antd-select.mjs +13 -13
  114. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  115. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
  116. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  117. package/fesm2022/ngx-formly-zorro-antd-space.mjs +109 -0
  118. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -0
  119. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
  120. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  121. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
  122. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  123. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
  124. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
  126. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  127. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
  128. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  129. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
  130. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  131. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +36 -22
  132. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd.mjs +19 -7
  134. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  135. package/form-field/form-field.props.d.ts +12 -3
  136. package/grid/grid.props.d.ts +15 -13
  137. package/lib/ui-ng-zorro-antd.module.d.ts +24 -21
  138. package/package.json +59 -34
  139. package/space/index.d.ts +5 -0
  140. package/space/public_api.d.ts +2 -0
  141. package/space/space.module.d.ts +11 -0
  142. package/space/space.type.d.ts +50 -0
  143. package/upload/upload.module.d.ts +6 -5
  144. package/upload/upload.props.d.ts +2 -0
  145. package/upload/upload.type.d.ts +6 -1
  146. package/esm2022/card/card.wrapper.mjs +0 -48
@@ -1,87 +1,136 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
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 i1$1 from '@ngx-formly/core';
5
- import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
6
- import * as i1 from 'ng-zorro-antd/card';
5
+ import * as i5 from '@ngx-formly/core';
6
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
7
+ import * as i4 from 'ng-zorro-antd/core/outlet';
8
+ import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
9
+ import * as i1 from 'ngx-formly-zorro-antd/common';
10
+ import { resolveTplName, resolveTplNameArray } from 'ngx-formly-zorro-antd/common';
11
+ import * as i3 from 'ng-zorro-antd/card';
7
12
  import { NzCardModule } from 'ng-zorro-antd/card';
8
13
 
9
- class FormlyWrapperCard extends FieldWrapper {
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperCard, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
14
+ class FormlyFieldCard extends FieldType {
15
+ constructor(fieldTemplates) {
16
+ super();
17
+ this.fieldTemplates = fieldTemplates;
18
+ this.defaultOptions = {
19
+ props: {
20
+ bordered: true,
21
+ type: 'button'
22
+ }
23
+ };
24
+ }
25
+ get nzTitle() {
26
+ return resolveTplName(this.props, this.fieldTemplates, 'title');
27
+ }
28
+ get nzCover() {
29
+ return resolveTplName(this.props, this.fieldTemplates, 'cover');
30
+ }
31
+ get nzExtra() {
32
+ return resolveTplName(this.props, this.fieldTemplates, 'extra');
33
+ }
34
+ get nzActions() {
35
+ return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
36
+ }
37
+ get nzContent() {
38
+ return resolveTplName(this.props, this.fieldTemplates, 'content');
39
+ }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
41
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
12
42
  <nz-card
13
- [nzActions]="props['actions'] || []"
43
+ [nzActions]="nzActions"
44
+ [formlyAttributes]="field"
14
45
  [nzBodyStyle]="props['bodyStyle'] ?? null"
15
46
  [nzSize]="props['size']!"
16
47
  [nzBorderless]="props['borderless']!!"
17
- [nzCover]="props['cover']"
18
- [nzExtra]="props['extra']"
48
+ [nzCover]="nzCover"
49
+ [nzExtra]="nzExtra"
19
50
  [nzHoverable]="props['hoverable']!!"
20
51
  [nzLoading]="props['loading']!!"
21
- [nzTitle]="props['title']"
52
+ [nzTitle]="nzTitle"
53
+ [nzBordered]="props['bordered']!!"
22
54
  [nzType]="props['type'] ?? null"
23
55
  >
24
- <ng-container #fieldComponent></ng-container>
56
+ <formly-field [field]="item" *ngFor="let item of field.fieldGroup"></formly-field>
57
+ <ng-container
58
+ *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
59
+ >
60
+ {{ nzContent }}
61
+ </ng-container>
25
62
  </nz-card>
26
- `, isInline: true, dependencies: [{ kind: "component", type: i1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
63
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i5.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
64
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyWrapperCard, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCard, decorators: [{
29
66
  type: Component,
30
67
  args: [{
31
- selector: 'formly-wrapper-card',
68
+ selector: 'formly-field-card',
32
69
  template: `
33
70
  <nz-card
34
- [nzActions]="props['actions'] || []"
71
+ [nzActions]="nzActions"
72
+ [formlyAttributes]="field"
35
73
  [nzBodyStyle]="props['bodyStyle'] ?? null"
36
74
  [nzSize]="props['size']!"
37
75
  [nzBorderless]="props['borderless']!!"
38
- [nzCover]="props['cover']"
39
- [nzExtra]="props['extra']"
76
+ [nzCover]="nzCover"
77
+ [nzExtra]="nzExtra"
40
78
  [nzHoverable]="props['hoverable']!!"
41
79
  [nzLoading]="props['loading']!!"
42
- [nzTitle]="props['title']"
80
+ [nzTitle]="nzTitle"
81
+ [nzBordered]="props['bordered']!!"
43
82
  [nzType]="props['type'] ?? null"
44
83
  >
45
- <ng-container #fieldComponent></ng-container>
84
+ <formly-field [field]="item" *ngFor="let item of field.fieldGroup"></formly-field>
85
+ <ng-container
86
+ *nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
87
+ >
88
+ {{ nzContent }}
89
+ </ng-container>
46
90
  </nz-card>
47
91
  `,
48
92
  changeDetection: ChangeDetectionStrategy.OnPush
49
93
  }]
50
- }] });
94
+ }], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
95
+ type: Optional
96
+ }] }]; } });
51
97
 
98
+ const COMPONENT = FormlyFieldCard;
52
99
  class FormlyNzCardModule {
53
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
54
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
55
- NzCardModule, i1$1.FormlyModule] }); }
56
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
101
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
102
+ NzCardModule,
103
+ NzOutletModule, i5.FormlyModule], exports: [FormlyFieldCard] }); }
104
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
57
105
  NzCardModule,
106
+ NzOutletModule,
58
107
  FormlyModule.forChild({
59
- wrappers: [
108
+ types: [
60
109
  {
61
110
  name: 'card',
62
- component: FormlyWrapperCard,
63
- types: ['card']
111
+ component: COMPONENT
64
112
  }
65
113
  ]
66
114
  })] }); }
67
115
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, decorators: [{
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, decorators: [{
69
117
  type: NgModule,
70
118
  args: [{
71
- declarations: [FormlyWrapperCard],
119
+ declarations: [COMPONENT],
72
120
  imports: [
73
121
  CommonModule,
74
122
  NzCardModule,
123
+ NzOutletModule,
75
124
  FormlyModule.forChild({
76
- wrappers: [
125
+ types: [
77
126
  {
78
127
  name: 'card',
79
- component: FormlyWrapperCard,
80
- types: ['card']
128
+ component: COMPONENT
81
129
  }
82
130
  ]
83
131
  })
84
- ]
132
+ ],
133
+ exports: [COMPONENT]
85
134
  }]
86
135
  }] });
87
136
 
@@ -89,5 +138,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImpor
89
138
  * Generated bundle index. Do not edit.
90
139
  */
91
140
 
92
- export { FormlyNzCardModule, FormlyWrapperCard };
141
+ export { FormlyFieldCard, FormlyNzCardModule };
93
142
  //# sourceMappingURL=ngx-formly-zorro-antd-card.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.wrapper.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { NzSizeDSType, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\ninterface CardProps {\n /**\n * 卡片操作组,位置在卡片底部\n */\n actions?: Array<TemplateRef<void>>;\n\n /**\n * 内容区域自定义样式\n */\n bodyStyle?: NgStyleInterface | null;\n\n /**\n * \t是否移除边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 卡片封面\n */\n cover?: TemplateRef<void>;\n\n /**\n * 卡片右上角的操作区域\n */\n extra?: string | TemplateRef<void>;\n\n /**\n * 鼠标移过时可浮起\n * @default false\n */\n hoverable?: boolean;\n\n /**\n * 当卡片内容还在加载中时,可以用 loading 展示一个占位\n * @default false\n */\n loading?: boolean;\n\n /**\n * 卡片的尺寸\n * @default default\n */\n size?: NzSizeDSType;\n\n /**\n * \t卡片标题\n */\n title?: string | TemplateRef<void>;\n\n /**\n * 卡片类型,可设置为 inner 或 不设置\n */\n type?: string | 'inner';\n}\n\nexport interface FormlyCardWrapperConfig extends FormlyFieldConfig<CardProps> {\n wrappers: ('card' | Type<FormlyWrapperCard>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-card',\n template: `\n <nz-card\n [nzActions]=\"props['actions'] || []\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"props['cover']\"\n [nzExtra]=\"props['extra']\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"props['title']\"\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<FormlyFieldConfig<CardProps>> {}\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',\n component: FormlyWrapperCard,\n types: ['card']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAiEA,MAoBa,iBAAkB,SAAQ,YAA0C,CAAA;8GAApE,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAlBlB,QAAA,EAAA,qBAAA,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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AAK,EAAE,CAAC,MAAM,CAAC;AAChB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;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,MAAM;AACZ,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,KAAK,EAAE,CAAC,MAAM,CAAC;AAChB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.type.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';\n\ninterface CardProps extends CardWrapperProps {\n /**\n * 内容\n */\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\n contentName?: string;\n}\n\nexport interface FormlyCardFieldConfig extends FormlyFieldConfig<CardProps> {\n type: 'card' | Type<FormlyFieldCard>;\n}\n\n@Component({\n selector: 'formly-field-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 <formly-field [field]=\"item\" *ngFor=\"let item of field.fieldGroup\"></formly-field>\n <ng-container\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\n >\n {{ nzContent }}\n </ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\n override defaultOptions = {\n props: {\n bordered: true,\n type: 'button'\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 get nzContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'content');\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';\nimport { FormlyFieldCard } from './card.type';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\nconst COMPONENT = FormlyFieldCard;\n\n@NgModule({\n declarations: [COMPONENT],\n imports: [\n CommonModule,\n NzCardModule,\n NzOutletModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'card',\n component: COMPONENT\n }\n ]\n })\n ],\n exports: [COMPONENT]\n})\nexport class FormlyNzCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;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AAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,SAAS;AACrB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,SAAS,CAAC;AACrB,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
@@ -37,8 +37,8 @@ class FormlyFieldCascader extends FieldType {
37
37
  this.props['cascaderOptions'] = this.props.options;
38
38
  }
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCascader, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCascader, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
41
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
42
42
  #cascader
43
43
  [nzPlaceHolder]="props.placeholder ?? ''"
44
44
  [formControl]="formControl"
@@ -70,10 +70,9 @@ class FormlyFieldCascader extends FieldType {
70
70
  (nzClear)="props['onClear'] && props['onClear'](field)"
71
71
  (nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
72
72
  (nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
73
- (ngModelChange)="props.change && props.change(field, $event)"
74
73
  ></nz-cascader>`, 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.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
75
74
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCascader, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCascader, decorators: [{
77
76
  type: Component,
78
77
  args: [{
79
78
  selector: 'formly-field-cascader',
@@ -109,19 +108,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImpor
109
108
  (nzClear)="props['onClear'] && props['onClear'](field)"
110
109
  (nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
111
110
  (nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
112
- (ngModelChange)="props.change && props.change(field, $event)"
113
111
  ></nz-cascader>`,
114
112
  changeDetection: ChangeDetectionStrategy.OnPush
115
113
  }]
116
114
  }] });
117
115
 
118
116
  class FormlyNzCascaderModule {
119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
120
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
117
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
118
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
121
119
  ReactiveFormsModule,
122
120
  FormlyNzFormFieldModule,
123
121
  NzCascaderModule, i4.FormlyModule] }); }
124
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
122
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
125
123
  ReactiveFormsModule,
126
124
  FormlyNzFormFieldModule,
127
125
  NzCascaderModule,
@@ -135,7 +133,7 @@ class FormlyNzCascaderModule {
135
133
  ]
136
134
  })] }); }
137
135
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
139
137
  type: NgModule,
140
138
  args: [{
141
139
  declarations: [FormlyFieldCascader],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type {\n NzCascaderOption,\n NzShowSearchOptions,\n NzCascaderExpandTrigger,\n NzCascaderSize\n} from 'ng-zorro-antd/cascader';\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\ninterface CascaderProps extends FormlyFieldProps {\n /**\n * 是否支持清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否自动聚焦,当存在输入框时\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\n */\n changeOn?: (option: NzSafeAny, index: number) => boolean;\n\n /**\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\n * @default false\n */\n changeOnSelect?: boolean;\n\n /**\n * 自定义浮层列类名\n */\n columnClassName?: string;\n\n /**\n * 自定义次级菜单展开图标\n */\n expandIcon?: string | TemplateRef<void>;\n\n /**\n * 次级菜单的展开方式\n * @default 'click'\n */\n expandTrigger?: NzCascaderExpandTrigger;\n\n /**\n * 选项的显示值的属性名\n * @default 'label'\n */\n labelProperty: string;\n\n /**\n * 选择后展示的渲染模板\n */\n labelRender?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\n */\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\n\n /**\n * 自定义浮层类名\n */\n menuClassName?: string;\n\n /**\n * 自定义浮层样式\n */\n menuStyle?: NgStyleInterface | null;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n\n /**\n * 选项的渲染模板\n */\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\n\n /**\n * 是否显示箭头\n * @default true\n */\n showArrow?: boolean;\n\n /**\n * 显示输入框\n * @default true\n */\n showInput?: boolean;\n\n /**\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\n * @default false\n */\n showSearch?: boolean | NzShowSearchOptions;\n\n /**\n * 输入框大小\n * @default default\n */\n size?: NzCascaderSize;\n\n /**\n * 设置校验状态\n */\n status?: NzStatus;\n\n /**\n * 自定义的选择框后缀图标\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 选项的实际值的属性名\n * @default 'value'\n */\n valueProperty?: string;\n\n /**\n * 可选项数据源\n */\n cascaderOptions?: NzCascaderOption[] | null;\n\n /**\n * 清除值时触发\n */\n onClear?: (field: FormlyFieldConfig) => void;\n /**\n * 菜单浮层的显示/隐藏\n */\n visibleChange?: (field: FormlyFieldConfig, visible: boolean) => void;\n\n /**\n * 值发生变化时触发\n */\n selectionChange?: (field: FormlyFieldConfig, value: NzCascaderOption[]) => void;\n}\n\nexport interface FormlyCascaderFieldConfig extends FormlyFieldConfig<CascaderProps> {\n type: 'cascader' | Type<FormlyFieldCascader>;\n}\n\n@Component({\n selector: 'formly-field-cascader',\n template: `<nz-cascader\n #cascader\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzChangeOn]=\"props['changeOn']\"\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\n [nzColumnClassName]=\"props['columnClassName']\"\n [nzExpandIcon]=\"props['expandIcon']!\"\n [nzExpandTrigger]=\"props['expandTrigger']!\"\n [nzLabelProperty]=\"props['labelProperty']\"\n [nzLabelRender]=\"props['labelRender'] ?? null\"\n [nzLoadData]=\"props['loadData']\"\n [nzMenuClassName]=\"props['menuClassName']\"\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzOptionRender]=\"props['optionRender'] ?? null\"\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzShowInput]=\"props['showInput']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzSuffixIcon]=\"props['suffixIcon']!\"\n [nzValueProperty]=\"props['valueProperty']!\"\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n ></nz-cascader>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCascader\n extends FieldType<FieldTypeConfig<CascaderProps>>\n implements OnInit\n{\n override defaultOptions = {\n props: {\n placeholder: '请选择',\n allowClear: true,\n backdrop: false,\n changeOnSelect: false,\n expandTrigger: 'click' as const,\n labelProperty: 'label',\n showArrow: true,\n showInput: true,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n valueProperty: 'value',\n cascaderOptions: []\n }\n };\n ngOnInit(): void {\n const options = this.props['cascaderOptions'];\n if (!options || options.length === 0) {\n this.props['cascaderOptions'] = this.props.options as any;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\nimport { FormlyFieldCascader } from './cascader.type';\n\n@NgModule({\n declarations: [FormlyFieldCascader],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCascaderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'cascader',\n component: FormlyFieldCascader,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCascaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA8JA,MAsCa,mBACX,SAAQ,SAAyC,CAAA;AAvCnD,IAAA,WAAA,GAAA;;AA0CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,eAAe,EAAE,EAAE;AACpB,aAAA;SACF,CAAC;AAOH,KAAA;IANC,QAAQ,GAAA;QACN,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;YACpC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAc,CAAC;AAC3D,SAAA;KACF;8GA1BU,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAA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YAjB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBApBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,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-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type {\n NzCascaderOption,\n NzShowSearchOptions,\n NzCascaderExpandTrigger,\n NzCascaderSize\n} from 'ng-zorro-antd/cascader';\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\ninterface CascaderProps extends FormlyFieldProps {\n /**\n * 是否支持清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否自动聚焦,当存在输入框时\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\n */\n changeOn?: (option: NzSafeAny, index: number) => boolean;\n\n /**\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\n * @default false\n */\n changeOnSelect?: boolean;\n\n /**\n * 自定义浮层列类名\n */\n columnClassName?: string;\n\n /**\n * 自定义次级菜单展开图标\n */\n expandIcon?: string | TemplateRef<void>;\n\n /**\n * 次级菜单的展开方式\n * @default 'click'\n */\n expandTrigger?: NzCascaderExpandTrigger;\n\n /**\n * 选项的显示值的属性名\n * @default 'label'\n */\n labelProperty: string;\n\n /**\n * 选择后展示的渲染模板\n */\n labelRender?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\n */\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\n\n /**\n * 自定义浮层类名\n */\n menuClassName?: string;\n\n /**\n * 自定义浮层样式\n */\n menuStyle?: NgStyleInterface | null;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n\n /**\n * 选项的渲染模板\n */\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\n\n /**\n * 是否显示箭头\n * @default true\n */\n showArrow?: boolean;\n\n /**\n * 显示输入框\n * @default true\n */\n showInput?: boolean;\n\n /**\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\n * @default false\n */\n showSearch?: boolean | NzShowSearchOptions;\n\n /**\n * 输入框大小\n * @default default\n */\n size?: NzCascaderSize;\n\n /**\n * 设置校验状态\n */\n status?: NzStatus;\n\n /**\n * 自定义的选择框后缀图标\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 选项的实际值的属性名\n * @default 'value'\n */\n valueProperty?: string;\n\n /**\n * 可选项数据源\n */\n cascaderOptions?: NzCascaderOption[] | null;\n\n /**\n * 清除值时触发\n */\n onClear?: (field: FormlyFieldConfig) => void;\n /**\n * 菜单浮层的显示/隐藏\n */\n visibleChange?: (field: FormlyFieldConfig, visible: boolean) => void;\n\n /**\n * 值发生变化时触发\n */\n selectionChange?: (field: FormlyFieldConfig, value: NzCascaderOption[]) => void;\n}\n\nexport interface FormlyCascaderFieldConfig extends FormlyFieldConfig<CascaderProps> {\n type: 'cascader' | Type<FormlyFieldCascader>;\n}\n\n@Component({\n selector: 'formly-field-cascader',\n template: `<nz-cascader\n #cascader\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzChangeOn]=\"props['changeOn']\"\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\n [nzColumnClassName]=\"props['columnClassName']\"\n [nzExpandIcon]=\"props['expandIcon']!\"\n [nzExpandTrigger]=\"props['expandTrigger']!\"\n [nzLabelProperty]=\"props['labelProperty']\"\n [nzLabelRender]=\"props['labelRender'] ?? null\"\n [nzLoadData]=\"props['loadData']\"\n [nzMenuClassName]=\"props['menuClassName']\"\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzOptionRender]=\"props['optionRender'] ?? null\"\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzShowInput]=\"props['showInput']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzSuffixIcon]=\"props['suffixIcon']!\"\n [nzValueProperty]=\"props['valueProperty']!\"\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\n ></nz-cascader>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCascader\n extends FieldType<FieldTypeConfig<CascaderProps>>\n implements OnInit\n{\n override defaultOptions = {\n props: {\n placeholder: '请选择',\n allowClear: true,\n backdrop: false,\n changeOnSelect: false,\n expandTrigger: 'click' as const,\n labelProperty: 'label',\n showArrow: true,\n showInput: true,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n valueProperty: 'value',\n cascaderOptions: []\n }\n };\n ngOnInit(): void {\n const options = this.props['cascaderOptions'];\n if (!options || options.length === 0) {\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\nimport { FormlyFieldCascader } from './cascader.type';\n\n@NgModule({\n declarations: [FormlyFieldCascader],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCascaderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'cascader',\n component: FormlyFieldCascader,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCascaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAmMM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAtCnD,IAAA,WAAA,GAAA;;AAyCW,QAAA,IAAA,CAAA,cAA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,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -20,8 +20,8 @@ class FormlyFieldCheckbox extends FieldType {
20
20
  }
21
21
  };
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
24
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
24
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
25
25
  <label
26
26
  *ngIf="props.type !== 'group'; else checkboxgroup"
27
27
  [formControl]="formControl"
@@ -43,7 +43,7 @@ class FormlyFieldCheckbox extends FieldType {
43
43
  </ng-template>
44
44
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i3.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
47
47
  type: Component,
48
48
  args: [{
49
49
  selector: 'formly-field-checkbox',
@@ -73,12 +73,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImpor
73
73
  }] });
74
74
 
75
75
  class FormlyNzCheckboxModule {
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
78
78
  ReactiveFormsModule,
79
79
  FormlyNzFormFieldModule,
80
80
  NzCheckboxModule, i4.FormlyModule] }); }
81
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, imports: [CommonModule,
81
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCheckboxModule, imports: [CommonModule,
82
82
  ReactiveFormsModule,
83
83
  FormlyNzFormFieldModule,
84
84
  NzCheckboxModule,
@@ -96,7 +96,7 @@ class FormlyNzCheckboxModule {
96
96
  ]
97
97
  })] }); }
98
98
  }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
100
100
  type: NgModule,
101
101
  args: [{
102
102
  declarations: [FormlyFieldCheckbox],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {\n type?: 'group' | 'single';\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @default false\n */\n indeterminate?: boolean;\n\n /**\n * 数值改变时回调\n */\n modelChange?: (field: FormlyFieldConfig, data?: boolean | null) => void;\n}\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-checkbox',\n template: `\n <label\n *ngIf=\"props.type !== 'group'; else checkboxgroup\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n nz-checkbox\n >\n {{ props.label }}\n </label>\n\n <ng-template #checkboxgroup>\n <nz-checkbox-group\n [(ngModel)]=\"props.options\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-checkbox-group>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n indeterminate: false,\n hideLabel: true\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCheckboxModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n {\n name: 'boolean',\n extends: 'checkbox'\n }\n ]\n })\n ]\n})\nexport class FormlyNzCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA8BA,MAyBa,mBAA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,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YArB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,OAAO,EAAE,UAAU;AACpB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAxBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {\n type?: 'group' | 'single';\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @default false\n */\n indeterminate?: boolean;\n\n /**\n * 数值改变时回调\n */\n modelChange?: (field: FormlyFieldConfig, data?: boolean | null) => void;\n}\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-checkbox',\n template: `\n <label\n *ngIf=\"props.type !== 'group'; else checkboxgroup\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n nz-checkbox\n >\n {{ props.label }}\n </label>\n\n <ng-template #checkboxgroup>\n <nz-checkbox-group\n [(ngModel)]=\"props.options\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-checkbox-group>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n indeterminate: false,\n hideLabel: true\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCheckboxModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n {\n name: 'boolean',\n extends: 'checkbox'\n }\n ]\n })\n ]\n})\nexport class FormlyNzCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAuDM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAzBlF,IAAA,WAAA,GAAA;;AA0BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,SAAS,EAAE,IAAI;AAChB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EAvBpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAoBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA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IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
@@ -0,0 +1,174 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, TemplateRef, Directive, Input, Output, ContentChildren, NgModule } from '@angular/core';
3
+ import { NamedTemplate } from '@pkt/ng.core';
4
+ import { CommonModule } from '@angular/common';
5
+
6
+ class FormlyBoxTemplates {
7
+ constructor() {
8
+ this.tplMap = new Map();
9
+ this.templateChange = new EventEmitter();
10
+ }
11
+ get templates() {
12
+ return this.tplMap;
13
+ }
14
+ /**
15
+ * 根据模板名称获取TemplateRef
16
+ * @param templateName 模板名称
17
+ */
18
+ get(templateName) {
19
+ return this.tplMap.get(templateName);
20
+ }
21
+ ngAfterContentInit() {
22
+ this.update();
23
+ this.namedTemplate.changes.subscribe(() => {
24
+ this.update();
25
+ });
26
+ }
27
+ update(emitChange = true) {
28
+ this.tplMap.clear();
29
+ this.mergeTemplate(this.tplMap, emitChange);
30
+ }
31
+ ngOnChanges(changes) {
32
+ if (changes.templateList && !changes.templateList.isFirstChange()) {
33
+ this.update();
34
+ }
35
+ }
36
+ /**
37
+ * 合并参数模板
38
+ * @param tplMap
39
+ * @param emitChange
40
+ */
41
+ mergeTemplate(tplMap, emitChange = true) {
42
+ this.mergeTemplates(tplMap, this.templateList);
43
+ this.mergeQueryTemplate(tplMap, this.namedTemplate);
44
+ if (emitChange) {
45
+ this.templateChange.emit(tplMap);
46
+ }
47
+ }
48
+ /**
49
+ * 合并content 模板
50
+ * @param tplMap
51
+ * @param templateList
52
+ * @private
53
+ */
54
+ mergeQueryTemplate(tplMap, templateList) {
55
+ if (templateList) {
56
+ templateList.forEach(v => {
57
+ tplMap.set(v.named, v.template);
58
+ });
59
+ }
60
+ }
61
+ /**
62
+ * 合并模板列表
63
+ * @param tplMap 模板Map
64
+ * @param templateList
65
+ */
66
+ mergeTemplates(tplMap, templateList) {
67
+ if (!templateList) {
68
+ return;
69
+ }
70
+ if (templateList instanceof TemplateRef) {
71
+ const namedTpl = new NamedTemplate(templateList);
72
+ namedTpl.resolveName();
73
+ tplMap.set(namedTpl.named, namedTpl.template);
74
+ return;
75
+ }
76
+ templateList.forEach(v => {
77
+ if (v instanceof NamedTemplate) {
78
+ tplMap.set(v.named, v.template);
79
+ }
80
+ else {
81
+ const namedTpl = new NamedTemplate(v);
82
+ namedTpl.resolveName();
83
+ tplMap.set(namedTpl.named, namedTpl.template);
84
+ }
85
+ });
86
+ return;
87
+ }
88
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyBoxTemplates, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
89
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: FormlyBoxTemplates, isStandalone: true, selector: "[formly-box]", inputs: { templateList: ["formly-box", "templateList"] }, outputs: { templateChange: "templateChange" }, queries: [{ propertyName: "namedTemplate", predicate: NamedTemplate }], exportAs: ["FormlyBox"], usesOnChanges: true, ngImport: i0 }); }
90
+ }
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyBoxTemplates, decorators: [{
92
+ type: Directive,
93
+ args: [{
94
+ // eslint-disable-next-line @angular-eslint/directive-selector
95
+ selector: '[formly-box]',
96
+ standalone: true,
97
+ exportAs: 'FormlyBox'
98
+ }]
99
+ }], propDecorators: { templateList: [{
100
+ type: Input,
101
+ args: ['formly-box']
102
+ }], templateChange: [{
103
+ type: Output
104
+ }], namedTemplate: [{
105
+ type: ContentChildren,
106
+ args: [NamedTemplate]
107
+ }] } });
108
+
109
+ const COMPONENT = [FormlyBoxTemplates, NamedTemplate];
110
+ class FormlyCommonModule {
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
112
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule, FormlyBoxTemplates, NamedTemplate], exports: [FormlyBoxTemplates, NamedTemplate] }); }
113
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule] }); }
114
+ }
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyCommonModule, decorators: [{
116
+ type: NgModule,
117
+ args: [{
118
+ imports: [CommonModule, ...COMPONENT],
119
+ exports: COMPONENT
120
+ }]
121
+ }] });
122
+
123
+ /**
124
+ * 根据属性名获取模板名称
125
+ * @param propName 属性名
126
+ */
127
+ function getTplName(propName) {
128
+ return `${propName}Name`;
129
+ }
130
+ /**
131
+ * 处理属性为模板类型, 根据模板名称处理成模板对象
132
+ * @param value 数据对象
133
+ * @param fieldTemplates 模板容器
134
+ * @param propName 属性名
135
+ * @param propTemplateName 模板属性名称
136
+ */
137
+ function resolveTplName(value, fieldTemplates, propName, propTemplateName) {
138
+ if (value[propName]) {
139
+ return value[propName];
140
+ }
141
+ if (!fieldTemplates) {
142
+ return undefined;
143
+ }
144
+ const tplName = propTemplateName || getTplName(propName);
145
+ return fieldTemplates.get(value[tplName]);
146
+ }
147
+ /**
148
+ * 处理属性为模板类型, 根据模板名称处理成模板对象列表
149
+ * @param value 数据对象
150
+ * @param fieldTemplates 模板容器
151
+ * @param propName 属性名
152
+ * @param propTemplateName 模板属性名称
153
+ */
154
+ function resolveTplNameArray(value, fieldTemplates, propName, propTemplateName) {
155
+ if (value[propName] != null) {
156
+ return value[propName];
157
+ }
158
+ if (!fieldTemplates) {
159
+ return [];
160
+ }
161
+ const tplName = propTemplateName || getTplName(propName);
162
+ const tplValue = value[tplName];
163
+ if (Array.isArray(tplValue)) {
164
+ return tplValue.map(key => fieldTemplates.get(key)).filter(tpl => tpl);
165
+ }
166
+ return [];
167
+ }
168
+
169
+ /**
170
+ * Generated bundle index. Do not edit.
171
+ */
172
+
173
+ export { FormlyBoxTemplates, FormlyCommonModule, getTplName, resolveTplName, resolveTplNameArray };
174
+ //# sourceMappingURL=ngx-formly-zorro-antd-common.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-common.mjs","sources":["../../../../packages/formlyantd/common/formly-box-templates.directive.ts","../../../../packages/formlyantd/common/common.module.ts","../../../../packages/formlyantd/common/formly-utils.ts","../../../../packages/formlyantd/common/ngx-formly-zorro-antd-common.ts"],"sourcesContent":["import {\n AfterContentInit,\n ContentChildren,\n Directive,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n QueryList,\n SimpleChange,\n SimpleChanges,\n TemplateRef\n} from '@angular/core';\nimport { NamedTemplate } from '@pkt/ng.core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[formly-box]',\n standalone: true,\n exportAs: 'FormlyBox'\n})\nexport class FormlyBoxTemplates implements AfterContentInit, OnChanges {\n private tplMap = new Map<string, TemplateRef<NzSafeAny>>();\n @Input('formly-box') templateList?: TemplateList;\n @Output() templateChange = new EventEmitter<Map<string, TemplateRef<NzSafeAny>>>();\n @ContentChildren(NamedTemplate) namedTemplate!: QueryList<NamedTemplate<NzSafeAny>>;\n\n get templates(): Map<string, TemplateRef<NzSafeAny>> {\n return this.tplMap;\n }\n\n /**\n * 根据模板名称获取TemplateRef\n * @param templateName 模板名称\n */\n get(templateName: string): TemplateRef<NzSafeAny> | undefined {\n return this.tplMap.get(templateName);\n }\n\n ngAfterContentInit(): void {\n this.update();\n this.namedTemplate.changes.subscribe(() => {\n this.update();\n });\n }\n update(emitChange = true) {\n this.tplMap.clear();\n this.mergeTemplate(this.tplMap, emitChange);\n }\n\n ngOnChanges(changes: { [K in keyof this]?: SimpleChange } & SimpleChanges): void {\n if (changes.templateList && !changes.templateList.isFirstChange()) {\n this.update();\n }\n }\n\n /**\n * 合并参数模板\n * @param tplMap\n * @param emitChange\n */\n mergeTemplate(tplMap: Map<string, TemplateRef<NzSafeAny>>, emitChange = true) {\n this.mergeTemplates(tplMap, this.templateList);\n this.mergeQueryTemplate(tplMap, this.namedTemplate);\n\n if (emitChange) {\n this.templateChange.emit(tplMap);\n }\n }\n\n /**\n * 合并content 模板\n * @param tplMap\n * @param templateList\n * @private\n */\n private mergeQueryTemplate(\n tplMap: Map<string, TemplateRef<NzSafeAny>>,\n templateList?: QueryList<NamedTemplate<NzSafeAny>>\n ): void {\n if (templateList) {\n templateList.forEach(v => {\n tplMap.set(v.named, v.template);\n });\n }\n }\n\n /**\n * 合并模板列表\n * @param tplMap 模板Map\n * @param templateList\n */\n private mergeTemplates(\n tplMap: Map<string, TemplateRef<NzSafeAny>>,\n templateList?: TemplateList\n ): void {\n if (!templateList) {\n return;\n }\n\n if (templateList instanceof TemplateRef) {\n const namedTpl = new NamedTemplate(templateList);\n namedTpl.resolveName();\n tplMap.set(namedTpl.named, namedTpl.template);\n return;\n }\n\n templateList.forEach(v => {\n if (v instanceof NamedTemplate) {\n tplMap.set(v.named, v.template);\n } else {\n const namedTpl = new NamedTemplate(v);\n namedTpl.resolveName();\n tplMap.set(namedTpl.named, namedTpl.template);\n }\n });\n\n return;\n }\n}\n\n/**\n * 模板列表\n */\nexport type TemplateList =\n | QueryList<TemplateRef<NzSafeAny>>\n | QueryList<NamedTemplate<NzSafeAny>>\n | NamedTemplate<NzSafeAny>[]\n | TemplateRef<NzSafeAny>;\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyBoxTemplates } from './formly-box-templates.directive';\nimport { NamedTemplate } from '@pkt/ng.core';\n\nconst COMPONENT = [FormlyBoxTemplates, NamedTemplate];\n\n@NgModule({\n imports: [CommonModule, ...COMPONENT],\n exports: COMPONENT\n})\nexport class FormlyCommonModule {}\n","import { TemplateRef } from '@angular/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { FormlyBoxTemplates } from './formly-box-templates.directive';\n\n/**\n * 根据属性名获取模板名称\n * @param propName 属性名\n */\nexport function getTplName(propName: string) {\n return `${propName}Name`;\n}\n\n/**\n * 处理属性为模板类型, 根据模板名称处理成模板对象\n * @param value 数据对象\n * @param fieldTemplates 模板容器\n * @param propName 属性名\n * @param propTemplateName 模板属性名称\n */\nexport function resolveTplName<T = NzSafeAny>(\n value: NzSafeAny,\n fieldTemplates: FormlyBoxTemplates,\n propName: string,\n propTemplateName?: string\n): TemplateRef<T> | undefined {\n if (value[propName]) {\n return value[propName];\n }\n if (!fieldTemplates) {\n return undefined;\n }\n const tplName = propTemplateName || getTplName(propName);\n return fieldTemplates.get(value[tplName]);\n}\n\n/**\n * 处理属性为模板类型, 根据模板名称处理成模板对象列表\n * @param value 数据对象\n * @param fieldTemplates 模板容器\n * @param propName 属性名\n * @param propTemplateName 模板属性名称\n */\nexport function resolveTplNameArray<T = NzSafeAny>(\n value: NzSafeAny,\n fieldTemplates: FormlyBoxTemplates,\n propName: string,\n propTemplateName?: string\n): TemplateRef<T>[] {\n if (value[propName] != null) {\n return value[propName];\n }\n if (!fieldTemplates) {\n return [];\n }\n const tplName = propTemplateName || getTplName(propName);\n const tplValue = value[tplName];\n if (Array.isArray(tplValue)) {\n return tplValue.map(key => fieldTemplates.get(key)).filter(tpl => tpl) as TemplateRef<T>[];\n }\n return [];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAsBa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;AAOU,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,GAAG,EAAkC,CAAC;AAEjD,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,YAAY,EAAuC,CAAC;AA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