@lxlib/seed
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.
134 lines (128 loc) • 4.58 kB
JavaScript
import { __decorate, __metadata, __spread } from 'tslib';
import { DOCUMENT, CommonModule } from '@angular/common';
import { Component, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, Renderer2, Inject, Input, NgModule } from '@angular/core';
import { InputBoolean, LxlibUtilModule } from '@lxlib/util';
import { ErrorCollectModule } from '@lxlib/seed/error-collect';
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
/**
* @fileoverview added by tsickle
* Generated from: footer-toolbar.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var CLSBODY = 'footer-toolbar__body';
var FooterToolbarComponent = /** @class */ (function () {
function FooterToolbarComponent(el, renderer, doc) {
this.el = el;
this.renderer = renderer;
this.doc = doc;
this.errorCollect = false;
}
Object.defineProperty(FooterToolbarComponent.prototype, "bodyCls", {
get: /**
* @private
* @return {?}
*/
function () {
return this.doc.querySelector('body').classList;
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
FooterToolbarComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.renderer.addClass(this.el.nativeElement, 'footer-toolbar');
this.bodyCls.add(CLSBODY);
};
/**
* @return {?}
*/
FooterToolbarComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.bodyCls.remove(CLSBODY);
};
FooterToolbarComponent.decorators = [
{ type: Component, args: [{
selector: 'footer-toolbar',
exportAs: 'footerToolbar',
template: "<div class=\"footer-toolbar__left\">\n <ng-container *nzStringTemplateOutlet=\"extra\">{{ extra }}</ng-container>\n</div>\n<div class=\"footer-toolbar__right\">\n <error-collect *ngIf=\"errorCollect\"></error-collect>\n <ng-content></ng-content>\n</div>\n",
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None
}] }
];
/** @nocollapse */
FooterToolbarComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: Renderer2 },
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
]; };
FooterToolbarComponent.propDecorators = {
errorCollect: [{ type: Input }],
extra: [{ type: Input }]
};
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], FooterToolbarComponent.prototype, "errorCollect", void 0);
return FooterToolbarComponent;
}());
if (false) {
/** @type {?} */
FooterToolbarComponent.prototype.errorCollect;
/** @type {?} */
FooterToolbarComponent.prototype.extra;
/**
* @type {?}
* @private
*/
FooterToolbarComponent.prototype.el;
/**
* @type {?}
* @private
*/
FooterToolbarComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
FooterToolbarComponent.prototype.doc;
}
/**
* @fileoverview added by tsickle
* Generated from: footer-toolbar.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS = [FooterToolbarComponent];
var FooterToolbarModule = /** @class */ (function () {
function FooterToolbarModule() {
}
FooterToolbarModule.decorators = [
{ type: NgModule, args: [{
imports: [CommonModule, ErrorCollectModule, LxlibUtilModule, NzOutletModule],
declarations: __spread(COMPONENTS),
exports: __spread(COMPONENTS),
},] }
];
return FooterToolbarModule;
}());
/**
* @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: footerToolbar.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { FooterToolbarComponent, FooterToolbarModule };
//# sourceMappingURL=footerToolbar.js.map