/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Component, ElementRef } from '@angular/core';
import { ListEventService } from '../list-item/list-event.service';
var ListOptionComponent = /** @class */ (function () {
    function ListOptionComponent(listEventService, elementRef) {
        this.listEventService = listEventService;
        this.elementRef = elementRef;
    }
    /**
     * @return {?}
     */
    ListOptionComponent.prototype.ngAfterViewInit = /**
     * @return {?}
     */
    function () {
        // 发布当前组件的 dom 元素，以便让 list-sliding 组件在划动时，计算最大划动宽度
        this.listEventService.addOption(this.elementRef);
    };
    ListOptionComponent.decorators = [
        { type: Component, args: [{
                    selector: 'ui-list-option',
                    template: "<ng-content></ng-content>"
                },] },
    ];
    /** @nocollapse */
    ListOptionComponent.ctorParameters = function () { return [
        { type: ListEventService, },
        { type: ElementRef, },
    ]; };
    return ListOptionComponent;
}());
export { ListOptionComponent };
function ListOptionComponent_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    ListOptionComponent.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    ListOptionComponent.ctorParameters;
    /** @type {?} */
    ListOptionComponent.prototype.listEventService;
    /** @type {?} */
    ListOptionComponent.prototype.elementRef;
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1vcHRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRhbmJvL3VpLW5hdGl2ZS8iLCJzb3VyY2VzIjpbImxpYi9saXN0L2xpc3Qtb3B0aW9uL2xpc3Qtb3B0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFpQixTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBR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