import { Directive, ContentChild } from '@angular/core';
import { TabDirective } from './tab.directive';
import * as i0 from "@angular/core";
/*
 * <uno-tab [heading="..."]>
 *    <ng-template unoTabHeading>...</ng-template>
 *    <ng-template unoTabContent>
 *       Content goes here...
 *    </ng-template>
 * </uno-tab>
 */
export class TabHeadingDirective {
    constructor(templateRef) {
        this.templateRef = templateRef;
    }
}
TabHeadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabHeadingDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
TabHeadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TabHeadingDirective, selector: "[unoTabHeading]", ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabHeadingDirective, decorators: [{
            type: Directive,
            args: [{ selector: '[unoTabHeading]' }]
        }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
export class TabContentDirective {
    constructor(templateRef) {
        this.templateRef = templateRef;
    }
}
TabContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabContentDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
TabContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TabContentDirective, selector: "[unoTabContent]", ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabContentDirective, decorators: [{
            type: Directive,
            args: [{ selector: '[unoTabContent]' }]
        }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
export class TabHeadingDetailDirective extends TabDirective {
    ngAfterContentInit() {
        if (this.headingTemplate) {
            this.heading = this.headingTemplate.templateRef;
        }
        this.templateRef = this.contentTemplate.templateRef;
    }
}
TabHeadingDetailDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabHeadingDetailDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
TabHeadingDetailDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TabHeadingDetailDirective, selector: "uno-tab", providers: [{
            provide: TabDirective,
            useExisting: TabHeadingDetailDirective
        }], queries: [{ propertyName: "headingTemplate", first: true, predicate: TabHeadingDirective, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: TabContentDirective, descendants: true }], usesInheritance: true, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabHeadingDetailDirective, decorators: [{
            type: Directive,
            args: [{
                    selector: 'uno-tab',
                    providers: [{
                            provide: TabDirective,
                            useExisting: TabHeadingDetailDirective
                        }],
                }]
        }], propDecorators: { headingTemplate: [{
                type: ContentChild,
                args: [TabHeadingDirective]
            }], contentTemplate: [{
                type: ContentChild,
                args: [TabContentDirective]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLWhlYWRpbmctZGV0YWlsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Vuby11aS1saWIvc3JjL2xpYi90YWJzL3RhYi1oZWFkaW5nLWRldGFpbC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBZSxZQUFZLEVBQW9CLE1BQU0sZUFBZSxDQUFDO0FBRXZGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFFL0M7Ozs7Ozs7R0FPRztBQUVILE1BQU0sT0FBTyxtQkFBbUI7SUFDNUIsWUFBbUIsV0FBNkI7UUFBN0IsZ0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