friday-widgets
Version:
Professional embeddable accounting widgets for vertical SaaS platforms. Layer Financial-inspired design with comprehensive financial reporting capabilities.
71 lines • 2.27 kB
TypeScript
/**
* Friday Chart of Accounts Widget - Layer Financial Inspired
*
* Professional chart of accounts management with Layer-quality UI/UX
* Features:
* - Layer-inspired professional design system
* - Hierarchical account display with smooth animations
* - Advanced table interactions and micro-animations
* - Professional sidebar for account management
* - Layer-quality visual hierarchy and spacing
* - Enterprise-grade responsive design
*/
import { BaseWidget } from '../core/base-widget.js';
import { Account } from '../core/types.js';
export interface ChartOfAccountsAccount extends Account {
current_balance: number;
balance_date?: string;
children?: ChartOfAccountsAccount[];
is_expanded?: boolean;
}
export declare class ChartOfAccountsWidget extends BaseWidget {
asWidget: boolean;
withDateControl: boolean;
withExpandAllButton: boolean;
balanceDate: string;
showDemo: boolean;
private accounts;
private filteredAccounts;
private searchQuery;
private selectedAccountType;
private isAllExpanded;
private selectedAccount?;
private showAccountForm;
private formMode;
private formData;
private isLoading;
protected error: string | null;
private hoveredRowId;
static styles: import("lit").CSSResultGroup[];
connectedCallback(): Promise<void>;
private loadAccounts;
private buildAccountHierarchy;
private loadDemoData;
private handleSearch;
private handleTypeFilter;
private handleDateChange;
private filterAccounts;
private filterAccountsBySearch;
private filterAccountsByType;
private toggleExpand;
private toggleExpandAll;
private expandAllAccounts;
private openAccountForm;
private closeAccountForm;
private saveAccount;
private exportCSV;
private generateCSVContent;
private formatCurrency;
private formatAccountType;
private getAccountTypeBadgeClass;
private getBalanceClass;
private renderAccountRow;
private renderAccountForm;
render(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'friday-chart-of-accounts-widget': ChartOfAccountsWidget;
}
}
//# sourceMappingURL=chart-of-accounts-widget.d.ts.map