import { A_Caller, A_Inject } from "@adaas/a-concept"; import { Are } from "@adaas/are"; import { AreNode } from "@adaas/are"; import { AreStore } from "@adaas/are"; export class DashboardTable extends Are { @Are.Template template( @A_Inject(A_Caller) node: AreNode, ) { node.setContent(`
{{tableTitle}}
{{tableSubtitle}}
{{col1}} {{col2}} {{col3}} {{col4}} {{col5}}
{{r1c1}} {{r1c2}} {{r1c3}} {{r1c4}} {{r1c5}}
{{r2c1}} {{r2c2}} {{r2c3}} {{r2c4}} {{r2c5}}
{{r3c1}} {{r3c2}} {{r3c3}} {{r3c4}} {{r3c5}}
{{r4c1}} {{r4c2}} {{r4c3}} {{r4c4}} {{r4c5}}
{{r5c1}} {{r5c2}} {{r5c3}} {{r5c4}} {{r5c5}}
`); } @Are.Data data( @A_Inject(AreStore) store: AreStore, ) { store.set({ tableTitle: 'Recent Transactions', tableSubtitle: 'Last 30 days activity', filterAll: 'All', filterActive: 'Active', filterPending: 'Pending', col1: 'Transaction', col2: 'Customer', col3: 'Amount', col4: 'Status', col5: 'Date', r1c1: 'INV-001', r1c2: 'Alice Johnson', r1c3: '$1,250.00', r1c4: 'Active', r1c5: 'Mar 28, 2026', r2c1: 'INV-002', r2c2: 'Bob Williams', r2c3: '$890.00', r2c4: 'Pending', r2c5: 'Mar 27, 2026', r3c1: 'INV-003', r3c2: 'Carol Davis', r3c3: '$2,100.00', r3c4: 'Active', r3c5: 'Mar 26, 2026', r4c1: 'INV-004', r4c2: 'Dan Martinez', r4c3: '$450.00', r4c4: 'Inactive', r4c5: 'Mar 25, 2026', r5c1: 'INV-005', r5c2: 'Eve Thompson', r5c3: '$3,400.00', r5c4: 'Active', r5c5: 'Mar 24, 2026', footerText: 'Showing 1-5 of 24 results', }); } }