import { LitElement, html, css, svg } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import './card/winzer-file-card.js';
import './winzer-day-view.js';
import './winzer-menu-group.js';
import './winzer-modal.js';
import './card/winzer-card.js';
import './winzer-header.js';
import './winzer-nav.js';
import './toggle-switch.js';
export class WinzerApp extends LitElement {
static properties = {
isUserModalOpen: { type: Boolean },
isFilterModalOpen: { type: Boolean },
currentTab: { type: String },
// Configurable properties
appTitle: { type: String, attribute: 'app-title' },
appSubtitle: { type: String, attribute: 'app-subtitle' },
navItems: { type: Array }, // [{ id, label, icon (svg string), url }]
menuAccount: { type: Array },
menuSession: { type: Array },
};
constructor() {
super();
this.isUserModalOpen = false;
this.isFilterModalOpen = false;
this.currentTab = 'news'; // Default tab
// Defaults
this.appTitle = 'WINZER-PORTAL';
this.appSubtitle = 'Badischer Winzerkeller';
// Default Navigation (can be overwritten via property)
this.navItems = [
{
id: 'news',
label: 'News',
url: '/news',
icon: svg``
},
{
id: 'anlieferung',
label: 'Anlieferung',
url: '/anlieferung',
icon: svg``
},
{
id: 'tresor',
label: 'Datei-Tresor',
url: '/tresor',
icon: svg``
}
];
this.menuAccount = [
{ label: 'Persönliche Daten', icon: svg`