ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
466 lines (457 loc) • 23.8 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/portal'), require('@angular/core'), require('@angular/platform-browser'), require('rxjs'), require('ng-zorro-antd/core'), require('rxjs/operators'), require('ng-zorro-antd/i18n'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('ng-zorro-antd/empty', ['exports', '@angular/cdk/portal', '@angular/core', '@angular/platform-browser', 'rxjs', 'ng-zorro-antd/core', 'rxjs/operators', 'ng-zorro-antd/i18n', '@angular/common'], factory) :
(global = global || self, factory((global['ng-zorro-antd'] = global['ng-zorro-antd'] || {}, global['ng-zorro-antd'].empty = {}), global.ng.cdk.portal, global.ng.core, global.ng.platformBrowser, global.rxjs, global['ng-zorro-antd'].core, global.rxjs.operators, global['ng-zorro-antd'].i18n, global.ng.common));
}(this, function (exports, portal, core, platformBrowser, rxjs, core$1, operators, i18n, common) { 'use strict';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// tslint:disable-next-line:no-any
/** @type {?} */
var NZ_DEFAULT_EMPTY_CONTENT = new core.InjectionToken('nz-empty-content');
/** @type {?} */
var NZ_EMPTY_COMPONENT_NAME = new core.InjectionToken('nz-empty-component-name');
/** @type {?} */
var emptyImage = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI0IDMxLjY3KSI+PGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9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gIGZpbGw9IiNGQUZBRkEiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @template T
*/
var NzEmptyService = /** @class */ (function () {
function NzEmptyService(nzConfigService, legacyDefaultEmptyContent) {
var _this = this;
this.nzConfigService = nzConfigService;
this.legacyDefaultEmptyContent = legacyDefaultEmptyContent;
this.userDefaultContent$ = new rxjs.BehaviorSubject(undefined);
if (legacyDefaultEmptyContent) {
core$1.warnDeprecation("'NZ_DEFAULT_EMPTY_CONTENT' is deprecated and would be removed in 9.0.0. Please migrate to 'NZ_CONFIG'.");
}
/** @type {?} */
var userDefaultEmptyContent = this.getUserDefaultEmptyContent();
if (userDefaultEmptyContent) {
this.userDefaultContent$.next(userDefaultEmptyContent);
}
this.nzConfigService.getConfigChangeEventForComponent('empty').subscribe((/**
* @return {?}
*/
function () {
_this.userDefaultContent$.next(_this.getUserDefaultEmptyContent());
}));
}
/**
* @param {?=} content
* @return {?}
*/
NzEmptyService.prototype.setDefaultContent = /**
* @param {?=} content
* @return {?}
*/
function (content) {
core$1.warnDeprecation("'setDefaultContent' is deprecated and would be removed in 9.0.0. Please migrate to 'NzConfigService'.");
if (typeof content === 'string' ||
content === undefined ||
content === null ||
content instanceof core.TemplateRef ||
content instanceof core.Type) {
this.userDefaultContent$.next(content);
}
else {
throw new Error(core$1.PREFIX + " 'useDefaultContent' expect 'string', 'templateRef' or 'component' but get " + content + ".");
}
};
/**
* @return {?}
*/
NzEmptyService.prototype.resetDefault = /**
* @return {?}
*/
function () {
core$1.warnDeprecation("'resetDefault' is deprecated and would be removed in 9.0.0. Please migrate to 'NzConfigService' and provide an 'undefined'.");
this.userDefaultContent$.next(undefined);
};
/**
* @private
* @return {?}
*/
NzEmptyService.prototype.getUserDefaultEmptyContent = /**
* @private
* @return {?}
*/
function () {
return ((this.nzConfigService.getConfigForComponent('empty') || {}).nzDefaultEmptyContent ||
this.legacyDefaultEmptyContent);
};
NzEmptyService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
NzEmptyService.ctorParameters = function () { return [
{ type: core$1.NzConfigService },
{ type: core.Type, decorators: [{ type: core.Inject, args: [NZ_DEFAULT_EMPTY_CONTENT,] }, { type: core.Optional }] }
]; };
/** @nocollapse */ NzEmptyService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NzEmptyService_Factory() { return new NzEmptyService(core.ɵɵinject(core$1.NzConfigService), core.ɵɵinject(NZ_DEFAULT_EMPTY_CONTENT, 8)); }, token: NzEmptyService, providedIn: "root" });
return NzEmptyService;
}());
if (false) {
/** @type {?} */
NzEmptyService.prototype.userDefaultContent$;
/**
* @type {?}
* @private
*/
NzEmptyService.prototype.nzConfigService;
/**
* @type {?}
* @private
*/
NzEmptyService.prototype.legacyDefaultEmptyContent;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzEmbedEmptyComponent = /** @class */ (function () {
function NzEmbedEmptyComponent(emptyService, sanitizer, viewContainerRef, cdr, injector) {
this.emptyService = emptyService;
this.sanitizer = sanitizer;
this.viewContainerRef = viewContainerRef;
this.cdr = cdr;
this.injector = injector;
this.contentType = 'string';
// tslint:disable-line:no-any
this.defaultSvg = this.sanitizer.bypassSecurityTrustResourceUrl(simpleEmptyImage);
this.size = '';
this.subs_ = new rxjs.Subscription();
}
/**
* @param {?} changes
* @return {?}
*/
NzEmbedEmptyComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
if (changes.nzComponentName) {
this.size = this.getEmptySize(changes.nzComponentName.currentValue);
}
if (changes.specificContent && !changes.specificContent.isFirstChange()) {
this.content = changes.specificContent.currentValue;
this.renderEmpty();
}
};
/**
* @return {?}
*/
NzEmbedEmptyComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var userContent_ = this.emptyService.userDefaultContent$.subscribe((/**
* @param {?} content
* @return {?}
*/
function (content) {
_this.content = _this.specificContent || content;
_this.renderEmpty();
}));
this.subs_.add(userContent_);
};
/**
* @return {?}
*/
NzEmbedEmptyComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.subs_.unsubscribe();
};
/**
* @private
* @param {?} componentName
* @return {?}
*/
NzEmbedEmptyComponent.prototype.getEmptySize = /**
* @private
* @param {?} componentName
* @return {?}
*/
function (componentName) {
switch (componentName) {
case 'table':
case 'list':
return 'normal';
case 'select':
case 'tree-select':
case 'cascader':
case 'transfer':
return 'small';
default:
return '';
}
};
/**
* @private
* @return {?}
*/
NzEmbedEmptyComponent.prototype.renderEmpty = /**
* @private
* @return {?}
*/
function () {
/** @type {?} */
var content = this.content;
if (typeof content === 'string') {
this.contentType = 'string';
}
else if (content instanceof core.TemplateRef) {
/** @type {?} */
var context = (/** @type {?} */ ({ $implicit: this.nzComponentName }));
this.contentType = 'template';
this.contentPortal = new portal.TemplatePortal(content, this.viewContainerRef, context);
}
else if (content instanceof core.Type) {
/** @type {?} */
var context = new WeakMap([[NZ_EMPTY_COMPONENT_NAME, this.nzComponentName]]);
/** @type {?} */
var injector = new portal.PortalInjector(this.injector, context);
this.contentType = 'component';
this.contentPortal = new portal.ComponentPortal(content, this.viewContainerRef, injector);
}
else {
this.contentType = 'string';
this.contentPortal = undefined;
}
this.cdr.markForCheck();
};
NzEmbedEmptyComponent.decorators = [
{ type: core.Component, args: [{
changeDetection: core.ChangeDetectionStrategy.OnPush,
encapsulation: core.ViewEncapsulation.None,
selector: 'nz-embed-empty',
exportAs: 'nzEmbedEmpty',
template: "<ng-container *ngIf=\"!content && specificContent !== null\" [ngSwitch]=\"size\">\n <nz-empty *ngSwitchCase=\"'normal'\" class=\"ant-empty-normal\" [nzNotFoundImage]=\"defaultSvg\"></nz-empty>\n <nz-empty *ngSwitchCase=\"'small'\" class=\"ant-empty-small\" [nzNotFoundImage]=\"defaultSvg\"></nz-empty>\n <nz-empty *ngSwitchDefault></nz-empty>\n</ng-container>\n<ng-container *ngIf=\"content\">\n <ng-template *ngIf=\"contentType !== 'string'\" [cdkPortalOutlet]=\"contentPortal\"></ng-template>\n <ng-container *ngIf=\"contentType === 'string'\">\n {{ content }}\n </ng-container>\n</ng-container>\n"
}] }
];
/** @nocollapse */
NzEmbedEmptyComponent.ctorParameters = function () { return [
{ type: NzEmptyService },
{ type: platformBrowser.DomSanitizer },
{ type: core.ViewContainerRef },
{ type: core.ChangeDetectorRef },
{ type: core.Injector }
]; };
NzEmbedEmptyComponent.propDecorators = {
nzComponentName: [{ type: core.Input }],
specificContent: [{ type: core.Input }]
};
return NzEmbedEmptyComponent;
}());
if (false) {
/** @type {?} */
NzEmbedEmptyComponent.prototype.nzComponentName;
/** @type {?} */
NzEmbedEmptyComponent.prototype.specificContent;
/** @type {?} */
NzEmbedEmptyComponent.prototype.content;
/** @type {?} */
NzEmbedEmptyComponent.prototype.contentType;
/** @type {?} */
NzEmbedEmptyComponent.prototype.contentPortal;
/** @type {?} */
NzEmbedEmptyComponent.prototype.defaultSvg;
/** @type {?} */
NzEmbedEmptyComponent.prototype.size;
/** @type {?} */
NzEmbedEmptyComponent.prototype.subs_;
/** @type {?} */
NzEmbedEmptyComponent.prototype.emptyService;
/**
* @type {?}
* @private
*/
NzEmbedEmptyComponent.prototype.sanitizer;
/**
* @type {?}
* @private
*/
NzEmbedEmptyComponent.prototype.viewContainerRef;
/**
* @type {?}
* @private
*/
NzEmbedEmptyComponent.prototype.cdr;
/**
* @type {?}
* @private
*/
NzEmbedEmptyComponent.prototype.injector;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzEmptyComponent = /** @class */ (function () {
function NzEmptyComponent(sanitizer, i18n, cdr) {
this.sanitizer = sanitizer;
this.i18n = i18n;
this.cdr = cdr;
// NOTE: It would be very hack to use `ContentChild`, because Angular could
// tell if user actually pass something to <ng-content>.
// See: https://github.com/angular/angular/issues/12530.
// I can use a directive but this would expose the name `footer`.
// @ContentChild(TemplateRef, {static: false}) nzNotFoundFooter: TemplateRef<void>;
this.defaultSvg = this.sanitizer.bypassSecurityTrustResourceUrl(emptyImage);
this.isContentString = false;
this.locale = {};
this.destroy$ = new rxjs.Subject();
}
Object.defineProperty(NzEmptyComponent.prototype, "shouldRenderContent", {
get: /**
* @return {?}
*/
function () {
/** @type {?} */
var content = this.nzNotFoundContent;
return !!(content || typeof content === 'string');
},
enumerable: true,
configurable: true
});
/**
* @param {?} changes
* @return {?}
*/
NzEmptyComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
var nzNotFoundContent = changes.nzNotFoundContent;
if (nzNotFoundContent) {
this.isContentString = typeof nzNotFoundContent.currentValue === 'string';
}
};
/**
* @return {?}
*/
NzEmptyComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
this.i18n.localeChange.pipe(operators.takeUntil(this.destroy$)).subscribe((/**
* @return {?}
*/
function () {
_this.locale = _this.i18n.getLocaleData('Empty');
_this.cdr.markForCheck();
}));
};
/**
* @return {?}
*/
NzEmptyComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.destroy$.next();
this.destroy$.complete();
};
NzEmptyComponent.decorators = [
{ type: core.Component, args: [{
changeDetection: core.ChangeDetectionStrategy.OnPush,
encapsulation: core.ViewEncapsulation.None,
selector: 'nz-empty',
exportAs: 'nzEmpty',
template: "<div class=\"ant-empty-image\">\n <ng-container *nzStringTemplateOutlet=\"nzNotFoundImage\">\n <img [src]=\"nzNotFoundImage || defaultSvg\" [alt]=\"isContentString ? nzNotFoundContent : 'empty'\">\n </ng-container>\n</div>\n<p class=\"ant-empty-description\">\n <ng-container *nzStringTemplateOutlet=\"nzNotFoundContent\">\n {{ shouldRenderContent ? nzNotFoundContent : locale['description'] }}\n </ng-container>\n</p>\n<div class=\"ant-empty-footer\" *ngIf=\"nzNotFoundFooter\">\n <ng-container *nzStringTemplateOutlet=\"nzNotFoundFooter\">\n {{ nzNotFoundFooter }}\n </ng-container>\n</div>\n",
host: {
class: 'ant-empty'
},
styles: ['nz-empty { display: block; }']
}] }
];
/** @nocollapse */
NzEmptyComponent.ctorParameters = function () { return [
{ type: platformBrowser.DomSanitizer },
{ type: i18n.NzI18nService },
{ type: core.ChangeDetectorRef }
]; };
NzEmptyComponent.propDecorators = {
nzNotFoundImage: [{ type: core.Input }],
nzNotFoundContent: [{ type: core.Input }],
nzNotFoundFooter: [{ type: core.Input }]
};
return NzEmptyComponent;
}());
if (false) {
/** @type {?} */
NzEmptyComponent.prototype.nzNotFoundImage;
/** @type {?} */
NzEmptyComponent.prototype.nzNotFoundContent;
/** @type {?} */
NzEmptyComponent.prototype.nzNotFoundFooter;
/** @type {?} */
NzEmptyComponent.prototype.defaultSvg;
/** @type {?} */
NzEmptyComponent.prototype.isContentString;
/** @type {?} */
NzEmptyComponent.prototype.locale;
/**
* @type {?}
* @private
*/
NzEmptyComponent.prototype.destroy$;
/**
* @type {?}
* @private
*/
NzEmptyComponent.prototype.sanitizer;
/**
* @type {?}
* @private
*/
NzEmptyComponent.prototype.i18n;
/**
* @type {?}
* @private
*/
NzEmptyComponent.prototype.cdr;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzEmptyModule = /** @class */ (function () {
function NzEmptyModule() {
}
NzEmptyModule.decorators = [
{ type: core.NgModule, args: [{
imports: [common.CommonModule, portal.PortalModule, core$1.NzAddOnModule, i18n.NzI18nModule],
declarations: [NzEmptyComponent, NzEmbedEmptyComponent],
exports: [NzEmptyComponent, NzEmbedEmptyComponent]
},] }
];
return NzEmptyModule;
}());
exports.NZ_DEFAULT_EMPTY_CONTENT = NZ_DEFAULT_EMPTY_CONTENT;
exports.NZ_EMPTY_COMPONENT_NAME = NZ_EMPTY_COMPONENT_NAME;
exports.NzEmbedEmptyComponent = NzEmbedEmptyComponent;
exports.NzEmptyComponent = NzEmptyComponent;
exports.NzEmptyModule = NzEmptyModule;
exports.NzEmptyService = NzEmptyService;
exports.emptyImage = emptyImage;
exports.simpleEmptyImage = simpleEmptyImage;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=ng-zorro-antd-empty.umd.js.map