ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
938 lines (927 loc) • 31.9 kB
JavaScript
import { LayoutModule } from '@angular/cdk/layout';
import { PlatformModule } from '@angular/cdk/platform';
import { CommonModule } from '@angular/common';
import { Directive, ElementRef, Renderer2, Input, Component, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, Optional, Host, ContentChild, SkipSelf, NgModule } from '@angular/core';
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
import { NzGridModule } from 'ng-zorro-antd/grid';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { FormControl, NgModel, FormControlName, FormControlDirective, NgControl } from '@angular/forms';
import { helpMotion } from 'ng-zorro-antd/core/animation';
import { InputBoolean, toBoolean } from 'ng-zorro-antd/core/util';
import { NzI18nService } from 'ng-zorro-antd/i18n';
import { Subject, Subscription } from 'rxjs';
import { filter, map, tap, startWith, takeUntil } from 'rxjs/operators';
import { __decorate, __metadata } from 'tslib';
import { NzConfigService, WithConfig } from 'ng-zorro-antd/core/config';
import { warnDeprecation } from 'ng-zorro-antd/core/logger';
/**
* @fileoverview added by tsickle
* Generated from: form.directive.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var NZ_CONFIG_COMPONENT_NAME = 'form';
var NzFormDirective = /** @class */ (function () {
function NzFormDirective(nzConfigService, elementRef, renderer) {
this.nzConfigService = nzConfigService;
this.renderer = renderer;
this.nzLayout = 'horizontal';
this.nzDisableAutoTips = false;
this.destroy$ = new Subject();
this.inputChanges$ = new Subject();
this.renderer.addClass(elementRef.nativeElement, 'ant-form');
}
/**
* @template K
* @param {?} changeType
* @return {?}
*/
NzFormDirective.prototype.getInputObservable = /**
* @template K
* @param {?} changeType
* @return {?}
*/
function (changeType) {
return this.inputChanges$.pipe(filter((/**
* @param {?} changes
* @return {?}
*/
function (changes) { return changeType in changes; })), map((/**
* @param {?} value
* @return {?}
*/
function (value) { return value[(/** @type {?} */ (changeType))]; })));
};
/**
* @param {?} changes
* @return {?}
*/
NzFormDirective.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
this.inputChanges$.next(changes);
};
/**
* @return {?}
*/
NzFormDirective.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.destroy$.next();
this.destroy$.complete();
};
NzFormDirective.decorators = [
{ type: Directive, args: [{
selector: '[nz-form]',
exportAs: 'nzForm',
host: {
'[class.ant-form-horizontal]': "nzLayout === 'horizontal'",
'[class.ant-form-vertical]': "nzLayout === 'vertical'",
'[class.ant-form-inline]': "nzLayout === 'inline'"
}
},] }
];
/** @nocollapse */
NzFormDirective.ctorParameters = function () { return [
{ type: NzConfigService },
{ type: ElementRef },
{ type: Renderer2 }
]; };
NzFormDirective.propDecorators = {
nzLayout: [{ type: Input }],
nzNoColon: [{ type: Input }],
nzAutoTips: [{ type: Input }],
nzDisableAutoTips: [{ type: Input }]
};
__decorate([
WithConfig(NZ_CONFIG_COMPONENT_NAME, false), InputBoolean(),
__metadata("design:type", Boolean)
], NzFormDirective.prototype, "nzNoColon", void 0);
__decorate([
WithConfig(NZ_CONFIG_COMPONENT_NAME, {}),
__metadata("design:type", Object)
], NzFormDirective.prototype, "nzAutoTips", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], NzFormDirective.prototype, "nzDisableAutoTips", void 0);
return NzFormDirective;
}());
if (false) {
/** @type {?} */
NzFormDirective.ngAcceptInputType_nzNoColon;
/** @type {?} */
NzFormDirective.ngAcceptInputType_nzDisableAutoTips;
/** @type {?} */
NzFormDirective.prototype.nzLayout;
/** @type {?} */
NzFormDirective.prototype.nzNoColon;
/** @type {?} */
NzFormDirective.prototype.nzAutoTips;
/** @type {?} */
NzFormDirective.prototype.nzDisableAutoTips;
/** @type {?} */
NzFormDirective.prototype.destroy$;
/**
* @type {?}
* @private
*/
NzFormDirective.prototype.inputChanges$;
/** @type {?} */
NzFormDirective.prototype.nzConfigService;
/**
* @type {?}
* @private
*/
NzFormDirective.prototype.renderer;
}
/**
* @fileoverview added by tsickle
* Generated from: form-item.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* should add nz-row directive to host, track https://github.com/angular/angular/issues/8785 *
*/
var NzFormItemComponent = /** @class */ (function () {
function NzFormItemComponent(elementRef, renderer, cdr) {
this.cdr = cdr;
this.status = null;
this.hasFeedback = false;
this.withHelpClass = false;
this.destroy$ = new Subject();
renderer.addClass(elementRef.nativeElement, 'ant-form-item');
}
Object.defineProperty(NzFormItemComponent.prototype, "nzFlex", {
/**
* @deprecated 10.0.0. 'nzFlex' is deprecated and going to be removed in 10.0.0.
*/
set: /**
* @deprecated 10.0.0. 'nzFlex' is deprecated and going to be removed in 10.0.0.
* @param {?} _
* @return {?}
*/
function (_) {
warnDeprecation("'nzFlex' is deprecated and going to be removed in 10.0.0.");
},
enumerable: true,
configurable: true
});
/**
* @param {?} value
* @return {?}
*/
NzFormItemComponent.prototype.setWithHelpViaTips = /**
* @param {?} value
* @return {?}
*/
function (value) {
this.withHelpClass = value;
this.cdr.markForCheck();
};
/**
* @param {?} status
* @return {?}
*/
NzFormItemComponent.prototype.setStatus = /**
* @param {?} status
* @return {?}
*/
function (status) {
this.status = status;
this.cdr.markForCheck();
};
/**
* @param {?} hasFeedback
* @return {?}
*/
NzFormItemComponent.prototype.setHasFeedback = /**
* @param {?} hasFeedback
* @return {?}
*/
function (hasFeedback) {
this.hasFeedback = hasFeedback;
this.cdr.markForCheck();
};
/**
* @return {?}
*/
NzFormItemComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.destroy$.next();
this.destroy$.complete();
};
NzFormItemComponent.decorators = [
{ type: Component, args: [{
selector: 'nz-form-item',
exportAs: 'nzFormItem',
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
host: {
'[class.ant-form-item-has-success]': 'status === "success"',
'[class.ant-form-item-has-warning]': 'status === "warning"',
'[class.ant-form-item-has-error]': 'status === "error"',
'[class.ant-form-item-is-validating]': 'status === "validating"',
'[class.ant-form-item-has-feedback]': 'hasFeedback && status',
'[class.ant-form-item-with-help]': 'withHelpClass'
},
template: "\n <ng-content></ng-content>\n "
}] }
];
/** @nocollapse */
NzFormItemComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: Renderer2 },
{ type: ChangeDetectorRef }
]; };
NzFormItemComponent.propDecorators = {
nzFlex: [{ type: Input }]
};
return NzFormItemComponent;
}());
if (false) {
/** @type {?} */
NzFormItemComponent.prototype.status;
/** @type {?} */
NzFormItemComponent.prototype.hasFeedback;
/** @type {?} */
NzFormItemComponent.prototype.withHelpClass;
/**
* @type {?}
* @private
*/
NzFormItemComponent.prototype.destroy$;
/**
* @type {?}
* @private
*/
NzFormItemComponent.prototype.cdr;
}
/**
* @fileoverview added by tsickle
* Generated from: form-control.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var iconTypeMap = (/** @type {?} */ ({
error: 'close-circle-fill',
validating: 'loading',
success: 'check-circle-fill',
warning: 'exclamation-circle-fill'
}));
var NzFormControlComponent = /** @class */ (function () {
function NzFormControlComponent(elementRef, nzFormItemComponent, cdr, renderer, i18n, nzFormDirective) {
var _this = this;
var _a, _b;
this.nzFormItemComponent = nzFormItemComponent;
this.cdr = cdr;
this.nzFormDirective = nzFormDirective;
this._hasFeedback = false;
this.validateChanges = Subscription.EMPTY;
this.validateString = null;
this.status = null;
this.destroyed$ = new Subject();
this.validateControl = null;
this.iconType = null;
this.innerTip = null;
this.nzAutoTips = {};
this.nzDisableAutoTips = 'default';
renderer.addClass(elementRef.nativeElement, 'ant-form-item-control');
this.subscribeAutoTips(i18n.localeChange.pipe(tap((/**
* @param {?} locale
* @return {?}
*/
function (locale) { return (_this.localeId = locale.locale); }))));
this.subscribeAutoTips((_a = this.nzFormDirective) === null || _a === void 0 ? void 0 : _a.getInputObservable('nzAutoTips'));
this.subscribeAutoTips((_b = this.nzFormDirective) === null || _b === void 0 ? void 0 : _b.getInputObservable('nzDisableAutoTips').pipe(filter((/**
* @return {?}
*/
function () { return _this.nzDisableAutoTips === 'default'; }))));
}
Object.defineProperty(NzFormControlComponent.prototype, "disableAutoTips", {
get: /**
* @private
* @return {?}
*/
function () {
var _a;
return this.nzDisableAutoTips !== 'default' ? toBoolean(this.nzDisableAutoTips) : (_a = this.nzFormDirective) === null || _a === void 0 ? void 0 : _a.nzDisableAutoTips;
},
enumerable: true,
configurable: true
});
Object.defineProperty(NzFormControlComponent.prototype, "nzHasFeedback", {
get: /**
* @return {?}
*/
function () {
return this._hasFeedback;
},
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
this._hasFeedback = toBoolean(value);
if (this.nzFormItemComponent) {
this.nzFormItemComponent.setHasFeedback(this._hasFeedback);
}
},
enumerable: true,
configurable: true
});
Object.defineProperty(NzFormControlComponent.prototype, "nzValidateStatus", {
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
if (value instanceof FormControl || value instanceof NgModel) {
this.validateControl = value;
this.validateString = null;
this.watchControl();
}
else if (value instanceof FormControlName) {
this.validateControl = value.control;
this.validateString = null;
this.watchControl();
}
else {
this.validateString = value;
this.validateControl = null;
this.setStatus();
}
},
enumerable: true,
configurable: true
});
/**
* @private
* @return {?}
*/
NzFormControlComponent.prototype.watchControl = /**
* @private
* @return {?}
*/
function () {
var _this = this;
this.validateChanges.unsubscribe();
/** miss detect https://github.com/angular/angular/issues/10887 **/
if (this.validateControl && this.validateControl.statusChanges) {
this.validateChanges = this.validateControl.statusChanges.pipe(startWith(null), takeUntil(this.destroyed$)).subscribe((/**
* @param {?} _
* @return {?}
*/
function (_) {
if (!_this.disableAutoTips) {
_this.updateAutoErrorTip();
}
_this.setStatus();
_this.cdr.markForCheck();
}));
}
};
/**
* @private
* @return {?}
*/
NzFormControlComponent.prototype.setStatus = /**
* @private
* @return {?}
*/
function () {
this.status = this.getControlStatus(this.validateString);
this.iconType = this.status ? iconTypeMap[this.status] : null;
this.innerTip = this.getInnerTip(this.status);
if (this.nzFormItemComponent) {
this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip);
this.nzFormItemComponent.setStatus(this.status);
}
};
/**
* @private
* @param {?} validateString
* @return {?}
*/
NzFormControlComponent.prototype.getControlStatus = /**
* @private
* @param {?} validateString
* @return {?}
*/
function (validateString) {
/** @type {?} */
var status;
if (validateString === 'warning' || this.validateControlStatus('INVALID', 'warning')) {
status = 'warning';
}
else if (validateString === 'error' || this.validateControlStatus('INVALID')) {
status = 'error';
}
else if (validateString === 'validating' || validateString === 'pending' || this.validateControlStatus('PENDING')) {
status = 'validating';
}
else if (validateString === 'success' || this.validateControlStatus('VALID')) {
status = 'success';
}
else {
status = null;
}
return status;
};
/**
* @private
* @param {?} validStatus
* @param {?=} statusType
* @return {?}
*/
NzFormControlComponent.prototype.validateControlStatus = /**
* @private
* @param {?} validStatus
* @param {?=} statusType
* @return {?}
*/
function (validStatus, statusType) {
if (!this.validateControl) {
return false;
}
else {
var _a = this.validateControl, dirty = _a.dirty, touched = _a.touched, status_1 = _a.status;
return (!!dirty || !!touched) && (statusType ? this.validateControl.hasError(statusType) : status_1 === validStatus);
}
};
/**
* @private
* @param {?} status
* @return {?}
*/
NzFormControlComponent.prototype.getInnerTip = /**
* @private
* @param {?} status
* @return {?}
*/
function (status) {
switch (status) {
case 'error':
return (!this.disableAutoTips && this.autoErrorTip) || this.nzErrorTip;
case 'validating':
return this.nzValidatingTip;
case 'success':
return this.nzSuccessTip;
case 'warning':
return this.nzWarningTip;
default:
return null;
}
};
/**
* @private
* @return {?}
*/
NzFormControlComponent.prototype.updateAutoErrorTip = /**
* @private
* @return {?}
*/
function () {
var _a, _b, _c, _d, _e, _f, _g;
if (this.validateControl) {
/** @type {?} */
var errors = this.validateControl.errors || {};
/** @type {?} */
var autoErrorTip = '';
for (var key in errors) {
if (errors.hasOwnProperty(key)) {
autoErrorTip = (_d = (_a = errors[key][this.localeId]) !== null && _a !== void 0 ? _a : (_c = (_b = this.nzAutoTips) === null || _b === void 0 ? void 0 : _b[this.localeId]) === null || _c === void 0 ? void 0 : _c[key]) !== null && _d !== void 0 ? _d : (_g = (_f = (_e = this.nzFormDirective) === null || _e === void 0 ? void 0 : _e.nzAutoTips) === null || _f === void 0 ? void 0 : _f[this.localeId]) === null || _g === void 0 ? void 0 : _g[key];
}
if (!!autoErrorTip) {
break;
}
}
this.autoErrorTip = autoErrorTip;
}
};
/**
* @private
* @param {?} observable
* @return {?}
*/
NzFormControlComponent.prototype.subscribeAutoTips = /**
* @private
* @param {?} observable
* @return {?}
*/
function (observable) {
var _this = this;
observable === null || observable === void 0 ? void 0 : observable.pipe(takeUntil(this.destroyed$)).subscribe((/**
* @return {?}
*/
function () {
if (!_this.disableAutoTips) {
_this.updateAutoErrorTip();
_this.setStatus();
_this.cdr.markForCheck();
}
}));
};
/**
* @param {?} changes
* @return {?}
*/
NzFormControlComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
var nzDisableAutoTips = changes.nzDisableAutoTips, nzAutoTips = changes.nzAutoTips, nzSuccessTip = changes.nzSuccessTip, nzWarningTip = changes.nzWarningTip, nzErrorTip = changes.nzErrorTip, nzValidatingTip = changes.nzValidatingTip;
if (nzDisableAutoTips || nzAutoTips) {
this.updateAutoErrorTip();
this.setStatus();
}
else if (nzSuccessTip || nzWarningTip || nzErrorTip || nzValidatingTip) {
this.setStatus();
}
};
/**
* @return {?}
*/
NzFormControlComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.setStatus();
};
/**
* @return {?}
*/
NzFormControlComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.destroyed$.next();
this.destroyed$.complete();
};
/**
* @return {?}
*/
NzFormControlComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
if (!this.validateControl && !this.validateString) {
if (this.defaultValidateControl instanceof FormControlDirective) {
this.nzValidateStatus = this.defaultValidateControl.control;
}
else {
this.nzValidateStatus = this.defaultValidateControl;
}
}
};
NzFormControlComponent.decorators = [
{ type: Component, args: [{
selector: 'nz-form-control',
exportAs: 'nzFormControl',
preserveWhitespaces: false,
animations: [helpMotion],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
template: "\n <div class=\"ant-form-item-control-input\">\n <div class=\"ant-form-item-control-input-content\">\n <ng-content></ng-content>\n </div>\n <span class=\"ant-form-item-children-icon\">\n <i *ngIf=\"nzHasFeedback && iconType\" nz-icon [nzType]=\"iconType\"></i>\n </span>\n </div>\n <div class=\"ant-form-item-explain\" *ngIf=\"innerTip\">\n <div @helpMotion>\n <ng-container *nzStringTemplateOutlet=\"innerTip; context: { $implicit: validateControl }\">{{ innerTip }}</ng-container>\n </div>\n </div>\n <div class=\"ant-form-item-extra\" *ngIf=\"nzExtra\">\n <ng-container *nzStringTemplateOutlet=\"nzExtra\">{{ nzExtra }}</ng-container>\n </div>\n "
}] }
];
/** @nocollapse */
NzFormControlComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: NzFormItemComponent, decorators: [{ type: Optional }, { type: Host }] },
{ type: ChangeDetectorRef },
{ type: Renderer2 },
{ type: NzI18nService },
{ type: NzFormDirective, decorators: [{ type: Optional }, { type: Host }] }
]; };
NzFormControlComponent.propDecorators = {
defaultValidateControl: [{ type: ContentChild, args: [NgControl, { static: false },] }],
nzSuccessTip: [{ type: Input }],
nzWarningTip: [{ type: Input }],
nzErrorTip: [{ type: Input }],
nzValidatingTip: [{ type: Input }],
nzAutoTips: [{ type: Input }],
nzDisableAutoTips: [{ type: Input }],
nzExtra: [{ type: Input }],
nzHasFeedback: [{ type: Input }],
nzValidateStatus: [{ type: Input }]
};
return NzFormControlComponent;
}());
if (false) {
/** @type {?} */
NzFormControlComponent.ngAcceptInputType_nzHasFeedback;
/** @type {?} */
NzFormControlComponent.ngAcceptInputType_nzRequired;
/** @type {?} */
NzFormControlComponent.ngAcceptInputType_nzNoColon;
/** @type {?} */
NzFormControlComponent.ngAcceptInputType_nzDisableAutoTips;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype._hasFeedback;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.validateChanges;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.validateString;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.status;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.destroyed$;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.localeId;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.autoErrorTip;
/** @type {?} */
NzFormControlComponent.prototype.validateControl;
/** @type {?} */
NzFormControlComponent.prototype.iconType;
/** @type {?} */
NzFormControlComponent.prototype.innerTip;
/** @type {?} */
NzFormControlComponent.prototype.defaultValidateControl;
/** @type {?} */
NzFormControlComponent.prototype.nzSuccessTip;
/** @type {?} */
NzFormControlComponent.prototype.nzWarningTip;
/** @type {?} */
NzFormControlComponent.prototype.nzErrorTip;
/** @type {?} */
NzFormControlComponent.prototype.nzValidatingTip;
/** @type {?} */
NzFormControlComponent.prototype.nzAutoTips;
/** @type {?} */
NzFormControlComponent.prototype.nzDisableAutoTips;
/** @type {?} */
NzFormControlComponent.prototype.nzExtra;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.nzFormItemComponent;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.cdr;
/**
* @type {?}
* @private
*/
NzFormControlComponent.prototype.nzFormDirective;
}
/**
* @fileoverview added by tsickle
* Generated from: form-label.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzFormLabelComponent = /** @class */ (function () {
function NzFormLabelComponent(elementRef, renderer, cdr, nzFormDirective) {
var _this = this;
this.cdr = cdr;
this.nzFormDirective = nzFormDirective;
this.nzRequired = false;
this.noColon = 'default';
this.destroy$ = new Subject();
renderer.addClass(elementRef.nativeElement, 'ant-form-item-label');
if (this.nzFormDirective) {
this.nzFormDirective
.getInputObservable('nzNoColon')
.pipe(filter((/**
* @return {?}
*/
function () { return _this.noColon === 'default'; })), takeUntil(this.destroy$))
.subscribe((/**
* @return {?}
*/
function () { return _this.cdr.markForCheck(); }));
}
}
Object.defineProperty(NzFormLabelComponent.prototype, "nzNoColon", {
get: /**
* @return {?}
*/
function () {
var _a;
return this.noColon !== 'default' ? this.noColon : (_a = this.nzFormDirective) === null || _a === void 0 ? void 0 : _a.nzNoColon;
},
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
this.noColon = toBoolean(value);
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
NzFormLabelComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.destroy$.next();
this.destroy$.complete();
};
NzFormLabelComponent.decorators = [
{ type: Component, args: [{
selector: 'nz-form-label',
exportAs: 'nzFormLabel',
preserveWhitespaces: false,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
template: "\n <label [attr.for]=\"nzFor\" [class.ant-form-item-no-colon]=\"nzNoColon\" [class.ant-form-item-required]=\"nzRequired\">\n <ng-content></ng-content>\n </label>\n "
}] }
];
/** @nocollapse */
NzFormLabelComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: Renderer2 },
{ type: ChangeDetectorRef },
{ type: NzFormDirective, decorators: [{ type: Optional }, { type: SkipSelf }] }
]; };
NzFormLabelComponent.propDecorators = {
nzFor: [{ type: Input }],
nzRequired: [{ type: Input }],
nzNoColon: [{ type: Input }]
};
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], NzFormLabelComponent.prototype, "nzRequired", void 0);
return NzFormLabelComponent;
}());
if (false) {
/** @type {?} */
NzFormLabelComponent.ngAcceptInputType_nzRequired;
/** @type {?} */
NzFormLabelComponent.ngAcceptInputType_nzNoColon;
/** @type {?} */
NzFormLabelComponent.prototype.nzFor;
/** @type {?} */
NzFormLabelComponent.prototype.nzRequired;
/** @type {?} */
NzFormLabelComponent.prototype.noColon;
/**
* @type {?}
* @private
*/
NzFormLabelComponent.prototype.destroy$;
/**
* @type {?}
* @private
*/
NzFormLabelComponent.prototype.cdr;
/**
* @type {?}
* @private
*/
NzFormLabelComponent.prototype.nzFormDirective;
}
/**
* @fileoverview added by tsickle
* Generated from: form-split.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzFormSplitComponent = /** @class */ (function () {
function NzFormSplitComponent(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
this.renderer.addClass(this.elementRef.nativeElement, 'ant-form-split');
}
NzFormSplitComponent.decorators = [
{ type: Component, args: [{
selector: 'nz-form-split',
exportAs: 'nzFormSplit',
preserveWhitespaces: false,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
template: "\n <ng-content></ng-content>\n "
}] }
];
/** @nocollapse */
NzFormSplitComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: Renderer2 }
]; };
return NzFormSplitComponent;
}());
if (false) {
/** @type {?} */
NzFormSplitComponent.prototype.elementRef;
/**
* @type {?}
* @private
*/
NzFormSplitComponent.prototype.renderer;
}
/**
* @fileoverview added by tsickle
* Generated from: form-text.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzFormTextComponent = /** @class */ (function () {
function NzFormTextComponent(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
this.renderer.addClass(this.elementRef.nativeElement, 'ant-form-text');
}
NzFormTextComponent.decorators = [
{ type: Component, args: [{
selector: 'nz-form-text',
exportAs: 'nzFormText',
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
template: "\n <ng-content></ng-content>\n "
}] }
];
/** @nocollapse */
NzFormTextComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: Renderer2 }
]; };
return NzFormTextComponent;
}());
if (false) {
/** @type {?} */
NzFormTextComponent.prototype.elementRef;
/**
* @type {?}
* @private
*/
NzFormTextComponent.prototype.renderer;
}
/**
* @fileoverview added by tsickle
* Generated from: form.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzFormModule = /** @class */ (function () {
function NzFormModule() {
}
NzFormModule.decorators = [
{ type: NgModule, args: [{
declarations: [
NzFormDirective,
NzFormItemComponent,
NzFormLabelComponent,
NzFormControlComponent,
NzFormTextComponent,
NzFormSplitComponent
],
exports: [
NzGridModule,
NzFormDirective,
NzFormItemComponent,
NzFormLabelComponent,
NzFormControlComponent,
NzFormTextComponent,
NzFormSplitComponent
],
imports: [CommonModule, NzGridModule, NzIconModule, LayoutModule, PlatformModule, NzOutletModule]
},] }
];
return NzFormModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: public-api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: ng-zorro-antd-form.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent, NzFormModule, NzFormSplitComponent, NzFormTextComponent };
//# sourceMappingURL=ng-zorro-antd-form.js.map