var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Component, Input, HostBinding } from '@angular/core';
/**
 * List is a container component that wraps `el-list-item` component.
 *
 * Basic example:
 * @stacked-example(Simple list, list/simple-list-showcase.component)
 *
 * `el-list-item` accepts arbitrary content, so you can create a list of any components.
 *
 * ### Installation
 *
 * Import `ElListModule` to your feature module.
 * ```ts
 * @NgModule({
 *   imports: [
 *     // ...
 *     ElListModule,
 *   ],
 * })
 * export class PageModule { }
 * ```
 * ### Usage
 *
 * List of users:
 * @stacked-example(Users list, list/users-list-showcase.component)
 *
 * @styles
 *
 * list-item-divider-color:
 * list-item-divider-style:
 * list-item-divider-width:
 * list-item-padding:
 * list-item-text-color:
 * list-item-font-family:
 * list-item-font-size:
 * list-item-font-weight:
 * list-item-line-height:
 */
var ElListComponent = /** @class */ (function () {
    function ElListComponent() {
        /**
         * Role attribute value
         *
         * @type {string}
         */
        this.role = 'list';
    }
    __decorate([
        Input(),
        HostBinding('attr.role'),
        __metadata("design:type", Object)
    ], ElListComponent.prototype, "role", void 0);
    ElListComponent = __decorate([
        Component({
            selector: 'el-list',
            template: "<ng-content select=\"el-list-item\"></ng-content>",
            styles: [":host{display:flex;flex-direction:column;flex:1 1 auto;overflow:auto}\n"]
        })
    ], ElListComponent);
    return ElListComponent;
}());
export { ElListComponent };
/**
 * List item component is a grouping component that accepts arbitrary content.
 * It should be direct child of `el-list` componet.
 */
var ElListItemComponent = /** @class */ (function () {
    function ElListItemComponent() {
        /**
         * Role attribute value
         *
         * @type {string}
         */
        this.role = 'listitem';
    }
    __decorate([
        Input(),
        HostBinding('attr.role'),
        __metadata("design:type", Object)
    ], ElListItemComponent.prototype, "role", void 0);
    ElListItemComponent = __decorate([
        Component({
            selector: 'el-list-item',
            template: "<ng-content></ng-content>",
            styles: [":host{display:flex;align-items:center;flex-shrink:0}\n"]
        })
    ], ElListItemComponent);
    return ElListItemComponent;
}());
export { ElListItemComponent };
//# sourceMappingURL=list.component.js.map