ngx-formly-zorro-antd 18.0.0 → 18.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/datepicker/datepicker.props.d.ts +26 -20
  2. package/esm2022/button/button.module.mjs +5 -5
  3. package/esm2022/button/button.type.mjs +4 -4
  4. package/esm2022/button-group/button-group.module.mjs +5 -5
  5. package/esm2022/button-group/button-group.type.mjs +8 -8
  6. package/esm2022/card/card.module.mjs +5 -5
  7. package/esm2022/card/card.type.mjs +4 -4
  8. package/esm2022/card-wrapper/card-wrapper.module.mjs +5 -5
  9. package/esm2022/card-wrapper/card.wrapper.mjs +4 -4
  10. package/esm2022/cascader/cascader.module.mjs +5 -5
  11. package/esm2022/cascader/cascader.type.mjs +4 -4
  12. package/esm2022/checkbox/checkbox.module.mjs +5 -5
  13. package/esm2022/checkbox/checkbox.type.mjs +4 -4
  14. package/esm2022/common/common.module.mjs +5 -5
  15. package/esm2022/common/formly-box-templates.directive.mjs +4 -4
  16. package/esm2022/datepicker/datepicker.module.mjs +5 -5
  17. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  18. package/esm2022/datepicker/datepicker.type.mjs +8 -4
  19. package/esm2022/flex/flex.module.mjs +5 -5
  20. package/esm2022/flex/flex.type.mjs +4 -4
  21. package/esm2022/form-field/form-field.module.mjs +5 -5
  22. package/esm2022/form-field/form-field.wrapper.mjs +4 -4
  23. package/esm2022/grid/grid.module.mjs +5 -5
  24. package/esm2022/grid/grid.type.mjs +4 -4
  25. package/esm2022/input/input.module.mjs +5 -5
  26. package/esm2022/input/input.type.mjs +4 -4
  27. package/esm2022/input-group/input-group.module.mjs +5 -5
  28. package/esm2022/input-group/input-group.type.mjs +4 -4
  29. package/esm2022/input-number/input-number.module.mjs +5 -5
  30. package/esm2022/input-number/input-number.type.mjs +4 -4
  31. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +5 -5
  32. package/esm2022/radio/radio.module.mjs +5 -5
  33. package/esm2022/radio/radio.type.mjs +4 -4
  34. package/esm2022/rate/rate.module.mjs +5 -5
  35. package/esm2022/rate/rate.type.mjs +4 -4
  36. package/esm2022/ref-template/ref-template.module.mjs +5 -5
  37. package/esm2022/ref-template/ref-template.type.mjs +4 -4
  38. package/esm2022/select/select.module.mjs +5 -5
  39. package/esm2022/select/select.type.mjs +4 -4
  40. package/esm2022/slider/slider.module.mjs +5 -5
  41. package/esm2022/slider/slider.type.mjs +4 -4
  42. package/esm2022/space/space.module.mjs +5 -5
  43. package/esm2022/space/space.type.mjs +4 -4
  44. package/esm2022/switch/switch.module.mjs +5 -5
  45. package/esm2022/switch/switch.type.mjs +4 -4
  46. package/esm2022/tabs/tabs.module.mjs +5 -5
  47. package/esm2022/tabs/tabs.props.mjs +1 -1
  48. package/esm2022/tabs/tabs.wrapper.mjs +15 -9
  49. package/esm2022/text-value/text-value.module.mjs +5 -5
  50. package/esm2022/text-value/text-value.type.mjs +4 -4
  51. package/esm2022/textarea/textarea.module.mjs +5 -5
  52. package/esm2022/textarea/textarea.type.mjs +4 -4
  53. package/esm2022/timepicker/timepicker.module.mjs +5 -5
  54. package/esm2022/timepicker/timepicker.type.mjs +4 -4
  55. package/esm2022/transfer/transfer.component.mjs +4 -4
  56. package/esm2022/transfer/transfer.module.mjs +5 -5
  57. package/esm2022/transfer/transfer.type.mjs +4 -4
  58. package/esm2022/tree-select/tree-select.module.mjs +5 -5
  59. package/esm2022/tree-select/tree-select.type.mjs +9 -6
  60. package/esm2022/upload/upload.component.mjs +4 -4
  61. package/esm2022/upload/upload.module.mjs +5 -5
  62. package/esm2022/upload/upload.type.mjs +4 -4
  63. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +11 -11
  64. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  65. package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
  66. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  67. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -7
  68. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  69. package/fesm2022/ngx-formly-zorro-antd-card.mjs +7 -7
  70. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  71. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
  72. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  73. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
  74. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  75. package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
  76. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  77. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +11 -7
  78. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  79. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +7 -7
  80. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
  81. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +7 -7
  82. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  83. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
  84. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  85. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
  86. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  87. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
  88. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  89. package/fesm2022/ngx-formly-zorro-antd-input.mjs +7 -7
  90. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  91. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
  92. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  93. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
  94. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  95. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
  96. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  97. package/fesm2022/ngx-formly-zorro-antd-select.mjs +7 -7
  98. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  99. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
  100. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  101. package/fesm2022/ngx-formly-zorro-antd-space.mjs +7 -7
  102. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  103. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
  104. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  105. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +18 -12
  106. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  107. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +7 -7
  108. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  109. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
  110. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  111. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
  112. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  113. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
  114. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  115. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +12 -9
  116. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  117. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
  118. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  119. package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
  120. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  121. package/package.json +26 -26
  122. package/tabs/tabs.props.d.ts +46 -32
  123. package/timepicker/timepicker.type.d.ts +2 -1
  124. package/tree-select/tree-select.type.d.ts +3 -1
@@ -32,14 +32,17 @@ class FormlyFieldTreeSelect extends FieldType {
32
32
  get nzExpandedIcon() {
33
33
  return resolveTplName(this.props, this.fieldTemplates, 'expandedIcon');
34
34
  }
35
+ get nzNotFoundContent() {
36
+ return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');
37
+ }
35
38
  get nzMaxTagPlaceholder() {
36
39
  return resolveTplName(this.props, this.fieldTemplates, 'maxTagPlaceholder');
37
40
  }
38
41
  get nzTreeTemplate() {
39
42
  return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');
40
43
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldTreeSelect, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
42
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTreeSelect, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
45
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
43
46
  [formControl]="formControl"
44
47
  [nzId]="id"
45
48
  [nzPlaceHolder]="props.placeholder ?? ''"
@@ -49,7 +52,7 @@ class FormlyFieldTreeSelect extends FieldType {
49
52
  [nzExpandedIcon]="nzExpandedIcon"
50
53
  [nzShowIcon]="!!props['showIcon']"
51
54
  [nzShowSearch]="!!props['showSearch']"
52
- [nzNotFoundContent]="props['notFoundContent']"
55
+ [nzNotFoundContent]="nzNotFoundContent"
53
56
  [nzDropdownMatchSelectWidth]="!!props['dropdownMatchSelectWidth']"
54
57
  [nzDropdownStyle]="props['dropdownStyle'] ?? null"
55
58
  [nzDropdownClassName]="props['dropdownClassName']"
@@ -76,7 +79,7 @@ class FormlyFieldTreeSelect extends FieldType {
76
79
  (nzExpandChange)="props['expandChange']?.(field, $event)"
77
80
  ></nz-tree-select>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
78
81
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
80
83
  type: Component,
81
84
  args: [{
82
85
  selector: 'formly-field-treeselect',
@@ -90,7 +93,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
90
93
  [nzExpandedIcon]="nzExpandedIcon"
91
94
  [nzShowIcon]="!!props['showIcon']"
92
95
  [nzShowSearch]="!!props['showSearch']"
93
- [nzNotFoundContent]="props['notFoundContent']"
96
+ [nzNotFoundContent]="nzNotFoundContent"
94
97
  [nzDropdownMatchSelectWidth]="!!props['dropdownMatchSelectWidth']"
95
98
  [nzDropdownStyle]="props['dropdownStyle'] ?? null"
96
99
  [nzDropdownClassName]="props['dropdownClassName']"
@@ -123,12 +126,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
123
126
  }] }] });
124
127
 
125
128
  class FormlyNzTreeSelectModule {
126
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
127
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
130
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
128
131
  ReactiveFormsModule,
129
132
  FormlyNzFormFieldModule,
130
133
  NzTreeSelectModule, i1$1.FormlyModule] }); }
131
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
134
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
132
135
  ReactiveFormsModule,
133
136
  FormlyNzFormFieldModule,
134
137
  NzTreeSelectModule,
@@ -142,7 +145,7 @@ class FormlyNzTreeSelectModule {
142
145
  ]
143
146
  })] }); }
144
147
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
146
149
  type: NgModule,
147
150
  args: [{
148
151
  declarations: [FormlyFieldTreeSelect],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, Optional, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent, NgStyleType } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\nimport type { NzPlacementType } from 'ng-zorro-antd/tree-select';\n\n/**\n * @publicApi\n */\nexport interface TreeSelectProps extends FormlyFieldProps {\n /**\n * 显示清除按钮\n * @default false\n */\n allowClear?: boolean;\n\n /**\n * 是否展示 TreeNode title 前的图标,没有默认样式\n * @default false\n */\n showIcon?: boolean;\n\n /**\n * 显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string;\n\n /**\n * 下拉菜单和选择器同宽\n * @default true\n */\n dropdownMatchSelectWidth?: boolean;\n\n /**\n * 下拉菜单的样式\n */\n dropdownStyle?: NgStyleType;\n\n /**\n * 下拉菜单的 className 属性\n */\n dropdownClassName?: string;\n\n /**\n * 选择框弹出的位置\n */\n placement?: NzPlacementType;\n\n /**\n * 支持多选(当设置 nzCheckable 时自动变为true)\n * @default false\n */\n multiple?: boolean;\n\n /**\n * 搜索隐藏未匹配的节点\n * @default false\n */\n hideUnMatched?: boolean;\n\n /**\n * 节点前添加 Checkbox 复选框\n * @default false\n */\n checkable?: boolean;\n\n /**\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\n * @default false\n */\n checkStrictly?: boolean;\n\n /**\n * 节点前添加展开图标\n * @default true\n */\n showExpand?: boolean;\n\n /**\n * 是否展示连接线\n * @default false\n */\n showLine?: boolean;\n\n /**\n * 是否异步加载(显示加载状态)\n * @default false\n */\n asyncData?: boolean;\n\n /**\n * treeNodes 数据\n * @default []\n */\n nodes?: NzTreeNodeOptions[];\n\n /**\n * 默认展开所有树节点\n * @default false\n */\n defaultExpandAll?: boolean;\n\n /**\n * 默认展开指定的树节点\n */\n expandedKeys?: string[];\n\n /**\n * \t如何在输入框显示所选的节点值的方法\n * @default (node: NzTreeNode) => node.title\n */\n displayWith?: (node: NzTreeNode) => string;\n\n /**\n * 最多显示多少个 tag\n *\n */\n maxTagCount?: number;\n\n /**\n * 隐藏 tag 时显示的内容\n */\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\n maxTagPlaceholderName?: string;\n\n /**\n * 自定义节点\n */\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\n treeTemplateName?: string;\n\n /**\n * 自定义展开图标\n */\n expandedIcon?: TemplateRef<{\n $implicit: NzTreeNode;\n origin: NzTreeNodeOptions;\n }>;\n expandedIconName?: string;\n\n /**\n * 虚拟滚动的总高度\n */\n virtualHeight?: string | null;\n\n /**\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\n * @default 28\n */\n virtualItemSize?: number;\n\n /**\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\n * @default 500\n */\n virtualMaxBufferPx?: number;\n\n /**\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\n * @default 28\n */\n virtualMinBufferPx?: number;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击展开树节点图标调用\n */\n expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;\n}\n\nexport interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-treeselect',\n template: ` <nz-tree-select\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzAllowClear]=\"!!props['allowClear']\"\n [nzExpandedIcon]=\"nzExpandedIcon\"\n [nzShowIcon]=\"!!props['showIcon']\"\n [nzShowSearch]=\"!!props['showSearch']\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzDropdownMatchSelectWidth]=\"!!props['dropdownMatchSelectWidth']\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzMultiple]=\"!!props['multiple']\"\n [nzHideUnMatched]=\"!!props['hideUnMatched']\"\n [nzCheckable]=\"!!props['checkable']\"\n [nzCheckStrictly]=\"!!props['checkStrictly']\"\n [nzShowExpand]=\"!!props['showExpand']\"\n [nzShowLine]=\"!!props['showLine']\"\n [nzAsyncData]=\"!!props['asyncData']\"\n [nzNodes]=\"props['nodes']!\"\n [nzDefaultExpandAll]=\"!!props['defaultExpandAll']\"\n [nzExpandedKeys]=\"props['expandedKeys']\"\n [nzDisplayWith]=\"props['displayWith']\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzPlacement]=\"props['placement'] ?? ''\"\n [nzMaxTagPlaceholder]=\"nzMaxTagPlaceholder ?? null\"\n [nzTreeTemplate]=\"nzTreeTemplate!\"\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\n [nzBackdrop]=\"!!props['backdrop']\"\n (nzExpandChange)=\"props['expandChange']?.(field, $event)\"\n ></nz-tree-select>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n dropdownMatchSelectWidth: true,\n showExpand: true,\n nodes: [],\n displayWith: (node: NzTreeNode) => node.title,\n virtualItemSize: 28,\n virtualMaxBufferPx: 500,\n virtualMinBufferPx: 28\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzExpandedIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandedIcon');\n }\n\n get nzMaxTagPlaceholder() {\n return resolveTplName(this.props, this.fieldTemplates, 'maxTagPlaceholder');\n }\n get nzTreeTemplate() {\n return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');\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';\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\nimport { FormlyFieldTreeSelect } from './tree-select.type';\n\n@NgModule({\n declarations: [FormlyFieldTreeSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzTreeSelectModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'tree-select',\n component: FormlyFieldTreeSelect,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTreeSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA0LA;AAyCM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAanE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAZxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,CAAC,IAAgB,KAAK,IAAI,CAAC,KAAK;AAC7C,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,kBAAkB,EAAE,GAAG;AACvB,gBAAA,kBAAkB,EAAE,EAAE;AACvB,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;KACxE;AAED,IAAA,IAAI,mBAAmB,GAAA;AACrB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC;KAC7E;AACD,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,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Z,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB,EAAAA,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAaT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAhBjC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB;YAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAnBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, Optional, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent, NgStyleType } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\nimport type { NzPlacementType } from 'ng-zorro-antd/tree-select';\n\n/**\n * @publicApi\n */\nexport interface TreeSelectProps extends FormlyFieldProps {\n /**\n * 显示清除按钮\n * @default false\n */\n allowClear?: boolean;\n\n /**\n * 是否展示 TreeNode title 前的图标,没有默认样式\n * @default false\n */\n showIcon?: boolean;\n\n /**\n * 显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n notFoundContentName?: string;\n\n /**\n * 下拉菜单和选择器同宽\n * @default true\n */\n dropdownMatchSelectWidth?: boolean;\n\n /**\n * 下拉菜单的样式\n */\n dropdownStyle?: NgStyleType;\n\n /**\n * 下拉菜单的 className 属性\n */\n dropdownClassName?: string;\n\n /**\n * 选择框弹出的位置\n */\n placement?: NzPlacementType;\n\n /**\n * 支持多选(当设置 nzCheckable 时自动变为true)\n * @default false\n */\n multiple?: boolean;\n\n /**\n * 搜索隐藏未匹配的节点\n * @default false\n */\n hideUnMatched?: boolean;\n\n /**\n * 节点前添加 Checkbox 复选框\n * @default false\n */\n checkable?: boolean;\n\n /**\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\n * @default false\n */\n checkStrictly?: boolean;\n\n /**\n * 节点前添加展开图标\n * @default true\n */\n showExpand?: boolean;\n\n /**\n * 是否展示连接线\n * @default false\n */\n showLine?: boolean;\n\n /**\n * 是否异步加载(显示加载状态)\n * @default false\n */\n asyncData?: boolean;\n\n /**\n * treeNodes 数据\n * @default []\n */\n nodes?: NzTreeNodeOptions[];\n\n /**\n * 默认展开所有树节点\n * @default false\n */\n defaultExpandAll?: boolean;\n\n /**\n * 默认展开指定的树节点\n */\n expandedKeys?: string[];\n\n /**\n * \t如何在输入框显示所选的节点值的方法\n * @default (node: NzTreeNode) => node.title\n */\n displayWith?: (node: NzTreeNode) => string;\n\n /**\n * 最多显示多少个 tag\n *\n */\n maxTagCount?: number;\n\n /**\n * 隐藏 tag 时显示的内容\n */\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\n maxTagPlaceholderName?: string;\n\n /**\n * 自定义节点\n */\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\n treeTemplateName?: string;\n\n /**\n * 自定义展开图标\n */\n expandedIcon?: TemplateRef<{\n $implicit: NzTreeNode;\n origin: NzTreeNodeOptions;\n }>;\n expandedIconName?: string;\n\n /**\n * 虚拟滚动的总高度\n */\n virtualHeight?: string | null;\n\n /**\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\n * @default 28\n */\n virtualItemSize?: number;\n\n /**\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\n * @default 500\n */\n virtualMaxBufferPx?: number;\n\n /**\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\n * @default 28\n */\n virtualMinBufferPx?: number;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击展开树节点图标调用\n */\n expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;\n}\n\nexport interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-treeselect',\n template: ` <nz-tree-select\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzAllowClear]=\"!!props['allowClear']\"\n [nzExpandedIcon]=\"nzExpandedIcon\"\n [nzShowIcon]=\"!!props['showIcon']\"\n [nzShowSearch]=\"!!props['showSearch']\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzDropdownMatchSelectWidth]=\"!!props['dropdownMatchSelectWidth']\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzMultiple]=\"!!props['multiple']\"\n [nzHideUnMatched]=\"!!props['hideUnMatched']\"\n [nzCheckable]=\"!!props['checkable']\"\n [nzCheckStrictly]=\"!!props['checkStrictly']\"\n [nzShowExpand]=\"!!props['showExpand']\"\n [nzShowLine]=\"!!props['showLine']\"\n [nzAsyncData]=\"!!props['asyncData']\"\n [nzNodes]=\"props['nodes']!\"\n [nzDefaultExpandAll]=\"!!props['defaultExpandAll']\"\n [nzExpandedKeys]=\"props['expandedKeys']\"\n [nzDisplayWith]=\"props['displayWith']\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzPlacement]=\"props['placement'] ?? ''\"\n [nzMaxTagPlaceholder]=\"nzMaxTagPlaceholder ?? null\"\n [nzTreeTemplate]=\"nzTreeTemplate!\"\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\n [nzBackdrop]=\"!!props['backdrop']\"\n (nzExpandChange)=\"props['expandChange']?.(field, $event)\"\n ></nz-tree-select>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n dropdownMatchSelectWidth: true,\n showExpand: true,\n nodes: [],\n displayWith: (node: NzTreeNode) => node.title,\n virtualItemSize: 28,\n virtualMaxBufferPx: 500,\n virtualMinBufferPx: 28\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzExpandedIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandedIcon');\n }\n\n get nzNotFoundContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\n }\n\n get nzMaxTagPlaceholder() {\n return resolveTplName(this.props, this.fieldTemplates, 'maxTagPlaceholder');\n }\n get nzTreeTemplate() {\n return resolveTplName(this.props, this.fieldTemplates, 'treeTemplate');\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';\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\nimport { FormlyFieldTreeSelect } from './tree-select.type';\n\n@NgModule({\n declarations: [FormlyFieldTreeSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzTreeSelectModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'tree-select',\n component: FormlyFieldTreeSelect,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTreeSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA2LA;AAyCM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAanE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAZxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,CAAC,IAAgB,KAAK,IAAI,CAAC,KAAK;AAC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,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
@@ -56,8 +56,8 @@ class UploadNzComponent extends NzUploadComponent {
56
56
  }
57
57
  }
58
58
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
60
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.7", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: ["nzeShowUploadButton", "nzeShowUploadButton", booleanAttribute], nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", ngClass: "ngClass", resultMap: "resultMap" }, providers: [
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
60
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: ["nzeShowUploadButton", "nzeShowUploadButton", booleanAttribute], nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", ngClass: "ngClass", resultMap: "resultMap" }, providers: [
61
61
  {
62
62
  provide: NG_VALUE_ACCESSOR,
63
63
  useExisting: forwardRef(() => UploadNzComponent),
@@ -136,7 +136,7 @@ class UploadNzComponent extends NzUploadComponent {
136
136
  </nz-upload>
137
137
  `, 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 }); }
138
138
  }
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: UploadNzComponent, decorators: [{
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: UploadNzComponent, decorators: [{
140
140
  type: Component,
141
141
  args: [{
142
142
  selector: 'formly-nz-upload',
@@ -272,8 +272,8 @@ class FormlyFieldUpload extends FieldType {
272
272
  get nzFileListRender() {
273
273
  return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
274
274
  }
275
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1$1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
276
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", 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
275
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1$1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
276
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", 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
277
277
  #upload
278
278
  [formControl]="formControl"
279
279
  [formlyAttributes]="field"
@@ -316,7 +316,7 @@ class FormlyFieldUpload extends FieldType {
316
316
  >
317
317
  </formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "ngClass", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
318
318
  }
319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldUpload, decorators: [{
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldUpload, decorators: [{
320
320
  type: Component,
321
321
  args: [{
322
322
  selector: 'formly-field-upload',
@@ -372,14 +372,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
372
372
  }] } });
373
373
 
374
374
  class FormlyNzUploadModule {
375
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
376
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
375
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
376
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
377
377
  ReactiveFormsModule,
378
378
  FormlyNzFormFieldModule,
379
379
  NzUploadModule,
380
380
  NzButtonModule,
381
381
  NzIconModule, i4$1.FormlyModule] }); }
382
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
382
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
383
383
  ReactiveFormsModule,
384
384
  FormlyNzFormFieldModule,
385
385
  NzUploadModule,
@@ -395,7 +395,7 @@ class FormlyNzUploadModule {
395
395
  ]
396
396
  })] }); }
397
397
  }
398
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
399
399
  type: NgModule,
400
400
  args: [{
401
401
  declarations: [FormlyFieldUpload, UploadNzComponent],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n/**\n * @private\n */\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"!!props['directory']\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props.name ?? ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzChange)=\"props.change?.(field, $event)\"\n (nzFileListChange)=\"props['fileListChange']?.(field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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';\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAgBA;;AAEG;AAqFG,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;AAOF,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;AAED,IAAA,cAAc,CAAC,IAAoB,EAAA;AACjC,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;AAED,IAAA,MAAM,CAAC,KAA0B,EAAA;AAC/B,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,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aAEjD,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,cAAc;YACd,cAAc;YACd,YAAY,EAAAJ,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAaH,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAlB7B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,cAAc;YACd,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;AACpD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n booleanAttribute,\n Input,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { NgClassType } from 'ngx-formly-zorro-antd/common';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n/**\n * @private\n */\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"ngClass\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n @switch (nzType) {\n @case ('drag') {\n <p class=\"ant-upload-drag-icon\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n }\n @default {\n @if (nzeShowUploadButton !== false) {\n <button type=\"button\" nz-button [disabled]=\"nzDisabled!!\">\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n </button>\n } @else if (nzeShowUploadButton === false) {\n <div>\n <ng-container *ngTemplateOutlet=\"uploadButtonIconTpl\"></ng-container>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n }\n }\n }\n\n <ng-template #uploadButtonIconTpl>\n @if (nzeUploadButtonIcon) {\n <span\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n }\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input({ transform: booleanAttribute }) nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() ngClass?: NgClassType;\n\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit, Optional } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nexport interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"!!props['directory']\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props.name ?? ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"nzIconRender ?? null\"\n [nzFileListRender]=\"nzFileListRender ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [ngClass]=\"props['ngClass']\"\n (nzChange)=\"props.change?.(field, $event)\"\n (nzFileListChange)=\"props['fileListChange']?.(field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\n }\n }\n\n get nzIconRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'iconRender');\n }\n\n get nzFileListRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');\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';\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3","i4","i5.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAgBA;;AAEG;AAqFG,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AApFxD,IAAA,WAAA,GAAA;;;AAkGW,QAAA,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;AAOF,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;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,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -29,8 +29,8 @@ import { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';
29
29
  import { FormlyNzFlexModule } from 'ngx-formly-zorro-antd/flex';
30
30
 
31
31
  class FormlyNgAntdModule {
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
33
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyCommonModule,
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNgAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
33
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyCommonModule,
34
34
  FormlyRefTemplateModule,
35
35
  FormlyNzFormFieldModule,
36
36
  FormlyNzInputModule,
@@ -57,7 +57,7 @@ class FormlyNgAntdModule {
57
57
  FormlyNzGridModule,
58
58
  FormlyNzSpaceModule,
59
59
  FormlyNzFlexModule], exports: [FormlyCommonModule] }); }
60
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyCommonModule,
60
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyCommonModule,
61
61
  FormlyRefTemplateModule,
62
62
  FormlyNzFormFieldModule,
63
63
  FormlyNzInputModule,
@@ -85,7 +85,7 @@ class FormlyNgAntdModule {
85
85
  FormlyNzSpaceModule,
86
86
  FormlyNzFlexModule, FormlyCommonModule] }); }
87
87
  }
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNgAntdModule, decorators: [{
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNgAntdModule, decorators: [{
89
89
  type: NgModule,
90
90
  args: [{
91
91
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd.mjs","sources":["../../../../packages/formlyantd/src/lib/ui-ng-zorro-antd.module.ts","../../../../packages/formlyantd/src/ngx-formly-zorro-antd.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\nimport { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\nimport { FormlyNzButtonGroupModule } from 'ngx-formly-zorro-antd/button-group';\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\nimport { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';\nimport { FormlyNzFlexModule } from 'ngx-formly-zorro-antd/flex';\n\n@NgModule({\n imports: [\n FormlyCommonModule,\n FormlyRefTemplateModule,\n FormlyNzFormFieldModule,\n FormlyNzInputModule,\n FormlyNzInputNumberModule,\n FormlyNzInputGroupModule,\n FormlyNzTextareaModule,\n FormlyNzRadioModule,\n FormlyNzCheckboxModule,\n FormlyNzSelectModule,\n FormlyNzSwitchModule,\n FormlyNzCascaderModule,\n FormlyNzDatepickerModule,\n FormlyNzRateModule,\n FormlyNzSliderModule,\n FormlyNzTimepickerModule,\n FormlyNzTransferModule,\n FormlyNzTreeSelectModule,\n FormlyNzUploadModule,\n FormlyNzTabsModule,\n FormlyNzCardModule,\n FormlyNzCardWrapperModule,\n FormlyNzButtonModule,\n FormlyNzButtonGroupModule,\n FormlyNzGridModule,\n FormlyNzSpaceModule,\n FormlyNzFlexModule\n ],\n exports: [FormlyCommonModule]\n})\nexport class FormlyNgAntdModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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;YAClB,yBAAyB;YACzB,oBAAoB;YACpB,yBAAyB;YACzB,kBAAkB;YAClB,mBAAmB;AACnB,YAAA,kBAAkB,EAEV,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEjB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhC9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,kBAAkB;wBAClB,uBAAuB;wBACvB,uBAAuB;wBACvB,mBAAmB;wBACnB,yBAAyB;wBACzB,wBAAwB;wBACxB,sBAAsB;wBACtB,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,oBAAoB;wBACpB,sBAAsB;wBACtB,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,wBAAwB;wBACxB,sBAAsB;wBACtB,wBAAwB;wBACxB,oBAAoB;wBACpB,kBAAkB;wBAClB,kBAAkB;wBAClB,yBAAyB;wBACzB,oBAAoB;wBACpB,yBAAyB;wBACzB,kBAAkB;wBAClB,mBAAmB;wBACnB,kBAAkB;AACnB,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;AC7DD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd.mjs","sources":["../../../../packages/formlyantd/src/lib/ui-ng-zorro-antd.module.ts","../../../../packages/formlyantd/src/ngx-formly-zorro-antd.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { FormlyRefTemplateModule } from 'ngx-formly-zorro-antd/ref-template';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\nimport { FormlyNzCardWrapperModule } from 'ngx-formly-zorro-antd/card-wrapper';\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\nimport { FormlyNzButtonGroupModule } from 'ngx-formly-zorro-antd/button-group';\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\nimport { FormlyNzSpaceModule } from 'ngx-formly-zorro-antd/space';\nimport { FormlyNzFlexModule } from 'ngx-formly-zorro-antd/flex';\n\n@NgModule({\n imports: [\n FormlyCommonModule,\n FormlyRefTemplateModule,\n FormlyNzFormFieldModule,\n FormlyNzInputModule,\n FormlyNzInputNumberModule,\n FormlyNzInputGroupModule,\n FormlyNzTextareaModule,\n FormlyNzRadioModule,\n FormlyNzCheckboxModule,\n FormlyNzSelectModule,\n FormlyNzSwitchModule,\n FormlyNzCascaderModule,\n FormlyNzDatepickerModule,\n FormlyNzRateModule,\n FormlyNzSliderModule,\n FormlyNzTimepickerModule,\n FormlyNzTransferModule,\n FormlyNzTreeSelectModule,\n FormlyNzUploadModule,\n FormlyNzTabsModule,\n FormlyNzCardModule,\n FormlyNzCardWrapperModule,\n FormlyNzButtonModule,\n FormlyNzButtonGroupModule,\n FormlyNzGridModule,\n FormlyNzSpaceModule,\n FormlyNzFlexModule\n ],\n exports: [FormlyCommonModule]\n})\nexport class FormlyNgAntdModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8Da,kBAAkB,CAAA;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YA9B3B,kBAAkB;YAClB,uBAAuB;YACvB,uBAAuB;YACvB,mBAAmB;YACnB,yBAAyB;YACzB,wBAAwB;YACxB,sBAAsB;YACtB,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,oBAAoB;YACpB,sBAAsB;YACtB,wBAAwB;YACxB,kBAAkB;YAClB,oBAAoB;YACpB,wBAAwB;YACxB,sBAAsB;YACtB,wBAAwB;YACxB,oBAAoB;YACpB,kBAAkB;YAClB,kBAAkB;YAClB,yBAAyB;YACzB,oBAAoB;YACpB,yBAAyB;YACzB,kBAAkB;YAClB,mBAAmB;AACnB,YAAA,kBAAkB,aAEV,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YA9B3B,kBAAkB;YAClB,uBAAuB;YACvB,uBAAuB;YACvB,mBAAmB;YACnB,yBAAyB;YACzB,wBAAwB;YACxB,sBAAsB;YACtB,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,oBAAoB;YACpB,sBAAsB;YACtB,wBAAwB;YACxB,kBAAkB;YAClB,oBAAoB;YACpB,wBAAwB;YACxB,sBAAsB;YACtB,wBAAwB;YACxB,oBAAoB;YACpB,kBAAkB;YAClB,kBAAkB;YAClB,yBAAyB;YACzB,oBAAoB;YACpB,yBAAyB;YACzB,kBAAkB;YAClB,mBAAmB;AACnB,YAAA,kBAAkB,EAEV,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAEjB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhC9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,kBAAkB;wBAClB,uBAAuB;wBACvB,uBAAuB;wBACvB,mBAAmB;wBACnB,yBAAyB;wBACzB,wBAAwB;wBACxB,sBAAsB;wBACtB,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,oBAAoB;wBACpB,sBAAsB;wBACtB,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,wBAAwB;wBACxB,sBAAsB;wBACtB,wBAAwB;wBACxB,oBAAoB;wBACpB,kBAAkB;wBAClB,kBAAkB;wBAClB,yBAAyB;wBACzB,oBAAoB;wBACpB,yBAAyB;wBACzB,kBAAkB;wBAClB,mBAAmB;wBACnB,kBAAkB;AACnB,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;AC7DD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-formly-zorro-antd",
3
- "version": "18.0.0",
3
+ "version": "18.2.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -8,7 +8,7 @@
8
8
  "license": "MIT",
9
9
  "peerDependencies": {
10
10
  "@angular/core": "^18.0.0",
11
- "ng-zorro-antd": "^18.0.1",
11
+ "ng-zorro-antd": "^18.2.0",
12
12
  "@ngx-formly/core": "^6.0.0",
13
13
  "@pkt/ng.core": ">=5.1.0",
14
14
  "rxjs": "^6.5.3 || ^7.4.0"
@@ -28,12 +28,30 @@
28
28
  "esm": "./esm2022/ngx-formly-zorro-antd.mjs",
29
29
  "default": "./fesm2022/ngx-formly-zorro-antd.mjs"
30
30
  },
31
+ "./autocomplete": {
32
+ "types": "./autocomplete/index.d.ts",
33
+ "esm2022": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
34
+ "esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
35
+ "default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
36
+ },
37
+ "./button": {
38
+ "types": "./button/index.d.ts",
39
+ "esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
40
+ "esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
41
+ "default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
42
+ },
31
43
  "./button-group": {
32
44
  "types": "./button-group/index.d.ts",
33
45
  "esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
34
46
  "esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
35
47
  "default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
36
48
  },
49
+ "./card": {
50
+ "types": "./card/index.d.ts",
51
+ "esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
52
+ "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
53
+ "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
54
+ },
37
55
  "./card-wrapper": {
38
56
  "types": "./card-wrapper/index.d.ts",
39
57
  "esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
@@ -52,24 +70,6 @@
52
70
  "esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
53
71
  "default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
54
72
  },
55
- "./autocomplete": {
56
- "types": "./autocomplete/index.d.ts",
57
- "esm2022": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
58
- "esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
59
- "default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
60
- },
61
- "./button": {
62
- "types": "./button/index.d.ts",
63
- "esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
64
- "esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
65
- "default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
66
- },
67
- "./card": {
68
- "types": "./card/index.d.ts",
69
- "esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
70
- "esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
71
- "default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
72
- },
73
73
  "./common": {
74
74
  "types": "./common/index.d.ts",
75
75
  "esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
@@ -166,18 +166,18 @@
166
166
  "esm": "./esm2022/space/ngx-formly-zorro-antd-space.mjs",
167
167
  "default": "./fesm2022/ngx-formly-zorro-antd-space.mjs"
168
168
  },
169
- "./switch": {
170
- "types": "./switch/index.d.ts",
171
- "esm2022": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
172
- "esm": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
173
- "default": "./fesm2022/ngx-formly-zorro-antd-switch.mjs"
174
- },
175
169
  "./tabs": {
176
170
  "types": "./tabs/index.d.ts",
177
171
  "esm2022": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
178
172
  "esm": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
179
173
  "default": "./fesm2022/ngx-formly-zorro-antd-tabs.mjs"
180
174
  },
175
+ "./switch": {
176
+ "types": "./switch/index.d.ts",
177
+ "esm2022": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
178
+ "esm": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
179
+ "default": "./fesm2022/ngx-formly-zorro-antd-switch.mjs"
180
+ },
181
181
  "./text-value": {
182
182
  "types": "./text-value/index.d.ts",
183
183
  "esm2022": "./esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs",
@@ -69,6 +69,11 @@ export interface TabsProps {
69
69
  * @default false
70
70
  */
71
71
  centered?: boolean;
72
+ /**
73
+ * 被隐藏时是否销毁 DOM 结构
74
+ * @default false
75
+ */
76
+ destroyInactiveTabPane?: boolean;
72
77
  /**
73
78
  * 当前激活 tab 面板的 序列号变更回调函数
74
79
  */
@@ -94,36 +99,45 @@ export interface TabsProps {
94
99
  * 点击删除按钮时的事件
95
100
  */
96
101
  onClose?: FormlyAttributeEvent<number>;
97
- tab?: {
98
- /**
99
- * 选项卡头显示文字
100
- */
101
- title?: string | TemplateRef<TabTemplateContext>;
102
- /**
103
- * 被隐藏时是否渲染 DOM 结构
104
- * @default false
105
- */
106
- forceRender?: boolean;
107
- /**
108
- * 是否禁用
109
- * @default false
110
- */
111
- disabled?: boolean;
112
- /**
113
- * 单击 title 的回调函数
114
- */
115
- click?: FormlyAttributeEvent;
116
- /**
117
- * 右键 title 的回调函数
118
- */
119
- contextmenu?: FormlyAttributeEvent<MouseEvent>;
120
- /**
121
- * tab 被选中的回调函数
122
- */
123
- select?: FormlyAttributeEvent;
124
- /**
125
- * tab 被取消选中的回调函数
126
- */
127
- deselect?: FormlyAttributeEvent;
128
- };
102
+ tab?: TabProps;
103
+ }
104
+ /**
105
+ * @publicApi
106
+ */
107
+ export interface TabProps {
108
+ /**
109
+ * 选项卡头显示文字
110
+ */
111
+ title?: string | TemplateRef<TabTemplateContext>;
112
+ /**
113
+ * 被隐藏时是否渲染 DOM 结构
114
+ * @default false
115
+ */
116
+ forceRender?: boolean;
117
+ /**
118
+ * 是否禁用
119
+ * @default false
120
+ */
121
+ disabled?: boolean;
122
+ /**
123
+ * 显示删除按钮
124
+ * @default false
125
+ */
126
+ closable?: boolean;
127
+ /**
128
+ * 单击 title 的回调函数
129
+ */
130
+ click?: FormlyAttributeEvent;
131
+ /**
132
+ * 右键 title 的回调函数
133
+ */
134
+ contextmenu?: FormlyAttributeEvent<MouseEvent>;
135
+ /**
136
+ * tab 被选中的回调函数
137
+ */
138
+ select?: FormlyAttributeEvent;
139
+ /**
140
+ * tab 被取消选中的回调函数
141
+ */
142
+ deselect?: FormlyAttributeEvent;
129
143
  }
@@ -3,6 +3,7 @@ import { DatePipe } from '@angular/common';
3
3
  import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
4
4
  import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
5
5
  import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
6
+ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * @publicApi
@@ -134,7 +135,7 @@ export declare class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {
134
135
  open: boolean;
135
136
  clearText: string;
136
137
  defaultOpenValue: Date;
137
- format: any;
138
+ format: NzSafeAny;
138
139
  };
139
140
  };
140
141
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTimepicker, never>;
@@ -28,7 +28,8 @@ export interface TreeSelectProps extends FormlyFieldProps {
28
28
  /**
29
29
  * 当下拉列表为空时显示的内容
30
30
  */
31
- notFoundContent?: string;
31
+ notFoundContent?: string | TemplateRef<void>;
32
+ notFoundContentName?: string;
32
33
  /**
33
34
  * 下拉菜单和选择器同宽
34
35
  * @default true
@@ -175,6 +176,7 @@ export declare class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {
175
176
  };
176
177
  constructor(fieldTemplates: FormlyBoxTemplates);
177
178
  get nzExpandedIcon(): TemplateRef<any> | undefined;
179
+ get nzNotFoundContent(): TemplateRef<any> | undefined;
178
180
  get nzMaxTagPlaceholder(): TemplateRef<any> | undefined;
179
181
  get nzTreeTemplate(): TemplateRef<any> | undefined;
180
182
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTreeSelect, [{ optional: true; }]>;