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 { dashboardPageTemplate } from './dashboard-page.template.js';
import { dashboardPageStyles } from './dashboard-page.styles.js';
/**
 * ml-dashboard-page - Composite dashboard layout component
 *
 * Composes ml-app-shell with ml-page-header to provide a complete
 * dashboard page with sidebar, header, metrics row, main content,
 * and optional aside column.
 *
 * @example
 * ```html
 * <ml-dashboard-page title="Dashboard" description="Overview of your account">
 *   <ml-sidebar slot="sidebar">...</ml-sidebar>
 *   <ml-button slot="header-actions" variant="primary">Create</ml-button>
 *   <ml-stat slot="metrics">...</ml-stat>
 *   <div slot="main">Main content</div>
 *   <div slot="aside">Activity feed</div>
 * </ml-dashboard-page>
 * ```
 *
 * @slot sidebar - Sidebar content (passed through to app shell)
 * @slot header-actions - Action buttons for the page header
 * @slot metrics - Stat/metric cards row
 * @slot main - Primary content area (tables, charts)
 * @slot aside - Secondary content (activity feed, notifications)
 */
let DashboardPageComponent = class DashboardPageComponent {
    constructor() {
        /** Page title */
        this.title = '';
        /** Page description */
        this.description = '';
        /** Content layout variant */
        this.layout = 'default';
    }
    /** Check if metrics slot has content */
    get hasMetrics() {
        return this.elementRef?.querySelector('[slot="metrics"]') !== null;
    }
    /** Check if aside slot has content */
    get hasAside() {
        return this.elementRef?.querySelector('[slot="aside"]') !== null;
    }
    /** Check if header-actions slot has content */
    get hasHeaderActions() {
        return this.elementRef?.querySelector('[slot="header-actions"]') !== null;
    }
};
DashboardPageComponent = __decorate([
    MelodicComponent({
        selector: 'ml-dashboard-page',
        template: dashboardPageTemplate,
        styles: dashboardPageStyles,
        attributes: ['title', 'description', 'layout']
    })
], DashboardPageComponent);
export { DashboardPageComponent };
