ngx-formly-zorro-antd 16.1.5 → 16.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/esm2022/button/button.module.mjs +4 -4
  2. package/esm2022/button/button.type.mjs +3 -3
  3. package/esm2022/card/card.module.mjs +4 -4
  4. package/esm2022/card/card.type.mjs +3 -3
  5. package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
  6. package/esm2022/card-wrapper/card.wrapper.mjs +3 -3
  7. package/esm2022/cascader/cascader.module.mjs +4 -4
  8. package/esm2022/cascader/cascader.type.mjs +3 -3
  9. package/esm2022/checkbox/checkbox.module.mjs +4 -4
  10. package/esm2022/checkbox/checkbox.type.mjs +3 -3
  11. package/esm2022/common/common.module.mjs +4 -4
  12. package/esm2022/common/formly-box-templates.directive.mjs +8 -8
  13. package/esm2022/datepicker/datepicker.module.mjs +4 -4
  14. package/esm2022/datepicker/datepicker.type.mjs +3 -3
  15. package/esm2022/form-field/form-field.module.mjs +4 -4
  16. package/esm2022/form-field/form-field.wrapper.mjs +3 -3
  17. package/esm2022/grid/grid.module.mjs +4 -4
  18. package/esm2022/grid/grid.type.mjs +3 -3
  19. package/esm2022/input/input.module.mjs +4 -4
  20. package/esm2022/input/input.type.mjs +4 -4
  21. package/esm2022/input-group/input-group.module.mjs +4 -4
  22. package/esm2022/input-group/input-group.type.mjs +3 -3
  23. package/esm2022/input-number/input-number.module.mjs +4 -4
  24. package/esm2022/input-number/input-number.type.mjs +3 -3
  25. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +4 -4
  26. package/esm2022/radio/radio.module.mjs +4 -4
  27. package/esm2022/radio/radio.type.mjs +3 -3
  28. package/esm2022/rate/rate.module.mjs +4 -4
  29. package/esm2022/rate/rate.type.mjs +3 -3
  30. package/esm2022/ref-template/ref-template.module.mjs +4 -4
  31. package/esm2022/ref-template/ref-template.type.mjs +3 -3
  32. package/esm2022/select/select.module.mjs +4 -4
  33. package/esm2022/select/select.type.mjs +4 -4
  34. package/esm2022/slider/slider.module.mjs +4 -4
  35. package/esm2022/slider/slider.type.mjs +3 -3
  36. package/esm2022/space/space.module.mjs +4 -4
  37. package/esm2022/space/space.type.mjs +3 -3
  38. package/esm2022/switch/switch.module.mjs +4 -4
  39. package/esm2022/switch/switch.type.mjs +3 -3
  40. package/esm2022/tabs/tabs.module.mjs +4 -4
  41. package/esm2022/tabs/tabs.wrapper.mjs +3 -3
  42. package/esm2022/textarea/textarea.module.mjs +4 -4
  43. package/esm2022/textarea/textarea.type.mjs +4 -4
  44. package/esm2022/timepicker/timepicker.module.mjs +4 -4
  45. package/esm2022/timepicker/timepicker.type.mjs +3 -3
  46. package/esm2022/transfer/transfer.component.mjs +3 -3
  47. package/esm2022/transfer/transfer.module.mjs +4 -4
  48. package/esm2022/transfer/transfer.type.mjs +3 -3
  49. package/esm2022/tree-select/tree-select.module.mjs +4 -4
  50. package/esm2022/tree-select/tree-select.type.mjs +3 -3
  51. package/esm2022/upload/upload.component.mjs +3 -3
  52. package/esm2022/upload/upload.module.mjs +4 -4
  53. package/esm2022/upload/upload.type.mjs +3 -3
  54. package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
  55. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -7
  56. package/fesm2022/ngx-formly-zorro-antd-card.mjs +7 -7
  57. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
  58. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
  59. package/fesm2022/ngx-formly-zorro-antd-common.mjs +11 -11
  60. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  61. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
  62. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +7 -7
  63. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
  64. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
  65. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
  66. package/fesm2022/ngx-formly-zorro-antd-input.mjs +8 -8
  67. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  68. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
  69. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
  70. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
  71. package/fesm2022/ngx-formly-zorro-antd-select.mjs +8 -8
  72. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  73. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
  74. package/fesm2022/ngx-formly-zorro-antd-space.mjs +7 -7
  75. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
  76. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
  77. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +8 -8
  78. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  79. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
  80. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
  81. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
  82. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
  83. package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
  84. package/package.json +16 -17
@@ -1 +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 propName\n * @param propTemplateName 模板属性名称\n */\nexport function hasTplNameValue(\n value: NzSafeAny,\n propName: string,\n propTemplateName?: string\n): boolean {\n const tplName = propTemplateName || getTplName(propName);\n return value[propName] || value[tplName];\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+FpF,KAAA;AA5FC,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;AAED;;;AAGG;AACH,IAAA,GAAG,CAAC,YAAoB,EAAA;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;KACtC;IAED,kBAAkB,GAAA;QAChB,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,MAAK;YACxC,IAAI,CAAC,MAAM,EAAE,CAAC;AAChB,SAAC,CAAC,CAAC;KACJ;IACD,MAAM,CAAC,UAAU,GAAG,IAAI,EAAA;AACtB,QAAA,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAA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;IACD,IAAI,CAAC,cAAc,EAAE;AACnB,QAAA,OAAO,SAAS,CAAC;AAClB,KAAA;IACD,MAAM,OAAO,GAAG,gBAAgB,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;IACzD,OAAO,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;AAMG;AACG,SAAU,mBAAmB,CACjC,KAAgB,EAChB,cAAkC,EAClC,QAAgB,EAChB,gBAAyB,EAAA;AAEzB,IAAA,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;AAC3B,QAAA,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AACxB,KAAA;IACD,IAAI,CAAC,cAAc,EAAE;AACnB,QAAA,OAAO,EAAE,CAAC;AACX,KAAA;IACD,MAAM,OAAO,GAAG,gBAAgB,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;AACzD,IAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC3B,OAAO,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAqB,CAAC;AAC5F,KAAA;AACD,IAAA,OAAO,EAAE,CAAC;AACZ;;AC3EA;;AAEG;;;;"}
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 propName\n * @param propTemplateName 模板属性名称\n */\nexport function hasTplNameValue(\n value: NzSafeAny,\n propName: string,\n propTemplateName?: string\n): boolean {\n const tplName = propTemplateName || getTplName(propName);\n return value[propName] || value[tplName];\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+FpF,KAAA;AA5FC,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;AAED;;;AAGG;AACH,IAAA,GAAG,CAAC,YAAoB,EAAA;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;KACtC;IAED,kBAAkB,GAAA;QAChB,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,MAAK;YACxC,IAAI,CAAC,MAAM,EAAE,CAAC;AAChB,SAAC,CAAC,CAAC;KACJ;IACD,MAAM,CAAC,UA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0", version: "16.1.5", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: `<ng-container [ngSwitch]="props.type">
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: `<ng-container [ngSwitch]="props.type">
40
40
  <nz-range-picker
41
41
  *ngSwitchCase="'range'"
42
42
  [nzId]="id"
@@ -114,7 +114,7 @@ class FormlyFieldDatepicker extends FieldType {
114
114
  ></nz-date-picker>
115
115
  </ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
116
116
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
118
118
  type: Component,
119
119
  args: [{
120
120
  selector: 'formly-field-datepicker',
@@ -200,12 +200,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
200
200
  }] });
201
201
 
202
202
  class FormlyNzDatepickerModule {
203
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
204
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
203
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
204
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
205
205
  ReactiveFormsModule,
206
206
  FormlyNzFormFieldModule,
207
207
  NzDatePickerModule, i4.FormlyModule] }); }
208
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
208
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
209
209
  ReactiveFormsModule,
210
210
  FormlyNzFormFieldModule,
211
211
  NzDatePickerModule,
@@ -219,7 +219,7 @@ class FormlyNzDatepickerModule {
219
219
  ]
220
220
  })] }); }
221
221
  }
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
223
223
  type: NgModule,
224
224
  args: [{
225
225
  declarations: [FormlyFieldDatepicker],
@@ -36,8 +36,8 @@ class FormlyWrapperFormField extends FieldWrapper {
36
36
  get validateStatus() {
37
37
  return this.hasError ? 'error' : 'success';
38
38
  }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperFormField, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
40
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyWrapperFormField, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
40
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
41
41
  <nz-form-item [ngClass]="props.itemClass!">
42
42
  <ng-container *ngIf="hasLabel && props['hideLabel'] !== true">
43
43
  <nz-form-label
@@ -97,7 +97,7 @@ class FormlyWrapperFormField extends FieldWrapper {
97
97
  </nz-form-item>
98
98
  `, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: i5.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i6.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
99
99
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
101
101
  type: Component,
102
102
  args: [{ selector: 'formly-wrapper-nz-form-field', template: `
103
103
  <nz-form-item [ngClass]="props.itemClass!">
@@ -163,13 +163,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
163
163
  }] }]; } });
164
164
 
165
165
  class FormlyNzFormFieldModule {
166
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
167
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
167
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
168
168
  ReactiveFormsModule,
169
169
  NzFormModule,
170
170
  FormlyCommonModule,
171
171
  NzOutletModule, i6.FormlyModule] }); }
172
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzFormFieldModule, imports: [CommonModule,
172
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, imports: [CommonModule,
173
173
  ReactiveFormsModule,
174
174
  NzFormModule,
175
175
  FormlyCommonModule,
@@ -183,7 +183,7 @@ class FormlyNzFormFieldModule {
183
183
  ]
184
184
  })] }); }
185
185
  }
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
187
187
  type: NgModule,
188
188
  args: [{
189
189
  declarations: [FormlyWrapperFormField],
@@ -8,8 +8,8 @@ import * as i2 from 'ng-zorro-antd/grid';
8
8
  import { NzGridModule } from 'ng-zorro-antd/grid';
9
9
 
10
10
  class FormlyFieldGrid extends FieldType {
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
13
13
  <div
14
14
  nz-row
15
15
  [nzAlign]="props.align ?? null"
@@ -37,7 +37,7 @@ class FormlyFieldGrid extends FieldType {
37
37
  </div>
38
38
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
39
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldGrid, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldGrid, decorators: [{
41
41
  type: Component,
42
42
  args: [{
43
43
  selector: 'formly-field-grid',
@@ -73,10 +73,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
73
73
  }] });
74
74
 
75
75
  class FormlyNzGridModule {
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
78
78
  NzGridModule, i3.FormlyModule] }); }
79
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
79
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
80
80
  NzGridModule,
81
81
  FormlyModule.forChild({
82
82
  types: [
@@ -87,7 +87,7 @@ class FormlyNzGridModule {
87
87
  ]
88
88
  })] }); }
89
89
  }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, decorators: [{
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, decorators: [{
91
91
  type: NgModule,
92
92
  args: [{
93
93
  declarations: [FormlyFieldGrid],
@@ -27,8 +27,8 @@ class FormlyFieldInputGroup extends FieldType {
27
27
  }
28
28
  return envent.id;
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
32
32
  <nz-input-group
33
33
  [nzPrefixIcon]="props['prefixIcon']"
34
34
  [nzSuffixIcon]="props['suffixIcon']"
@@ -47,7 +47,7 @@ class FormlyFieldInputGroup extends FieldType {
47
47
  </nz-input-group>
48
48
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
51
51
  type: Component,
52
52
  args: [{
53
53
  selector: 'formly-field-input-group',
@@ -74,11 +74,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
74
74
  }] });
75
75
 
76
76
  class FormlyNzInputGroupModule {
77
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
78
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
78
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
79
79
  NzInputModule,
80
80
  FormlyNzFormFieldModule, i3.FormlyModule] }); }
81
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
81
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
82
82
  NzInputModule,
83
83
  FormlyNzFormFieldModule,
84
84
  FormlyModule.forChild({
@@ -91,7 +91,7 @@ class FormlyNzInputGroupModule {
91
91
  ]
92
92
  })] }); }
93
93
  }
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
95
95
  type: NgModule,
96
96
  args: [{
97
97
  declarations: [FormlyFieldInputGroup],
@@ -31,8 +31,8 @@ class FormlyFieldInputNumber extends FieldType {
31
31
  }
32
32
  };
33
33
  }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
36
36
  <ng-container [ngSwitch]="props.type">
37
37
  <nz-input-number-group
38
38
  *ngSwitchCase="'group'"
@@ -78,7 +78,7 @@ class FormlyFieldInputNumber extends FieldType {
78
78
  </ng-template>
79
79
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
80
80
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
82
82
  type: Component,
83
83
  args: [{
84
84
  selector: 'formly-field-inputnumber',
@@ -132,12 +132,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
132
132
  }] });
133
133
 
134
134
  class FormlyNzInputNumberModule {
135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
136
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
135
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
136
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
137
137
  ReactiveFormsModule,
138
138
  FormlyNzFormFieldModule,
139
139
  NzInputNumberModule, i4.FormlyModule] }); }
140
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
140
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
141
141
  ReactiveFormsModule,
142
142
  FormlyNzFormFieldModule,
143
143
  NzInputNumberModule,
@@ -155,7 +155,7 @@ class FormlyNzInputNumberModule {
155
155
  ]
156
156
  })] }); }
157
157
  }
158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
159
159
  type: NgModule,
160
160
  args: [{
161
161
  declarations: [FormlyFieldInputNumber],
@@ -32,8 +32,8 @@ class FormlyFieldInput extends FieldType {
32
32
  };
33
33
  this.passwordVisible = false;
34
34
  }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
36
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
36
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
37
37
  <ng-container [ngSwitch]="props.type">
38
38
  <ng-container *ngSwitchCase="'password'">
39
39
  <nz-input-group
@@ -168,9 +168,9 @@ class FormlyFieldInput extends FieldType {
168
168
  (click)="formControl.reset()"
169
169
  ></span>
170
170
  </ng-template>
171
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i4.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i4.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i4.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
171
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i4.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i4.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i4.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
172
172
  }
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInput, decorators: [{
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInput, decorators: [{
174
174
  type: Component,
175
175
  args: [{
176
176
  selector: 'formly-field-input',
@@ -315,14 +315,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
315
315
  }] });
316
316
 
317
317
  class FormlyNzInputModule {
318
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
319
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
318
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
319
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
320
320
  ReactiveFormsModule,
321
321
  NzInputModule,
322
322
  NzAutocompleteModule,
323
323
  NzIconModule,
324
324
  FormlyNzFormFieldModule, i6.FormlyModule] }); }
325
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
325
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
326
326
  ReactiveFormsModule,
327
327
  NzInputModule,
328
328
  NzAutocompleteModule,
@@ -353,7 +353,7 @@ class FormlyNzInputModule {
353
353
  ]
354
354
  })] }); }
355
355
  }
356
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, decorators: [{
356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, decorators: [{
357
357
  type: NgModule,
358
358
  args: [{
359
359
  declarations: [FormlyFieldInput],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'password'\">\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n </ng-container>\n\n <nz-input-group\n *ngSwitchCase=\"'autoComplete'\"\n [nzSize]=\"props['size']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n <nz-auto-option\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\n [nzLabel]=\"option.label\"\n [nzValue]=\"option.value\"\n >\n {{ option.label }}\n </nz-auto-option>\n </nz-autocomplete>\n </nz-input-group>\n\n <nz-input-group\n *ngSwitchCase=\"'group'\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n\n <input\n *ngSwitchDefault\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </ng-container>\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && props['allowClear']!!\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\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 { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAuJM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAe,CA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E,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,OAAO,EAAE,OAAO;AAChB,wBAAA,cAAc,EAAE;AACd,4BAAA,KAAK,EAAE;AACL,gCAAA,IAAI,EAAE,UAAU;AACjB,6BAAA;AACF,yBAAA;AACF,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBApC/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,aAAa;wBACb,oBAAoB;wBACpB,YAAY;wBAEZ,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACxB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,OAAO;AACd,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'password'\">\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n </ng-container>\n\n <nz-input-group\n *ngSwitchCase=\"'autoComplete'\"\n [nzSize]=\"props['size']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n <nz-auto-option\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\n [nzLabel]=\"option.label\"\n [nzValue]=\"option.value\"\n >\n {{ option.label }}\n </nz-auto-option>\n </nz-autocomplete>\n </nz-input-group>\n\n <nz-input-group\n *ngSwitchCase=\"'group'\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n\n <input\n *ngSwitchDefault\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </ng-container>\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && props['allowClear']!!\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\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 { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAuJM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AACzB,KAAA;8GAfY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EA1IjB,QAAA,EAAA,oBAAA,EAAA,eAAA,E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,EAAA,CAAA;kBApC/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,aAAa;wBACb,oBAAoB;wBACpB,YAAY;wBAEZ,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACxB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,OAAO;AACd,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
@@ -23,8 +23,8 @@ class FormlyFieldRadio extends FieldType {
23
23
  }
24
24
  };
25
25
  }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
27
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
27
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
28
28
  <nz-radio-group
29
29
  [formControl]="formControl"
30
30
  [formlyAttributes]="field"
@@ -58,7 +58,7 @@ class FormlyFieldRadio extends FieldType {
58
58
  </nz-radio-group>
59
59
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { kind: "directive", type: i3.NzRadioButtonDirective, selector: "[nz-radio-button]" }, { kind: "component", type: i3.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRadio, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldRadio, decorators: [{
62
62
  type: Component,
63
63
  args: [{
64
64
  selector: 'formly-field-radio',
@@ -100,14 +100,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
100
100
  }] });
101
101
 
102
102
  class FormlyNzRadioModule {
103
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
104
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
104
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
105
105
  ReactiveFormsModule,
106
106
  FormlyNzFormFieldModule,
107
107
  FormlySelectModule,
108
108
  NzFormModule,
109
109
  NzRadioModule, i4.FormlyModule] }); }
110
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
110
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
111
111
  ReactiveFormsModule,
112
112
  FormlyNzFormFieldModule,
113
113
  FormlySelectModule,
@@ -123,7 +123,7 @@ class FormlyNzRadioModule {
123
123
  ]
124
124
  })] }); }
125
125
  }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
127
127
  type: NgModule,
128
128
  args: [{
129
129
  declarations: [FormlyFieldRadio],
@@ -22,8 +22,8 @@ class FormlyFieldRate extends FieldType {
22
22
  }
23
23
  };
24
24
  }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldRate, selector: "formly-field-rate", usesInheritance: true, ngImport: i0, template: `
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldRate, selector: "formly-field-rate", usesInheritance: true, ngImport: i0, template: `
27
27
  <nz-rate
28
28
  [formControl]="formControl"
29
29
  [formlyAttributes]="field"
@@ -41,7 +41,7 @@ class FormlyFieldRate extends FieldType {
41
41
  ></nz-rate>
42
42
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzRateComponent, selector: "nz-rate", inputs: ["nzAllowClear", "nzAllowHalf", "nzDisabled", "nzAutoFocus", "nzCharacter", "nzCount", "nzTooltips"], outputs: ["nzOnBlur", "nzOnFocus", "nzOnHoverChange", "nzOnKeyDown"], exportAs: ["nzRate"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRate, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldRate, decorators: [{
45
45
  type: Component,
46
46
  args: [{
47
47
  selector: 'formly-field-rate',
@@ -67,12 +67,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
67
67
  }] });
68
68
 
69
69
  class FormlyNzRateModule {
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
71
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, declarations: [FormlyFieldRate], imports: [CommonModule,
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
71
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRateModule, declarations: [FormlyFieldRate], imports: [CommonModule,
72
72
  ReactiveFormsModule,
73
73
  FormlyNzFormFieldModule,
74
74
  NzRateModule, i3.FormlyModule] }); }
75
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, imports: [CommonModule,
75
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRateModule, imports: [CommonModule,
76
76
  ReactiveFormsModule,
77
77
  FormlyNzFormFieldModule,
78
78
  NzRateModule,
@@ -86,7 +86,7 @@ class FormlyNzRateModule {
86
86
  ]
87
87
  })] }); }
88
88
  }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzRateModule, decorators: [{
90
90
  type: NgModule,
91
91
  args: [{
92
92
  declarations: [FormlyFieldRate],
@@ -70,14 +70,14 @@ class FormlyFieldRefTemplate extends FieldType {
70
70
  get ref() {
71
71
  return resolveTplName(this.props, this.fieldTemplates, 'ref');
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRefTemplate, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
74
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldRefTemplate, selector: "formly-ref-template", usesInheritance: true, ngImport: i0, template: `
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldRefTemplate, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
74
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldRefTemplate, selector: "formly-ref-template", usesInheritance: true, ngImport: i0, template: `
75
75
  <ng-container *nzStringTemplateOutlet="ref; context: { $implicit: field, props: props }">
76
76
  <div [innerHTML]="$any(ref) | trustedHtml"></div>
77
77
  </ng-container>
78
78
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "pipe", type: i3.TrustedHtmlPipe, name: "trustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
79
79
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRefTemplate, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldRefTemplate, decorators: [{
81
81
  type: Component,
82
82
  args: [{
83
83
  selector: 'formly-ref-template',
@@ -93,11 +93,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
93
93
  }] }]; } });
94
94
 
95
95
  class FormlyRefTemplateModule {
96
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
97
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, declarations: [FormlyFieldRefTemplate], imports: [CommonModule,
96
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyRefTemplateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
97
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyRefTemplateModule, declarations: [FormlyFieldRefTemplate], imports: [CommonModule,
98
98
  NzOutletModule,
99
99
  TrustedHtmlPipe, i1$1.FormlyModule] }); }
100
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, imports: [CommonModule,
100
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyRefTemplateModule, imports: [CommonModule,
101
101
  NzOutletModule,
102
102
  FormlyModule.forChild({
103
103
  types: [
@@ -108,7 +108,7 @@ class FormlyRefTemplateModule {
108
108
  ]
109
109
  })] }); }
110
110
  }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyRefTemplateModule, decorators: [{
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyRefTemplateModule, decorators: [{
112
112
  type: NgModule,
113
113
  args: [{
114
114
  declarations: [FormlyFieldRefTemplate],