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;
};
import { MelodicComponent } from '@melodicdev/core';
import { pageHeaderTemplate } from './page-header.template.js';
import { pageHeaderStyles } from './page-header.styles.js';
/**
 * ml-page-header - Section component for page titles with breadcrumb, description, and actions
 *
 * @example
 * ```html
 * <ml-page-header title="Dashboard" description="Overview of your account">
 *   <ml-breadcrumb slot="breadcrumb">
 *     <ml-breadcrumb-item href="/">Home</ml-breadcrumb-item>
 *     <ml-breadcrumb-item>Dashboard</ml-breadcrumb-item>
 *   </ml-breadcrumb>
 *   <ml-button slot="actions" variant="primary">Create New</ml-button>
 * </ml-page-header>
 * ```
 *
 * @slot breadcrumb - For ml-breadcrumb component
 * @slot title - Page title (alternative to title property)
 * @slot description - Supporting text below title
 * @slot actions - Action buttons (right-aligned)
 * @slot tabs - Optional tab navigation below the header
 * @slot meta - Optional metadata area (badges, status, etc.)
 */
let PageHeaderComponent = class PageHeaderComponent {
    constructor() {
        /** Page title text */
        this.title = '';
        /** Page description text */
        this.description = '';
        /** Visual variant */
        this.variant = 'default';
        /** Show bottom border */
        this.divider = true;
    }
    /** Check if breadcrumb slot has content */
    get hasBreadcrumb() {
        return this.elementRef?.querySelector('[slot="breadcrumb"]') !== null;
    }
    /** Check if title slot has content */
    get hasTitleSlot() {
        return this.elementRef?.querySelector('[slot="title"]') !== null;
    }
    /** Check if description slot has content */
    get hasDescriptionSlot() {
        return this.elementRef?.querySelector('[slot="description"]') !== null;
    }
    /** Check if actions slot has content */
    get hasActions() {
        return this.elementRef?.querySelector('[slot="actions"]') !== null;
    }
    /** Check if tabs slot has content */
    get hasTabs() {
        return this.elementRef?.querySelector('[slot="tabs"]') !== null;
    }
    /** Check if meta slot has content */
    get hasMeta() {
        return this.elementRef?.querySelector('[slot="meta"]') !== null;
    }
};
PageHeaderComponent = __decorate([
    MelodicComponent({
        selector: 'ml-page-header',
        template: pageHeaderTemplate,
        styles: pageHeaderStyles,
        attributes: ['variant', 'divider', 'title', 'description']
    })
], PageHeaderComponent);
export { PageHeaderComponent };
