{"version":3,"file":"ng-zorro-antd-core-form.mjs","sources":["../../components/core/form/nz-form-item-feedback-icon.component.ts","../../components/core/form/nz-form-no-status.service.ts","../../components/core/form/nz-form-size.token.ts","../../components/core/form/nz-form-status.service.ts","../../components/core/form/nz-form-variant.token.ts","../../components/core/form/public-api.ts","../../components/core/form/ng-zorro-antd-core-form.ts"],"sourcesContent":["/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport {\n  ChangeDetectionStrategy,\n  ChangeDetectorRef,\n  Component,\n  inject,\n  Input,\n  OnChanges,\n  SimpleChanges,\n  ViewEncapsulation\n} from '@angular/core';\n\nimport { NzValidateStatus } from 'ng-zorro-antd/core/types';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nconst iconTypeMap = {\n  error: 'close-circle-fill',\n  validating: 'loading',\n  success: 'check-circle-fill',\n  warning: 'exclamation-circle-fill'\n} as const;\n\n@Component({\n  selector: 'nz-form-item-feedback-icon',\n  exportAs: 'nzFormFeedbackIcon',\n  imports: [NzIconModule],\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  template: `\n    @if (iconType) {\n      <nz-icon [nzType]=\"iconType\" />\n    }\n  `,\n  host: {\n    class: 'ant-form-item-feedback-icon',\n    '[class.ant-form-item-feedback-icon-error]': 'status===\"error\"',\n    '[class.ant-form-item-feedback-icon-warning]': 'status===\"warning\"',\n    '[class.ant-form-item-feedback-icon-success]': 'status===\"success\"',\n    '[class.ant-form-item-feedback-icon-validating]': 'status===\"validating\"'\n  }\n})\nexport class NzFormItemFeedbackIconComponent implements OnChanges {\n  public cdr = inject(ChangeDetectorRef);\n  @Input() status: NzValidateStatus = '';\n\n  iconType: (typeof iconTypeMap)[keyof typeof iconTypeMap] | null = null;\n\n  ngOnChanges(_changes: SimpleChanges): void {\n    this.updateIcon();\n  }\n\n  updateIcon(): void {\n    this.iconType = this.status ? iconTypeMap[this.status] : null;\n    this.cdr.markForCheck();\n  }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\n// Used in input-group/input-number-group to make sure components in addon work well\n/**\n * @deprecated Will be removed in v22.0.0. This service will be removed along with input-group/input-number-group.\n */\n@Injectable()\nexport class NzFormNoStatusService {\n  noFormStatus = new BehaviorSubject<boolean>(false);\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { InjectionToken, type Signal } from '@angular/core';\n\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\n\nexport const NZ_FORM_SIZE = new InjectionToken<Signal<NzSizeLDSType | undefined>>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-form-size' : ''\n);\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { Injectable } from '@angular/core';\nimport { ReplaySubject } from 'rxjs';\n\nimport { NzValidateStatus } from 'ng-zorro-antd/core/types';\n\n@Injectable()\nexport class NzFormStatusService {\n  formStatusChanges = new ReplaySubject<{ status: NzValidateStatus; hasFeedback: boolean }>(1);\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { InjectionToken, type Signal } from '@angular/core';\n\nimport type { NzVariant } from 'ng-zorro-antd/core/types';\n\nexport const NZ_FORM_VARIANT = new InjectionToken<Signal<NzVariant>>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-form-variant' : ''\n);\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nexport * from './nz-form-item-feedback-icon.component';\nexport * from './nz-form-no-status.service';\nexport * from './nz-form-size.token';\nexport * from './nz-form-status.service';\nexport * from './nz-form-variant.token';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAgBH,MAAM,WAAW,GAAG;AAClB,IAAA,KAAK,EAAE,mBAAmB;AAC1B,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,OAAO,EAAE;CACD;MAqBG,+BAA+B,CAAA;AACnC,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAC7B,MAAM,GAAqB,EAAE;IAEtC,QAAQ,GAA0D,IAAI;AAEtE,IAAA,WAAW,CAAC,QAAuB,EAAA;QACjC,IAAI,CAAC,UAAU,EAAE;IACnB;IAEA,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI;AAC7D,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;IACzB;uGAbW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,yCAAA,EAAA,oBAAA,EAAA,2CAAA,EAAA,sBAAA,EAAA,2CAAA,EAAA,sBAAA,EAAA,8CAAA,EAAA,yBAAA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